diff --git a/crates/stc_ts_errors/src/lib.rs b/crates/stc_ts_errors/src/lib.rs index 61f2894e22..27026555eb 100644 --- a/crates/stc_ts_errors/src/lib.rs +++ b/crates/stc_ts_errors/src/lib.rs @@ -1660,7 +1660,7 @@ impl ErrorKind { // TS2739: Missing properties with a type name // TS2740: Missing properties with type names // TS2741: Missing properties with comparison-like error message - 2739 | 2740 | 2741 => 2741, + 2739 | 2740 | 2741 => 2322, _ => code, } diff --git a/crates/stc_ts_type_checker/tests/conformance.pass.txt b/crates/stc_ts_type_checker/tests/conformance.pass.txt index f85e20e511..30353a3712 100644 --- a/crates/stc_ts_type_checker/tests/conformance.pass.txt +++ b/crates/stc_ts_type_checker/tests/conformance.pass.txt @@ -819,6 +819,7 @@ es6/destructuring/iterableArrayPattern30.ts es6/destructuring/iterableArrayPattern4.ts es6/destructuring/iterableArrayPattern5.ts es6/destructuring/iterableArrayPattern6.ts +es6/destructuring/iterableArrayPattern7.ts es6/destructuring/iterableArrayPattern8.ts es6/destructuring/iterableArrayPattern9.ts es6/destructuring/nonIterableRestElement1.ts @@ -2206,6 +2207,7 @@ statements/for-ofStatements/ES5for-of32.ts statements/forStatements/forStatements.ts statements/forStatements/forStatementsMultipleValidDecl.ts statements/ifDoWhileStatements/ifDoWhileStatements.ts +statements/returnStatements/invalidReturnStatements.ts statements/returnStatements/returnStatements.ts statements/switchStatements/switchStatements.ts statements/throwStatements/throwInEnclosingStatements.ts diff --git a/crates/stc_ts_type_checker/tests/conformance/es6/destructuring/iterableArrayPattern7.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/es6/destructuring/iterableArrayPattern7.error-diff.json deleted file mode 100644 index a0ca7abcd9..0000000000 --- a/crates/stc_ts_type_checker/tests/conformance/es6/destructuring/iterableArrayPattern7.error-diff.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "required_errors": { - "TS2741": 1 - }, - "required_error_lines": { - "TS2741": [ - 18 - ] - }, - "extra_errors": { - "TS2322": 1 - }, - "extra_error_lines": { - "TS2322": [ - 18 - ] - } -} \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/es6/destructuring/iterableArrayPattern7.stats.rust-debug b/crates/stc_ts_type_checker/tests/conformance/es6/destructuring/iterableArrayPattern7.stats.rust-debug index c0ac063550..f3e39f53bd 100644 --- a/crates/stc_ts_type_checker/tests/conformance/es6/destructuring/iterableArrayPattern7.stats.rust-debug +++ b/crates/stc_ts_type_checker/tests/conformance/es6/destructuring/iterableArrayPattern7.stats.rust-debug @@ -1,6 +1,6 @@ Stats { - required_error: 1, - matched_error: 0, - extra_error: 1, + required_error: 0, + matched_error: 1, + extra_error: 0, panic: 0, } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentError.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentError.error-diff.json index aecd48faa2..5094ca7e92 100644 --- a/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentError.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentError.error-diff.json @@ -1,19 +1,12 @@ { "required_errors": { - "TS2322": 2 + "TS2322": 1 }, "required_error_lines": { "TS2322": [ - 5, 7 ] }, - "extra_errors": { - "TS2741": 1 - }, - "extra_error_lines": { - "TS2741": [ - 5 - ] - } + "extra_errors": {}, + "extra_error_lines": {} } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentError.stats.rust-debug b/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentError.stats.rust-debug index 1b41d73870..8a4b298eee 100644 --- a/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentError.stats.rust-debug +++ b/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentError.stats.rust-debug @@ -1,6 +1,6 @@ Stats { - required_error: 2, - matched_error: 2, - extra_error: 1, + required_error: 1, + matched_error: 3, + extra_error: 0, panic: 0, } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.error-diff.json index cc0abc5bba..9ed2a6b84d 100644 --- a/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.error-diff.json @@ -1,19 +1,12 @@ { "required_errors": { - "TS2322": 2 + "TS2322": 1 }, "required_error_lines": { "TS2322": [ - 5, 6 ] }, - "extra_errors": { - "TS2741": 1 - }, - "extra_error_lines": { - "TS2741": [ - 5 - ] - } + "extra_errors": {}, + "extra_error_lines": {} } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.stats.rust-debug b/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.stats.rust-debug index 1b41d73870..8a4b298eee 100644 --- a/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.stats.rust-debug +++ b/crates/stc_ts_type_checker/tests/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.stats.rust-debug @@ -1,6 +1,6 @@ Stats { - required_error: 2, - matched_error: 2, - extra_error: 1, + required_error: 1, + matched_error: 3, + extra_error: 0, panic: 0, } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/externalModules/typesOnlyExternalModuleStillHasInstance.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/externalModules/typesOnlyExternalModuleStillHasInstance.error-diff.json index 89e356e498..edf8ce2339 100644 --- a/crates/stc_ts_type_checker/tests/conformance/externalModules/typesOnlyExternalModuleStillHasInstance.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/externalModules/typesOnlyExternalModuleStillHasInstance.error-diff.json @@ -1,9 +1,9 @@ { "required_errors": { - "TS2741": 1 + "TS2322": 1 }, "required_error_lines": { - "TS2741": [ + "TS2322": [ 7 ] }, diff --git a/crates/stc_ts_type_checker/tests/conformance/jsx/checkJsxChildrenProperty2.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/jsx/checkJsxChildrenProperty2.error-diff.json index bf77cc5b2c..9067dd4706 100644 --- a/crates/stc_ts_type_checker/tests/conformance/jsx/checkJsxChildrenProperty2.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/jsx/checkJsxChildrenProperty2.error-diff.json @@ -1,11 +1,11 @@ { "required_errors": { - "TS2741": 1, + "TS2322": 1, "TS2710": 1, "TS2746": 4 }, "required_error_lines": { - "TS2741": [ + "TS2322": [ 21 ], "TS2710": [ diff --git a/crates/stc_ts_type_checker/tests/conformance/jsx/checkJsxChildrenProperty5.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/jsx/checkJsxChildrenProperty5.error-diff.json index 2e7cda1662..c41a8fec84 100644 --- a/crates/stc_ts_type_checker/tests/conformance/jsx/checkJsxChildrenProperty5.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/jsx/checkJsxChildrenProperty5.error-diff.json @@ -1,9 +1,9 @@ { "required_errors": { - "TS2741": 3 + "TS2322": 3 }, "required_error_lines": { - "TS2741": [ + "TS2322": [ 26, 31, 35 diff --git a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution1.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution1.error-diff.json index 87a048dda7..e1b5bf6026 100644 --- a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution1.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution1.error-diff.json @@ -1,7 +1,6 @@ { "required_errors": { - "TS2322": 5, - "TS2741": 1 + "TS2322": 6 }, "required_error_lines": { "TS2322": [ @@ -9,10 +8,8 @@ 27, 28, 29, + 31, 32 - ], - "TS2741": [ - 31 ] }, "extra_errors": { diff --git a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution3.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution3.error-diff.json index e663108d30..e010d00a1c 100644 --- a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution3.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution3.error-diff.json @@ -1,15 +1,12 @@ { "required_errors": { - "TS2322": 2, - "TS2741": 1 + "TS2322": 3 }, "required_error_lines": { "TS2322": [ 21, + 25, 33 - ], - "TS2741": [ - 25 ] }, "extra_errors": { diff --git a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution5.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution5.error-diff.json index 8915d1cda0..e6b50a1ebb 100644 --- a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution5.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution5.error-diff.json @@ -1,14 +1,11 @@ { "required_errors": { - "TS2322": 2, - "TS2741": 1 + "TS2322": 3 }, "required_error_lines": { "TS2322": [ 23, - 27 - ], - "TS2741": [ + 27, 31 ] }, diff --git a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution6.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution6.error-diff.json index ca4c705801..b33227a9de 100644 --- a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution6.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxAttributeResolution6.error-diff.json @@ -1,14 +1,11 @@ { "required_errors": { - "TS2322": 2, - "TS2741": 1 + "TS2322": 3 }, "required_error_lines": { "TS2322": [ 12, - 13 - ], - "TS2741": [ + 13, 14 ] }, diff --git a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxIntrinsicAttributeErrors.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxIntrinsicAttributeErrors.error-diff.json index 4cd1142a40..efbebc6b48 100644 --- a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxIntrinsicAttributeErrors.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxIntrinsicAttributeErrors.error-diff.json @@ -1,9 +1,9 @@ { "required_errors": { - "TS2741": 1 + "TS2322": 1 }, "required_error_lines": { - "TS2741": [ + "TS2322": [ 31 ] }, diff --git a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxReactComponentWithDefaultTypeParameter3.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxReactComponentWithDefaultTypeParameter3.error-diff.json index 7d08271d23..133b9e1321 100644 --- a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxReactComponentWithDefaultTypeParameter3.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxReactComponentWithDefaultTypeParameter3.error-diff.json @@ -1,13 +1,10 @@ { "required_errors": { - "TS2741": 1, - "TS2322": 1 + "TS2322": 2 }, "required_error_lines": { - "TS2741": [ - 19 - ], "TS2322": [ + 19, 25 ] }, diff --git a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxSpreadAttributesResolution16.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxSpreadAttributesResolution16.error-diff.json index b858875f69..de28a96e51 100644 --- a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxSpreadAttributesResolution16.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxSpreadAttributesResolution16.error-diff.json @@ -1,9 +1,9 @@ { "required_errors": { - "TS2741": 1 + "TS2322": 1 }, "required_error_lines": { - "TS2741": [ + "TS2322": [ 17 ] }, diff --git a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxSpreadAttributesResolution2.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxSpreadAttributesResolution2.error-diff.json index aeb1910b55..c7bd529bcf 100644 --- a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxSpreadAttributesResolution2.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxSpreadAttributesResolution2.error-diff.json @@ -1,14 +1,11 @@ { "required_errors": { - "TS2741": 2, - "TS2322": 4 + "TS2322": 6 }, "required_error_lines": { - "TS2741": [ - 26, - 27 - ], "TS2322": [ + 26, + 27, 28, 28, 29, diff --git a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxUnionElementType6.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxUnionElementType6.error-diff.json index 586899e309..e2637ee3a0 100644 --- a/crates/stc_ts_type_checker/tests/conformance/jsx/tsxUnionElementType6.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/jsx/tsxUnionElementType6.error-diff.json @@ -1,14 +1,11 @@ { "required_errors": { - "TS2322": 2, - "TS2741": 2 + "TS2322": 4 }, "required_error_lines": { "TS2322": [ 24, - 25 - ], - "TS2741": [ + 25, 26, 27 ] diff --git a/crates/stc_ts_type_checker/tests/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInvalidInitializer.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInvalidInitializer.error-diff.json index 888d00148a..469be18d19 100644 --- a/crates/stc_ts_type_checker/tests/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInvalidInitializer.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInvalidInitializer.error-diff.json @@ -1,26 +1,14 @@ { "required_errors": { - "TS2741": 2, "TS2322": 3 }, "required_error_lines": { - "TS2741": [ - 41, - 42 - ], "TS2322": [ 48, 50, 52 ] }, - "extra_errors": { - "TS2322": 2 - }, - "extra_error_lines": { - "TS2322": [ - 41, - 42 - ] - } + "extra_errors": {}, + "extra_error_lines": {} } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInvalidInitializer.stats.rust-debug b/crates/stc_ts_type_checker/tests/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInvalidInitializer.stats.rust-debug index afe201bfd2..a7ff0ab323 100644 --- a/crates/stc_ts_type_checker/tests/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInvalidInitializer.stats.rust-debug +++ b/crates/stc_ts_type_checker/tests/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInvalidInitializer.stats.rust-debug @@ -1,6 +1,6 @@ Stats { - required_error: 5, - matched_error: 10, - extra_error: 2, + required_error: 3, + matched_error: 12, + extra_error: 0, panic: 0, } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/statements/returnStatements/invalidReturnStatements.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/statements/returnStatements/invalidReturnStatements.error-diff.json deleted file mode 100644 index a0ca7abcd9..0000000000 --- a/crates/stc_ts_type_checker/tests/conformance/statements/returnStatements/invalidReturnStatements.error-diff.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "required_errors": { - "TS2741": 1 - }, - "required_error_lines": { - "TS2741": [ - 18 - ] - }, - "extra_errors": { - "TS2322": 1 - }, - "extra_error_lines": { - "TS2322": [ - 18 - ] - } -} \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/statements/returnStatements/invalidReturnStatements.stats.rust-debug b/crates/stc_ts_type_checker/tests/conformance/statements/returnStatements/invalidReturnStatements.stats.rust-debug index 1b2981c144..6736709329 100644 --- a/crates/stc_ts_type_checker/tests/conformance/statements/returnStatements/invalidReturnStatements.stats.rust-debug +++ b/crates/stc_ts_type_checker/tests/conformance/statements/returnStatements/invalidReturnStatements.stats.rust-debug @@ -1,6 +1,6 @@ Stats { - required_error: 1, - matched_error: 5, - extra_error: 1, + required_error: 0, + matched_error: 6, + extra_error: 0, panic: 0, } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/types/keyof/keyofAndIndexedAccess2.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/types/keyof/keyofAndIndexedAccess2.error-diff.json index 4698cd8fc6..7e97b70046 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/keyof/keyofAndIndexedAccess2.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/types/keyof/keyofAndIndexedAccess2.error-diff.json @@ -1,13 +1,16 @@ { "required_errors": { - "TS2322": 9, "TS2339": 2, + "TS2322": 8, "TS7053": 1, "TS2536": 1 }, "required_error_lines": { + "TS2339": [ + 29, + 68 + ], "TS2322": [ - 18, 30, 34, 41, @@ -17,10 +20,6 @@ 71, 111 ], - "TS2339": [ - 29, - 68 - ], "TS7053": [ 53 ], @@ -30,7 +29,6 @@ }, "extra_errors": { "TS2322": 2, - "TS2741": 1, "TS2339": 1, "TS2349": 1 }, @@ -39,9 +37,6 @@ 10, 100 ], - "TS2741": [ - 18 - ], "TS2339": [ 147 ], diff --git a/crates/stc_ts_type_checker/tests/conformance/types/keyof/keyofAndIndexedAccess2.stats.rust-debug b/crates/stc_ts_type_checker/tests/conformance/types/keyof/keyofAndIndexedAccess2.stats.rust-debug index 701506f3e0..dce22a2915 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/keyof/keyofAndIndexedAccess2.stats.rust-debug +++ b/crates/stc_ts_type_checker/tests/conformance/types/keyof/keyofAndIndexedAccess2.stats.rust-debug @@ -1,6 +1,6 @@ Stats { - required_error: 13, - matched_error: 10, - extra_error: 5, + required_error: 12, + matched_error: 11, + extra_error: 4, panic: 0, } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/types/mapped/mappedTypeWithAny.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/types/mapped/mappedTypeWithAny.error-diff.json index 57d6447b91..fa020a9796 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/mapped/mappedTypeWithAny.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/types/mapped/mappedTypeWithAny.error-diff.json @@ -1,13 +1,10 @@ { "required_errors": { - "TS2741": 1, - "TS2322": 2 + "TS2322": 3 }, "required_error_lines": { - "TS2741": [ - 48 - ], "TS2322": [ + 48, 49, 56 ] diff --git a/crates/stc_ts_type_checker/tests/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.error-diff.json index 37600eedae..534377609f 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.error-diff.json @@ -1,26 +1,18 @@ { "required_errors": { - "TS2322": 8, - "TS2741": 1 + "TS2322": 5 }, "required_error_lines": { "TS2322": [ 45, 63, 67, - 69, - 70, 86, - 90, - 92 - ], - "TS2741": [ - 71 + 90 ] }, "extra_errors": { - "TS2322": 7, - "TS2741": 3 + "TS2322": 6 }, "extra_error_lines": { "TS2322": [ @@ -28,14 +20,8 @@ 48, 57, 66, - 71, 80, 89 - ], - "TS2741": [ - 69, - 70, - 92 ] } } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.stats.rust-debug b/crates/stc_ts_type_checker/tests/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.stats.rust-debug index 4778bb98ae..e25375f5a8 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.stats.rust-debug +++ b/crates/stc_ts_type_checker/tests/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.stats.rust-debug @@ -1,6 +1,6 @@ Stats { - required_error: 9, - matched_error: 4, - extra_error: 10, + required_error: 5, + matched_error: 8, + extra_error: 6, panic: 0, } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations2.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations2.error-diff.json index ab557459ea..f0923535b3 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations2.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations2.error-diff.json @@ -1,7 +1,7 @@ { "required_errors": { "TS2411": 5, - "TS2741": 2 + "TS2322": 2 }, "required_error_lines": { "TS2411": [ @@ -11,7 +11,7 @@ 31, 32 ], - "TS2741": [ + "TS2322": [ 37, 38 ] diff --git a/crates/stc_ts_type_checker/tests/conformance/types/rest/objectRest.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/types/rest/objectRest.error-diff.json index 6f77963ab7..81a05b34f7 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/rest/objectRest.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/types/rest/objectRest.error-diff.json @@ -2,7 +2,7 @@ "required_errors": { "TS2537": 4, "TS2403": 1, - "TS2741": 1 + "TS2322": 1 }, "required_error_lines": { "TS2537": [ @@ -14,7 +14,7 @@ "TS2403": [ 44 ], - "TS2741": [ + "TS2322": [ 45 ] }, diff --git a/crates/stc_ts_type_checker/tests/conformance/types/thisType/typeRelationships.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/types/thisType/typeRelationships.error-diff.json index 1fb5721da5..fdbb984efe 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/thisType/typeRelationships.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/types/thisType/typeRelationships.error-diff.json @@ -1,15 +1,12 @@ { "required_errors": { - "TS2322": 2, - "TS2741": 1 + "TS2322": 3 }, "required_error_lines": { "TS2322": [ 9, + 35, 36 - ], - "TS2741": [ - 35 ] }, "extra_errors": {}, diff --git a/crates/stc_ts_type_checker/tests/conformance/types/tuple/arityAndOrderCompatibility01.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/types/tuple/arityAndOrderCompatibility01.error-diff.json index be2bf5d0ca..1fc645f7fd 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/tuple/arityAndOrderCompatibility01.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/types/tuple/arityAndOrderCompatibility01.error-diff.json @@ -1,20 +1,11 @@ { - "required_errors": { - "TS2741": 2 - }, - "required_error_lines": { - "TS2741": [ - 19, - 22 - ] - }, + "required_errors": {}, + "required_error_lines": {}, "extra_errors": { - "TS2322": 5 + "TS2322": 3 }, "extra_error_lines": { "TS2322": [ - 19, - 22, 30, 34, 35 diff --git a/crates/stc_ts_type_checker/tests/conformance/types/tuple/arityAndOrderCompatibility01.stats.rust-debug b/crates/stc_ts_type_checker/tests/conformance/types/tuple/arityAndOrderCompatibility01.stats.rust-debug index 1ccdc28654..f7a14a1ac1 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/tuple/arityAndOrderCompatibility01.stats.rust-debug +++ b/crates/stc_ts_type_checker/tests/conformance/types/tuple/arityAndOrderCompatibility01.stats.rust-debug @@ -1,6 +1,6 @@ Stats { - required_error: 2, - matched_error: 15, - extra_error: 5, + required_error: 0, + matched_error: 17, + extra_error: 3, panic: 0, } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.error-diff.json index 5988adbf29..9da89fbbcd 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.error-diff.json @@ -1,11 +1,9 @@ { "required_errors": { - "TS2741": 10 + "TS2322": 8 }, "required_error_lines": { - "TS2741": [ - 21, - 22, + "TS2322": [ 73, 74, 78, @@ -16,13 +14,6 @@ 84 ] }, - "extra_errors": { - "TS2322": 2 - }, - "extra_error_lines": { - "TS2322": [ - 21, - 22 - ] - } + "extra_errors": {}, + "extra_error_lines": {} } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.stats.rust-debug b/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.stats.rust-debug index 0afbd1bfad..54d59ad786 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.stats.rust-debug +++ b/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.stats.rust-debug @@ -1,6 +1,6 @@ Stats { - required_error: 10, - matched_error: 19, - extra_error: 2, + required_error: 8, + matched_error: 21, + extra_error: 0, panic: 0, } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/unionTypesAssignability.error-diff.json b/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/unionTypesAssignability.error-diff.json index 62103f45b8..1b72eaaee4 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/unionTypesAssignability.error-diff.json +++ b/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/unionTypesAssignability.error-diff.json @@ -1,28 +1,17 @@ { "required_errors": { - "TS2741": 4, "TS2322": 1 }, "required_error_lines": { - "TS2741": [ - 18, - 20, - 31, - 32 - ], "TS2322": [ 71 ] }, "extra_errors": { - "TS2322": 5 + "TS2322": 1 }, "extra_error_lines": { "TS2322": [ - 18, - 20, - 31, - 32, 33 ] } diff --git a/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/unionTypesAssignability.stats.rust-debug b/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/unionTypesAssignability.stats.rust-debug index d3ab25327e..2543792f55 100644 --- a/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/unionTypesAssignability.stats.rust-debug +++ b/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/assignmentCompatibility/unionTypesAssignability.stats.rust-debug @@ -1,6 +1,6 @@ Stats { - required_error: 5, - matched_error: 14, - extra_error: 5, + required_error: 1, + matched_error: 18, + extra_error: 1, panic: 0, } \ No newline at end of file diff --git a/crates/stc_ts_type_checker/tests/tsc-stats.rust-debug b/crates/stc_ts_type_checker/tests/tsc-stats.rust-debug index 03804caf8f..43addec781 100644 --- a/crates/stc_ts_type_checker/tests/tsc-stats.rust-debug +++ b/crates/stc_ts_type_checker/tests/tsc-stats.rust-debug @@ -1,6 +1,6 @@ Stats { - required_error: 3785, - matched_error: 6026, - extra_error: 1043, + required_error: 3766, + matched_error: 6045, + extra_error: 1024, panic: 100, } \ No newline at end of file