DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
TypeScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
hard
TypeScript
When infer P appears multiple times in CONTRAVARIANT (input/parameter-type) positions, how are the candidates combined?
A
As a union, same as covariant positions
B
As an INTERSECTION — which collapses to effectively `never` for genuinely incompatible types like string and number
C
Only the first candidate is used, others discarded
D
This produces a compile error
Check Answer