You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SubstituteSource=1<<3,// Source of inference originated within a substitution type's substitute
5864
-
HomomorphicMappedType=1<<4,// Reverse inference for homomorphic mapped type
5865
-
PartialHomomorphicMappedType=1<<5,// Partial reverse inference for homomorphic mapped type
5866
-
MappedTypeConstraint=1<<6,// Reverse inference for mapped type
5867
-
ContravariantConditional=1<<7,// Conditional type in contravariant position
5868
-
ReturnType=1<<8,// Inference made from return type of generic function
5869
-
LiteralKeyof=1<<9,// Inference made from a string literal to a keyof T
5870
-
NoConstraints=1<<10,// Don't infer from constraints of instantiable types
5871
-
AlwaysStrict=1<<11,// Always use strict rules for contravariant inferences
5872
-
MaxValue=1<<12,// Seed for inference priority tracking
5873
-
5874
-
PriorityImpliesCombination=ReturnType|MappedTypeConstraint|LiteralKeyof|TemplateLiteralPlaceholder,// These priorities imply that the resulting type should be a combination of all candidates
SubstituteSource=1<<2,// Source of inference originated within a substitution type's substitute
5863
+
HomomorphicMappedType=1<<3,// Reverse inference for homomorphic mapped type
5864
+
PartialHomomorphicMappedType=1<<4,// Partial reverse inference for homomorphic mapped type
5865
+
MappedTypeConstraint=1<<5,// Reverse inference for mapped type
5866
+
ContravariantConditional=1<<6,// Conditional type in contravariant position
5867
+
ReturnType=1<<7,// Inference made from return type of generic function
5868
+
LiteralKeyof=1<<8,// Inference made from a string literal to a keyof T
5869
+
NoConstraints=1<<9,// Don't infer from constraints of instantiable types
5870
+
AlwaysStrict=1<<10,// Always use strict rules for contravariant inferences
5871
+
MaxValue=1<<11,// Seed for inference priority tracking
5872
+
5873
+
PriorityImpliesCombination=ReturnType|MappedTypeConstraint|LiteralKeyof,// These priorities imply that the resulting type should be a combination of all candidates
5875
5874
Circularity=-1,// Inference circularity (value less than all other priorities)
Copy file name to clipboardExpand all lines: tests/baselines/reference/templateLiteralTypes4.errors.txt
+52-14Lines changed: 52 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
tests/cases/conformance/types/literal/templateLiteralTypes4.ts(93,12): error TS2345: Argument of type '2' is not assignable to parameter of type '0 | 1'.
2
-
tests/cases/conformance/types/literal/templateLiteralTypes4.ts(97,12): error TS2345: Argument of type '2' is not assignable to parameter of type '0 | 1'.
1
+
tests/cases/conformance/types/literal/templateLiteralTypes4.ts(128,12): error TS2345: Argument of type '2' is not assignable to parameter of type '0 | 1'.
2
+
tests/cases/conformance/types/literal/templateLiteralTypes4.ts(132,12): error TS2345: Argument of type '2' is not assignable to parameter of type '0 | 1'.
0 commit comments