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
5831
-
HomomorphicMappedType=1<<4,// Reverse inference for homomorphic mapped type
5832
-
PartialHomomorphicMappedType=1<<5,// Partial reverse inference for homomorphic mapped type
5833
-
MappedTypeConstraint=1<<6,// Reverse inference for mapped type
5834
-
ContravariantConditional=1<<7,// Conditional type in contravariant position
5835
-
ReturnType=1<<8,// Inference made from return type of generic function
5836
-
LiteralKeyof=1<<9,// Inference made from a string literal to a keyof T
5837
-
NoConstraints=1<<10,// Don't infer from constraints of instantiable types
5838
-
AlwaysStrict=1<<11,// Always use strict rules for contravariant inferences
5839
-
MaxValue=1<<12,// Seed for inference priority tracking
5840
-
5841
-
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
5830
+
HomomorphicMappedType=1<<3,// Reverse inference for homomorphic mapped type
5831
+
PartialHomomorphicMappedType=1<<4,// Partial reverse inference for homomorphic mapped type
5832
+
MappedTypeConstraint=1<<5,// Reverse inference for mapped type
5833
+
ContravariantConditional=1<<6,// Conditional type in contravariant position
5834
+
ReturnType=1<<7,// Inference made from return type of generic function
5835
+
LiteralKeyof=1<<8,// Inference made from a string literal to a keyof T
5836
+
NoConstraints=1<<9,// Don't infer from constraints of instantiable types
5837
+
AlwaysStrict=1<<10,// Always use strict rules for contravariant inferences
5838
+
MaxValue=1<<11,// Seed for inference priority tracking
5839
+
5840
+
PriorityImpliesCombination=ReturnType|MappedTypeConstraint|LiteralKeyof,// These priorities imply that the resulting type should be a combination of all candidates
5842
5841
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