Why is the result here
type result = (1 | 1 | 2) extends 1 ? 3 : 4
4?
Should not result be 3 | 4 ?
Because I thought above is same as: (1 extends 1 ? 3 : 4) | (1 extends 1 ? 3 : 4) | (2 extends 1 ? 3 : 4) = 3 | 3 | 4.
No?
Why is the result here
type result = (1 | 1 | 2) extends 1 ? 3 : 4
4?
Should not result be 3 | 4 ?
Because I thought above is same as: (1 extends 1 ? 3 : 4) | (1 extends 1 ? 3 : 4) | (2 extends 1 ? 3 : 4) = 3 | 3 | 4.
No?