diff --git a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes01.errors.txt b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes01.errors.txt
index 7c1f11b6294..4b74bb357ea 100644
--- a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes01.errors.txt
+++ b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes01.errors.txt
@@ -1,9 +1,9 @@
tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes01.tsx(15,15): error TS2322: Type '{ foo: "f"; }' is not assignable to type '{ foo: "A" | "B" | "C"; }'.
Types of property 'foo' are incompatible.
- Type 'string' is not assignable to type '"A" | "B" | "C"'.
+ Type '"f"' is not assignable to type '"A" | "B" | "C"'.
tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes01.tsx(16,15): error TS2322: Type '{ foo: "f"; }' is not assignable to type '{ foo: "A" | "B" | "C"; }'.
Types of property 'foo' are incompatible.
- Type 'string' is not assignable to type '"A" | "B" | "C"'.
+ Type '"f"' is not assignable to type '"A" | "B" | "C"'.
==== tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes01.tsx (2 errors) ====
@@ -25,9 +25,9 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStr
~~~~~~~~~
!!! error TS2322: Type '{ foo: "f"; }' is not assignable to type '{ foo: "A" | "B" | "C"; }'.
!!! error TS2322: Types of property 'foo' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"A" | "B" | "C"'.
+!!! error TS2322: Type '"f"' is not assignable to type '"A" | "B" | "C"'.
;
~~~~~~~
!!! error TS2322: Type '{ foo: "f"; }' is not assignable to type '{ foo: "A" | "B" | "C"; }'.
!!! error TS2322: Types of property 'foo' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"A" | "B" | "C"'.
\ No newline at end of file
+!!! error TS2322: Type '"f"' is not assignable to type '"A" | "B" | "C"'.
\ No newline at end of file
diff --git a/tests/baselines/reference/doubleUnderStringLiteralAssignability.errors.txt b/tests/baselines/reference/doubleUnderStringLiteralAssignability.errors.txt
index 64944ab1a2d..c4226a83bfc 100644
--- a/tests/baselines/reference/doubleUnderStringLiteralAssignability.errors.txt
+++ b/tests/baselines/reference/doubleUnderStringLiteralAssignability.errors.txt
@@ -1,11 +1,11 @@
-tests/cases/compiler/doubleUnderStringLiteralAssignability.ts(2,5): error TS2322: Type 'string' is not assignable to type '"__dunder"'.
+tests/cases/compiler/doubleUnderStringLiteralAssignability.ts(2,5): error TS2322: Type '"no_dunder"' is not assignable to type '"__dunder"'.
==== tests/cases/compiler/doubleUnderStringLiteralAssignability.ts (1 errors) ====
var shouldBeOk: '__dunder' = '__dunder';
var bad: '__dunder' = 'no_dunder';
~~~
-!!! error TS2322: Type 'string' is not assignable to type '"__dunder"'.
+!!! error TS2322: Type '"no_dunder"' is not assignable to type '"__dunder"'.
var okok: '___thunder' = '___thunder';
var alsoOk: '_sunder' = '_sunder';
\ No newline at end of file
diff --git a/tests/baselines/reference/enumLiteralTypes3.errors.txt b/tests/baselines/reference/enumLiteralTypes3.errors.txt
index e571acb5d82..62cb4644c72 100644
--- a/tests/baselines/reference/enumLiteralTypes3.errors.txt
+++ b/tests/baselines/reference/enumLiteralTypes3.errors.txt
@@ -1,12 +1,12 @@
-tests/cases/conformance/types/literal/enumLiteralTypes3.ts(10,5): error TS2322: Type 'Choice' is not assignable to type 'Choice.Yes'.
- Type 'Choice' is not assignable to type 'Choice.Yes'.
+tests/cases/conformance/types/literal/enumLiteralTypes3.ts(10,5): error TS2322: Type 'YesNo' is not assignable to type 'Choice.Yes'.
+ Type 'Choice.No' is not assignable to type 'Choice.Yes'.
tests/cases/conformance/types/literal/enumLiteralTypes3.ts(11,5): error TS2322: Type 'Choice' is not assignable to type 'Choice.Yes'.
tests/cases/conformance/types/literal/enumLiteralTypes3.ts(12,5): error TS2322: Type 'Choice' is not assignable to type 'Choice.Yes'.
tests/cases/conformance/types/literal/enumLiteralTypes3.ts(18,5): error TS2322: Type 'Choice' is not assignable to type 'YesNo'.
tests/cases/conformance/types/literal/enumLiteralTypes3.ts(19,5): error TS2322: Type 'Choice' is not assignable to type 'YesNo'.
-tests/cases/conformance/types/literal/enumLiteralTypes3.ts(37,5): error TS2322: Type 'Choice' is not assignable to type 'Choice.Yes'.
-tests/cases/conformance/types/literal/enumLiteralTypes3.ts(39,5): error TS2322: Type 'Choice' is not assignable to type 'Choice.Yes'.
-tests/cases/conformance/types/literal/enumLiteralTypes3.ts(40,5): error TS2322: Type 'Choice' is not assignable to type 'YesNo'.
+tests/cases/conformance/types/literal/enumLiteralTypes3.ts(37,5): error TS2322: Type 'Choice.Unknown' is not assignable to type 'Choice.Yes'.
+tests/cases/conformance/types/literal/enumLiteralTypes3.ts(39,5): error TS2322: Type 'Choice.No' is not assignable to type 'Choice.Yes'.
+tests/cases/conformance/types/literal/enumLiteralTypes3.ts(40,5): error TS2322: Type 'Choice.Unknown' is not assignable to type 'YesNo'.
tests/cases/conformance/types/literal/enumLiteralTypes3.ts(52,5): error TS2365: Operator '===' cannot be applied to types 'Choice.Yes' and 'Choice.Unknown'.
tests/cases/conformance/types/literal/enumLiteralTypes3.ts(54,5): error TS2365: Operator '===' cannot be applied to types 'Choice.Yes' and 'Choice.No'.
tests/cases/conformance/types/literal/enumLiteralTypes3.ts(55,5): error TS2365: Operator '===' cannot be applied to types 'YesNo' and 'Choice.Unknown'.
@@ -27,8 +27,8 @@ tests/cases/conformance/types/literal/enumLiteralTypes3.ts(96,14): error TS2678:
a = a;
a = b;
~
-!!! error TS2322: Type 'Choice' is not assignable to type 'Choice.Yes'.
-!!! error TS2322: Type 'Choice' is not assignable to type 'Choice.Yes'.
+!!! error TS2322: Type 'YesNo' is not assignable to type 'Choice.Yes'.
+!!! error TS2322: Type 'Choice.No' is not assignable to type 'Choice.Yes'.
a = c;
~
!!! error TS2322: Type 'Choice' is not assignable to type 'Choice.Yes'.
@@ -65,14 +65,14 @@ tests/cases/conformance/types/literal/enumLiteralTypes3.ts(96,14): error TS2678:
function f5(a: Yes, b: YesNo, c: UnknownYesNo, d: Choice) {
a = Choice.Unknown;
~
-!!! error TS2322: Type 'Choice' is not assignable to type 'Choice.Yes'.
+!!! error TS2322: Type 'Choice.Unknown' is not assignable to type 'Choice.Yes'.
a = Choice.Yes;
a = Choice.No;
~
-!!! error TS2322: Type 'Choice' is not assignable to type 'Choice.Yes'.
+!!! error TS2322: Type 'Choice.No' is not assignable to type 'Choice.Yes'.
b = Choice.Unknown;
~
-!!! error TS2322: Type 'Choice' is not assignable to type 'YesNo'.
+!!! error TS2322: Type 'Choice.Unknown' is not assignable to type 'YesNo'.
b = Choice.Yes;
b = Choice.No;
c = Choice.Unknown;
diff --git a/tests/baselines/reference/invalidSwitchBreakStatement.errors.txt b/tests/baselines/reference/invalidSwitchBreakStatement.errors.txt
index db3e7b5d923..31715e3fc0b 100644
--- a/tests/baselines/reference/invalidSwitchBreakStatement.errors.txt
+++ b/tests/baselines/reference/invalidSwitchBreakStatement.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/statements/breakStatements/invalidSwitchBreakStatement.ts(4,10): error TS2678: Type 'number' is not comparable to type '12'.
+tests/cases/conformance/statements/breakStatements/invalidSwitchBreakStatement.ts(4,10): error TS2678: Type '5' is not comparable to type '12'.
==== tests/cases/conformance/statements/breakStatements/invalidSwitchBreakStatement.ts (1 errors) ====
@@ -7,7 +7,7 @@ tests/cases/conformance/statements/breakStatements/invalidSwitchBreakStatement.t
switch (12) {
case 5:
~
-!!! error TS2678: Type 'number' is not comparable to type '12'.
+!!! error TS2678: Type '5' is not comparable to type '12'.
break;
}
\ No newline at end of file
diff --git a/tests/baselines/reference/invalidSwitchContinueStatement.errors.txt b/tests/baselines/reference/invalidSwitchContinueStatement.errors.txt
index e7370e9d6ce..b5231d5948b 100644
--- a/tests/baselines/reference/invalidSwitchContinueStatement.errors.txt
+++ b/tests/baselines/reference/invalidSwitchContinueStatement.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/statements/continueStatements/invalidSwitchContinueStatement.ts(4,10): error TS2678: Type 'number' is not comparable to type '12'.
+tests/cases/conformance/statements/continueStatements/invalidSwitchContinueStatement.ts(4,10): error TS2678: Type '5' is not comparable to type '12'.
tests/cases/conformance/statements/continueStatements/invalidSwitchContinueStatement.ts(5,9): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
@@ -8,7 +8,7 @@ tests/cases/conformance/statements/continueStatements/invalidSwitchContinueState
switch (12) {
case 5:
~
-!!! error TS2678: Type 'number' is not comparable to type '12'.
+!!! error TS2678: Type '5' is not comparable to type '12'.
continue;
~~~~~~~~~
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
diff --git a/tests/baselines/reference/keyofAndIndexedAccessErrors.errors.txt b/tests/baselines/reference/keyofAndIndexedAccessErrors.errors.txt
index 1a7feadca14..1e88e2abc43 100644
--- a/tests/baselines/reference/keyofAndIndexedAccessErrors.errors.txt
+++ b/tests/baselines/reference/keyofAndIndexedAccessErrors.errors.txt
@@ -15,12 +15,12 @@ tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(35,21): error
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(36,21): error TS2538: Type 'boolean' cannot be used as an index type.
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(41,31): error TS2538: Type 'boolean' cannot be used as an index type.
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(46,16): error TS2538: Type 'boolean' cannot be used as an index type.
-tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(63,33): error TS2345: Argument of type 'string' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
-tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(64,33): error TS2345: Argument of type 'string' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
- Type 'string' is not assignable to type '"name" | "width" | "height" | "visible"'.
-tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(66,24): error TS2345: Argument of type 'string' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
-tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(67,24): error TS2345: Argument of type 'string' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
- Type 'string' is not assignable to type '"name" | "width" | "height" | "visible"'.
+tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(63,33): error TS2345: Argument of type '"size"' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
+tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(64,33): error TS2345: Argument of type '"name" | "size"' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
+ Type '"size"' is not assignable to type '"name" | "width" | "height" | "visible"'.
+tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(66,24): error TS2345: Argument of type '"size"' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
+tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(67,24): error TS2345: Argument of type '"name" | "size"' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
+ Type '"size"' is not assignable to type '"name" | "width" | "height" | "visible"'.
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(72,5): error TS2536: Type 'keyof (T & U)' cannot be used to index type 'T | U'.
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(76,5): error TS2322: Type 'T | U' is not assignable to type 'T & U'.
Type 'T' is not assignable to type 'T & U'.
@@ -127,19 +127,19 @@ tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(77,5): error
let x1 = getProperty(shape, "name");
let x2 = getProperty(shape, "size"); // Error
~~~~~~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
+!!! error TS2345: Argument of type '"size"' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
let x3 = getProperty(shape, cond ? "name" : "size"); // Error
~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
-!!! error TS2345: Type 'string' is not assignable to type '"name" | "width" | "height" | "visible"'.
+!!! error TS2345: Argument of type '"name" | "size"' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
+!!! error TS2345: Type '"size"' is not assignable to type '"name" | "width" | "height" | "visible"'.
setProperty(shape, "name", "rectangle");
setProperty(shape, "size", 10); // Error
~~~~~~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
+!!! error TS2345: Argument of type '"size"' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
setProperty(shape, cond ? "name" : "size", 10); // Error
~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
-!!! error TS2345: Type 'string' is not assignable to type '"name" | "width" | "height" | "visible"'.
+!!! error TS2345: Argument of type '"name" | "size"' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
+!!! error TS2345: Type '"size"' is not assignable to type '"name" | "width" | "height" | "visible"'.
}
function f20(k1: keyof (T | U), k2: keyof (T & U), o1: T | U, o2: T & U) {
diff --git a/tests/baselines/reference/keyofIsLiteralContexualType.errors.txt b/tests/baselines/reference/keyofIsLiteralContexualType.errors.txt
index ba7cc1eac17..4914b450eec 100644
--- a/tests/baselines/reference/keyofIsLiteralContexualType.errors.txt
+++ b/tests/baselines/reference/keyofIsLiteralContexualType.errors.txt
@@ -1,7 +1,7 @@
tests/cases/compiler/keyofIsLiteralContexualType.ts(5,9): error TS2322: Type '("a" | "b" | "c")[]' is not assignable to type 'keyof T[]'.
Type 'string' is not assignable to type 'keyof T'.
Type 'string' is not assignable to type 'keyof T'.
- Type 'string' is not assignable to type '"a" | "b"'.
+ Type '"c"' is not assignable to type '"a" | "b"'.
tests/cases/compiler/keyofIsLiteralContexualType.ts(13,11): error TS2339: Property 'b' does not exist on type 'Pick<{ a: number; b: number; c: number; }, "a" | "c">'.
@@ -15,7 +15,7 @@ tests/cases/compiler/keyofIsLiteralContexualType.ts(13,11): error TS2339: Proper
!!! error TS2322: Type '("a" | "b" | "c")[]' is not assignable to type 'keyof T[]'.
!!! error TS2322: Type 'string' is not assignable to type 'keyof T'.
!!! error TS2322: Type 'string' is not assignable to type 'keyof T'.
-!!! error TS2322: Type 'string' is not assignable to type '"a" | "b"'.
+!!! error TS2322: Type '"c"' is not assignable to type '"a" | "b"'.
}
// Repro from #12455
diff --git a/tests/baselines/reference/letConstInCaseClauses.errors.txt b/tests/baselines/reference/letConstInCaseClauses.errors.txt
index 49f44e43eab..ae56fe47a79 100644
--- a/tests/baselines/reference/letConstInCaseClauses.errors.txt
+++ b/tests/baselines/reference/letConstInCaseClauses.errors.txt
@@ -1,7 +1,7 @@
tests/cases/compiler/letConstInCaseClauses.ts(6,5): error TS2304: Cannot find name 'console'.
tests/cases/compiler/letConstInCaseClauses.ts(20,5): error TS2304: Cannot find name 'console'.
-tests/cases/compiler/letConstInCaseClauses.ts(22,14): error TS2678: Type 'number' is not comparable to type '1'.
-tests/cases/compiler/letConstInCaseClauses.ts(26,14): error TS2678: Type 'number' is not comparable to type '2'.
+tests/cases/compiler/letConstInCaseClauses.ts(22,14): error TS2678: Type '10' is not comparable to type '1'.
+tests/cases/compiler/letConstInCaseClauses.ts(26,14): error TS2678: Type '10' is not comparable to type '2'.
==== tests/cases/compiler/letConstInCaseClauses.ts (4 errors) ====
@@ -32,13 +32,13 @@ tests/cases/compiler/letConstInCaseClauses.ts(26,14): error TS2678: Type 'number
switch (x) {
case 10:
~~
-!!! error TS2678: Type 'number' is not comparable to type '1'.
+!!! error TS2678: Type '10' is not comparable to type '1'.
const x = 20;
}
switch (y) {
case 10:
~~
-!!! error TS2678: Type 'number' is not comparable to type '2'.
+!!! error TS2678: Type '10' is not comparable to type '2'.
const y = 20;
}
}
\ No newline at end of file
diff --git a/tests/baselines/reference/limitDeepInstantiations.errors.txt b/tests/baselines/reference/limitDeepInstantiations.errors.txt
index 0bfd70058bc..330e5fbc8e4 100644
--- a/tests/baselines/reference/limitDeepInstantiations.errors.txt
+++ b/tests/baselines/reference/limitDeepInstantiations.errors.txt
@@ -1,5 +1,5 @@
tests/cases/compiler/limitDeepInstantiations.ts(3,35): error TS2550: Generic type instantiation is excessively deep and possibly infinite.
-tests/cases/compiler/limitDeepInstantiations.ts(5,13): error TS2344: Type 'string' does not satisfy the constraint '"true"'.
+tests/cases/compiler/limitDeepInstantiations.ts(5,13): error TS2344: Type '"false"' does not satisfy the constraint '"true"'.
==== tests/cases/compiler/limitDeepInstantiations.ts (2 errors) ====
@@ -11,5 +11,5 @@ tests/cases/compiler/limitDeepInstantiations.ts(5,13): error TS2344: Type 'strin
let f1: Foo<"true", {}>;
let f2: Foo<"false", {}>;
~~~~~~~
-!!! error TS2344: Type 'string' does not satisfy the constraint '"true"'.
+!!! error TS2344: Type '"false"' does not satisfy the constraint '"true"'.
\ No newline at end of file
diff --git a/tests/baselines/reference/literalTypesWidenInParameterPosition.errors.txt b/tests/baselines/reference/literalTypesWidenInParameterPosition.errors.txt
index 8b5684f85e6..69d7196b978 100644
--- a/tests/baselines/reference/literalTypesWidenInParameterPosition.errors.txt
+++ b/tests/baselines/reference/literalTypesWidenInParameterPosition.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/types/literal/literalTypesWidenInParameterPosition.ts(4,9): error TS2322: Type 'number' is not assignable to type '1'.
+tests/cases/conformance/types/literal/literalTypesWidenInParameterPosition.ts(4,9): error TS2322: Type '5' is not assignable to type '1'.
==== tests/cases/conformance/types/literal/literalTypesWidenInParameterPosition.ts (1 errors) ====
@@ -7,7 +7,7 @@ tests/cases/conformance/types/literal/literalTypesWidenInParameterPosition.ts(4,
constructor(readonly widen = 2) {
this.noWiden = 5; // error
~~~~~~~~~~~~
-!!! error TS2322: Type 'number' is not assignable to type '1'.
+!!! error TS2322: Type '5' is not assignable to type '1'.
this.widen = 6; // ok
}
}
diff --git a/tests/baselines/reference/mappedTypeErrors.errors.txt b/tests/baselines/reference/mappedTypeErrors.errors.txt
index aef481df4b1..9b7d4552158 100644
--- a/tests/baselines/reference/mappedTypeErrors.errors.txt
+++ b/tests/baselines/reference/mappedTypeErrors.errors.txt
@@ -2,11 +2,11 @@ tests/cases/conformance/types/mapped/mappedTypeErrors.ts(19,20): error TS2313: T
tests/cases/conformance/types/mapped/mappedTypeErrors.ts(20,20): error TS2322: Type 'number' is not assignable to type 'string'.
tests/cases/conformance/types/mapped/mappedTypeErrors.ts(21,20): error TS2322: Type 'Date' is not assignable to type 'string'.
tests/cases/conformance/types/mapped/mappedTypeErrors.ts(22,19): error TS2344: Type 'Date' does not satisfy the constraint 'string'.
-tests/cases/conformance/types/mapped/mappedTypeErrors.ts(25,24): error TS2344: Type 'string' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
-tests/cases/conformance/types/mapped/mappedTypeErrors.ts(26,24): error TS2344: Type 'string' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
- Type 'string' is not assignable to type '"name" | "width" | "height" | "visible"'.
-tests/cases/conformance/types/mapped/mappedTypeErrors.ts(28,24): error TS2344: Type 'string' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
- Type 'string' is not assignable to type '"name" | "width" | "height" | "visible"'.
+tests/cases/conformance/types/mapped/mappedTypeErrors.ts(25,24): error TS2344: Type '"foo"' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
+tests/cases/conformance/types/mapped/mappedTypeErrors.ts(26,24): error TS2344: Type '"name" | "foo"' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
+ Type '"foo"' is not assignable to type '"name" | "width" | "height" | "visible"'.
+tests/cases/conformance/types/mapped/mappedTypeErrors.ts(28,24): error TS2344: Type '"x" | "y"' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
+ Type '"x"' is not assignable to type '"name" | "width" | "height" | "visible"'.
tests/cases/conformance/types/mapped/mappedTypeErrors.ts(30,24): error TS2344: Type 'undefined' does not satisfy the constraint 'string'.
tests/cases/conformance/types/mapped/mappedTypeErrors.ts(33,24): error TS2344: Type 'T' does not satisfy the constraint 'string'.
Type 'T' is not assignable to type 'string'.
@@ -84,16 +84,16 @@ tests/cases/conformance/types/mapped/mappedTypeErrors.ts(136,21): error TS2536:
type T10 = Pick;
type T11 = Pick; // Error
~~~~~
-!!! error TS2344: Type 'string' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
+!!! error TS2344: Type '"foo"' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
type T12 = Pick; // Error
~~~~~~~~~~~~~~
-!!! error TS2344: Type 'string' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
-!!! error TS2344: Type 'string' is not assignable to type '"name" | "width" | "height" | "visible"'.
+!!! error TS2344: Type '"name" | "foo"' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
+!!! error TS2344: Type '"foo"' is not assignable to type '"name" | "width" | "height" | "visible"'.
type T13 = Pick;
type T14 = Pick; // Error
~~~~~~~~~~~
-!!! error TS2344: Type 'string' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
-!!! error TS2344: Type 'string' is not assignable to type '"name" | "width" | "height" | "visible"'.
+!!! error TS2344: Type '"x" | "y"' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
+!!! error TS2344: Type '"x"' is not assignable to type '"name" | "width" | "height" | "visible"'.
type T15 = Pick;
type T16 = Pick; // Error
~~~~~~~~~
diff --git a/tests/baselines/reference/numericLiteralTypes3.errors.txt b/tests/baselines/reference/numericLiteralTypes3.errors.txt
index 0d607ecc501..f89ea2ff10b 100644
--- a/tests/baselines/reference/numericLiteralTypes3.errors.txt
+++ b/tests/baselines/reference/numericLiteralTypes3.errors.txt
@@ -1,27 +1,27 @@
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(8,5): error TS2322: Type 'number' is not assignable to type '1'.
- Type 'number' is not assignable to type '1'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(9,5): error TS2322: Type 'number' is not assignable to type '1'.
- Type 'number' is not assignable to type '1'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(10,5): error TS2322: Type 'number' is not assignable to type '1'.
- Type 'number' is not assignable to type '1'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(14,5): error TS2322: Type 'number' is not assignable to type 'B'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(16,5): error TS2322: Type 'number' is not assignable to type 'B'.
- Type 'number' is not assignable to type 'B'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(17,5): error TS2322: Type 'number' is not assignable to type 'B'.
- Type 'number' is not assignable to type 'B'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(24,5): error TS2322: Type 'number' is not assignable to type 'C'.
- Type 'number' is not assignable to type 'C'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(29,5): error TS2322: Type 'number' is not assignable to type 'D'.
- Type 'number' is not assignable to type 'D'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(30,5): error TS2322: Type 'number' is not assignable to type 'D'.
- Type 'number' is not assignable to type 'D'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(35,5): error TS2322: Type 'number' is not assignable to type '1'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(37,5): error TS2322: Type 'number' is not assignable to type '1'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(38,5): error TS2322: Type 'number' is not assignable to type '1'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(39,5): error TS2322: Type 'number' is not assignable to type 'B'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(40,5): error TS2322: Type 'number' is not assignable to type 'B'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(43,5): error TS2322: Type 'number' is not assignable to type 'C'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(50,5): error TS2322: Type 'number' is not assignable to type 'D'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(8,5): error TS2322: Type 'B' is not assignable to type '1'.
+ Type '2' is not assignable to type '1'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(9,5): error TS2322: Type 'C' is not assignable to type '1'.
+ Type '2' is not assignable to type '1'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(10,5): error TS2322: Type 'D' is not assignable to type '1'.
+ Type '0' is not assignable to type '1'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(14,5): error TS2322: Type '1' is not assignable to type 'B'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(16,5): error TS2322: Type 'C' is not assignable to type 'B'.
+ Type '1' is not assignable to type 'B'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(17,5): error TS2322: Type 'D' is not assignable to type 'B'.
+ Type '0' is not assignable to type 'B'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(24,5): error TS2322: Type 'D' is not assignable to type 'C'.
+ Type '0' is not assignable to type 'C'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(29,5): error TS2322: Type 'B' is not assignable to type 'D'.
+ Type '3' is not assignable to type 'D'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(30,5): error TS2322: Type 'C' is not assignable to type 'D'.
+ Type '3' is not assignable to type 'D'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(35,5): error TS2322: Type '0' is not assignable to type '1'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(37,5): error TS2322: Type '2' is not assignable to type '1'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(38,5): error TS2322: Type '3' is not assignable to type '1'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(39,5): error TS2322: Type '0' is not assignable to type 'B'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(40,5): error TS2322: Type '1' is not assignable to type 'B'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(43,5): error TS2322: Type '0' is not assignable to type 'C'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(50,5): error TS2322: Type '3' is not assignable to type 'D'.
tests/cases/conformance/types/literal/numericLiteralTypes3.ts(54,5): error TS2365: Operator '===' cannot be applied to types '1' and '0'.
tests/cases/conformance/types/literal/numericLiteralTypes3.ts(56,5): error TS2365: Operator '===' cannot be applied to types '1' and '2'.
tests/cases/conformance/types/literal/numericLiteralTypes3.ts(57,5): error TS2365: Operator '===' cannot be applied to types '1' and '3'.
@@ -31,9 +31,9 @@ tests/cases/conformance/types/literal/numericLiteralTypes3.ts(62,5): error TS236
tests/cases/conformance/types/literal/numericLiteralTypes3.ts(69,5): error TS2365: Operator '===' cannot be applied to types 'D' and '3'.
tests/cases/conformance/types/literal/numericLiteralTypes3.ts(74,5): error TS2365: Operator '===' cannot be applied to types '1' and 'B'.
tests/cases/conformance/types/literal/numericLiteralTypes3.ts(77,5): error TS2365: Operator '===' cannot be applied to types 'B' and '1'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(94,14): error TS2678: Type 'number' is not comparable to type '0 | 2 | 4'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(96,14): error TS2678: Type 'number' is not comparable to type '0 | 2 | 4'.
-tests/cases/conformance/types/literal/numericLiteralTypes3.ts(98,14): error TS2678: Type 'number' is not comparable to type '0 | 2 | 4'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(94,14): error TS2678: Type '1' is not comparable to type '0 | 2 | 4'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(96,14): error TS2678: Type '3' is not comparable to type '0 | 2 | 4'.
+tests/cases/conformance/types/literal/numericLiteralTypes3.ts(98,14): error TS2678: Type '5' is not comparable to type '0 | 2 | 4'.
==== tests/cases/conformance/types/literal/numericLiteralTypes3.ts (28 errors) ====
@@ -46,31 +46,31 @@ tests/cases/conformance/types/literal/numericLiteralTypes3.ts(98,14): error TS26
a = a;
a = b;
~
-!!! error TS2322: Type 'number' is not assignable to type '1'.
-!!! error TS2322: Type 'number' is not assignable to type '1'.
+!!! error TS2322: Type 'B' is not assignable to type '1'.
+!!! error TS2322: Type '2' is not assignable to type '1'.
a = c;
~
-!!! error TS2322: Type 'number' is not assignable to type '1'.
-!!! error TS2322: Type 'number' is not assignable to type '1'.
+!!! error TS2322: Type 'C' is not assignable to type '1'.
+!!! error TS2322: Type '2' is not assignable to type '1'.
a = d;
~
-!!! error TS2322: Type 'number' is not assignable to type '1'.
-!!! error TS2322: Type 'number' is not assignable to type '1'.
+!!! error TS2322: Type 'D' is not assignable to type '1'.
+!!! error TS2322: Type '0' is not assignable to type '1'.
}
function f2(a: A, b: B, c: C, d: D) {
b = a;
~
-!!! error TS2322: Type 'number' is not assignable to type 'B'.
+!!! error TS2322: Type '1' is not assignable to type 'B'.
b = b;
b = c;
~
-!!! error TS2322: Type 'number' is not assignable to type 'B'.
-!!! error TS2322: Type 'number' is not assignable to type 'B'.
+!!! error TS2322: Type 'C' is not assignable to type 'B'.
+!!! error TS2322: Type '1' is not assignable to type 'B'.
b = d;
~
-!!! error TS2322: Type 'number' is not assignable to type 'B'.
-!!! error TS2322: Type 'number' is not assignable to type 'B'.
+!!! error TS2322: Type 'D' is not assignable to type 'B'.
+!!! error TS2322: Type '0' is not assignable to type 'B'.
}
function f3(a: A, b: B, c: C, d: D) {
@@ -79,45 +79,45 @@ tests/cases/conformance/types/literal/numericLiteralTypes3.ts(98,14): error TS26
c = c;
c = d;
~
-!!! error TS2322: Type 'number' is not assignable to type 'C'.
-!!! error TS2322: Type 'number' is not assignable to type 'C'.
+!!! error TS2322: Type 'D' is not assignable to type 'C'.
+!!! error TS2322: Type '0' is not assignable to type 'C'.
}
function f4(a: A, b: B, c: C, d: D) {
d = a;
d = b;
~
-!!! error TS2322: Type 'number' is not assignable to type 'D'.
-!!! error TS2322: Type 'number' is not assignable to type 'D'.
+!!! error TS2322: Type 'B' is not assignable to type 'D'.
+!!! error TS2322: Type '3' is not assignable to type 'D'.
d = c;
~
-!!! error TS2322: Type 'number' is not assignable to type 'D'.
-!!! error TS2322: Type 'number' is not assignable to type 'D'.
+!!! error TS2322: Type 'C' is not assignable to type 'D'.
+!!! error TS2322: Type '3' is not assignable to type 'D'.
d = d;
}
function f5(a: A, b: B, c: C, d: D) {
a = 0;
~
-!!! error TS2322: Type 'number' is not assignable to type '1'.
+!!! error TS2322: Type '0' is not assignable to type '1'.
a = 1;
a = 2;
~
-!!! error TS2322: Type 'number' is not assignable to type '1'.
+!!! error TS2322: Type '2' is not assignable to type '1'.
a = 3;
~
-!!! error TS2322: Type 'number' is not assignable to type '1'.
+!!! error TS2322: Type '3' is not assignable to type '1'.
b = 0;
~
-!!! error TS2322: Type 'number' is not assignable to type 'B'.
+!!! error TS2322: Type '0' is not assignable to type 'B'.
b = 1;
~
-!!! error TS2322: Type 'number' is not assignable to type 'B'.
+!!! error TS2322: Type '1' is not assignable to type 'B'.
b = 2;
b = 3;
c = 0;
~
-!!! error TS2322: Type 'number' is not assignable to type 'C'.
+!!! error TS2322: Type '0' is not assignable to type 'C'.
c = 1;
c = 2;
c = 3;
@@ -126,7 +126,7 @@ tests/cases/conformance/types/literal/numericLiteralTypes3.ts(98,14): error TS26
d = 2;
d = 3;
~
-!!! error TS2322: Type 'number' is not assignable to type 'D'.
+!!! error TS2322: Type '3' is not assignable to type 'D'.
}
function f6(a: A, b: B, c: C, d: D) {
@@ -190,14 +190,14 @@ tests/cases/conformance/types/literal/numericLiteralTypes3.ts(98,14): error TS26
case 0: return;
case 1: return;
~
-!!! error TS2678: Type 'number' is not comparable to type '0 | 2 | 4'.
+!!! error TS2678: Type '1' is not comparable to type '0 | 2 | 4'.
case 2: return;
case 3: return;
~
-!!! error TS2678: Type 'number' is not comparable to type '0 | 2 | 4'.
+!!! error TS2678: Type '3' is not comparable to type '0 | 2 | 4'.
case 4: return;
case 5: return;
~
-!!! error TS2678: Type 'number' is not comparable to type '0 | 2 | 4'.
+!!! error TS2678: Type '5' is not comparable to type '0 | 2 | 4'.
}
}
\ No newline at end of file
diff --git a/tests/baselines/reference/overloadOnConstInheritance2.errors.txt b/tests/baselines/reference/overloadOnConstInheritance2.errors.txt
index d2ace954d45..8d104fc1ab0 100644
--- a/tests/baselines/reference/overloadOnConstInheritance2.errors.txt
+++ b/tests/baselines/reference/overloadOnConstInheritance2.errors.txt
@@ -2,7 +2,7 @@ tests/cases/compiler/overloadOnConstInheritance2.ts(5,11): error TS2430: Interfa
Types of property 'addEventListener' are incompatible.
Type '(x: "bar") => string' is not assignable to type '{ (x: string): any; (x: "foo"): string; }'.
Types of parameters 'x' and 'x' are incompatible.
- Type 'string' is not assignable to type '"bar"'.
+ Type '"foo"' is not assignable to type '"bar"'.
==== tests/cases/compiler/overloadOnConstInheritance2.ts (1 errors) ====
@@ -16,7 +16,7 @@ tests/cases/compiler/overloadOnConstInheritance2.ts(5,11): error TS2430: Interfa
!!! error TS2430: Types of property 'addEventListener' are incompatible.
!!! error TS2430: Type '(x: "bar") => string' is not assignable to type '{ (x: string): any; (x: "foo"): string; }'.
!!! error TS2430: Types of parameters 'x' and 'x' are incompatible.
-!!! error TS2430: Type 'string' is not assignable to type '"bar"'.
+!!! error TS2430: Type '"foo"' is not assignable to type '"bar"'.
addEventListener(x: 'bar'): string; // shouldn't need to redeclare the string overload
}
\ No newline at end of file
diff --git a/tests/baselines/reference/overloadOnConstNoAnyImplementation2.errors.txt b/tests/baselines/reference/overloadOnConstNoAnyImplementation2.errors.txt
index b18a588c515..436c07fa111 100644
--- a/tests/baselines/reference/overloadOnConstNoAnyImplementation2.errors.txt
+++ b/tests/baselines/reference/overloadOnConstNoAnyImplementation2.errors.txt
@@ -2,7 +2,7 @@ tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts(6,5): error TS2394:
tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts(12,18): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts(18,9): error TS2345: Argument of type '(x: "bye") => number' is not assignable to parameter of type '(x: "hi") => number'.
Types of parameters 'x' and 'x' are incompatible.
- Type 'string' is not assignable to type '"bye"'.
+ Type '"hi"' is not assignable to type '"bye"'.
tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts(21,9): error TS2345: Argument of type '(x: number) => number' is not assignable to parameter of type '(x: "hi") => number'.
Types of parameters 'x' and 'x' are incompatible.
Type 'string' is not assignable to type 'number'.
@@ -34,7 +34,7 @@ tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts(21,9): error TS2345:
~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2345: Argument of type '(x: "bye") => number' is not assignable to parameter of type '(x: "hi") => number'.
!!! error TS2345: Types of parameters 'x' and 'x' are incompatible.
-!!! error TS2345: Type 'string' is not assignable to type '"bye"'.
+!!! error TS2345: Type '"hi"' is not assignable to type '"bye"'.
c.x1(1, (x) => { return 1; } );
c.x1(1, (x: number) => { return 1; } );
diff --git a/tests/baselines/reference/overloadOnConstNoStringImplementation2.errors.txt b/tests/baselines/reference/overloadOnConstNoStringImplementation2.errors.txt
index 0025d0acdcd..ec86357df6b 100644
--- a/tests/baselines/reference/overloadOnConstNoStringImplementation2.errors.txt
+++ b/tests/baselines/reference/overloadOnConstNoStringImplementation2.errors.txt
@@ -1,6 +1,6 @@
tests/cases/compiler/overloadOnConstNoStringImplementation2.ts(18,9): error TS2345: Argument of type '(x: "bye") => number' is not assignable to parameter of type '(x: "hi") => number'.
Types of parameters 'x' and 'x' are incompatible.
- Type 'string' is not assignable to type '"bye"'.
+ Type '"hi"' is not assignable to type '"bye"'.
tests/cases/compiler/overloadOnConstNoStringImplementation2.ts(20,9): error TS2345: Argument of type '(x: number) => number' is not assignable to parameter of type '(x: "hi") => number'.
Types of parameters 'x' and 'x' are incompatible.
Type 'string' is not assignable to type 'number'.
@@ -28,7 +28,7 @@ tests/cases/compiler/overloadOnConstNoStringImplementation2.ts(20,9): error TS23
~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2345: Argument of type '(x: "bye") => number' is not assignable to parameter of type '(x: "hi") => number'.
!!! error TS2345: Types of parameters 'x' and 'x' are incompatible.
-!!! error TS2345: Type 'string' is not assignable to type '"bye"'.
+!!! error TS2345: Type '"hi"' is not assignable to type '"bye"'.
c.x1(1, (x: string) => { return 1; } );
c.x1(1, (x: number) => { return 1; } );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.errors.txt b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.errors.txt
index 2bd137b3f67..3fe0a43d855 100644
--- a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.errors.txt
+++ b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.errors.txt
@@ -1,5 +1,5 @@
tests/cases/compiler/overloadOnConstantsInvalidOverload1.ts(6,10): error TS2394: Overload signature is not compatible with function implementation.
-tests/cases/compiler/overloadOnConstantsInvalidOverload1.ts(11,5): error TS2345: Argument of type 'string' is not assignable to parameter of type '"SPAN"'.
+tests/cases/compiler/overloadOnConstantsInvalidOverload1.ts(11,5): error TS2345: Argument of type '"HI"' is not assignable to parameter of type '"SPAN"'.
==== tests/cases/compiler/overloadOnConstantsInvalidOverload1.ts (2 errors) ====
@@ -17,4 +17,4 @@ tests/cases/compiler/overloadOnConstantsInvalidOverload1.ts(11,5): error TS2345:
foo("HI");
~~~~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"SPAN"'.
\ No newline at end of file
+!!! error TS2345: Argument of type '"HI"' is not assignable to parameter of type '"SPAN"'.
\ No newline at end of file
diff --git a/tests/baselines/reference/overloadingOnConstants2.errors.txt b/tests/baselines/reference/overloadingOnConstants2.errors.txt
index 7fbb3ce1582..f50a6bbd8c3 100644
--- a/tests/baselines/reference/overloadingOnConstants2.errors.txt
+++ b/tests/baselines/reference/overloadingOnConstants2.errors.txt
@@ -1,5 +1,5 @@
tests/cases/compiler/overloadingOnConstants2.ts(9,10): error TS2394: Overload signature is not compatible with function implementation.
-tests/cases/compiler/overloadingOnConstants2.ts(15,13): error TS2345: Argument of type 'string' is not assignable to parameter of type '"bye"'.
+tests/cases/compiler/overloadingOnConstants2.ts(15,13): error TS2345: Argument of type '"um"' is not assignable to parameter of type '"bye"'.
tests/cases/compiler/overloadingOnConstants2.ts(19,10): error TS2394: Overload signature is not compatible with function implementation.
@@ -22,7 +22,7 @@ tests/cases/compiler/overloadingOnConstants2.ts(19,10): error TS2394: Overload s
var b: E = foo("bye", []); // E
var c = foo("um", []); // error
~~~~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"bye"'.
+!!! error TS2345: Argument of type '"um"' is not assignable to parameter of type '"bye"'.
//function bar(x: "hi", items: string[]): D;
diff --git a/tests/baselines/reference/stringLiteralTypesOverloadAssignability01.errors.txt b/tests/baselines/reference/stringLiteralTypesOverloadAssignability01.errors.txt
index 96eec4b3809..6372cb491e8 100644
--- a/tests/baselines/reference/stringLiteralTypesOverloadAssignability01.errors.txt
+++ b/tests/baselines/reference/stringLiteralTypesOverloadAssignability01.errors.txt
@@ -1,9 +1,9 @@
tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloadAssignability01.ts(14,1): error TS2322: Type '(x: "bar") => number' is not assignable to type '(x: "foo") => number'.
Types of parameters 'x' and 'x' are incompatible.
- Type 'string' is not assignable to type '"bar"'.
+ Type '"foo"' is not assignable to type '"bar"'.
tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloadAssignability01.ts(15,1): error TS2322: Type '(x: "foo") => number' is not assignable to type '(x: "bar") => number'.
Types of parameters 'x' and 'x' are incompatible.
- Type 'string' is not assignable to type '"foo"'.
+ Type '"bar"' is not assignable to type '"foo"'.
==== tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloadAssignability01.ts (2 errors) ====
@@ -24,9 +24,9 @@ tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloadAssignabil
~
!!! error TS2322: Type '(x: "bar") => number' is not assignable to type '(x: "foo") => number'.
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"bar"'.
+!!! error TS2322: Type '"foo"' is not assignable to type '"bar"'.
b = a;
~
!!! error TS2322: Type '(x: "foo") => number' is not assignable to type '(x: "bar") => number'.
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"foo"'.
\ No newline at end of file
+!!! error TS2322: Type '"bar"' is not assignable to type '"foo"'.
\ No newline at end of file
diff --git a/tests/baselines/reference/stringLiteralTypesOverloadAssignability02.errors.txt b/tests/baselines/reference/stringLiteralTypesOverloadAssignability02.errors.txt
index ad46a94b8b6..fe4b3a935dc 100644
--- a/tests/baselines/reference/stringLiteralTypesOverloadAssignability02.errors.txt
+++ b/tests/baselines/reference/stringLiteralTypesOverloadAssignability02.errors.txt
@@ -1,9 +1,9 @@
tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloadAssignability02.ts(14,1): error TS2322: Type '(x: "bar") => number' is not assignable to type '(x: "foo") => number'.
Types of parameters 'x' and 'x' are incompatible.
- Type 'string' is not assignable to type '"bar"'.
+ Type '"foo"' is not assignable to type '"bar"'.
tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloadAssignability02.ts(15,1): error TS2322: Type '(x: "foo") => number' is not assignable to type '(x: "bar") => number'.
Types of parameters 'x' and 'x' are incompatible.
- Type 'string' is not assignable to type '"foo"'.
+ Type '"bar"' is not assignable to type '"foo"'.
==== tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloadAssignability02.ts (2 errors) ====
@@ -24,9 +24,9 @@ tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloadAssignabil
~
!!! error TS2322: Type '(x: "bar") => number' is not assignable to type '(x: "foo") => number'.
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"bar"'.
+!!! error TS2322: Type '"foo"' is not assignable to type '"bar"'.
b = a;
~
!!! error TS2322: Type '(x: "foo") => number' is not assignable to type '(x: "bar") => number'.
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"foo"'.
\ No newline at end of file
+!!! error TS2322: Type '"bar"' is not assignable to type '"foo"'.
\ No newline at end of file
diff --git a/tests/baselines/reference/stringLiteralsWithSwitchStatements01.errors.txt b/tests/baselines/reference/stringLiteralsWithSwitchStatements01.errors.txt
index f5ad281bac9..b127d999d94 100644
--- a/tests/baselines/reference/stringLiteralsWithSwitchStatements01.errors.txt
+++ b/tests/baselines/reference/stringLiteralsWithSwitchStatements01.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements01.ts(7,10): error TS2678: Type 'string' is not comparable to type '"foo"'.
+tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements01.ts(7,10): error TS2678: Type '"bar"' is not comparable to type '"foo"'.
==== tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements01.ts (1 errors) ====
@@ -10,7 +10,7 @@ tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements01.ts(7,
break;
case "bar":
~~~~~
-!!! error TS2678: Type 'string' is not comparable to type '"foo"'.
+!!! error TS2678: Type '"bar"' is not comparable to type '"foo"'.
break;
case y:
y;
diff --git a/tests/baselines/reference/stringLiteralsWithSwitchStatements03.errors.txt b/tests/baselines/reference/stringLiteralsWithSwitchStatements03.errors.txt
index 65eea0a48f2..a16be702955 100644
--- a/tests/baselines/reference/stringLiteralsWithSwitchStatements03.errors.txt
+++ b/tests/baselines/reference/stringLiteralsWithSwitchStatements03.errors.txt
@@ -1,15 +1,15 @@
-tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(10,10): error TS2678: Type 'string' is not comparable to type '"foo"'.
- Type 'string' is not comparable to type '"foo"'.
-tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(12,10): error TS2678: Type 'string' is not comparable to type '"foo"'.
-tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(14,10): error TS2678: Type 'string' is not comparable to type '"foo"'.
+tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(10,10): error TS2678: Type '"bar" | "baz"' is not comparable to type '"foo"'.
+ Type '"baz"' is not comparable to type '"foo"'.
+tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(12,10): error TS2678: Type '"bar"' is not comparable to type '"foo"'.
+tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(14,10): error TS2678: Type '"baz"' is not comparable to type '"foo"'.
tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(14,11): error TS2695: Left side of comma operator is unused and has no side effects.
tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(14,11): error TS2695: Left side of comma operator is unused and has no side effects.
-tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(20,10): error TS2678: Type 'string' is not comparable to type '"foo"'.
- Type 'string' is not comparable to type '"foo"'.
-tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(22,10): error TS2678: Type 'string' is not comparable to type '"foo"'.
- Type 'string' is not comparable to type '"foo"'.
-tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(23,10): error TS2678: Type 'string' is not comparable to type '"foo"'.
- Type 'string' is not comparable to type '"foo"'.
+tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(20,10): error TS2678: Type '"bar" | "baz"' is not comparable to type '"foo"'.
+ Type '"baz"' is not comparable to type '"foo"'.
+tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(22,10): error TS2678: Type '"bar" | "baz"' is not comparable to type '"foo"'.
+ Type '"baz"' is not comparable to type '"foo"'.
+tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(23,10): error TS2678: Type '"bar" | "baz"' is not comparable to type '"foo"'.
+ Type '"baz"' is not comparable to type '"foo"'.
==== tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts (8 errors) ====
@@ -24,16 +24,16 @@ tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(23
break;
case (randBool() ? ("bar") : "baz" ? "bar" : "baz"):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS2678: Type 'string' is not comparable to type '"foo"'.
-!!! error TS2678: Type 'string' is not comparable to type '"foo"'.
+!!! error TS2678: Type '"bar" | "baz"' is not comparable to type '"foo"'.
+!!! error TS2678: Type '"baz"' is not comparable to type '"foo"'.
break;
case (("bar")):
~~~~~~~~~
-!!! error TS2678: Type 'string' is not comparable to type '"foo"'.
+!!! error TS2678: Type '"bar"' is not comparable to type '"foo"'.
break;
case (x, y, ("baz")):
~~~~~~~~~~~~~~~
-!!! error TS2678: Type 'string' is not comparable to type '"foo"'.
+!!! error TS2678: Type '"baz"' is not comparable to type '"foo"'.
~
!!! error TS2695: Left side of comma operator is unused and has no side effects.
~~~~
@@ -45,17 +45,17 @@ tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements03.ts(23
break;
case (("bar" || ("baz"))):
~~~~~~~~~~~~~~~~~~~~
-!!! error TS2678: Type 'string' is not comparable to type '"foo"'.
-!!! error TS2678: Type 'string' is not comparable to type '"foo"'.
+!!! error TS2678: Type '"bar" | "baz"' is not comparable to type '"foo"'.
+!!! error TS2678: Type '"baz"' is not comparable to type '"foo"'.
break;
case z || "baz":
~~~~~~~~~~
-!!! error TS2678: Type 'string' is not comparable to type '"foo"'.
-!!! error TS2678: Type 'string' is not comparable to type '"foo"'.
+!!! error TS2678: Type '"bar" | "baz"' is not comparable to type '"foo"'.
+!!! error TS2678: Type '"baz"' is not comparable to type '"foo"'.
case "baz" || z:
~~~~~~~~~~
-!!! error TS2678: Type 'string' is not comparable to type '"foo"'.
-!!! error TS2678: Type 'string' is not comparable to type '"foo"'.
+!!! error TS2678: Type '"bar" | "baz"' is not comparable to type '"foo"'.
+!!! error TS2678: Type '"baz"' is not comparable to type '"foo"'.
z;
break;
}
diff --git a/tests/baselines/reference/stringLiteralsWithSwitchStatements04.errors.txt b/tests/baselines/reference/stringLiteralsWithSwitchStatements04.errors.txt
index 54949d6e878..441978c2fe8 100644
--- a/tests/baselines/reference/stringLiteralsWithSwitchStatements04.errors.txt
+++ b/tests/baselines/reference/stringLiteralsWithSwitchStatements04.errors.txt
@@ -1,7 +1,7 @@
tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements04.ts(7,10): error TS2695: Left side of comma operator is unused and has no side effects.
tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements04.ts(9,10): error TS2695: Left side of comma operator is unused and has no side effects.
tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements04.ts(11,10): error TS2695: Left side of comma operator is unused and has no side effects.
-tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements04.ts(11,10): error TS2678: Type 'string' is not comparable to type '"foo" | "bar"'.
+tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements04.ts(11,10): error TS2678: Type '"baz"' is not comparable to type '"foo" | "bar"'.
tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements04.ts(13,10): error TS2695: Left side of comma operator is unused and has no side effects.
@@ -24,7 +24,7 @@ tests/cases/conformance/types/literal/stringLiteralsWithSwitchStatements04.ts(13
~
!!! error TS2695: Left side of comma operator is unused and has no side effects.
~~~~~~~~
-!!! error TS2678: Type 'string' is not comparable to type '"foo" | "bar"'.
+!!! error TS2678: Type '"baz"' is not comparable to type '"foo" | "bar"'.
break;
case "baz", x:
~~~~~
diff --git a/tests/baselines/reference/switchBreakStatements.errors.txt b/tests/baselines/reference/switchBreakStatements.errors.txt
index bfddf6254fa..904b504e668 100644
--- a/tests/baselines/reference/switchBreakStatements.errors.txt
+++ b/tests/baselines/reference/switchBreakStatements.errors.txt
@@ -1,21 +1,21 @@
-tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(2,10): error TS2678: Type 'string' is not comparable to type '""'.
-tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(8,10): error TS2678: Type 'string' is not comparable to type '""'.
-tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(15,10): error TS2678: Type 'string' is not comparable to type '""'.
-tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(21,10): error TS2678: Type 'string' is not comparable to type '""'.
-tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(24,18): error TS2678: Type 'string' is not comparable to type '""'.
-tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(30,10): error TS2678: Type 'string' is not comparable to type '""'.
-tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(33,18): error TS2678: Type 'string' is not comparable to type '""'.
-tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(40,10): error TS2678: Type 'string' is not comparable to type '""'.
-tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(42,18): error TS2678: Type 'string' is not comparable to type '""'.
-tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(44,26): error TS2678: Type 'string' is not comparable to type '""'.
-tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(48,34): error TS2678: Type 'string' is not comparable to type '""'.
+tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(2,10): error TS2678: Type '"a"' is not comparable to type '""'.
+tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(8,10): error TS2678: Type '"a"' is not comparable to type '""'.
+tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(15,10): error TS2678: Type '"a"' is not comparable to type '""'.
+tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(21,10): error TS2678: Type '"a"' is not comparable to type '""'.
+tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(24,18): error TS2678: Type '"a"' is not comparable to type '""'.
+tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(30,10): error TS2678: Type '"a"' is not comparable to type '""'.
+tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(33,18): error TS2678: Type '"a"' is not comparable to type '""'.
+tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(40,10): error TS2678: Type '"a"' is not comparable to type '""'.
+tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(42,18): error TS2678: Type '"a"' is not comparable to type '""'.
+tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(44,26): error TS2678: Type '"a"' is not comparable to type '""'.
+tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(48,34): error TS2678: Type '"a"' is not comparable to type '""'.
==== tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts (11 errors) ====
switch ('') {
case 'a':
~~~
-!!! error TS2678: Type 'string' is not comparable to type '""'.
+!!! error TS2678: Type '"a"' is not comparable to type '""'.
break;
}
@@ -23,7 +23,7 @@ tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(48,3
switch ('') {
case 'a':
~~~
-!!! error TS2678: Type 'string' is not comparable to type '""'.
+!!! error TS2678: Type '"a"' is not comparable to type '""'.
break ONE;
}
@@ -32,7 +32,7 @@ tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(48,3
switch ('') {
case 'a':
~~~
-!!! error TS2678: Type 'string' is not comparable to type '""'.
+!!! error TS2678: Type '"a"' is not comparable to type '""'.
break THREE;
}
@@ -40,12 +40,12 @@ tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(48,3
switch ('') {
case 'a':
~~~
-!!! error TS2678: Type 'string' is not comparable to type '""'.
+!!! error TS2678: Type '"a"' is not comparable to type '""'.
FIVE:
switch ('') {
case 'a':
~~~
-!!! error TS2678: Type 'string' is not comparable to type '""'.
+!!! error TS2678: Type '"a"' is not comparable to type '""'.
break FOUR;
}
}
@@ -53,12 +53,12 @@ tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(48,3
switch ('') {
case 'a':
~~~
-!!! error TS2678: Type 'string' is not comparable to type '""'.
+!!! error TS2678: Type '"a"' is not comparable to type '""'.
SIX:
switch ('') {
case 'a':
~~~
-!!! error TS2678: Type 'string' is not comparable to type '""'.
+!!! error TS2678: Type '"a"' is not comparable to type '""'.
break SIX;
}
}
@@ -67,21 +67,21 @@ tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts(48,3
switch ('') {
case 'a':
~~~
-!!! error TS2678: Type 'string' is not comparable to type '""'.
+!!! error TS2678: Type '"a"' is not comparable to type '""'.
switch ('') {
case 'a':
~~~
-!!! error TS2678: Type 'string' is not comparable to type '""'.
+!!! error TS2678: Type '"a"' is not comparable to type '""'.
switch ('') {
case 'a':
~~~
-!!! error TS2678: Type 'string' is not comparable to type '""'.
+!!! error TS2678: Type '"a"' is not comparable to type '""'.
break SEVEN;
EIGHT:
switch ('') {
case 'a':
~~~
-!!! error TS2678: Type 'string' is not comparable to type '""'.
+!!! error TS2678: Type '"a"' is not comparable to type '""'.
var fn = function () { }
break EIGHT;
}
diff --git a/tests/baselines/reference/switchCases.errors.txt b/tests/baselines/reference/switchCases.errors.txt
index 8de21fd79a3..205f8aae8c7 100644
--- a/tests/baselines/reference/switchCases.errors.txt
+++ b/tests/baselines/reference/switchCases.errors.txt
@@ -1,11 +1,11 @@
-tests/cases/compiler/switchCases.ts(2,7): error TS2678: Type 'number' is not comparable to type '0'.
+tests/cases/compiler/switchCases.ts(2,7): error TS2678: Type '1' is not comparable to type '0'.
==== tests/cases/compiler/switchCases.ts (1 errors) ====
switch(0) {
case 1:
~
-!!! error TS2678: Type 'number' is not comparable to type '0'.
+!!! error TS2678: Type '1' is not comparable to type '0'.
break;
}
\ No newline at end of file
diff --git a/tests/baselines/reference/switchCasesExpressionTypeMismatch.errors.txt b/tests/baselines/reference/switchCasesExpressionTypeMismatch.errors.txt
index 8324fcd8f24..ec52f0c2b41 100644
--- a/tests/baselines/reference/switchCasesExpressionTypeMismatch.errors.txt
+++ b/tests/baselines/reference/switchCasesExpressionTypeMismatch.errors.txt
@@ -1,6 +1,6 @@
tests/cases/compiler/switchCasesExpressionTypeMismatch.ts(4,10): error TS2678: Type 'typeof Foo' is not comparable to type 'number'.
tests/cases/compiler/switchCasesExpressionTypeMismatch.ts(5,10): error TS2678: Type 'string' is not comparable to type 'number'.
-tests/cases/compiler/switchCasesExpressionTypeMismatch.ts(6,10): error TS2678: Type 'number' is not comparable to type '0'.
+tests/cases/compiler/switchCasesExpressionTypeMismatch.ts(6,10): error TS2678: Type '123' is not comparable to type '0'.
tests/cases/compiler/switchCasesExpressionTypeMismatch.ts(7,10): error TS2678: Type 'boolean' is not comparable to type 'number'.
@@ -16,7 +16,7 @@ tests/cases/compiler/switchCasesExpressionTypeMismatch.ts(7,10): error TS2678: T
!!! error TS2678: Type 'string' is not comparable to type 'number'.
case 123: break; // Error
~~~
-!!! error TS2678: Type 'number' is not comparable to type '0'.
+!!! error TS2678: Type '123' is not comparable to type '0'.
case true: break; // Error
~~~~
!!! error TS2678: Type 'boolean' is not comparable to type 'number'.
diff --git a/tests/baselines/reference/tsxDefaultAttributesResolution3.errors.txt b/tests/baselines/reference/tsxDefaultAttributesResolution3.errors.txt
index cf5b93705b6..cb946258827 100644
--- a/tests/baselines/reference/tsxDefaultAttributesResolution3.errors.txt
+++ b/tests/baselines/reference/tsxDefaultAttributesResolution3.errors.txt
@@ -1,7 +1,7 @@
tests/cases/conformance/jsx/file.tsx(13,19): error TS2322: Type '{ x: true; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Prop & { children?: ReactNode; }'.
Type '{ x: true; }' is not assignable to type 'Prop'.
Types of property 'x' are incompatible.
- Type 'boolean' is not assignable to type 'false'.
+ Type 'true' is not assignable to type 'false'.
==== tests/cases/conformance/jsx/file.tsx (1 errors) ====
@@ -22,4 +22,4 @@ tests/cases/conformance/jsx/file.tsx(13,19): error TS2322: Type '{ x: true; }' i
!!! error TS2322: Type '{ x: true; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Prop & { children?: ReactNode; }'.
!!! error TS2322: Type '{ x: true; }' is not assignable to type 'Prop'.
!!! error TS2322: Types of property 'x' are incompatible.
-!!! error TS2322: Type 'boolean' is not assignable to type 'false'.
\ No newline at end of file
+!!! error TS2322: Type 'true' is not assignable to type 'false'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution10.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution10.errors.txt
index b9468e9f64b..37cd79dc7b5 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution10.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution10.errors.txt
@@ -1,7 +1,7 @@
tests/cases/conformance/jsx/file.tsx(19,14): error TS2322: Type '{ x: 3; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & OptionProp & { children?: ReactNode; }'.
Type '{ x: 3; }' is not assignable to type 'OptionProp'.
Types of property 'x' are incompatible.
- Type 'number' is not assignable to type '2'.
+ Type '3' is not assignable to type '2'.
tests/cases/conformance/jsx/file.tsx(20,15): error TS2322: Type '{ x: "Hi"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & OptionProp & { children?: ReactNode; }'.
Type '{ x: "Hi"; }' is not assignable to type 'OptionProp'.
Types of property 'x' are incompatible.
@@ -9,7 +9,7 @@ tests/cases/conformance/jsx/file.tsx(20,15): error TS2322: Type '{ x: "Hi"; }' i
tests/cases/conformance/jsx/file.tsx(21,15): error TS2322: Type '{ x: 3; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & OptionProp & { children?: ReactNode; }'.
Type '{ x: 3; }' is not assignable to type 'OptionProp'.
Types of property 'x' are incompatible.
- Type 'number' is not assignable to type '2'.
+ Type '3' is not assignable to type '2'.
tests/cases/conformance/jsx/file.tsx(22,15): error TS2322: Type '{ x: true; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & OptionProp & { children?: ReactNode; }'.
Type '{ x: true; }' is not assignable to type 'OptionProp'.
Types of property 'x' are incompatible.
@@ -40,7 +40,7 @@ tests/cases/conformance/jsx/file.tsx(22,15): error TS2322: Type '{ x: true; }' i
!!! error TS2322: Type '{ x: 3; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & OptionProp & { children?: ReactNode; }'.
!!! error TS2322: Type '{ x: 3; }' is not assignable to type 'OptionProp'.
!!! error TS2322: Types of property 'x' are incompatible.
-!!! error TS2322: Type 'number' is not assignable to type '2'.
+!!! error TS2322: Type '3' is not assignable to type '2'.
let y1 = ;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type '{ x: "Hi"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & OptionProp & { children?: ReactNode; }'.
@@ -52,7 +52,7 @@ tests/cases/conformance/jsx/file.tsx(22,15): error TS2322: Type '{ x: true; }' i
!!! error TS2322: Type '{ x: 3; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & OptionProp & { children?: ReactNode; }'.
!!! error TS2322: Type '{ x: 3; }' is not assignable to type 'OptionProp'.
!!! error TS2322: Types of property 'x' are incompatible.
-!!! error TS2322: Type 'number' is not assignable to type '2'.
+!!! error TS2322: Type '3' is not assignable to type '2'.
let y3 = ;
~
!!! error TS2322: Type '{ x: true; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & OptionProp & { children?: ReactNode; }'.
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt
index cc1900ba209..a43c9270642 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt
@@ -1,15 +1,15 @@
tests/cases/conformance/jsx/file.tsx(27,24): error TS2322: Type '{ x: 2; y: true; overwrite: "hi"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Prop & { children?: ReactNode; }'.
Type '{ x: 2; y: true; overwrite: "hi"; }' is not assignable to type 'Prop'.
Types of property 'y' are incompatible.
- Type 'boolean' is not assignable to type 'false'.
+ Type 'true' is not assignable to type 'false'.
tests/cases/conformance/jsx/file.tsx(28,25): error TS2322: Type '{ y: true; x: 3; overwrite: "hi"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Prop & { children?: ReactNode; }'.
Type '{ y: true; x: 3; overwrite: "hi"; }' is not assignable to type 'Prop'.
Types of property 'x' are incompatible.
- Type 'number' is not assignable to type '2'.
+ Type '3' is not assignable to type '2'.
tests/cases/conformance/jsx/file.tsx(30,25): error TS2322: Type '{ y: true; x: 2; overwrite: "hi"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Prop & { children?: ReactNode; }'.
Type '{ y: true; x: 2; overwrite: "hi"; }' is not assignable to type 'Prop'.
Types of property 'y' are incompatible.
- Type 'boolean' is not assignable to type 'false'.
+ Type 'true' is not assignable to type 'false'.
==== tests/cases/conformance/jsx/file.tsx (3 errors) ====
@@ -44,19 +44,19 @@ tests/cases/conformance/jsx/file.tsx(30,25): error TS2322: Type '{ y: true; x: 2
!!! error TS2322: Type '{ x: 2; y: true; overwrite: "hi"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Prop & { children?: ReactNode; }'.
!!! error TS2322: Type '{ x: 2; y: true; overwrite: "hi"; }' is not assignable to type 'Prop'.
!!! error TS2322: Types of property 'y' are incompatible.
-!!! error TS2322: Type 'boolean' is not assignable to type 'false'.
+!!! error TS2322: Type 'true' is not assignable to type 'false'.
let x1 =
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2322: Type '{ y: true; x: 3; overwrite: "hi"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Prop & { children?: ReactNode; }'.
!!! error TS2322: Type '{ y: true; x: 3; overwrite: "hi"; }' is not assignable to type 'Prop'.
!!! error TS2322: Types of property 'x' are incompatible.
-!!! error TS2322: Type 'number' is not assignable to type '2'.
+!!! error TS2322: Type '3' is not assignable to type '2'.
let x2 =
let x3 =
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2322: Type '{ y: true; x: 2; overwrite: "hi"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Prop & { children?: ReactNode; }'.
!!! error TS2322: Type '{ y: true; x: 2; overwrite: "hi"; }' is not assignable to type 'Prop'.
!!! error TS2322: Types of property 'y' are incompatible.
-!!! error TS2322: Type 'boolean' is not assignable to type 'false'.
+!!! error TS2322: Type 'true' is not assignable to type 'false'.
\ No newline at end of file
diff --git a/tests/baselines/reference/typeArgumentsWithStringLiteralTypes01.errors.txt b/tests/baselines/reference/typeArgumentsWithStringLiteralTypes01.errors.txt
index 61e6b95e2c2..fa9231635e4 100644
--- a/tests/baselines/reference/typeArgumentsWithStringLiteralTypes01.errors.txt
+++ b/tests/baselines/reference/typeArgumentsWithStringLiteralTypes01.errors.txt
@@ -8,24 +8,24 @@ tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes0
tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(45,30): error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello" | "World"'.
tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(46,30): error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello" | "World"'.
tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(47,30): error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello" | "World"'.
-tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(54,43): error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
-tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(56,52): error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
-tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(57,43): error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
+tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(54,43): error TS2345: Argument of type '"World"' is not assignable to parameter of type '"Hello"'.
+tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(56,52): error TS2345: Argument of type '"World"' is not assignable to parameter of type '"Hello"'.
+tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(57,43): error TS2345: Argument of type '"World"' is not assignable to parameter of type '"Hello"'.
tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(60,5): error TS2322: Type 'string' is not assignable to type '"Hello"'.
tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(62,5): error TS2322: Type 'string' is not assignable to type '"Hello"'.
-tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(74,5): error TS2322: Type 'string' is not assignable to type '"Hello"'.
- Type 'string' is not assignable to type '"Hello"'.
-tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(76,5): error TS2322: Type 'string' is not assignable to type '"Hello"'.
- Type 'string' is not assignable to type '"Hello"'.
-tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(86,43): error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
-tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(87,43): error TS2345: Argument of type 'string' is not assignable to parameter of type '"World"'.
-tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(88,52): error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
+tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(74,5): error TS2322: Type '"Hello" | "World"' is not assignable to type '"Hello"'.
+ Type '"World"' is not assignable to type '"Hello"'.
+tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(76,5): error TS2322: Type '"Hello" | "World"' is not assignable to type '"Hello"'.
+ Type '"World"' is not assignable to type '"Hello"'.
+tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(86,43): error TS2345: Argument of type '"World"' is not assignable to parameter of type '"Hello"'.
+tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(87,43): error TS2345: Argument of type '"Hello"' is not assignable to parameter of type '"World"'.
+tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(88,52): error TS2345: Argument of type '"World"' is not assignable to parameter of type '"Hello"'.
tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(92,5): error TS2322: Type 'string' is not assignable to type '"Hello" | "World"'.
tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(96,5): error TS2322: Type 'string' is not assignable to type '"Hello" | "World"'.
-tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(99,25): error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
- Type 'string' is not assignable to type '"Hello"'.
-tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(103,25): error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
- Type 'string' is not assignable to type '"Hello"'.
+tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(99,25): error TS2345: Argument of type '"Hello" | "World"' is not assignable to parameter of type '"Hello"'.
+ Type '"World"' is not assignable to type '"Hello"'.
+tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts(103,25): error TS2345: Argument of type '"Hello" | "World"' is not assignable to parameter of type '"Hello"'.
+ Type '"World"' is not assignable to type '"Hello"'.
==== tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes01.ts (24 errors) ====
@@ -104,14 +104,14 @@ tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes0
export let a = fun1<"Hello">("Hello", "Hello");
export let b = fun1<"Hello">("Hello", "World");
~~~~~~~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
+!!! error TS2345: Argument of type '"World"' is not assignable to parameter of type '"Hello"'.
export let c = fun2<"Hello", "Hello">("Hello", "Hello");
export let d = fun2<"Hello", "Hello">("Hello", "World");
~~~~~~~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
+!!! error TS2345: Argument of type '"World"' is not assignable to parameter of type '"Hello"'.
export let e = fun3<"Hello">("Hello", "World");
~~~~~~~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
+!!! error TS2345: Argument of type '"World"' is not assignable to parameter of type '"Hello"'.
// Assignment from the returned value should cause an error.
a = takeReturnString(a);
@@ -134,13 +134,13 @@ tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes0
// Assignment from the returned value should cause an error.
a = takeReturnHelloWorld(a);
~
-!!! error TS2322: Type 'string' is not assignable to type '"Hello"'.
-!!! error TS2322: Type 'string' is not assignable to type '"Hello"'.
+!!! error TS2322: Type '"Hello" | "World"' is not assignable to type '"Hello"'.
+!!! error TS2322: Type '"World"' is not assignable to type '"Hello"'.
b = takeReturnHelloWorld(b);
c = takeReturnHelloWorld(c);
~
-!!! error TS2322: Type 'string' is not assignable to type '"Hello"'.
-!!! error TS2322: Type 'string' is not assignable to type '"Hello"'.
+!!! error TS2322: Type '"Hello" | "World"' is not assignable to type '"Hello"'.
+!!! error TS2322: Type '"World"' is not assignable to type '"Hello"'.
d = takeReturnHelloWorld(d);
e = takeReturnHelloWorld(e);
}
@@ -152,13 +152,13 @@ tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes0
export let a = fun2<"Hello", "World">("Hello", "World");
export let b = fun2<"Hello", "World">("World", "Hello");
~~~~~~~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
+!!! error TS2345: Argument of type '"World"' is not assignable to parameter of type '"Hello"'.
export let c = fun2<"World", "Hello">("Hello", "Hello");
~~~~~~~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"World"'.
+!!! error TS2345: Argument of type '"Hello"' is not assignable to parameter of type '"World"'.
export let d = fun2<"World", "Hello">("World", "World");
~~~~~~~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
+!!! error TS2345: Argument of type '"World"' is not assignable to parameter of type '"Hello"'.
export let e = fun3<"Hello" | "World">("Hello", "World");
// Assignment from the returned value should cause an error.
@@ -175,15 +175,15 @@ tests/cases/conformance/types/stringLiteral/typeArgumentsWithStringLiteralTypes0
// Passing these as arguments should cause an error.
a = takeReturnHello(a);
~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
-!!! error TS2345: Type 'string' is not assignable to type '"Hello"'.
+!!! error TS2345: Argument of type '"Hello" | "World"' is not assignable to parameter of type '"Hello"'.
+!!! error TS2345: Type '"World"' is not assignable to type '"Hello"'.
b = takeReturnHello(b);
c = takeReturnHello(c);
d = takeReturnHello(d);
e = takeReturnHello(e);
~
-!!! error TS2345: Argument of type 'string' is not assignable to parameter of type '"Hello"'.
-!!! error TS2345: Type 'string' is not assignable to type '"Hello"'.
+!!! error TS2345: Argument of type '"Hello" | "World"' is not assignable to parameter of type '"Hello"'.
+!!! error TS2345: Type '"World"' is not assignable to type '"Hello"'.
// Both should be valid.
a = takeReturnHelloWorld(a);
diff --git a/tests/baselines/reference/typedArraysCrossAssignability01.errors.txt b/tests/baselines/reference/typedArraysCrossAssignability01.errors.txt
index d546ebc2d76..ad949806429 100644
--- a/tests/baselines/reference/typedArraysCrossAssignability01.errors.txt
+++ b/tests/baselines/reference/typedArraysCrossAssignability01.errors.txt
@@ -1,195 +1,195 @@
tests/cases/compiler/typedArraysCrossAssignability01.ts(13,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Int8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int8Array"'.
+ Type '"UInt8Array"' is not assignable to type '"Int8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(14,5): error TS2322: Type 'Int16Array' is not assignable to type 'Int8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int8Array"'.
+ Type '"Int16Array"' is not assignable to type '"Int8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(15,5): error TS2322: Type 'Uint16Array' is not assignable to type 'Int8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int8Array"'.
+ Type '"Uint16Array"' is not assignable to type '"Int8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(16,5): error TS2322: Type 'Int32Array' is not assignable to type 'Int8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int8Array"'.
+ Type '"Int32Array"' is not assignable to type '"Int8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(17,5): error TS2322: Type 'Uint32Array' is not assignable to type 'Int8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int8Array"'.
+ Type '"Uint32Array"' is not assignable to type '"Int8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(18,5): error TS2322: Type 'Float32Array' is not assignable to type 'Int8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int8Array"'.
+ Type '"Float32Array"' is not assignable to type '"Int8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(19,5): error TS2322: Type 'Float64Array' is not assignable to type 'Int8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int8Array"'.
+ Type '"Float64Array"' is not assignable to type '"Int8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(20,5): error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Int8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int8Array"'.
+ Type '"Uint8ClampedArray"' is not assignable to type '"Int8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(22,5): error TS2322: Type 'Int8Array' is not assignable to type 'Uint8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"UInt8Array"'.
+ Type '"Int8Array"' is not assignable to type '"UInt8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(24,5): error TS2322: Type 'Int16Array' is not assignable to type 'Uint8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"UInt8Array"'.
+ Type '"Int16Array"' is not assignable to type '"UInt8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(25,5): error TS2322: Type 'Uint16Array' is not assignable to type 'Uint8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"UInt8Array"'.
+ Type '"Uint16Array"' is not assignable to type '"UInt8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(26,5): error TS2322: Type 'Int32Array' is not assignable to type 'Uint8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"UInt8Array"'.
+ Type '"Int32Array"' is not assignable to type '"UInt8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(27,5): error TS2322: Type 'Uint32Array' is not assignable to type 'Uint8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"UInt8Array"'.
+ Type '"Uint32Array"' is not assignable to type '"UInt8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(28,5): error TS2322: Type 'Float32Array' is not assignable to type 'Uint8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"UInt8Array"'.
+ Type '"Float32Array"' is not assignable to type '"UInt8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(29,5): error TS2322: Type 'Float64Array' is not assignable to type 'Uint8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"UInt8Array"'.
+ Type '"Float64Array"' is not assignable to type '"UInt8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(30,5): error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Uint8Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"UInt8Array"'.
+ Type '"Uint8ClampedArray"' is not assignable to type '"UInt8Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(32,5): error TS2322: Type 'Int8Array' is not assignable to type 'Int16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int16Array"'.
+ Type '"Int8Array"' is not assignable to type '"Int16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(33,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Int16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int16Array"'.
+ Type '"UInt8Array"' is not assignable to type '"Int16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(35,5): error TS2322: Type 'Uint16Array' is not assignable to type 'Int16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int16Array"'.
+ Type '"Uint16Array"' is not assignable to type '"Int16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(36,5): error TS2322: Type 'Int32Array' is not assignable to type 'Int16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int16Array"'.
+ Type '"Int32Array"' is not assignable to type '"Int16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(37,5): error TS2322: Type 'Uint32Array' is not assignable to type 'Int16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int16Array"'.
+ Type '"Uint32Array"' is not assignable to type '"Int16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(38,5): error TS2322: Type 'Float32Array' is not assignable to type 'Int16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int16Array"'.
+ Type '"Float32Array"' is not assignable to type '"Int16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(39,5): error TS2322: Type 'Float64Array' is not assignable to type 'Int16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int16Array"'.
+ Type '"Float64Array"' is not assignable to type '"Int16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(40,5): error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Int16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int16Array"'.
+ Type '"Uint8ClampedArray"' is not assignable to type '"Int16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(42,5): error TS2322: Type 'Int8Array' is not assignable to type 'Uint16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint16Array"'.
+ Type '"Int8Array"' is not assignable to type '"Uint16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(43,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Uint16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint16Array"'.
+ Type '"UInt8Array"' is not assignable to type '"Uint16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(44,5): error TS2322: Type 'Int16Array' is not assignable to type 'Uint16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint16Array"'.
+ Type '"Int16Array"' is not assignable to type '"Uint16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(46,5): error TS2322: Type 'Int32Array' is not assignable to type 'Uint16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint16Array"'.
+ Type '"Int32Array"' is not assignable to type '"Uint16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(47,5): error TS2322: Type 'Uint32Array' is not assignable to type 'Uint16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint16Array"'.
+ Type '"Uint32Array"' is not assignable to type '"Uint16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(48,5): error TS2322: Type 'Float32Array' is not assignable to type 'Uint16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint16Array"'.
+ Type '"Float32Array"' is not assignable to type '"Uint16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(49,5): error TS2322: Type 'Float64Array' is not assignable to type 'Uint16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint16Array"'.
+ Type '"Float64Array"' is not assignable to type '"Uint16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(50,5): error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Uint16Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint16Array"'.
+ Type '"Uint8ClampedArray"' is not assignable to type '"Uint16Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(52,5): error TS2322: Type 'Int8Array' is not assignable to type 'Int32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int32Array"'.
+ Type '"Int8Array"' is not assignable to type '"Int32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(53,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Int32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int32Array"'.
+ Type '"UInt8Array"' is not assignable to type '"Int32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(54,5): error TS2322: Type 'Int16Array' is not assignable to type 'Int32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int32Array"'.
+ Type '"Int16Array"' is not assignable to type '"Int32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(55,5): error TS2322: Type 'Uint16Array' is not assignable to type 'Int32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int32Array"'.
+ Type '"Uint16Array"' is not assignable to type '"Int32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(57,5): error TS2322: Type 'Uint32Array' is not assignable to type 'Int32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int32Array"'.
+ Type '"Uint32Array"' is not assignable to type '"Int32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(58,5): error TS2322: Type 'Float32Array' is not assignable to type 'Int32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int32Array"'.
+ Type '"Float32Array"' is not assignable to type '"Int32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(59,5): error TS2322: Type 'Float64Array' is not assignable to type 'Int32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int32Array"'.
+ Type '"Float64Array"' is not assignable to type '"Int32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(60,5): error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Int32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Int32Array"'.
+ Type '"Uint8ClampedArray"' is not assignable to type '"Int32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(62,5): error TS2322: Type 'Int8Array' is not assignable to type 'Float32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float32Array"'.
+ Type '"Int8Array"' is not assignable to type '"Float32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(63,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Float32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float32Array"'.
+ Type '"UInt8Array"' is not assignable to type '"Float32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(64,5): error TS2322: Type 'Int16Array' is not assignable to type 'Float32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float32Array"'.
+ Type '"Int16Array"' is not assignable to type '"Float32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(65,5): error TS2322: Type 'Uint16Array' is not assignable to type 'Float32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float32Array"'.
+ Type '"Uint16Array"' is not assignable to type '"Float32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(66,5): error TS2322: Type 'Int32Array' is not assignable to type 'Float32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float32Array"'.
+ Type '"Int32Array"' is not assignable to type '"Float32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(67,5): error TS2322: Type 'Uint32Array' is not assignable to type 'Float32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float32Array"'.
+ Type '"Uint32Array"' is not assignable to type '"Float32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(69,5): error TS2322: Type 'Float64Array' is not assignable to type 'Float32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float32Array"'.
+ Type '"Float64Array"' is not assignable to type '"Float32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(70,5): error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Float32Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float32Array"'.
+ Type '"Uint8ClampedArray"' is not assignable to type '"Float32Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(72,5): error TS2322: Type 'Int8Array' is not assignable to type 'Float64Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float64Array"'.
+ Type '"Int8Array"' is not assignable to type '"Float64Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(73,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Float64Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float64Array"'.
+ Type '"UInt8Array"' is not assignable to type '"Float64Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(74,5): error TS2322: Type 'Int16Array' is not assignable to type 'Float64Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float64Array"'.
+ Type '"Int16Array"' is not assignable to type '"Float64Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(75,5): error TS2322: Type 'Uint16Array' is not assignable to type 'Float64Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float64Array"'.
+ Type '"Uint16Array"' is not assignable to type '"Float64Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(76,5): error TS2322: Type 'Int32Array' is not assignable to type 'Float64Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float64Array"'.
+ Type '"Int32Array"' is not assignable to type '"Float64Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(77,5): error TS2322: Type 'Uint32Array' is not assignable to type 'Float64Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float64Array"'.
+ Type '"Uint32Array"' is not assignable to type '"Float64Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(78,5): error TS2322: Type 'Float32Array' is not assignable to type 'Float64Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float64Array"'.
+ Type '"Float32Array"' is not assignable to type '"Float64Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(80,5): error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Float64Array'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Float64Array"'.
+ Type '"Uint8ClampedArray"' is not assignable to type '"Float64Array"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(82,5): error TS2322: Type 'Int8Array' is not assignable to type 'Uint8ClampedArray'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+ Type '"Int8Array"' is not assignable to type '"Uint8ClampedArray"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(83,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Uint8ClampedArray'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+ Type '"UInt8Array"' is not assignable to type '"Uint8ClampedArray"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(84,5): error TS2322: Type 'Int16Array' is not assignable to type 'Uint8ClampedArray'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+ Type '"Int16Array"' is not assignable to type '"Uint8ClampedArray"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(85,5): error TS2322: Type 'Uint16Array' is not assignable to type 'Uint8ClampedArray'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+ Type '"Uint16Array"' is not assignable to type '"Uint8ClampedArray"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(86,5): error TS2322: Type 'Int32Array' is not assignable to type 'Uint8ClampedArray'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+ Type '"Int32Array"' is not assignable to type '"Uint8ClampedArray"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(87,5): error TS2322: Type 'Uint32Array' is not assignable to type 'Uint8ClampedArray'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+ Type '"Uint32Array"' is not assignable to type '"Uint8ClampedArray"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(88,5): error TS2322: Type 'Float32Array' is not assignable to type 'Uint8ClampedArray'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+ Type '"Float32Array"' is not assignable to type '"Uint8ClampedArray"'.
tests/cases/compiler/typedArraysCrossAssignability01.ts(89,5): error TS2322: Type 'Float64Array' is not assignable to type 'Uint8ClampedArray'.
Types of property '[Symbol.toStringTag]' are incompatible.
- Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+ Type '"Float64Array"' is not assignable to type '"Uint8ClampedArray"'.
==== tests/cases/compiler/typedArraysCrossAssignability01.ts (64 errors) ====
@@ -209,335 +209,335 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(89,5): error TS2322: Typ
~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Int8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int8Array"'.
+!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Int8Array"'.
arr_Int8Array = arr_Int16Array;
~~~~~~~~~~~~~
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Int8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int8Array"'.
+!!! error TS2322: Type '"Int16Array"' is not assignable to type '"Int8Array"'.
arr_Int8Array = arr_Uint16Array;
~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint16Array' is not assignable to type 'Int8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int8Array"'.
+!!! error TS2322: Type '"Uint16Array"' is not assignable to type '"Int8Array"'.
arr_Int8Array = arr_Int32Array;
~~~~~~~~~~~~~
!!! error TS2322: Type 'Int32Array' is not assignable to type 'Int8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int8Array"'.
+!!! error TS2322: Type '"Int32Array"' is not assignable to type '"Int8Array"'.
arr_Int8Array = arr_Uint32Array;
~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint32Array' is not assignable to type 'Int8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int8Array"'.
+!!! error TS2322: Type '"Uint32Array"' is not assignable to type '"Int8Array"'.
arr_Int8Array = arr_Float32Array;
~~~~~~~~~~~~~
!!! error TS2322: Type 'Float32Array' is not assignable to type 'Int8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int8Array"'.
+!!! error TS2322: Type '"Float32Array"' is not assignable to type '"Int8Array"'.
arr_Int8Array = arr_Float64Array;
~~~~~~~~~~~~~
!!! error TS2322: Type 'Float64Array' is not assignable to type 'Int8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int8Array"'.
+!!! error TS2322: Type '"Float64Array"' is not assignable to type '"Int8Array"'.
arr_Int8Array = arr_Uint8ClampedArray;
~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Int8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int8Array"'.
+!!! error TS2322: Type '"Uint8ClampedArray"' is not assignable to type '"Int8Array"'.
arr_Uint8Array = arr_Int8Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int8Array' is not assignable to type 'Uint8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"UInt8Array"'.
+!!! error TS2322: Type '"Int8Array"' is not assignable to type '"UInt8Array"'.
arr_Uint8Array = arr_Uint8Array;
arr_Uint8Array = arr_Int16Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Uint8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"UInt8Array"'.
+!!! error TS2322: Type '"Int16Array"' is not assignable to type '"UInt8Array"'.
arr_Uint8Array = arr_Uint16Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint16Array' is not assignable to type 'Uint8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"UInt8Array"'.
+!!! error TS2322: Type '"Uint16Array"' is not assignable to type '"UInt8Array"'.
arr_Uint8Array = arr_Int32Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int32Array' is not assignable to type 'Uint8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"UInt8Array"'.
+!!! error TS2322: Type '"Int32Array"' is not assignable to type '"UInt8Array"'.
arr_Uint8Array = arr_Uint32Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint32Array' is not assignable to type 'Uint8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"UInt8Array"'.
+!!! error TS2322: Type '"Uint32Array"' is not assignable to type '"UInt8Array"'.
arr_Uint8Array = arr_Float32Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Float32Array' is not assignable to type 'Uint8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"UInt8Array"'.
+!!! error TS2322: Type '"Float32Array"' is not assignable to type '"UInt8Array"'.
arr_Uint8Array = arr_Float64Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Float64Array' is not assignable to type 'Uint8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"UInt8Array"'.
+!!! error TS2322: Type '"Float64Array"' is not assignable to type '"UInt8Array"'.
arr_Uint8Array = arr_Uint8ClampedArray;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Uint8Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"UInt8Array"'.
+!!! error TS2322: Type '"Uint8ClampedArray"' is not assignable to type '"UInt8Array"'.
arr_Int16Array = arr_Int8Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int8Array' is not assignable to type 'Int16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int16Array"'.
+!!! error TS2322: Type '"Int8Array"' is not assignable to type '"Int16Array"'.
arr_Int16Array = arr_Uint8Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Int16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int16Array"'.
+!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Int16Array"'.
arr_Int16Array = arr_Int16Array;
arr_Int16Array = arr_Uint16Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint16Array' is not assignable to type 'Int16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int16Array"'.
+!!! error TS2322: Type '"Uint16Array"' is not assignable to type '"Int16Array"'.
arr_Int16Array = arr_Int32Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int32Array' is not assignable to type 'Int16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int16Array"'.
+!!! error TS2322: Type '"Int32Array"' is not assignable to type '"Int16Array"'.
arr_Int16Array = arr_Uint32Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint32Array' is not assignable to type 'Int16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int16Array"'.
+!!! error TS2322: Type '"Uint32Array"' is not assignable to type '"Int16Array"'.
arr_Int16Array = arr_Float32Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Float32Array' is not assignable to type 'Int16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int16Array"'.
+!!! error TS2322: Type '"Float32Array"' is not assignable to type '"Int16Array"'.
arr_Int16Array = arr_Float64Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Float64Array' is not assignable to type 'Int16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int16Array"'.
+!!! error TS2322: Type '"Float64Array"' is not assignable to type '"Int16Array"'.
arr_Int16Array = arr_Uint8ClampedArray;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Int16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int16Array"'.
+!!! error TS2322: Type '"Uint8ClampedArray"' is not assignable to type '"Int16Array"'.
arr_Uint16Array = arr_Int8Array;
~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int8Array' is not assignable to type 'Uint16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint16Array"'.
+!!! error TS2322: Type '"Int8Array"' is not assignable to type '"Uint16Array"'.
arr_Uint16Array = arr_Uint8Array;
~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Uint16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint16Array"'.
+!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Uint16Array"'.
arr_Uint16Array = arr_Int16Array;
~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Uint16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint16Array"'.
+!!! error TS2322: Type '"Int16Array"' is not assignable to type '"Uint16Array"'.
arr_Uint16Array = arr_Uint16Array;
arr_Uint16Array = arr_Int32Array;
~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int32Array' is not assignable to type 'Uint16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint16Array"'.
+!!! error TS2322: Type '"Int32Array"' is not assignable to type '"Uint16Array"'.
arr_Uint16Array = arr_Uint32Array;
~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint32Array' is not assignable to type 'Uint16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint16Array"'.
+!!! error TS2322: Type '"Uint32Array"' is not assignable to type '"Uint16Array"'.
arr_Uint16Array = arr_Float32Array;
~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Float32Array' is not assignable to type 'Uint16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint16Array"'.
+!!! error TS2322: Type '"Float32Array"' is not assignable to type '"Uint16Array"'.
arr_Uint16Array = arr_Float64Array;
~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Float64Array' is not assignable to type 'Uint16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint16Array"'.
+!!! error TS2322: Type '"Float64Array"' is not assignable to type '"Uint16Array"'.
arr_Uint16Array = arr_Uint8ClampedArray;
~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Uint16Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint16Array"'.
+!!! error TS2322: Type '"Uint8ClampedArray"' is not assignable to type '"Uint16Array"'.
arr_Int32Array = arr_Int8Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int8Array' is not assignable to type 'Int32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int32Array"'.
+!!! error TS2322: Type '"Int8Array"' is not assignable to type '"Int32Array"'.
arr_Int32Array = arr_Uint8Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Int32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int32Array"'.
+!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Int32Array"'.
arr_Int32Array = arr_Int16Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Int32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int32Array"'.
+!!! error TS2322: Type '"Int16Array"' is not assignable to type '"Int32Array"'.
arr_Int32Array = arr_Uint16Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint16Array' is not assignable to type 'Int32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int32Array"'.
+!!! error TS2322: Type '"Uint16Array"' is not assignable to type '"Int32Array"'.
arr_Int32Array = arr_Int32Array;
arr_Int32Array = arr_Uint32Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint32Array' is not assignable to type 'Int32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int32Array"'.
+!!! error TS2322: Type '"Uint32Array"' is not assignable to type '"Int32Array"'.
arr_Int32Array = arr_Float32Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Float32Array' is not assignable to type 'Int32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int32Array"'.
+!!! error TS2322: Type '"Float32Array"' is not assignable to type '"Int32Array"'.
arr_Int32Array = arr_Float64Array;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Float64Array' is not assignable to type 'Int32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int32Array"'.
+!!! error TS2322: Type '"Float64Array"' is not assignable to type '"Int32Array"'.
arr_Int32Array = arr_Uint8ClampedArray;
~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Int32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Int32Array"'.
+!!! error TS2322: Type '"Uint8ClampedArray"' is not assignable to type '"Int32Array"'.
arr_Float32Array = arr_Int8Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int8Array' is not assignable to type 'Float32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float32Array"'.
+!!! error TS2322: Type '"Int8Array"' is not assignable to type '"Float32Array"'.
arr_Float32Array = arr_Uint8Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Float32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float32Array"'.
+!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Float32Array"'.
arr_Float32Array = arr_Int16Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Float32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float32Array"'.
+!!! error TS2322: Type '"Int16Array"' is not assignable to type '"Float32Array"'.
arr_Float32Array = arr_Uint16Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint16Array' is not assignable to type 'Float32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float32Array"'.
+!!! error TS2322: Type '"Uint16Array"' is not assignable to type '"Float32Array"'.
arr_Float32Array = arr_Int32Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int32Array' is not assignable to type 'Float32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float32Array"'.
+!!! error TS2322: Type '"Int32Array"' is not assignable to type '"Float32Array"'.
arr_Float32Array = arr_Uint32Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint32Array' is not assignable to type 'Float32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float32Array"'.
+!!! error TS2322: Type '"Uint32Array"' is not assignable to type '"Float32Array"'.
arr_Float32Array = arr_Float32Array;
arr_Float32Array = arr_Float64Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Float64Array' is not assignable to type 'Float32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float32Array"'.
+!!! error TS2322: Type '"Float64Array"' is not assignable to type '"Float32Array"'.
arr_Float32Array = arr_Uint8ClampedArray;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Float32Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float32Array"'.
+!!! error TS2322: Type '"Uint8ClampedArray"' is not assignable to type '"Float32Array"'.
arr_Float64Array = arr_Int8Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int8Array' is not assignable to type 'Float64Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float64Array"'.
+!!! error TS2322: Type '"Int8Array"' is not assignable to type '"Float64Array"'.
arr_Float64Array = arr_Uint8Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Float64Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float64Array"'.
+!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Float64Array"'.
arr_Float64Array = arr_Int16Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Float64Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float64Array"'.
+!!! error TS2322: Type '"Int16Array"' is not assignable to type '"Float64Array"'.
arr_Float64Array = arr_Uint16Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint16Array' is not assignable to type 'Float64Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float64Array"'.
+!!! error TS2322: Type '"Uint16Array"' is not assignable to type '"Float64Array"'.
arr_Float64Array = arr_Int32Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int32Array' is not assignable to type 'Float64Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float64Array"'.
+!!! error TS2322: Type '"Int32Array"' is not assignable to type '"Float64Array"'.
arr_Float64Array = arr_Uint32Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint32Array' is not assignable to type 'Float64Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float64Array"'.
+!!! error TS2322: Type '"Uint32Array"' is not assignable to type '"Float64Array"'.
arr_Float64Array = arr_Float32Array;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Float32Array' is not assignable to type 'Float64Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float64Array"'.
+!!! error TS2322: Type '"Float32Array"' is not assignable to type '"Float64Array"'.
arr_Float64Array = arr_Float64Array;
arr_Float64Array = arr_Uint8ClampedArray;
~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Float64Array'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Float64Array"'.
+!!! error TS2322: Type '"Uint8ClampedArray"' is not assignable to type '"Float64Array"'.
arr_Uint8ClampedArray = arr_Int8Array;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int8Array' is not assignable to type 'Uint8ClampedArray'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+!!! error TS2322: Type '"Int8Array"' is not assignable to type '"Uint8ClampedArray"'.
arr_Uint8ClampedArray = arr_Uint8Array;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Uint8ClampedArray'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Uint8ClampedArray"'.
arr_Uint8ClampedArray = arr_Int16Array;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Uint8ClampedArray'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+!!! error TS2322: Type '"Int16Array"' is not assignable to type '"Uint8ClampedArray"'.
arr_Uint8ClampedArray = arr_Uint16Array;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint16Array' is not assignable to type 'Uint8ClampedArray'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+!!! error TS2322: Type '"Uint16Array"' is not assignable to type '"Uint8ClampedArray"'.
arr_Uint8ClampedArray = arr_Int32Array;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Int32Array' is not assignable to type 'Uint8ClampedArray'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+!!! error TS2322: Type '"Int32Array"' is not assignable to type '"Uint8ClampedArray"'.
arr_Uint8ClampedArray = arr_Uint32Array;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Uint32Array' is not assignable to type 'Uint8ClampedArray'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+!!! error TS2322: Type '"Uint32Array"' is not assignable to type '"Uint8ClampedArray"'.
arr_Uint8ClampedArray = arr_Float32Array;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Float32Array' is not assignable to type 'Uint8ClampedArray'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+!!! error TS2322: Type '"Float32Array"' is not assignable to type '"Uint8ClampedArray"'.
arr_Uint8ClampedArray = arr_Float64Array;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'Float64Array' is not assignable to type 'Uint8ClampedArray'.
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
-!!! error TS2322: Type 'string' is not assignable to type '"Uint8ClampedArray"'.
+!!! error TS2322: Type '"Float64Array"' is not assignable to type '"Uint8ClampedArray"'.
arr_Uint8ClampedArray = arr_Uint8ClampedArray;
}
diff --git a/tests/baselines/reference/unusedSwitchStatment.errors.txt b/tests/baselines/reference/unusedSwitchStatment.errors.txt
index 61345dc1fd4..f47cad32eba 100644
--- a/tests/baselines/reference/unusedSwitchStatment.errors.txt
+++ b/tests/baselines/reference/unusedSwitchStatment.errors.txt
@@ -1,16 +1,16 @@
-tests/cases/compiler/unusedSwitchStatment.ts(2,10): error TS2678: Type 'number' is not comparable to type '1'.
+tests/cases/compiler/unusedSwitchStatment.ts(2,10): error TS2678: Type '0' is not comparable to type '1'.
tests/cases/compiler/unusedSwitchStatment.ts(3,13): error TS6133: 'x' is declared but never used.
tests/cases/compiler/unusedSwitchStatment.ts(6,15): error TS6133: 'c' is declared but never used.
tests/cases/compiler/unusedSwitchStatment.ts(9,13): error TS6133: 'z' is declared but never used.
-tests/cases/compiler/unusedSwitchStatment.ts(14,10): error TS2678: Type 'number' is not comparable to type '2'.
-tests/cases/compiler/unusedSwitchStatment.ts(16,10): error TS2678: Type 'number' is not comparable to type '2'.
+tests/cases/compiler/unusedSwitchStatment.ts(14,10): error TS2678: Type '0' is not comparable to type '2'.
+tests/cases/compiler/unusedSwitchStatment.ts(16,10): error TS2678: Type '1' is not comparable to type '2'.
==== tests/cases/compiler/unusedSwitchStatment.ts (6 errors) ====
switch (1) {
case 0:
~
-!!! error TS2678: Type 'number' is not comparable to type '1'.
+!!! error TS2678: Type '0' is not comparable to type '1'.
let x;
~
!!! error TS6133: 'x' is declared but never used.
@@ -30,10 +30,10 @@ tests/cases/compiler/unusedSwitchStatment.ts(16,10): error TS2678: Type 'number'
switch (2) {
case 0:
~
-!!! error TS2678: Type 'number' is not comparable to type '2'.
+!!! error TS2678: Type '0' is not comparable to type '2'.
let x;
case 1:
~
-!!! error TS2678: Type 'number' is not comparable to type '2'.
+!!! error TS2678: Type '1' is not comparable to type '2'.
x++;
}
\ No newline at end of file