diff --git a/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets b/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets index 52168f2026b0f3974bbdd610b99f22dcf2af51d0..f174501cc361f58459f7bb386d9f49092b203e2f 100644 --- a/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets +++ b/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets @@ -61,13 +61,4 @@ function main(): void { } -/* @@? 47:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 47:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 50:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 50:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 53:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 53:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 56:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 56:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 60:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 60:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@? 18:2 Error Syntax error ESY0000: Identifier expected */ diff --git a/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_1.ets b/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_1.ets index 6bcecc08b108c82e890c26cca09adede03514cfd..3d46b9783b514840a8cc349452983c7dbe130c83 100644 --- a/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_1.ets +++ b/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_1.ets @@ -17,8 +17,4 @@ const e = 123 @interface Ajno { b:e: string[][X (c + d)],% -/* @@? 18:7 Error TypeError: Cannot find type 'e'. */ -/* @@? 18:17 Error SyntaxError: Unexpected token ']'. */ -/* @@? 18:29 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 25:1 Error SyntaxError: Unexpected token 'end of stream'. */ - +/* @@? 17:2 Error Syntax error ESY0000: Identifier expected */ diff --git a/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_2.ets b/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_2.ets index 733c4a5ea39287c5feff86ad9570d5792ccd1d8f..88e07267abbec305d579ba0d8a83e94e15d2c5df 100644 --- a/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_2.ets +++ b/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_2.ets @@ -17,8 +17,4 @@ const e = true @interface Ajno { b:e: string[][X (c + d)],% -/* @@? 18:7 Error TypeError: Cannot find type 'e'. */ -/* @@? 18:17 Error SyntaxError: Unexpected token ']'. */ -/* @@? 18:29 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 25:1 Error SyntaxError: Unexpected token 'end of stream'. */ - +/* @@? 17:2 Error Syntax error ESY0000: Identifier expected */ diff --git a/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets b/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets index 9e0ebf92e4e1820783350f9a63ae47494cff941a..4385e22d867cea4519688de580115c3b91737b6e 100644 --- a/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets +++ b/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets @@ -43,23 +43,23 @@ declare const x31 = 0x5 declare const x41 = 0b101 declare const x51 = "abc" -/* @@? 16:37 Error TypeError: Initializers are not allowed in ambient contexts: byte_1 */ -/* @@? 16:66 Error TypeError: Initializers are not allowed in ambient contexts: byte_2 */ -/* @@? 17:38 Error TypeError: Initializers are not allowed in ambient contexts: byte_12 */ -/* @@? 17:64 Error TypeError: Initializers are not allowed in ambient contexts: byte_22 */ -/* @@? 18:38 Error TypeError: Initializers are not allowed in ambient contexts: byte_13 */ -/* @@? 18:70 Error TypeError: Initializers are not allowed in ambient contexts: byte_23 */ -/* @@? 19:38 Error TypeError: Initializers are not allowed in ambient contexts: byte_14 */ -/* @@? 22:31 Error TypeError: A 'const' initializer in an ambient context must be a string or numeric literal: int_12 */ -/* @@? 24:36 Error TypeError: Initializers are not allowed in ambient contexts: int_16 */ -/* @@? 26:39 Error TypeError: Initializers are not allowed in ambient contexts: int_18 */ -/* @@? 27:25 Error TypeError: Initializers are not allowed in ambient contexts: x1 */ -/* @@? 28:25 Error TypeError: Initializers are not allowed in ambient contexts: x2 */ -/* @@? 29:27 Error TypeError: Initializers are not allowed in ambient contexts: y1 */ -/* @@? 30:28 Error TypeError: Initializers are not allowed in ambient contexts: y2 */ -/* @@? 31:25 Error TypeError: Initializers are not allowed in ambient contexts: x3 */ -/* @@? 32:25 Error TypeError: Initializers are not allowed in ambient contexts: x4 */ -/* @@? 33:28 Error TypeError: Initializers are not allowed in ambient contexts: x5 */ -/* @@? 34:27 Error TypeError: Initializers are not allowed in ambient contexts: x6 */ -/* @@? 35:20 Error TypeError: A 'const' initializer in an ambient context must be a string or numeric literal: x7 */ -/* @@? 36:20 Error TypeError: A 'const' initializer in an ambient context must be a string or numeric literal: x8 */ +/* @@? 16:37 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_1 */ +/* @@? 16:66 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_2 */ +/* @@? 17:38 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_12 */ +/* @@? 17:64 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_22 */ +/* @@? 18:38 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_13 */ +/* @@? 18:70 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_23 */ +/* @@? 19:38 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_14 */ +/* @@? 22:31 Error Semantic error ESE0175: A 'const' initializer in an ambient context must be a string or numeric literal: int_12 */ +/* @@? 24:36 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: int_16 */ +/* @@? 26:39 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: int_18 */ +/* @@? 27:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x1 */ +/* @@? 28:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x2 */ +/* @@? 29:27 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: y1 */ +/* @@? 30:28 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: y2 */ +/* @@? 31:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x3 */ +/* @@? 32:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x4 */ +/* @@? 33:28 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x5 */ +/* @@? 34:27 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x6 */ +/* @@? 35:20 Error Semantic error ESE0175: A 'const' initializer in an ambient context must be a string or numeric literal: x7 */ +/* @@? 36:20 Error Semantic error ESE0175: A 'const' initializer in an ambient context must be a string or numeric literal: x8 */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type01.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type01.ets index 17cacc35801d70de746ccd79df33db5cd7356bf5..0109519980e416037e9deb03bd9307e4c6d9ab3e 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type01.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type01.ets @@ -31,23 +31,23 @@ import * as Src from "./annotation_src" ] } -/* @@@ label1 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label Error TypeError: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label3 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label2 Error TypeError: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label5 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label4 Error TypeError: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label7 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label6 Error TypeError: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label10 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label9 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label8 Error TypeError: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label13 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label12 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label11 Error TypeError: Initializer for field 'reviewers' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label16 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label15 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label14 Error TypeError: Initializer for field 'reviewersAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label19 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label18 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label17 Error TypeError: Initializer for field 'testBools' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0039: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label1 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label2 Error Semantic error ESE0039: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label3 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label4 Error Semantic error ESE0039: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label5 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label6 Error Semantic error ESE0039: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label7 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label8 Error Semantic error ESE0039: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label9 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label10 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label11 Error Semantic error ESE0039: Initializer for field 'reviewers' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label12 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label13 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label14 Error Semantic error ESE0039: Initializer for field 'reviewersAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label15 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label16 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label17 Error Semantic error ESE0039: Initializer for field 'testBools' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label18 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label19 Error Semantic error ESE0036: The initial value does not match the expected value. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type02.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type02.ets index 2f549a22c0c656d6fbb99ee623e1eb0350b33913..270f95851620b899f6e5ab94a0a6b1a948681c31 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type02.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type02.ets @@ -31,11 +31,11 @@ import {ClassAuthor, Color} from "./annotation_src" ] } -/* @@@ label1 Error TypeError: Field 'authorAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ -/* @@@ label2 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label Error TypeError: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label4 Error TypeError: Field 'testBool' has a type mismatch with the ambient annotation 'ClassAuthor'. */ -/* @@@ label3 Error TypeError: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label5 Error TypeError: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label6 Error TypeError: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label7 Error TypeError: Field 'reviewersAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0039: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label1 Error Semantic error ESE0038: Field 'authorAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ +/* @@@ label2 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label3 Error Semantic error ESE0039: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label4 Error Semantic error ESE0038: Field 'testBool' has a type mismatch with the ambient annotation 'ClassAuthor'. */ +/* @@@ label5 Error Semantic error ESE0039: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label6 Error Semantic error ESE0039: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label7 Error Semantic error ESE0038: Field 'reviewersAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationDecl_bad_initializer08.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationDecl_bad_initializer08.ets index abbbc6bccaff53f3ff6c63ad434b903258ec6965..a084b6ec7147ca00b8d9a5811c5e060755e40f96 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationDecl_bad_initializer08.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationDecl_bad_initializer08.ets @@ -24,10 +24,10 @@ enum Size{S, M, L, XL, XXL} testProperty5: FixedArray = [Color.GREEN, Color.BLUE] } -/* @@? 20:29 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 21:30 Error TypeError: Type '"false"' cannot be assigned to type 'Boolean' */ -/* @@? 22:39 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 22:44 Error TypeError: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 23:28 Error TypeError: Type 'Size' cannot be assigned to type 'Color' */ -/* @@? 24:40 Error TypeError: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ -/* @@? 24:53 Error TypeError: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 20:29 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 21:30 Error Semantic error ESE0318: Type '"false"' cannot be assigned to type 'Boolean' */ +/* @@? 22:39 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 22:44 Error Semantic error ESE0227: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 23:28 Error Semantic error ESE0318: Type 'Size' cannot be assigned to type 'Color' */ +/* @@? 24:40 Error Semantic error ESE0227: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 24:53 Error Semantic error ESE0227: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationUsage_bad_param09.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationUsage_bad_param09.ets index 5199df48ef335f06341128c52126aaa31ce326fe..73a59db5e27fe3081e4250380edde50eede47402 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationUsage_bad_param09.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationUsage_bad_param09.ets @@ -35,10 +35,10 @@ class B{ foo(){} } -/* @@? 29:24 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 30:24 Error TypeError: Type '"false"' cannot be assigned to type 'Boolean' */ -/* @@? 31:25 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 31:30 Error TypeError: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 32:24 Error TypeError: Type 'Size' cannot be assigned to type 'Color' */ -/* @@? 33:25 Error TypeError: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ -/* @@? 33:38 Error TypeError: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 29:24 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 30:24 Error Semantic error ESE0318: Type '"false"' cannot be assigned to type 'Boolean' */ +/* @@? 31:25 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 31:30 Error Semantic error ESE0227: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 32:24 Error Semantic error ESE0318: Type 'Size' cannot be assigned to type 'Color' */ +/* @@? 33:25 Error Semantic error ESE0227: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 33:38 Error Semantic error ESE0227: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_array_type01.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_array_type01.ets index 9390f6811d37d20ad6d461e58100d3e2133c4d53..6633e8f5c728de4b8870039dc58241e84eb4aae6 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_array_type01.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_array_type01.ets @@ -22,5 +22,5 @@ let array: @Anno @Anno FixedArray> let deepArray: @Anno @Anno FixedArray>>>> -/* @@? 21:19 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:23 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:19 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:23 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_readonly_type.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_readonly_type.ets index ad9dfcdb27724e8fa29b69f9c9fe80ed3474e025..b19326cd869d736669c99a79d6f7b14debafc998 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_readonly_type.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_readonly_type.ets @@ -18,4 +18,4 @@ // annotations for readonly Type let readonlyTuple: readonly @Anno @Anno() [Int, String, Float, FixedArray] -/* @@? 19:36 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 19:36 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/array_indexing_without_chaining_nullish.ets b/ets2panda/test/ast/compiler/ets/FixedArray/array_indexing_without_chaining_nullish.ets index 201a56615e002436dbf6c3a4efff76fdd2f31c85..3583a2bf543346bde1dd2bc1185f90cc274e5fc9 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/array_indexing_without_chaining_nullish.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/array_indexing_without_chaining_nullish.ets @@ -18,4 +18,4 @@ class A {} let arr : FixedArray | null = [new Object(), new A()]; let elem : Object | undefined = /* @@ label */arr[0]; -/* @@@ label Error TypeError: Value is possibly nullish. */ +/* @@@ label Error Semantic error ESE0010: Value is possibly nullish. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets b/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets index d96e87a488c3e55d67049be42a898102755c7fe5..2afd9d4bb84322ffad3fb8f082110e9d977409f8 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets @@ -17,4 +17,4 @@ function toString(this: FixedArray) /* @@ label */{ return "ext-func" } -/* @@@ label Error TypeError: The extension function 'toString' has the same name with public method in class Object */ +/* @@@ label Error Semantic error ESE0081: The extension function 'toString' has the same name with public method in class Object */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/extension_function_return_this_neg2.ets b/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/extension_function_return_this_neg2.ets index 8d78af6ed5af37abd32ad3078bbe9078d8c3b36f..d9752191cd8e8270c456b1e09050d7ec4c4f8653 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/extension_function_return_this_neg2.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/extension_function_return_this_neg2.ets @@ -20,6 +20,6 @@ function f1(this : B): FixedArray { return this; } -/* @@? 19:35 Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 19:35 Error TypeError: A 'this' cannot be used as type of array. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'FixedArray' */ +/* @@? 19:35 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 19:35 Error Semantic error ESE0283: A 'this' cannot be used as type of array. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'FixedArray' */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/for_of_missing_iterator_type.ets b/ets2panda/test/ast/compiler/ets/FixedArray/for_of_missing_iterator_type.ets index b151e98f01f284a37e0a70f52025b8d385018a60..703e93ec41973ad080ad23857478c650ba0ddca6 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/for_of_missing_iterator_type.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/for_of_missing_iterator_type.ets @@ -30,4 +30,4 @@ function main(): void { new A().foo(n) } -/* @@@ label Error TypeError: Cannot obtain iterator type in 'for-of' statement. */ +/* @@@ label Error Semantic error ESE0099: Cannot obtain iterator type in 'for-of' statement. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/implicit_package_import/scopes_multi_error.ets b/ets2panda/test/ast/compiler/ets/FixedArray/implicit_package_import/scopes_multi_error.ets index 44829a28a57bf8a2f495bb17ebc99c92e566674b..3dc931b70743f60b0fd84cf5ac6053e96dc305a4 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/implicit_package_import/scopes_multi_error.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/implicit_package_import/scopes_multi_error.ets @@ -28,7 +28,7 @@ function main(i : FixedArray, g : int): void { export default function TestFunc(): void {} export default function TestFuncToo(): void {} -/* @@? 20:10 Error TypeError: Main overload is not enabled */ -/* @@? 24:10 Error TypeError: Main overload is not enabled */ -/* @@? 24:10 Error TypeError: 0 or 1 argument are allowed */ -/* @@? 29:16 Error TypeError: Only one default export is allowed in a module */ +/* @@? 20:10 Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 24:10 Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 24:10 Error Semantic error ESE0133: 0 or 1 argument are allowed */ +/* @@? 29:16 Error Semantic error ESE0374: Only one default export is allowed in a module */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/iterabletypes_with_protected_iterator_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/iterabletypes_with_protected_iterator_neg.ets index fdf880e427517b300b99be0997400cf5410a3d3c..00d15c86c31df381b1ab19ee9ae531be2234576f 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/iterabletypes_with_protected_iterator_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/iterabletypes_with_protected_iterator_neg.ets @@ -44,5 +44,5 @@ function main(): int { return 0; } -/* @@? 40:19 Error TypeError: Cannot find iterator method with the required signature. */ -/* @@? 40:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 40:19 Error Semantic error ESE0259: Cannot find iterator method with the required signature. */ +/* @@? 40:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/lambda_type_mismatch.ets b/ets2panda/test/ast/compiler/ets/FixedArray/lambda_type_mismatch.ets index f7e4961dcdb9b8ea852ca4950f38203106724f4b..ccc5f0745cac2a4854fafd68114ffee662d651f7 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/lambda_type_mismatch.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/lambda_type_mismatch.ets @@ -19,6 +19,6 @@ let fob:(...args:FixedArray)=>number = (...args:FixedArray) =>{} let foc:(c:string, ...args:FixedArray)=>string = (c:number, ...args:FixedArray):string=>{} -/* @@? 16:56 Error TypeError: Type '(c: Double, ...args: FixedArray) => void' cannot be assigned to type '(c: String, ...args: FixedArray) => void' */ -/* @@? 18:48 Error TypeError: Type '(...args: FixedArray) => void' cannot be assigned to type '(...args: FixedArray) => Double' */ -/* @@? 20:58 Error TypeError: Type '(c: Double, ...args: FixedArray) => String' cannot be assigned to type '(c: String, ...args: FixedArray) => String' */ +/* @@? 16:56 Error Semantic error ESE0318: Type '(c: Double, ...args: FixedArray) => void' cannot be assigned to type '(c: String, ...args: FixedArray) => void' */ +/* @@? 18:48 Error Semantic error ESE0318: Type '(...args: FixedArray) => void' cannot be assigned to type '(...args: FixedArray) => Double' */ +/* @@? 20:58 Error Semantic error ESE0318: Type '(c: Double, ...args: FixedArray) => String' cannot be assigned to type '(c: String, ...args: FixedArray) => String' */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets b/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets index 7a854d51d55471c6035ba01bc81cb527c559c8e7..0c90aedc1dce2cad47b563712f65014d22628edb 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets @@ -24,4 +24,4 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: 'fun' type does not exist. */ +/* @@@ label Error Semantic error ESE0070: 'fun' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/same_assembly_overload/callExpr_pos.ets b/ets2panda/test/ast/compiler/ets/FixedArray/same_assembly_overload/callExpr_pos.ets index 80478738c55f20bfcaeaaaacef2a466c5dc59c40..0e2093e6ecc3d15bb9392f9d7b6d805a58bf7f41 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/same_assembly_overload/callExpr_pos.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/same_assembly_overload/callExpr_pos.ets @@ -25,4 +25,4 @@ foo(1,2) foo(1.1) -/* @@? 23:5 Error TypeError: Variable 'b' is used before being assigned. */ +/* @@? 23:5 Error Semantic error ESE0375: Variable 'b' is used before being assigned. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets index 0a237c3d9bbeb800d71ac7af98b59c2990843f9a..e1849d0e04353a42fe8a86822cb16c109cd14709 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets @@ -22,4 +22,4 @@ function main(): void { /* @@ label */test_var.test_array.length = 0; } -/* @@@ label Error TypeError: Setting the length of an array is not permitted */ +/* @@@ label Error Semantic error ESE0024: Setting the length of an array is not permitted */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets index 91e5197257d684686df1d0051e9ca93757005e4c..d4f492a699a8f2a365e9530f960db908e28b3197 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets @@ -18,4 +18,4 @@ function main(): void { /* @@ label */test_array.length = 0; } -/* @@@ label Error TypeError: Setting the length of an array is not permitted */ +/* @@@ label Error Semantic error ESE0024: Setting the length of an array is not permitted */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets index a3f7fcbe7d814d4ec2d35378cc4a9144de6619e8..160dcd8d6faa7b86120da34267834a33e0881fb0 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets @@ -18,4 +18,4 @@ function main(): void { /* @@ label */test_array.length += 1 } -/* @@@ label Error TypeError: Setting the length of an array is not permitted */ +/* @@@ label Error Semantic error ESE0024: Setting the length of an array is not permitted */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets b/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets index de366a4ce9c8977af5dafbc712422a52ccb5c62b..7d00742359cbfb2be420e0bf4beefeee01666054 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets @@ -21,9 +21,9 @@ function main() { let y2: [boolean, int, string, string] = /* @@ label3 */[true, /* @@ label4 */...x2, /* @@ label5 */...x3] } -/* @@? 18:56 Error TypeError: Initializer has 2 elements, but tuple requires 4 */ -/* @@? 18:72 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 18:94 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 21:61 Error TypeError: Initializer has 3 elements, but tuple requires 4 */ -/* @@? 21:83 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 21:105 Error TypeError: 'Array' cannot be spread in tuple. */ +/* @@@ label Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 4 */ +/* @@@ label1 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label2 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label3 Error Semantic error ESE0231: Initializer has 3 elements, but tuple requires 4 */ +/* @@@ label4 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label5 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_5_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_5_neg.ets index e0e6de5b51ffe2678d3d848fca04f41bf324286d..159608fbc85bc26c2e723b6670dc4ad09037e14e 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_5_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_5_neg.ets @@ -18,12 +18,12 @@ function main(): void { let a: [number, FixedArray<...number>] = [1]; } -/* @@? 18:21 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 18:32 Error SyntaxError: Invalid Type. */ -/* @@? 18:32 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 18:32 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:32 Error SyntaxError: Unexpected token '>'. */ -/* @@? 18:35 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 18:35 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 18:35 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 18:42 Error SyntaxError: Unexpected token ']'. */ +/* @@? 18:21 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 18:32 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:32 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 18:32 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:32 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 18:35 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 18:35 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 18:35 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 18:42 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_9_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_9_neg.ets index baddef4e13b7be0894b3837afa1b74bfe705e61c..908ed3114af973c41810fe4cd935e6b1e471969f 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_9_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_9_neg.ets @@ -18,12 +18,12 @@ function main(): void { let a: [number, string, FixedArray<...Int>] = [2, "a", 3]; } -/* @@? 18:29 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 18:40 Error SyntaxError: Invalid Type. */ -/* @@? 18:40 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 18:40 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:40 Error SyntaxError: Unexpected token '>'. */ -/* @@? 18:43 Error SyntaxError: Unexpected token 'Int'. */ -/* @@? 18:43 Error SyntaxError: Class cannot be used as object. */ -/* @@? 18:43 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 18:47 Error SyntaxError: Unexpected token ']'. */ +/* @@? 18:29 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 18:40 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:40 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 18:40 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:40 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 18:43 Error Syntax error ESY0227: Unexpected token 'Int'. */ +/* @@? 18:43 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 18:43 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 18:47 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets index 93fac978914f250b1021c0d0dbd1dfcc7e6efb10..a6850ba95e3ed021bd958d89c85c37295ae35bdb 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets @@ -51,10 +51,10 @@ function main() { arktest.assertEQ(/* @@ label8 */u.fld8, new Map()) } -/* @@@ label1 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label3 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label4 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label5 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label6 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label7 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label8 Error TypeError: Member type must be the same for all union objects. */ +/* @@@ label1 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label3 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label4 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label5 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label6 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label7 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label8 Error Semantic error ESE0244: Member type must be the same for all union objects. */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/union_array_declaration.ets b/ets2panda/test/ast/compiler/ets/FixedArray/union_array_declaration.ets index 2267536e3cfa78945984269dcbfb7dc39a339665..f53595c476b83817c502121b2cc7225edbf4bc9c 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/union_array_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/union_array_declaration.ets @@ -21,4 +21,4 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: Can't resolve array type */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0301: Can't resolve array type */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets b/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets index 3213a83ac10b83029e0ce7f1d4bfad9d552fa97a..4c70aaaa225a9fc861769bc3a881887d5c60027e 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets @@ -37,5 +37,5 @@ function main() { let a = (new A).b } -/* @@? 28:13 Error TypeError: Unresolved reference b */ -/* @@? 37:21 Error TypeError: Property 'b' does not exist on type 'A' */ +/* @@? 28:13 Error Semantic error ESE0143: Unresolved reference b */ +/* @@? 37:21 Error Semantic error ESE0087: Property 'b' does not exist on type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/variance_typeparam_array.ets b/ets2panda/test/ast/compiler/ets/FixedArray/variance_typeparam_array.ets index 99c81855b9888dc9d616455cf1a7d4a0939bc4f9..49e29f38cc68ce1e044597c935ea66a88a54f489 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/variance_typeparam_array.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/variance_typeparam_array.ets @@ -42,17 +42,17 @@ class A{ paramsFunc7(a:T1/* @@ label13 */[], b:T2/* @@ label14 */[], c:FixedArray){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label9 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label10 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label11 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label12 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label13 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label14 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label7 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label8 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label9 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label10 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label11 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label12 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label13 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label14 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ diff --git a/ets2panda/test/ast/compiler/ets/FunctionType10.ets b/ets2panda/test/ast/compiler/ets/FunctionType10.ets index fc1a41058c3a1591eeb1191af23770bbf55deb22..0f1aaccd7c8beadaef12b99286a8cb4656142e42 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType10.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType10.ets @@ -21,4 +21,4 @@ function main() { let goo : int = /* @@ label */foo } -/* @@@ label Error TypeError: Type '() => Int' cannot be assigned to type 'Int' */ +/* @@@ label Error Semantic error ESE0318: Type '() => Int' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/FunctionType3.ets b/ets2panda/test/ast/compiler/ets/FunctionType3.ets index 0e68f79c692c8675402c8406b4d827ad2a7c600e..94a44fd91a20f64e1e4b69e3f5dae955a2ec5e30 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType3.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType3.ets @@ -23,5 +23,5 @@ function main(): void { /* @@ label */func2()(1, /* @@ label1 */"foo"); } -/* @@@ label1 Error TypeError: Type '"foo"' is not compatible with type 'Int' at index 2 */ -/* @@@ label Error TypeError: No matching call signature for (Int, "foo") */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for (Int, "foo") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"foo"' is not compatible with type 'Int' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/FunctionType5.ets b/ets2panda/test/ast/compiler/ets/FunctionType5.ets index f2d64bff1f6a7a665a2b3a08019fd0d7fe6aa670..aa0ca543d1f1bb57db744e5832459b19b0e4d8c8 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType5.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType5.ets @@ -18,4 +18,4 @@ function foo (p: number){} let cb = foo; -/* @@? 19:10 Error TypeError: Overloaded method is used as value */ +/* @@? 19:10 Error Semantic error ESE0307: Overloaded method is used as value */ diff --git a/ets2panda/test/ast/compiler/ets/FunctionType9.ets b/ets2panda/test/ast/compiler/ets/FunctionType9.ets index d3da4e621a5f74b05c5b51622ef748656aa7af78..c6d6e96c4aaa9b1b3a7e40f30e036cba9f5ea5c5 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType9.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType9.ets @@ -27,4 +27,4 @@ function main(): void { instance./* @@ label */cb(1); } -/* @@@ label Error TypeError: Property cb is not visible here. */ +/* @@@ label Error Semantic error ESE0293: Property cb is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets b/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets index 3f64bda07d045c37056f9502464d36fbdcbcb0aa..4779c12c804bea8d3f729ea85a300d18e7809818 100644 --- a/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets +++ b/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets @@ -16,6 +16,6 @@ let f = ()=>int {} f() -/* @@? 16:13 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 16:13 Error TypeError: Unexpected return value, enclosing method return type is void. */ -/* @@? 16:17 Error SyntaxError: Unexpected token '{'. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 16:13 Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ +/* @@? 16:17 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/compiler/ets/Invalid_rest_element_wtih_tuple_type.ets b/ets2panda/test/ast/compiler/ets/Invalid_rest_element_wtih_tuple_type.ets index 2df27d5f56a862325f9c2a6c08f4187c54b23292..165bae167405143121bd18e547402a6670a27489 100644 --- a/ets2panda/test/ast/compiler/ets/Invalid_rest_element_wtih_tuple_type.ets +++ b/ets2panda/test/ast/compiler/ets/Invalid_rest_element_wtih_tuple_type.ets @@ -22,5 +22,5 @@ function main() { let mc = new TH } -/* @@? 17:38 Error TypeError: Cannot make a static reference to the non-static type B */ -/* @@? 17:41 Error TypeError: Cannot make a static reference to the non-static type C */ +/* @@? 22:44 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 23:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets b/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets index f5bc78e6d615240a3622f2d826156ced55b26ee5..2c4bb9bdd554022c4fdf490df2409b6a486d86d9 100755 --- a/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets +++ b/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets @@ -23,7 +23,4 @@ class C { (new C()).foo({v.r2} ) -/* @@? 23:1 Error TypeError: Expected 2 arguments, got 1. */ -/* @@? 23:1 Error TypeError: No matching call signature for foo(...) */ -/* @@? 23:15 Error TypeError: need to specify target type for class composite */ -/* @@? 23:17 Error SyntaxError: Unexpected token, expected ':'. */ +/* @@? 23:17 Error Syntax error ESY0228: Unexpected token, expected ':'. */ diff --git a/ets2panda/test/ast/compiler/ets/Non-static-private-method-used-as-val-neg.ets b/ets2panda/test/ast/compiler/ets/Non-static-private-method-used-as-val-neg.ets index afdeb06d9ddbae844c845b2f8fd740b281f6de5d..25f8b503234baca4fe64e596e602b574c5e59a85 100644 --- a/ets2panda/test/ast/compiler/ets/Non-static-private-method-used-as-val-neg.ets +++ b/ets2panda/test/ast/compiler/ets/Non-static-private-method-used-as-val-neg.ets @@ -25,4 +25,4 @@ class C { } } -/* @@@ label Error TypeError: Private method is used as value */ +/* @@@ label Error Semantic error ESE0306: Private method is used as value */ diff --git a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets index 0cae5d18a7c057823b44ef1ea811dea80572ef69..7b27e5a4a1eed7bd6811f9b2d1837c9ede975aa5 100644 --- a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets @@ -37,4 +37,4 @@ const router:RouterT = { -/* @@? 32:5 Error TypeError: Class or interface methods cannot be initialized within an object literal. */ +/* @@? 32:5 Error Semantic error ESE0074: Class or interface methods cannot be initialized within an object literal. */ diff --git a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets index 73db0e88aac5800417321f72e873488a0cc4d7e9..9bea24f05ec7446c276c6fdf6e5b4cc960ab4247 100644 --- a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets @@ -20,4 +20,4 @@ class A { let a:A = {back:()=>{}} -/* @@? 20:12 Error TypeError: Class or interface methods cannot be initialized within an object literal. */ +/* @@? 20:12 Error Semantic error ESE0074: Class or interface methods cannot be initialized within an object literal. */ diff --git a/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets b/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets index 26506215d980ea86deaaa9c63956a4cd8b396564..e6fbe2d192d3cdfbcb5b19665ccad311aecc7771 100755 --- a/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets +++ b/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets @@ -18,14 +18,13 @@ __empty = 1, } -/* @@? 16:2 Error SyntaxError: Unexpected token '%'. */ -/* @@? 16:4 Error SyntaxError: Unexpected token 'for'. */ -/* @@? 17:3 Error SyntaxError: Expected '(', got 'const'. */ -/* @@? 31:70 Error SyntaxError: Invalid left-hand side in 'for' statement: must have a single binding. */ -/* @@? 31:70 Error SyntaxError: Expected ';', got 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 31:70 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Expected '}', got 'end of stream'. */ \ No newline at end of file +/* @@? 16:2 Error Syntax error ESY0227: Unexpected token '%'. */ +/* @@? 16:4 Error Syntax error ESY0227: Unexpected token 'for'. */ +/* @@? 17:3 Error Syntax error ESY0230: Expected '(', got 'const'. */ +/* @@? 32:1 Error Syntax error ESY0211: Invalid left-hand side in 'for' statement: must have a single binding. */ +/* @@? 32:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 32:1 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 32:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 32:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 32:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 32:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_1.ets b/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_1.ets index 367544573fd5d6029d211b7044a177e3ef6c5fab..84d270ad375f69129f9c2c1aa95f01071e951e14 100644 --- a/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_1.ets +++ b/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_1.ets @@ -16,4 +16,4 @@ class A>{} class B{} class C extends A/* @@ label */{} -/* @@@ label Error TypeError: Type argument 'B' should be a subtype of 'A'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'B' should be a subtype of 'A'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_2.ets b/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_2.ets index da65d44cd5fef34d89df69ae4dfae461eb0e77c9..4c0b7dff7a19db8e13cc7aedb6113cf2c004634b 100644 --- a/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_2.ets +++ b/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_2.ets @@ -17,4 +17,4 @@ class A>{} class P2{} class P1 extends A/* @@ label */{} -/* @@@ label Error TypeError: Type argument 'P2' should be a subtype of 'A'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'P2' should be a subtype of 'A'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets b/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets index a9d2d105b913c887d1ca0200111656e03c392279..7e532178c8cc622bacaf69930c65a26a84435d94 100644 --- a/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets +++ b/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets @@ -18,6 +18,6 @@ function main() : void { /* @@ label2 */hehe } -/* @@@ label Error TypeError: Unresolved reference a */ -/* @@@ label1 Error TypeError: Unresolved reference b */ -/* @@@ label2 Error TypeError: Unresolved reference hehe */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference b */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference hehe */ diff --git a/ets2panda/test/ast/compiler/ets/absent_return_statement.ets b/ets2panda/test/ast/compiler/ets/absent_return_statement.ets index aff155f691dd2da0215b8f81f2894ac1aadac959..b4be9bef5b5cc49263ace84dc65b887662d944c8 100644 --- a/ets2panda/test/ast/compiler/ets/absent_return_statement.ets +++ b/ets2panda/test/ast/compiler/ets/absent_return_statement.ets @@ -37,9 +37,9 @@ function main(): void { foo2(() => /* @@ label6 */console.println("TEST")); } -/* @@@ label1 Error TypeError: Type 'C' is not compatible with the enclosing method's return type 'Int|String|undefined' */ -/* @@@ label2 Error TypeError: Type 'C' is not compatible with the enclosing method's return type 'Int|String|undefined' */ -/* @@@ label3 Error TypeError: Type 'C' is not compatible with the enclosing method's return type 'Int|String' */ -/* @@@ label4 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Int|String' */ -/* @@@ label5 Error TypeError: Type 'C' is not compatible with the enclosing method's return type 'Int|String' */ -/* @@@ label6 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Int|String' */ +/* @@@ label1 Error Semantic error ESE0091: Type 'C' is not compatible with the enclosing method's return type 'Int|String|undefined' */ +/* @@@ label2 Error Semantic error ESE0091: Type 'C' is not compatible with the enclosing method's return type 'Int|String|undefined' */ +/* @@@ label3 Error Semantic error ESE0091: Type 'C' is not compatible with the enclosing method's return type 'Int|String' */ +/* @@@ label4 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int|String' */ +/* @@@ label5 Error Semantic error ESE0091: Type 'C' is not compatible with the enclosing method's return type 'Int|String' */ +/* @@@ label6 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int|String' */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_function.ets b/ets2panda/test/ast/compiler/ets/ambient_function.ets index 7f20bea7e3be6d1b0e1abfbbdf848db4ecef2343..5b013dfbefa0066c65403a65e24d62519c0c31c2 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_function.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_function.ets @@ -24,5 +24,5 @@ function main() { capset(...(a1 ?? a2)); } -/* @@? 21:1 Error TypeError: Method declaration `capset` must all ambient or non-ambient */ -/* @@? 24:3 Error TypeError: This expression is not callable. */ +/* @@? 21:1 Error Semantic error ESE0399: Method declaration `capset` must all ambient or non-ambient */ +/* @@? 24:3 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets b/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets index 18ef053143ca187bfd39175f2cddfeaa705280ae..03de2b2b20f7db175f5af8ea893cfeb00e51d732 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets @@ -21,4 +21,4 @@ declare class A { // Extra empty line special for equal position like in file "ambient_indexer_2.ets" // #23399 Error almost has not ideal position, problem in generated code -/* @@? 19:5 Error TypeError: Cannot find type 'stringdd'. */ +/* @@? 19:5 Error Semantic error ESE0371: Cannot find type 'stringdd'. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets b/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets index c9c395e184ddb10beedab22dc3eb488cad068306..b06aecd93d608b2a22bef68398bbbb8dac069d58 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets @@ -20,4 +20,4 @@ declare class A { } // #23399 Error almost has not ideal position, problem in generated code -/* @@? 19:5 Error TypeError: Cannot find type 'stringdd'. */ +/* @@? 19:5 Error Semantic error ESE0371: Cannot find type 'stringdd'. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_indexer_multiple_dummy_nodes.ets b/ets2panda/test/ast/compiler/ets/ambient_indexer_multiple_dummy_nodes.ets index 139fe4e7de49136400150be3bf3027041e294ed2..c4920cdd3e440dc387293f0783312d7bfb441625 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_indexer_multiple_dummy_nodes.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_indexer_multiple_dummy_nodes.ets @@ -23,4 +23,4 @@ declare namespace JSX { } } -/* @@? 20:30 Error TypeError: Only one index signature is allowed in a class or interface. */ +/* @@? 20:30 Error Semantic error ESE0000: Only one index signature is allowed in a class or interface. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_interface/use_interface.ets b/ets2panda/test/ast/compiler/ets/ambient_interface/use_interface.ets index 04da0b06fb01f50522fe7cf38e0846bd91dec31a..c3449ac3f49636a6420143db8a41e3231d1dc76a 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_interface/use_interface.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_interface/use_interface.ets @@ -23,4 +23,4 @@ class B { } } -/* @@@ label Error TypeError: Property 'a' might not have been initialized. */ +/* @@@ label Error Semantic error ESE0280: Property 'a' might not have been initialized. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets b/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets index a644ed266b136953fb5ea75e0977aafe8a39f8f2..7f0d0e11613a5d2a5a5ce7411c4fd6538ff91401 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets @@ -25,8 +25,8 @@ interface YYY { default baz(): void {} } -/* @@? 17:36 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 20:26 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 24:7 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 24:18 Error SyntaxError: Private interface methods must have body. */ -/* @@? 25:7 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:36 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 20:26 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 24:7 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 24:18 Error Syntax error ESY0032: Private interface methods must have body. */ +/* @@? 25:7 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets index 089b58848d9657ee65e50f15476e962504aedf12..6e0a85d5e56f069a0e3cf988af00a1ec3e68c1f0 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets @@ -18,5 +18,5 @@ declare namespace MySpace{ function bar() } -/* @@? 17:25 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 18:14 Error TypeError: Native and Declare methods should have explicit return type. */ \ No newline at end of file +/* @@? 17:25 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 18:14 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets index 172846252da1d1e3eb84c16f197b37a7d25dfb97..b67f367ffaaf436b844a8c88e157772a98430272 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets @@ -19,5 +19,5 @@ declare namespace MySpace{ } } -/* @@? 19:5 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 18:17 Error TypeError: Initializers are not allowed in ambient contexts: a */ +/* @@? 18:17 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: a */ +/* @@? 19:5 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets index 54ec3ecb64138dbb0058b11a67f065ac127d8860..76611afcedcdb2d531bd32a26526d52871f485dc 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets @@ -20,5 +20,5 @@ declare namespace MySpace{ } } -/* @@? 18:20 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 19:12 Error TypeError: Native and Declare methods should have explicit return type. */ \ No newline at end of file +/* @@? 18:20 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 19:12 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets index 22b20fdb661e543f2e6a4d3b3d7eb7921f2704b1..2cda41bed4bfa8d2a7afc506e59dcdf556a2fa6e 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets @@ -20,5 +20,5 @@ declare namespace MySpace{ } } -/* @@? 18:20 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 19:9 Error TypeError: Native and Declare methods should have explicit return type. */ \ No newline at end of file +/* @@? 18:20 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 19:9 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets index 99d90aafe35fc8c64fa4532dcb03d29bcf12c575..654789c244a09c8ebf01402ecde41bca39af889b 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets @@ -19,7 +19,7 @@ declare namespace MySpace{ } } -/* @@? 18:15 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 18:17 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:17 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 19:5 Error SyntaxError: Identifier expected. */ +/* @@? 18:15 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 18:17 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:17 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 19:5 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets index 0a5814bdbae639d25308df75578c5f8ec409c59f..17f5fa10dd788cb7fe34fb55767daf287cee45b4 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets @@ -23,5 +23,5 @@ declare namespace MySpace{ authorName: string = "Jima" } -/* @@? 23:26 Error TypeError: The initial value does not match the expected value. */ -/* @@? 23:5 Error TypeError: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@? 23:5 Error Semantic error ESE0039: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@? 23:26 Error Semantic error ESE0036: The initial value does not match the expected value. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets index 94b0e3aa73a923e86f92e2591eaa954946c8ea5e..78c1efc46242320e4ff2db8ae62bcf153d3e8e93 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets @@ -20,5 +20,5 @@ declare namespace A.B.C{ } } -/* @@? 20:5 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 19:17 Error TypeError: Initializers are not allowed in ambient contexts: a */ +/* @@? 19:17 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: a */ +/* @@? 20:5 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/compiler/ets/ambient_struct/declare_struct.d.ets b/ets2panda/test/ast/compiler/ets/ambient_struct/declare_struct.d.ets index 820aa91867dd36de5024171926e11f96c67cc5bd..a62f69b87553fdb05c227412cbc0cd4e940bae33 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_struct/declare_struct.d.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_struct/declare_struct.d.ets @@ -18,4 +18,4 @@ export declare struct Point2D { y: number; } -/* @@? 16:16 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:16 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets b/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets index 0b8027d62db380e7bd44dc4c3a726376ce6a802a..2037c6ace467ec106cf8a6faa1c740b13e547442 100644 --- a/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets +++ b/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets @@ -23,4 +23,4 @@ function foo(a : int, b:int, c:int = 10) : string return "aaaa"; } -/* @@? 21:1 Error TypeError: Function foo is already declared. */ \ No newline at end of file +/* @@? 21:1 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/anno_required_fields.ets b/ets2panda/test/ast/compiler/ets/anno_required_fields.ets index 3791299398ac689ef2f36c845c9db3fd5315a60a..02a90681bd547c7e73e9fd02098287f94082d96f 100644 --- a/ets2panda/test/ast/compiler/ets/anno_required_fields.ets +++ b/ets2panda/test/ast/compiler/ets/anno_required_fields.ets @@ -22,6 +22,6 @@ @ClassAuthor function main() {} -/* @@? 16:12 Error TypeError: Cannot find type 'AnnoSrc'. */ -/* @@? 16:20 Error TypeError: 'ClassAuthor' type does not exist. */ -/* @@? 17:29 Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ +/* @@? 16:12 Error Semantic error ESE0371: Cannot find type 'AnnoSrc'. */ +/* @@? 16:20 Error Semantic error ESE0070: 'ClassAuthor' type does not exist. */ +/* @@? 17:29 Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_decl_dot_empty.ets b/ets2panda/test/ast/compiler/ets/annotation_decl_dot_empty.ets index c077a76fd0de0cd1798da4d69b10e1ffa6f67022..bf494e758146f49398080cfd0d071e53ce02cdee 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_decl_dot_empty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_decl_dot_empty.ets @@ -17,5 +17,5 @@ { } -/* @@? 16:12 Error SyntaxError: Invalid annotation name. */ -/* @@? 17:1 Error SyntaxError: Identifier expected. */ +/* @@? 16:12 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 17:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_dot_with_empty.ets b/ets2panda/test/ast/compiler/ets/annotation_dot_with_empty.ets index 195205770f44ca73bc0d7620e1f006014838e9d9..2d0c6d6189e274d5a5558a287f0fdb6295e6694b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_dot_with_empty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_dot_with_empty.ets @@ -18,6 +18,6 @@ class MyTest { private property1; } -/* @@? 17:6 Error SyntaxError: Invalid annotation name. */ -/* @@? 18:5 Error SyntaxError: Identifier expected. */ -/* @@? 18:22 Error SyntaxError: Field type annotation expected. */ +/* @@? 17:6 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 18:5 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:22 Error Syntax error ESY0121: Field type annotation expected. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/Retension_invalid_params.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/Retension_invalid_params.ets index c3ec1fa0a18f3dc1d24d5cc9dc8f0d3b8556dbd8..b75bf7466b2d127e6e69ea5968049a1fa67e7e08 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/Retension_invalid_params.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/Retension_invalid_params.ets @@ -18,7 +18,7 @@ } -/* @@? 16:12 Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 16:12 Error TypeError: Invalid value for 'policy' field. The policy must be one of the following:'SOURCE', 'CLASS', or 'RUNTIME'. */ -/* @@? 16:12 Error TypeError: Unresolved reference policy */ -/* @@? 16:12 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@? 16:12 Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ +/* @@? 16:12 Error Semantic error ESE0004: Invalid value for 'policy' field. The policy must be one of the following:'SOURCE', 'CLASS', or 'RUNTIME'. */ +/* @@? 16:12 Error Semantic error ESE0143: Unresolved reference policy */ +/* @@? 16:12 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/Retentions_missing_arguments.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/Retentions_missing_arguments.ets index a70e5c0416b498469a072a4ba109b1167824624b..bcf4dd7e5479b3ef5e71dd2e5736c77bae891bb4 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/Retentions_missing_arguments.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/Retentions_missing_arguments.ets @@ -20,5 +20,5 @@ @/* @@ label1 */Retention({policy:"BYTECODE", a:1}) @interface ClassAuthor {} -/* @@@ label Error TypeError: The required field 'policy' must be specified. Fields without default values cannot be omitted. */ -/* @@@ label1 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label Error Semantic error ESE0044: The required field 'policy' must be specified. Fields without default values cannot be omitted. */ +/* @@@ label1 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type01.ets index 60dcc4d0140383b1ae6b9dbb6c82999b5aff68aa..10a6e06f00647a60a006014abd17e9eec74008c0 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type01.ets @@ -31,23 +31,23 @@ import * as Src from "./annotation_src" ] } -/* @@@ label1 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label Error TypeError: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label3 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label2 Error TypeError: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label5 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label4 Error TypeError: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label7 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label6 Error TypeError: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label10 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label9 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label8 Error TypeError: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label13 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label12 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label11 Error TypeError: Initializer for field 'reviewers' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label16 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label15 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label14 Error TypeError: Initializer for field 'reviewersAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label19 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label18 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label17 Error TypeError: Initializer for field 'testBools' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0039: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label1 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label2 Error Semantic error ESE0039: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label3 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label4 Error Semantic error ESE0039: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label5 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label6 Error Semantic error ESE0039: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label7 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label8 Error Semantic error ESE0039: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label9 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label10 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label11 Error Semantic error ESE0039: Initializer for field 'reviewers' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label12 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label13 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label14 Error Semantic error ESE0039: Initializer for field 'reviewersAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label15 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label16 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label17 Error Semantic error ESE0039: Initializer for field 'testBools' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label18 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label19 Error Semantic error ESE0036: The initial value does not match the expected value. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type02.ets index 9d4d6a8a2d00caf4034e0791dae2f7e10ee09f12..6acac2bedf94d8dbe01d8780f319aaf3654b7ff7 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type02.ets @@ -31,11 +31,11 @@ import {ClassAuthor, Color} from "./annotation_src" ] } -/* @@@ label1 Error TypeError: Field 'authorAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ -/* @@@ label2 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label Error TypeError: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label4 Error TypeError: Field 'testBool' has a type mismatch with the ambient annotation 'ClassAuthor'. */ -/* @@@ label3 Error TypeError: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label5 Error TypeError: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label6 Error TypeError: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label7 Error TypeError: Field 'reviewersAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0039: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label1 Error Semantic error ESE0038: Field 'authorAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ +/* @@@ label2 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label3 Error Semantic error ESE0039: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label4 Error Semantic error ESE0038: Field 'testBool' has a type mismatch with the ambient annotation 'ClassAuthor'. */ +/* @@@ label5 Error Semantic error ESE0039: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label6 Error Semantic error ESE0039: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label7 Error Semantic error ESE0038: Field 'reviewersAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type03.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type03.ets index b72bc307838e40a7087677e9d84c6cf7ab3628bf..910ef94ec654d13f6f74671c4b7892655bf495dc 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type03.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type03.ets @@ -18,12 +18,12 @@ import {ClassAuthor, Color} from "./annotation_src" @interface ClassAuthor { } -/* @@? 18:2 Error TypeError: Field 'mutiArray' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'color' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'testBools' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'reviewers' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'favorColor' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'testBool' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'reviewersAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'authorAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'authorName' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ \ No newline at end of file +/* @@? 18:2 Error Semantic error ESE0040: Field 'mutiArray' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'color' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'testBools' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'reviewers' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'favorColor' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'testBool' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'reviewersAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'authorAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'authorName' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer07.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer07.ets index 9b170e888b1c7e14717e634036f5d76f7881deff..e2420a768c6688d99644884d286f65ef389d7d66 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer07.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer07.ets @@ -23,5 +23,5 @@ class A{ testProperty2: string = /* @@ label1 */A.b } -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label1 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label1 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer08.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer08.ets index c335fe0f2846c1ea791650c37ac10398b1a8de88..6282532627bbd0de386c90d7d26e39e558165113 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer08.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer08.ets @@ -24,10 +24,10 @@ enum Size{S, M, L, XL, XXL} testProperty5: Size[] = [Color.GREEN, Color.BLUE] } -/* @@? 20:29 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 21:30 Error TypeError: Type '"false"' cannot be assigned to type 'Boolean' */ -/* @@? 22:29 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 22:34 Error TypeError: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 23:28 Error TypeError: Type 'Size' cannot be assigned to type 'Color' */ -/* @@? 24:30 Error TypeError: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ -/* @@? 24:43 Error TypeError: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 20:29 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 21:30 Error Semantic error ESE0318: Type '"false"' cannot be assigned to type 'Boolean' */ +/* @@? 22:29 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 22:34 Error Semantic error ESE0227: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 23:28 Error Semantic error ESE0318: Type 'Size' cannot be assigned to type 'Color' */ +/* @@? 24:30 Error Semantic error ESE0227: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 24:43 Error Semantic error ESE0227: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_type.ets index aa59307bf838dfe22ac9bb991790d5574e80bbef..e6c3d27af325536efe6e38a78c294c292e20936b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_type.ets @@ -20,5 +20,5 @@ class OtherType{} /* @@ label1 */testProperty3: [int ,number, string] } -/* @@@ label Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ -/* @@@ label1 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ +/* @@@ label1 Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type01.ets index 861565a709b38982a256471866ab7299ac288c1f..f94a1e9f1d3209804c271f94fe6ed9532f7bad5e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type01.ets @@ -18,4 +18,4 @@ let a = new MyAnno() -/* @@? 19:13 Error TypeError: Annotations cannot be used as a type. */ +/* @@? 19:13 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type02.ets index d631b44dd41ff3f20319a71e0d016acd9f3d72fd..139cca2f4e76e92acb80c6ccb2f38f0357dfe408 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type02.ets @@ -20,8 +20,8 @@ class A extends MyAnno{} class B implements MyAnno{} type C = MyAnno -/* @@? 19:17 Error TypeError: Annotations cannot be used as a type. */ -/* @@? 19:17 Error TypeError: The super type of 'A' class is not extensible. */ -/* @@? 20:20 Error TypeError: Annotations cannot be used as a type. */ -/* @@? 20:20 Error TypeError: Interface expected here. */ -/* @@? 21:10 Error TypeError: Annotations cannot be used as a type. */ \ No newline at end of file +/* @@? 19:17 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@? 19:17 Error Semantic error ESE0176: The super type of 'A' class is not extensible. */ +/* @@? 20:20 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@? 20:20 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 21:10 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type03.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type03.ets index b9d2af1f4a56fc8d12325b9a974c73083b4d9f99..b745472824c3c7fc8fb53fd89c17f70f5de21c18 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type03.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type03.ets @@ -20,5 +20,5 @@ function foo(a:T){} let array:Array = new Array() -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type04.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type04.ets index ecdc92d3a2f760e3483880ac749ef1f6fab131c7..f22350ed587804ff768208f5b71d658c446888ff 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type04.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type04.ets @@ -20,5 +20,5 @@ function foo(a:T){} foo(new /* @@ label1 */MyAnno()) -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type05.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type05.ets index adaee52bb8d1351a0c2eccb29baf7b60b0863d03..a337a1de4692b30ddfe1ccc5c3b2fdf27e76dda1 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type05.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type05.ets @@ -22,4 +22,4 @@ class A{ new A() -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type06.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type06.ets index 675316d9281ea0ead2ab6ffd4961d9e010bf8ae2..82ae7a5aff0d6d5a1977002abaa0233d4ca2b9f7 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type06.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type06.ets @@ -21,6 +21,6 @@ function foo2(): /* @@ label1 */MyAnno {} foo1(new /* @@ label2 */MyAnno()) -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label2 Error TypeError: Annotations cannot be used as a type. */ +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label2 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type07.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type07.ets index 221da8071693d1f36fed851316b2986c8c97d1c9..54adec91c70b79a5231038744b0194741ad45472 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type07.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type07.ets @@ -23,7 +23,7 @@ class A{ let tuple:[int, string, /* @@ label1 */MyAnno] = [1, "1", new /* @@ label2 */MyAnno()] let union:int|string|/* @@ label3 */MyAnno = 1 -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label3 Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label2 Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label2 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label3 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type08.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type08.ets index f7a4b6dbe64a459e1ef00fcbeacc63535d9cbbab..ebb676fe55aaaaeb28d4f99263dbd10114b64d7a 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type08.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type08.ets @@ -19,5 +19,5 @@ let foo1:(a:/* @@ label */MyAnno)=>int let foo2:()=>/* @@ label1 */MyAnno -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type09.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type09.ets index 0aaa1cd95c12b46781c38e8fe04323d9b3e4cfbf..aa85dff80e9a2acbbdc5490d3279ff6d950fcd04 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type09.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type09.ets @@ -18,4 +18,4 @@ let a = 1 as MyAnno -/* @@? 19:14 Error TypeError: Annotations cannot be used as a type. */ +/* @@? 19:14 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type10.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type10.ets index 679bc167bba7eab61aa615a498bfb4e53ad0b137..1ed5820c702ec648d53b56a9de2d572455d9dca7 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type10.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type10.ets @@ -18,5 +18,4 @@ let a = 1 instanceof MyAnno -/* @@? 19:22 Error TypeError: Annotations cannot be used as a type. */ -/* @@? 19:22 Error TypeError: Annotations cannot be used as a type. */ \ No newline at end of file +/* @@? 19:22 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type11.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type11.ets index 1d1235096c154b8e474dc25b3597b96f2a70c553..375a05639cd3c7a9e82ce603ce977290e199bc9c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type11.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type11.ets @@ -18,4 +18,4 @@ let a = MyAnno.a -/* @@? 19:9 Error TypeError: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:9 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type12.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type12.ets index ed071143292c2638f8ee876afc66d756c09ee89d..de5cc79b0c5f968be3f358bc18644b0b1c36116c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type12.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type12.ets @@ -18,5 +18,7 @@ let a = /* @@ label */MyAnno -/* @@@ label Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@@ label Error TypeError: Annotation name 'MyAnno' used in the wrong context */ +/* @@@ label Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@@ label Error Semantic error ESE0144: Annotation name 'MyAnno' used in the wrong context */ +/* @@@ label Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@@ label Error Semantic error ESE0144: Annotation name 'MyAnno' used in the wrong context */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type13.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type13.ets index efb0463c50ae8b41d96b34c00ac916c776b61094..3faf1f991963196bf299aba23e4c9a54dfa5c1c5 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type13.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type13.ets @@ -20,5 +20,4 @@ class MyAnno { @/* @@ label */MyAnno() class B{} -/* @@@ label Error TypeError: 'MyAnno' is not an annotation. */ - +/* @@@ label Error Semantic error ESE0067: 'MyAnno' is not an annotation. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type14.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type14.ets index 9603498b7cb79d4c220c0845929b5a0337fa6364..ee43afbaab5d878bce2fce9db485f5e054fa247b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type14.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type14.ets @@ -18,5 +18,5 @@ function foo(a: /* @@ label1 */Anno) {} -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param07.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param07.ets index 4904fabba8dc0563e96c421d11cf98646aecb271..ef68e7d02cb5e95e30028d8feae3ce3cf5793fc5 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param07.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param07.ets @@ -21,5 +21,5 @@ @MyAnno({testProperty1: /* @@ label */1, testProperty2: /* @@ label1 */""}) function foo(){} -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@@ label1 Error TypeError: Type '""' cannot be assigned to type 'Double' */ +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label1 Error Semantic error ESE0318: Type '""' cannot be assigned to type 'Double' */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param08.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param08.ets index 7057a18a74f952aed15ba4b303e969255fe19f12..a676677faab846f4651edebeeabfb4fc1cc89b5d 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param08.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param08.ets @@ -21,7 +21,7 @@ @MyAnno({a: 1, b: ""}) class B{} -/* @@? 21:10 Error TypeError: The parameter 'a' does not match any declared property in the annotation 'MyAnno'. */ -/* @@? 21:16 Error TypeError: The parameter 'b' does not match any declared property in the annotation 'MyAnno'. */ -/* @@? 21:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 21:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 21:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 21:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 21:10 Error Semantic error ESE0045: The parameter 'a' does not match any declared property in the annotation 'MyAnno'. */ +/* @@? 21:16 Error Semantic error ESE0045: The parameter 'b' does not match any declared property in the annotation 'MyAnno'. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param09.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param09.ets index 09bee29a1d203e45cb26694b97b25261d2408a33..9f3cd4cea8d5f52d91f7b639dc2ff6ec952b8fed 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param09.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param09.ets @@ -35,10 +35,10 @@ class B{ foo(){} } -/* @@? 29:24 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 30:24 Error TypeError: Type '"false"' cannot be assigned to type 'Boolean' */ -/* @@? 31:25 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 31:30 Error TypeError: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 32:24 Error TypeError: Type 'Size' cannot be assigned to type 'Color' */ -/* @@? 33:25 Error TypeError: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ -/* @@? 33:38 Error TypeError: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 29:24 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 30:24 Error Semantic error ESE0318: Type '"false"' cannot be assigned to type 'Boolean' */ +/* @@? 31:25 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 31:30 Error Semantic error ESE0227: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 32:24 Error Semantic error ESE0318: Type 'Size' cannot be assigned to type 'Color' */ +/* @@? 33:25 Error Semantic error ESE0227: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 33:38 Error Semantic error ESE0227: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param10.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param10.ets index 0ed48bd82f40438183f2c9e26e720230450fa3a9..785272437ecdfa3492fffddad1d5b6273f8b42df 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param10.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param10.ets @@ -28,5 +28,5 @@ class B{ foo(){} } -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label1 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label1 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace01.ets index c3335a857ff5e988a95c9add1e5a91b6f98bff50..f7721886634efc4100bbece27bbf3731cf12b706 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace01.ets @@ -24,5 +24,5 @@ namespace A{ namespace B{} } -/* @@? 24:5 Error SyntaxError: Unable to merge namespaces 'B', because their modifiers are different. */ -/* @@? 24:5 Error SyntaxError: Annotation conflict! Multiple namespace declarations for 'B' cannot each have annotations. */ \ No newline at end of file +/* @@? 24:5 Error Syntax error ESY0006: Unable to merge namespaces 'B', because their modifiers are different. */ +/* @@? 24:5 Error Syntax error ESY0007: Annotation conflict! Multiple namespace declarations for 'B' cannot each have annotations. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace02.ets index 0065afc8770b547f8c9f7cb22596daa6a50ca7b2..f1ff69d56ad5110b75a425688893b85599af0c53 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace02.ets @@ -24,5 +24,5 @@ namespace A{ @Anno1 namespace A.B{} -/* @@? 25:13 Error SyntaxError: Unable to merge namespaces 'B', because their modifiers are different. */ -/* @@? 25:13 Error SyntaxError: Annotation conflict! Multiple namespace declarations for 'B' cannot each have annotations. */ \ No newline at end of file +/* @@? 25:13 Error Syntax error ESY0006: Unable to merge namespaces 'B', because their modifiers are different. */ +/* @@? 25:13 Error Syntax error ESY0007: Annotation conflict! Multiple namespace declarations for 'B' cannot each have annotations. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_classproperty.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_classproperty.ets index d1da4595c85c2c0087bce7b65e206f17f207cbc1..bcda8790b130ef615478b73d6d091f15865c176a 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_classproperty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_classproperty.ets @@ -25,4 +25,4 @@ class A{ x : int } -/* @@? 24:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 24:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interface.ets index 0715143054006be11fe77dd5bbcf0cd36a6de7e9..87027186981924e50fce0f9165c2ebed44f59f1a 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interface.ets @@ -22,4 +22,4 @@ interface itf { } -/* @@? 21:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 21:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfacemethod.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfacemethod.ets index 007968fca2a3fcc1d3e464e69cd005fb44081a06..b23a05b0526cf48353dce06849ca99a0f4527e29 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfacemethod.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfacemethod.ets @@ -23,4 +23,4 @@ interface itf { foo() : void } -/* @@? 22:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 22:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfaceproperty.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfaceproperty.ets index cd013b0eafd30ae7058b13ba5406f0e0f30f9f06..fb983019b690bd5adf21d532583573f62c767afe 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfaceproperty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfaceproperty.ets @@ -23,4 +23,4 @@ interface itf { x : int } -/* @@? 22:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 22:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace01.ets index e47cab81814b4d451cada1bfe65d6c4d09c497b8..50e0c6ca52d76a146ab497b31943e34e2eee5391 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace01.ets @@ -29,6 +29,6 @@ namespace A{ namespace C{} } -/* @@? 25:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno2' has already been applied to this element. */ -/* @@? 21:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno1' has already been applied to this element. */ -/* @@? 28:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno3' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno1' has already been applied to this element. */ +/* @@? 25:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno2' has already been applied to this element. */ +/* @@? 28:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno3' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace02.ets index ac45d448f60b64a98821de0ce42652fafcf50da4..bf2c0e9f855aab7605bcc5fcbafa649941f9dfb3 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace02.ets @@ -29,6 +29,6 @@ namespace A{ @Anno1 namespace A.B{} -/* @@? 21:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno2' has already been applied to this element. */ -/* @@? 24:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno3' has already been applied to this element. */ -/* @@? 29:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno1' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno2' has already been applied to this element. */ +/* @@? 24:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno3' has already been applied to this element. */ +/* @@? 29:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno1' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_type_alias.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_type_alias.ets index 318d48b7e876925cdeeb4d81968474c91f0036a2..dd1cac596c0acd3694303bf7e9aafbb94bcc0a0e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_type_alias.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_type_alias.ets @@ -29,6 +29,6 @@ function main() : void { type t2 = Array } -/* @@? 23:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ -/* @@? 29:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 29:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@? 23:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 29:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 29:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_variable_decl.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_variable_decl.ets index a3d0435da084681a3f71479106fb559908b98a97..84f196f3281bbf159cb007691942ed06944df2e4 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_variable_decl.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_variable_decl.ets @@ -29,5 +29,5 @@ function main() : void { let x2 = 1, y2 = "abc" } -/* @@? 23:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ -/* @@? 28:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 23:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 28:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_from_import.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_from_import.ets index 8128b27304be05d45b385093f698b6bd98d2b6d4..4046306e0c8b99f786837b4733c9d31c8b433fd7 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_from_import.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_from_import.ets @@ -19,4 +19,4 @@ class A{ @/* @@ label */MyAnno foo(){} } -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_class.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_class.ets index 3a7a02542ce44f533d9056df91a6f4fd36ef887a..5d1337effd88ba6c033bd799902bcfa6cc5b049c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_class.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_class.ets @@ -21,4 +21,4 @@ @/* @@ label */MyAnno({testProperty1: "Jim", testProperty2: 0}) class A{} -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_extension_lambda.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_extension_lambda.ets index 025b88d8e8e040134856aa20c860271ac76c64c1..301db5fa8aaf793ae0a3f7001f74bc663de24c7a 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_extension_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_extension_lambda.ets @@ -21,4 +21,4 @@ let a = new A(); let show = @Anno()@/* @@ label */Anno(this: A): string => { return "Hello," + this.name; } -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_function.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_function.ets index 73ec9f1bdd1bf86a19a29a03061e439c7ef1186d..36e304bc843043b42f64f1bc137a0055c33fee16 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_function.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_function.ets @@ -22,4 +22,4 @@ function foo(): void { } -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_method.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_method.ets index 3f36568887645dde04e52a3a48e6622bbc7f5602..92c800caeaca59d71c29f9c56f216778570b8650 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_method.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_method.ets @@ -25,4 +25,4 @@ class A{ } -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param01.ets index 77a16bcf5101b82d346a707cc6f1ccde0f39a1bd..dcd888f32a7daaf8a7b94cde98525503b79b857e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param01.ets @@ -24,5 +24,5 @@ class B{ foo(){} } -/* @@@ label Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@@ label1 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label1 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param02.ets index 8344afea93c1c831635111748b5248daf493d38d..8a050e028276b7a46f444e2737e904d1138a98ae 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param02.ets @@ -23,5 +23,5 @@ class B{ foo(){} } -/* @@@ label Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@@ label1 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label1 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_classproperty.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_classproperty.ets index e08d9ff87a54798236d71c11a31296fc4b07a444..de6c3fe74f73e40552d6c3e6b10575a50600ae87 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_classproperty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_classproperty.ets @@ -26,5 +26,5 @@ class B{ y : string } -/* @@? 23:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 25:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 23:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 25:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_function_param.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_function_param.ets index 6cfc76a698fdfed6a3a1a799d5ba11c2088f6c5e..d2fb0d551332f821dc52444c45a101facfdffd5e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_function_param.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_function_param.ets @@ -24,5 +24,5 @@ function foo(@MyAnno({testProperty1:"", testProperty2: "", testProperty3: "", te } -/* @@? 22:15 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 23:15 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 22:15 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 23:15 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_interface.ets index a5ac15f1c758258672c4dbbbb51ed6e1bc7d6472..9bc8fc0dd65e9533415642146d05f75d8a0538e6 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_interface.ets @@ -26,6 +26,6 @@ interface itf { x : int } -/* @@? 21:2 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 23:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 25:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 21:2 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 23:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 25:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_type_alias.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_type_alias.ets index b8246ab8f008ab81bbcd1abfc1e3f8f5f6184deb..c407028dc8df81892b3da3c4eebf998efa187a9b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_type_alias.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_type_alias.ets @@ -27,6 +27,6 @@ function main() : void { type t2 = Array } -/* @@? 22:2 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 27:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 27:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@? 22:2 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 27:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 27:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_variable_decl.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_variable_decl.ets index a3ac67098cce5e025339f37cc8b942c6eba46624..a73e99677277421ddb5f32b305bfcc1028a6751a 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_variable_decl.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_variable_decl.ets @@ -27,5 +27,5 @@ function main() : void { let x2 = 1, y2 = "abc" } -/* @@? 22:2 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 26:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 22:2 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 26:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT01.ets index 3c29581eb4b8714e7fe961b693787330540e4292..704d99c83c423d7c2fa86844b96ed51822ab161e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT01.ets @@ -23,7 +23,7 @@ MyAnno({testProperty1: ""}) class A{ } -/* @@? 19:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ -/* @@? 22:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 22:1 Error TypeError: This expression is not callable. */ +/* @@? 19:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 22:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 22:1 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT02.ets index e3162c42f3bb501dd8d68d23e8393eea88699497..74be444f9e7a3b8280d197b671f8e3b76a6472ad 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT02.ets @@ -18,5 +18,5 @@ /* @@ label */MyAnno function foo(): void {} -/* @@@ label Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@@ label Error TypeError: Annotation name 'MyAnno' used in the wrong context */ +/* @@@ label Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@@ label Error Semantic error ESE0144: Annotation name 'MyAnno' used in the wrong context */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_interface.ets index 76f61f04c635956ca931321b0d9bb153b13ea993..7e555506e83797fa982cf01fee68d56ccfb4d3b4 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_interface.ets @@ -20,5 +20,5 @@ MyAnno({testProperty1: ""}) interface itf { } -/* @@? 19:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ +/* @@? 19:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_type_alias.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_type_alias.ets index c982341bff8d803ae9a8aff184fecbd7418c7087..f0084b0fb3c463ab3f9505a25ccc67fb0a75ea4a 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_type_alias.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_type_alias.ets @@ -25,8 +25,8 @@ function main() : void { } -/* @@? 19:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ -/* @@? 23:5 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 23:5 Error TypeError: This expression is not callable. */ -/* @@? 24:5 Error SyntaxError: Illegal start of Type Alias expression. */ +/* @@? 19:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 23:5 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 23:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 24:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_variable_decl.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_variable_decl.ets index e7c5570d89221e76c29dd17318d9d3baa8b179c4..7c0796ced0afc75079ace66b4c56fee99a82ccde 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_variable_decl.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_variable_decl.ets @@ -24,7 +24,7 @@ function main() : void { let x2 = 1, y2 = 2 } -/* @@? 19:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ -/* @@? 23:5 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 23:5 Error TypeError: This expression is not callable. */ +/* @@? 19:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 23:5 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 23:5 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements01.ets index 5ebc2607278b77d7889e53ad8c7f857012f714b5..14b9e2a26835124fd9359844345d82d3cc9a4d26 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements01.ets @@ -20,5 +20,5 @@ @MyAnno function foo(): void {} -/* @@? 20:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 20:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ \ No newline at end of file +/* @@? 20:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 20:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements02.ets index 9b67fdac385f25a323a5fd5bfba3209a531f76b4..61f84eee771d9b96379bbe0ad318161de6ea485a 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements02.ets @@ -26,7 +26,7 @@ class A{ foo2(){} } -/* @@? 20:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 23:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 23:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:6 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ \ No newline at end of file +/* @@? 20:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 23:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 23:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:6 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_classproperty.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_classproperty.ets index 3718ea2073e529324b71f51fa9baa523d58648ad..c07c3a67bc511560ab7699d35dd33bbad0de47a3 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_classproperty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_classproperty.ets @@ -26,5 +26,5 @@ class B{ y0 : string } -/* @@? 23:6 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:6 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 23:6 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:6 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_function_param.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_function_param.ets index 10e1fbd162326c8c3d45f474706bab978ed88682..6b148365f5e86a384bb3b6b37437cd73ccb98e3b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_function_param.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_function_param.ets @@ -25,8 +25,8 @@ function foo0(@MyAnno x: int, @MyAnno({testProperty2: ""}) y: string = "a") { function foo1(@MyAnno({testProperty1: ""}) x: int, @MyAnno({testProperty2: ""}) y: string = "a") { } -/* @@? 22:16 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 22:16 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 22:32 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:16 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:53 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:16 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:16 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:32 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:16 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:53 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_interface.ets index 5e990b139a3fe68e5975d037d1653c3242a9a392..ab000c9c1d9cf586050a7dd63da198f98cd952ef 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_interface.ets @@ -26,6 +26,6 @@ interface itf { x : int } -/* @@? 21:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 23:6 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:6 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 21:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 23:6 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:6 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_type_alias.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_type_alias.ets index 0889f68c3eaa1a4fe448bf9a706a1643d78eb5d8..2ab1e8f40f9c094aeaa0a90e2cdd957e79522477 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_type_alias.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_type_alias.ets @@ -27,6 +27,6 @@ function main() : void { type t2 = Array } -/* @@? 22:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 27:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 27:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 27:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 27:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_variable_decl.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_variable_decl.ets index f2b703a98ffe5df0506fa46315308f4bd517038b..d051a96f9f2524da1e1685deaa68e88ce10fb8da 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_variable_decl.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_variable_decl.ets @@ -27,6 +27,8 @@ function main() : void { let x2 = 1, y2 = "abc" } -/* @@? 22:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 22:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 26:6 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 26:6 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_unordered_params.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_unordered_params.ets index a61fa5db89ba7c8fdc995bfa8a46a71a38382d95..9b2ec32502795ae7992688e7aba99ffe9e81c6ff 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_unordered_params.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_unordered_params.ets @@ -21,5 +21,5 @@ @MyAnno({testProperty2: /* @@ label */"Bob", testProperty1: /* @@ label1 */1}) class A{} -/* @@@ label Error TypeError: Type '"Bob"' cannot be assigned to type 'Double' */ -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type '"Bob"' cannot be assigned to type 'Double' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_and_class_with_same_name.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_and_class_with_same_name.ets index 28d6784792ee058afcb2e5e01cb887efc981acf4..767d90c0b9d41fbcfab9b1361a6cd0633aa913d4 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_and_class_with_same_name.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_and_class_with_same_name.ets @@ -17,4 +17,4 @@ class A {} @interface A { } -/* @@? 18:12 Error TypeError: Variable 'A' has already been declared. */ +/* @@? 18:2 Error Syntax error ESY0000: Identifier expected */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_annotation.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_annotation.ets index b3545ba7032ae07fd22c65a2d2d8126cde53c614..084b5847ee24fba7b86bc647946c1e34728964da 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_annotation.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_annotation.ets @@ -30,7 +30,7 @@ function foo(){} @Retention("RUNTIME") @interface ClassAuthor{} // Ok -/* @@? 18:2 Error TypeError: Only standard annotations are allowed to be applied on annotations. */ -/* @@? 21:2 Error TypeError: Annotation '@Retention' can only be applied to annotation declarations. */ -/* @@? 24:2 Error TypeError: Annotation '@Retention' can only be applied to annotation declarations. */ -/* @@? 27:12 Error TypeError: Invalid value for 'policy' field. The policy must be one of the following:'SOURCE', 'CLASS', or 'RUNTIME'. */ \ No newline at end of file +/* @@? 18:2 Error Semantic error ESE0006: Only standard annotations are allowed to be applied on annotations. */ +/* @@? 21:2 Error Semantic error ESE0003: Annotation '@Retention' can only be applied to annotation declarations. */ +/* @@? 24:2 Error Semantic error ESE0003: Annotation '@Retention' can only be applied to annotation declarations. */ +/* @@? 27:12 Error Semantic error ESE0004: Invalid value for 'policy' field. The policy must be one of the following:'SOURCE', 'CLASS', or 'RUNTIME'. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type01.ets index c2bf21da691329d79896559019bb72c5d47eb9d9..bbe102c2eaf14e25be2ea5fa552580a7d937220b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type01.ets @@ -22,5 +22,5 @@ let array: @Anno @Anno Int[][] let deepArray: @Anno @Anno Number[][][][][] -/* @@? 21:29 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:42 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:29 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:42 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type02.ets index 557e4bc100adcc23637908e568ff5e2a3de8e67a..f005b957cb3135fc6586252fa788bd1448bea8c8 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type02.ets @@ -19,6 +19,6 @@ // annotataions for different dimensions of array let a: Int[] @Anno [] -/* @@? 20:14 Error SyntaxError: Unexpected token '@'. */ -/* @@? 20:20 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 20:20 Error TypeError: Can't resolve array type */ +/* @@? 20:14 Error Syntax error ESY0227: Unexpected token '@'. */ +/* @@? 20:20 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 20:20 Error Semantic error ESE0301: Can't resolve array type */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_bad_target.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_bad_target.ets index e3deff1d62d3ad1055db607884d901f6d128a532..321deec99134b7e01d18b9aa2a001bfdef4d3181 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_bad_target.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_bad_target.ets @@ -16,8 +16,8 @@ @interface this.context; -/* @@? 17:1 Error SyntaxError: Identifier expected. */ -/* @@? 17:1 Error SyntaxError: Invalid annotation name. */ -/* @@? 17:1 Error SyntaxError: Expected '{', got 'this'. */ -/* @@? 17:5 Error SyntaxError: Identifier expected, got '.'. */ -/* @@? 17:13 Error SyntaxError: Missing type annotation for property 'context'. */ +/* @@? 17:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:1 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 17:1 Error Syntax error ESY0230: Expected '{', got 'this'. */ +/* @@? 17:5 Error Syntax error ESY0224: Identifier expected, got '.'. */ +/* @@? 17:13 Error Syntax error ESY0001: Missing type annotation for property 'context'. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_boxing_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_boxing_type.ets index 23ceb5d0cc33f03961b0953a3791218b2a0e7411..6fceeca99e14f15f49b0c42d714746776919dd01 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_boxing_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_boxing_type.ets @@ -26,11 +26,11 @@ let boxingNumber: @Anno @Anno Number let boxingChar: @Anno @Anno Char let boxingLong: @Anno @Anno Long -/* @@? 20:23 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:25 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:25 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 23:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 24:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 25:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 26:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 27:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 20:23 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:25 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:25 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 23:24 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 25:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:24 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 27:24 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_function_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_function_type.ets index 1fc45026251fc64c5286765a2de5127232fc9dc9..25ab963803cd7cd2c30ca6fedd10309fc166dfe0 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_function_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_function_type.ets @@ -20,9 +20,9 @@ let func: @Anno @Anno (a: @Anno @Anno string) => @Anno @Anno Int let foo: @Anno @Anno (a?: @Anno @Anno string) => @Anno @Anno Int -/* @@? 20:18 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:34 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:57 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:57 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:34 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:18 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:34 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:57 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:17 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:34 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:57 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_named_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_named_type.ets index 29e92d7f5dd9e90211b204ccb01942b93b296429..714ef6e5108459b2cbe1835b6bcd50081d2b140d 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_named_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_named_type.ets @@ -34,7 +34,7 @@ let color: (@Anno @Anno Color) // annotations for aliases let c: (@Anno @Anno() C) -/* @@? 26:22 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 29:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 32:20 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 35:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:22 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 29:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 32:20 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 35:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_object_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_object_type.ets index 8a5baf54ffa7f362ca9dc58ad7a689ef5e57f0a2..91365918aa3b10eded95de3fad942b8b83f18da6 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_object_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_object_type.ets @@ -24,6 +24,6 @@ let obj1: @Anno @Anno() object let obj2: @Anno @Anno()MyClass let obj3: @Anno @Anno() C -/* @@? 23:18 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 24:18 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 25:18 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 23:18 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:18 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 25:18 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_other_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_other_type.ets index b848c4ae40bdc85c9f7484ab74c54d5c1a71d3e3..35d7acdbebf479688f11f3325f8b3b46ec21ecc6 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_other_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_other_type.ets @@ -26,6 +26,6 @@ let nll: @Anno @Anno() null // annotations for undefined let ud: @Anno @Anno() undefined -/* @@? 21:15 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 24:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 27:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:15 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:17 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 27:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_readonly_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_readonly_type.ets index 7b02aaed57f886526c596652db455450c696e549..0c8f29445c687390115b343b11b3640ba80c4734 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_readonly_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_readonly_type.ets @@ -19,5 +19,5 @@ let readonlyArray: readonly @Anno @Anno() Int[][] let readonlyTuple: readonly @Anno @Anno() [Int, String, Float, Object[]] -/* @@? 19:36 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:36 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 19:36 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:36 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_string_literal.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_string_literal.ets index db8b0b2338bf5f3351ec0b64eda55edba2f10e62..d6f282c59faae165bcd47bcd8088cbff4ee49170 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_string_literal.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_string_literal.ets @@ -19,4 +19,4 @@ // annotations for string literal let sl: @Anno @Anno() "123" -/* @@? 20:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 20:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_tuple_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_tuple_type.ets index ab62baee9a807ad26d081d7d7418ac77e2911156..c73f0b0a08ff5443c0d39aca3881b7cccbfc6b65 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_tuple_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_tuple_type.ets @@ -21,4 +21,4 @@ class MyClass{} // annotations for tuple let tuple: @Anno @Anno() [@Anno @Anno() Int, @Anno @Anno() String, @Anno @Anno() Object, @Anno @Anno() MyClass] -/* @@? 22:19 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 22:19 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_type_parameter01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_type_parameter01.ets index c477d4ea762e34615a54d2a04cad44b4bc43ce39..d8a06899074f5007474592ed43e1fbd31a272c8f 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_type_parameter01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_type_parameter01.ets @@ -25,10 +25,10 @@ class A<@Anno @Anno() T>{ } let array1: @Anno @Anno() Array = new Array() -/* @@? 26:20 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:40 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:21 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:57 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 23:14 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 24:15 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:21 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:40 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:57 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 23:14 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:15 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:20 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_annotation.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_annotation.ets index ce66f562c71d418b5432b75c2912e5ca4403a822..ad58bd406f125befed5d8c969e95f7832075602e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_annotation.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_annotation.ets @@ -25,4 +25,4 @@ a: @Message({id:1}) @Message({id:1}) @TestAnno string = "1" } -/* @@? 25:25 Error TypeError: Duplicate annotations are not allowed. The annotation 'Message' has already been applied to this element. */ \ No newline at end of file +/* @@? 25:25 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Message' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_class.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_class.ets index b8fd1d4b7625a1a22ceab60c3104abb86b7f513d..6b88623a8929b13b7202a74fe9209cb83b06392c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_class.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_class.ets @@ -33,11 +33,11 @@ class MyClass<@Anno @Anno() T>{ } } -/* @@? 20:22 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 25:29 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 28:20 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 28:45 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 31:39 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 31:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 31:59 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:22 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 25:29 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 28:20 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 28:45 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 31:17 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 31:39 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 31:59 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_expression.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_expression.ets index 80cf68805ea55474eed7e88939f25a19ba6f6eda..d6ab0eab87c418ac9806e5491e1f2204f1c384f1 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_expression.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_expression.ets @@ -23,6 +23,6 @@ let a = 1 as @Anno @Anno() Int class C1<@Anno @Anno() T>{} new C1() instanceof @Anno @Anno() C1 -/* @@? 20:28 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 24:40 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 23:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:28 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 23:17 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:40 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_function.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_function.ets index 1060f8446457e576f577756f9caa735a87f68968..c4e530930c78e01e279ef8f7c9785456e93da167 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_function.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_function.ets @@ -21,8 +21,8 @@ function foo(a: @Anno @Anno() string): @Anno @Anno() Number {return 1} function bar<@Anno @Anno() T>(a: @Anno @Anno() T): @Anno @Anno() T {return a} -/* @@? 21:27 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:50 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:41 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:21 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:59 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:27 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:50 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:21 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:41 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:59 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_interface.ets index 2a8cf91c29035f2310d50c033276b3b0bc4348ef..1b452427c1635844c430db2e8a1ca9c2e2a730f0 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_interface.ets @@ -19,4 +19,4 @@ // annotations for interface interface I1<@Anno @Anno() T>{} -/* @@? 20:21 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:21 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_variance.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_variance.ets index 8b4d5e4b87ffd415e1c74c4ee1521c50f725c9b1..5f95afed874f8d22177e3a42c6a3b6b64b651b4b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_variance.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_variance.ets @@ -19,5 +19,5 @@ // annotations for covariance and contravariance class gen<@Anno in @Anno T, @Anno out @Anno() U> {} -/* @@? 20:21 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:40 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 20:21 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:40 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_union_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_union_type.ets index c4715190d00ea6c4a263872f216fa090ad9f6d50..82ff3e834194c2399cf07073972b7669461fd0a4 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_union_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_union_type.ets @@ -28,12 +28,12 @@ let unionType3: @Anno() @Anno() (@Anno @Anno Int | String) // @Message for 'Int | String', @Anno1 for 'Int' and @Anno2 for 'String' let unionType4: @Anno() @Anno() (@Anno @Anno Int | @Anno @Anno String) -/* @@? 20:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:48 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 23:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 23:47 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 26:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 26:41 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 29:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 29:41 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 29:59 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:48 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 23:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 23:47 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:41 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 29:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 29:41 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 29:59 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_without_source_policy.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_without_source_policy.ets index 58fc6ec292cdf27e8e408d41a2defb3721352ab1..e5b66cc9df629af7ff8cd12f4a743a66754b336d 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_without_source_policy.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_without_source_policy.ets @@ -44,10 +44,10 @@ let b:@MyAnno() string function foo(@Anno() a:number){} // ok -/* @@? 18:2 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 21:2 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 25:6 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 30:6 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 34:2 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 37:8 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 42:2 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ \ No newline at end of file +/* @@? 18:2 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 21:2 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 25:6 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 30:6 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 34:2 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 37:8 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 42:2 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation_usage.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation_usage.ets index e9828b1b8e2e82ccf0d4a43c1296f149cf07863f..5828602bacb2620f4d40e3bc7266b2af38727396 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation_usage.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation_usage.ets @@ -16,6 +16,5 @@ @ns.Anno<()=>void> class A{} -/* @@? 16:2 Error TypeError: Cannot find type 'ns'. */ -/* @@? 16:5 Error TypeError: 'Anno' type does not exist. */ -/* @@? 16:5 Error TypeError: 'Anno' is not an annotation. */ \ No newline at end of file +/* @@? 16:1 Error Syntax error ESY0000: Decorators are not valid here */ +/* @@? 16:18 Error Syntax error ESY0227: Unexpected token '>'. */ diff --git a/ets2panda/test/ast/compiler/ets/array_index.ets b/ets2panda/test/ast/compiler/ets/array_index.ets index b56d97710ad4fcb598a55d88d864b79e8e98cb23..41df02e0e7ab80d6342daabd19d75b251925e868 100644 --- a/ets2panda/test/ast/compiler/ets/array_index.ets +++ b/ets2panda/test/ast/compiler/ets/array_index.ets @@ -15,4 +15,4 @@ const a: Char[] = new Char[n = 10]; -/* @@? 16:28 Error TypeError: Unresolved reference n */ +/* @@? 16:28 Error Semantic error ESE0143: Unresolved reference n */ diff --git a/ets2panda/test/ast/compiler/ets/array_indexing_without_chaining_nullish.ets b/ets2panda/test/ast/compiler/ets/array_indexing_without_chaining_nullish.ets index 795cee9fa20d2f9e7274045823b2354f0918837b..9c08656e801e8b719266bd444ce08cb3acdfefad 100644 --- a/ets2panda/test/ast/compiler/ets/array_indexing_without_chaining_nullish.ets +++ b/ets2panda/test/ast/compiler/ets/array_indexing_without_chaining_nullish.ets @@ -18,4 +18,4 @@ class A {} let arr : Object[] | null = [new Object(), new A()]; let elem : Object | undefined = /* @@ label */arr[0]; -/* @@@ label Error TypeError: Value is possibly nullish. */ +/* @@@ label Error Semantic error ESE0010: Value is possibly nullish. */ diff --git a/ets2panda/test/ast/compiler/ets/array_with_type_parameter.ets b/ets2panda/test/ast/compiler/ets/array_with_type_parameter.ets index 418b425ebfe305b4e5b4ed0ecbd39feb10607890..a080ad077aa9852e43b72a74a5fb5bc1ffaf12b8 100644 --- a/ets2panda/test/ast/compiler/ets/array_with_type_parameter.ets +++ b/ets2panda/test/ast/compiler/ets/array_with_type_parameter.ets @@ -83,18 +83,18 @@ function foo6() { new [T|Object][2] } -/* @@? 18:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 22:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 23:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 31:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 35:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 40:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 41:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 42:5 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ -/* @@? 42:9 Error TypeError: Cannot find type 'U'. */ -/* @@? 64:9 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 70:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 76:9 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ -/* @@? 77:9 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ -/* @@? 82:5 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ -/* @@? 83:5 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 18:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 22:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 23:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 31:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 35:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 40:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 41:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 42:5 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 42:9 Error Semantic error ESE0371: Cannot find type 'U'. */ +/* @@? 64:9 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 70:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 76:9 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 77:9 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 82:5 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 83:5 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ diff --git a/ets2panda/test/ast/compiler/ets/arrow_function_call_as_record_property_key.ets b/ets2panda/test/ast/compiler/ets/arrow_function_call_as_record_property_key.ets index 80a265b50a267828ce0057daf79d4496e4347999..c4bed97294690124789113a7e6a962467110ec42 100644 --- a/ets2panda/test/ast/compiler/ets/arrow_function_call_as_record_property_key.ets +++ b/ets2panda/test/ast/compiler/ets/arrow_function_call_as_record_property_key.ets @@ -24,35 +24,35 @@ const b: Record number> = { [(():number => +("bar"))()]: (y: string):number => y.length }; -/* @@? 16:35 Error TypeError: need to specify target type for class composite */ -/* @@? 17:5 Error SyntaxError: Unexpected token. */ -/* @@? 17:6 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token. */ -/* @@? 17:25 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:26 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:28 Error SyntaxError: Unexpected token '1'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 20:50 Error TypeError: need to specify target type for class composite */ -/* @@? 21:5 Error SyntaxError: Unexpected token. */ -/* @@? 21:6 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 21:20 Error TypeError: Wrong operand type for unary expression */ -/* @@? 21:28 Error SyntaxError: Unexpected token. */ -/* @@? 21:31 Error SyntaxError: Unexpected token ']'. */ -/* @@? 21:32 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:34 Error SyntaxError: Unexpected token 'function'. */ -/* @@? 21:43 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 23:6 Error SyntaxError: Unexpected token ','. */ -/* @@? 23:6 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 24:20 Error TypeError: Wrong operand type for unary expression */ -/* @@? 24:32 Error SyntaxError: Unexpected token ':'. */ -/* @@? 24:32 Error TypeError: This expression is not callable. */ -/* @@? 24:36 Error SyntaxError: Unexpected token ':'. */ -/* @@? 24:36 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 24:38 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 24:38 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 24:44 Error SyntaxError: Unexpected token ')'. */ -/* @@? 24:45 Error SyntaxError: Unexpected token ':'. */ -/* @@? 24:46 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 24:46 Error TypeError: The type of parameter 'number' cannot be inferred */ -/* @@? 24:56 Error TypeError: Unresolved reference y */ -/* @@? 25:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 16:35 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 17:5 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:6 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 17:22 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:26 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 20:50 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 21:5 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 21:6 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 21:20 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 21:28 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 21:31 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 21:32 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:34 Error Syntax error ESY0227: Unexpected token 'function'. */ +/* @@? 21:43 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 23:6 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 23:6 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 24:20 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 24:32 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 24:32 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 24:36 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 24:36 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 24:38 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 24:38 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 24:44 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 24:45 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 24:46 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 24:46 Error Semantic error ESE0132: The type of parameter 'number' cannot be inferred */ +/* @@? 24:56 Error Semantic error ESE0143: Unresolved reference y */ +/* @@? 25:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets b/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets index 8ada0b3f4a16f33d233f126163a51cccf8c45000..74c685d7c618e62526b447d5ce6174cec9339cbc 100644 --- a/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets +++ b/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets @@ -17,5 +17,4 @@ let foo: (P: string, Q: string) => void foo((value: Object): void => { }, (err: Error): void => { }) -/* @@? 18:1 Error TypeError: No matching call signature for ((value: Object) => void, (err: Error) => void) */ -/* @@? 18:5 Error TypeError: Type '(value: Object) => void' is not compatible with type 'String' at index 1 */ +/* @@? 18:13 Error Semantic error ESE0000: Cannot find name Object */ diff --git a/ets2panda/test/ast/compiler/ets/assert_bad.ets b/ets2panda/test/ast/compiler/ets/assert_bad.ets index d22c1d7fabf1463493e59a51c2d8370f9739df30..d4f7f54b8bf130d8345ad3a656eb068e2c6daa20 100644 --- a/ets2panda/test/ast/compiler/ets/assert_bad.ets +++ b/ets2panda/test/ast/compiler/ets/assert_bad.ets @@ -19,5 +19,5 @@ function main(): int { return 0; } -/* @@@ label1 Error TypeError: No matching call signature for assertEQ(Int, Int, Int) */ -/* @@@ label2 Error TypeError: Type 'Int' is not compatible with type 'String|undefined' at index 3 */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for assertEQ(Int, Int, Int) */ +/* @@@ label2 Error Semantic error ESE0046: Type 'Int' is not compatible with type 'String|undefined' at index 3 */ diff --git a/ets2panda/test/ast/compiler/ets/assign_const.ets b/ets2panda/test/ast/compiler/ets/assign_const.ets index 150e93078fba6d138db5456d9106038e3519a10a..6a156d017fa28be25a96186c4da0168cf95a3d4b 100644 --- a/ets2panda/test/ast/compiler/ets/assign_const.ets +++ b/ets2panda/test/ast/compiler/ets/assign_const.ets @@ -18,4 +18,4 @@ function main(): void { /* @@ label */c = c + 1; } -/* @@@ label Error TypeError: Cannot assign to a constant variable c */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a constant variable c */ diff --git a/ets2panda/test/ast/compiler/ets/async-function-expression1.ets b/ets2panda/test/ast/compiler/ets/async-function-expression1.ets index de02a742451ceee41853731115e253ec22a218be..18e82fbe69f994dac193456eef1bc47905b63e99 100644 --- a/ets2panda/test/ast/compiler/ets/async-function-expression1.ets +++ b/ets2panda/test/ast/compiler/ets/async-function-expression1.ets @@ -46,9 +46,9 @@ function relationalStoreCustomDirTest() { let ret = await storestore.insert("test", valueBucket); }) } -/* @@? 17:5 Error TypeError: Unresolved reference it */ -/* @@? 17:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 19:5 Error TypeError: This expression is not callable. */ -/* @@? 19:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 31:5 Error TypeError: This expression is not callable. */ -/* @@? 31:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference it */ +/* @@? 17:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 19:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 31:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 31:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ diff --git a/ets2panda/test/ast/compiler/ets/async-function-expression2.ets b/ets2panda/test/ast/compiler/ets/async-function-expression2.ets index c4fef79dcf25a122cf68f790e788854816ff7fc9..1ee19a594286bf5b0d990539ee7b16b856e2058b 100644 --- a/ets2panda/test/ast/compiler/ets/async-function-expression2.ets +++ b/ets2panda/test/ast/compiler/ets/async-function-expression2.ets @@ -46,21 +46,21 @@ function relationalStoreCustomDirTest() { let ret = await storestore.insert("test", valueBucket); }) } -/* @@? 17:5 Error TypeError: Unresolved reference it */ -/* @@? 17:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 17:31 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:31 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:31 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:5 Error TypeError: This expression is not callable. */ -/* @@? 19:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 19:23 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 19:31 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:31 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 19:31 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 31:5 Error TypeError: This expression is not callable. */ -/* @@? 31:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 31:23 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 31:31 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 31:31 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 31:31 Error SyntaxError: Unexpected token, expected ',' or ')'. */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference it */ +/* @@? 17:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 17:23 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 17:31 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:31 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:31 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 19:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:23 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 19:31 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:31 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 19:31 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 31:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 31:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 31:23 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 31:31 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 31:31 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 31:31 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/compiler/ets/async_import_3.ets b/ets2panda/test/ast/compiler/ets/async_import_3.ets index 165c0f7649eae9371dcacc8dcc7727cab09fdee8..94e1a4843349097cffe73a9d5ab9af5c3184efbd 100644 --- a/ets2panda/test/ast/compiler/ets/async_import_3.ets +++ b/ets2panda/test/ast/compiler/ets/async_import_3.ets @@ -15,5 +15,5 @@ import {foo} from './async_import_4' let prop: int = foo() -/* @@? 16:17 Error TypeError: Cannot use type 'void' as value. */ -/* @@? 16:17 Error TypeError: Type 'void' cannot be assigned to type 'Int' */ \ No newline at end of file +/* @@? 16:17 Error Semantic error ESE0078: Cannot use type 'void' as value. */ +/* @@? 16:17 Error Semantic error ESE0318: Type 'void' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/async_with_non_generic_return_type.ets b/ets2panda/test/ast/compiler/ets/async_with_non_generic_return_type.ets index 8684c72349a92e0104325ad32cb741e7f8ea8cd6..82387ccb4c6019f0afa1165933d19c86d276a3e2 100644 --- a/ets2panda/test/ast/compiler/ets/async_with_non_generic_return_type.ets +++ b/ets2panda/test/ast/compiler/ets/async_with_non_generic_return_type.ets @@ -19,4 +19,4 @@ async function foo(arg: number): str { return ""; } -/* @@? 18:16 Error TypeError: Return type of async function must be 'Promise'. */ +/* @@? 18:16 Error Semantic error ESE0001: Return type of async function must be 'Promise'. */ diff --git a/ets2panda/test/ast/compiler/ets/bad_call_setter.ets b/ets2panda/test/ast/compiler/ets/bad_call_setter.ets index 0e68c90948a0b0e4020b1ba1fc04c6a4ea1b623b..df55eb4fe25a24fac574031f5335feb485b0c369 100644 --- a/ets2panda/test/ast/compiler/ets/bad_call_setter.ets +++ b/ets2panda/test/ast/compiler/ets/bad_call_setter.ets @@ -28,7 +28,5 @@ function main() { ins.text = "He"; } -/* @@? 23:5 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 23:9 Error SyntaxError: Unexpected token '.'. */ -/* @@? 23:10 Error TypeError: Variable 'text' has already been declared. */ -/* @@? 23:17 Error TypeError: Property 's' must be accessed through 'this' */ +/* @@? 17:9 Error Syntax error ESY0000: Unexpected token in property key */ +/* @@? 17:9 Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets b/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets index 5ea74fcbfbb52378b2eb73e17770394c9f01cea3..69599c3edfeaf6f70f518b751bb09149fddfcd27 100644 --- a/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets +++ b/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets @@ -38,13 +38,13 @@ for (const v2 of vStr) { const leftTest = v1 << v0; } -/* @@? 29:21 Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ -/* @@? 30:21 Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ -/* @@? 31:21 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 32:21 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 33:21 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 34:23 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 35:24 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 36:24 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 37:23 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 38:22 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 29:21 Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ +/* @@? 30:21 Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ +/* @@? 31:21 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 32:21 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 33:21 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 34:23 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 35:24 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 36:24 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 37:23 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 38:22 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ diff --git a/ets2panda/test/ast/compiler/ets/bigInt_unsigned_right_shift.ets b/ets2panda/test/ast/compiler/ets/bigInt_unsigned_right_shift.ets index b5b4c1be3a94209089afa3681d64d43364a562f9..543f378ea539e3c1d17a7dc5716eca8dcd49fc76 100644 --- a/ets2panda/test/ast/compiler/ets/bigInt_unsigned_right_shift.ets +++ b/ets2panda/test/ast/compiler/ets/bigInt_unsigned_right_shift.ets @@ -18,4 +18,4 @@ const v1 = 213n; let v2 = v0 >>> v1; -/* @@? 19:10 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 19:10 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ diff --git a/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets b/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets index 4bee69637bc0a64837cb1169e070ffe61136a56f..64fe7006360fc4ab587f93247535a55210c535a4 100644 --- a/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets +++ b/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets @@ -15,8 +15,8 @@ /* @@ label1 */@@/@ -/* @@@ label1 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 23:1 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 23:1 Error SyntaxError: Invalid annotation name. */ -/* @@? 23:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 23:1 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@? 23:1 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 23:1 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 23:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 23:1 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets b/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets index 69ec693282a4dbdeaa781a7c0070ec839ebf2b9c..b388ec199fa4fe8bbf17470286245eda10865982 100644 --- a/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets +++ b/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets @@ -15,9 +15,9 @@ let tup : [['arkTs' | boolean, 1 | true]] = [['arkTs', 1]]; -/* @@? 16:32 Error SyntaxError: Invalid Type. */ -/* @@? 16:32 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 16:32 Error SyntaxError: Unexpected token '1'. */ -/* @@? 16:32 Error TypeError: Wrong type of operands for binary expression */ -/* @@? 16:40 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:41 Error SyntaxError: Unexpected token ']'. */ +/* @@? 16:32 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 16:32 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 16:32 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@? 16:32 Error Semantic error ESE0346: Wrong type of operands for binary expression */ +/* @@? 16:40 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:41 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/compiler/ets/block_namespace_interface_name_conflict.ets b/ets2panda/test/ast/compiler/ets/block_namespace_interface_name_conflict.ets index b0a58f1f5848d181784d5697817b2975b65171df..e8e7f956d2fc0875d2948270b88f83d03bb5d3c4 100644 --- a/ets2panda/test/ast/compiler/ets/block_namespace_interface_name_conflict.ets +++ b/ets2panda/test/ast/compiler/ets/block_namespace_interface_name_conflict.ets @@ -21,5 +21,5 @@ } } -/* @@? 18:5 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 20:5 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 20:5 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ diff --git a/ets2panda/test/ast/compiler/ets/boxingConversion4.ets b/ets2panda/test/ast/compiler/ets/boxingConversion4.ets index 4b463095b76371a963337ddb9cdfc57b6faf4dd8..abca87b8c972b63f87029fead75ddaf3e815def2 100644 --- a/ets2panda/test/ast/compiler/ets/boxingConversion4.ets +++ b/ets2panda/test/ast/compiler/ets/boxingConversion4.ets @@ -23,5 +23,5 @@ function main() : void { refInt(b); } -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type 'Short' */ -/* @@@ label2 Error TypeError: Type 'Int' cannot be assigned to type 'Short' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'Short' */ +/* @@@ label2 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'Short' */ diff --git a/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets b/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets index 9c4ec53ad739e45888b7d93afc7c2439e82cf254..89700cdb583a3235645a486859b9fd7114bb4851 100755 --- a/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets +++ b/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets @@ -17,21 +17,9 @@ Class MyClass { compare((value: number, index:number, arr: Array)) {} } -/* @@? 16:1 Error SyntaxError: Class cannot be used as object. */ -/* @@? 16:7 Error SyntaxError: Unexpected token 'MyClass'. */ -/* @@? 16:7 Error TypeError: Unresolved reference MyClass */ -/* @@? 16:15 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:3 Error TypeError: Unresolved reference compare */ -/* @@? 17:17 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:19 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:27 Error SyntaxError: Unexpected token 'index'. */ -/* @@? 17:33 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:33 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:39 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:41 Error SyntaxError: Unexpected token 'arr'. */ -/* @@? 17:46 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:46 Error TypeError: No matching call signature with trailing lambda */ -/* @@? 17:59 Error SyntaxError: Unexpected token, expected '('. */ \ No newline at end of file +/* @@? 16:7 Error Syntax error ESY0227: Unexpected token 'MyClass'. */ +/* @@? 16:15 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:19 Error Syntax error ESY0000: Unexpected token. */ +/* @@? 17:33 Error Syntax error ESY0000: Unexpected token. */ +/* @@? 17:46 Error Syntax error ESY0000: Unexpected token. */ +/* @@? 17:62 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/compiler/ets/call_for_method_never_exist.ets b/ets2panda/test/ast/compiler/ets/call_for_method_never_exist.ets index dca694ab14f970cc888c1fe8a75cf71668074356..7dd07c381ebf87d96097edc6bd5c20e1fb88d8fe 100644 --- a/ets2panda/test/ast/compiler/ets/call_for_method_never_exist.ets +++ b/ets2panda/test/ast/compiler/ets/call_for_method_never_exist.ets @@ -21,4 +21,4 @@ function main(){ let a = new A./* @@ label */foo(123) } -/* @@@ label Error TypeError: Invalid type reference. */ +/* @@@ label Error Semantic error ESE0299: Invalid type reference. */ diff --git a/ets2panda/test/ast/compiler/ets/call_signature_error.ets b/ets2panda/test/ast/compiler/ets/call_signature_error.ets index 8ec272c4893662db5f0d5284f7fbe4089092332a..ead6895d24cf9421263c9097936ababf6b7321e2 100644 --- a/ets2panda/test/ast/compiler/ets/call_signature_error.ets +++ b/ets2panda/test/ast/compiler/ets/call_signature_error.ets @@ -17,5 +17,5 @@ type DescribableFunction = /* @@ label1 */{ /* @@ label2 */(someArg: number): string } -/* @@@ label1 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label2 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@@ label1 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@@ label2 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ diff --git a/ets2panda/test/ast/compiler/ets/check_spreadElement.ets b/ets2panda/test/ast/compiler/ets/check_spreadElement.ets index 69f13c49a7233439470f4d94ed06dcb94a10e042..5f251f1e4f49a67e03bf76535e5cf3c2f1677db0 100644 --- a/ets2panda/test/ast/compiler/ets/check_spreadElement.ets +++ b/ets2panda/test/ast/compiler/ets/check_spreadElement.ets @@ -15,7 +15,4 @@ [a, b, ...rest] = [1, 2, 3, 4, 5]; -/* @@? 16:1 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 16:2 Error TypeError: Unresolved reference a */ -/* @@? 16:5 Error TypeError: Unresolved reference b */ -/* @@? 16:11 Error TypeError: Unresolved reference rest */ +/* @@? 16:2 Error Semantic error ESE0000: Cannot find name 'a'. */ diff --git a/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets b/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets index 5315c5449bd9fa267cfa1d3add030a94c393eb66..2444e5dab12d58adb29d1fccfd73f47586673830 100644 --- a/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets +++ b/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets @@ -17,5 +17,5 @@ function foo() { let s = "2".concat(s).concat("4"); } -/* @@? 17:13 Error TypeError: Circular call function */ -/* @@? 17:24 Error TypeError: Variable 's' is accessed before it's initialization. */ \ No newline at end of file +/* @@? 17:13 Error Semantic error ESE0381: Circular call function */ +/* @@? 17:24 Error Semantic error ESE0365: Variable 's' is accessed before it's initialization. */ diff --git a/ets2panda/test/ast/compiler/ets/circular_inheritance.ets b/ets2panda/test/ast/compiler/ets/circular_inheritance.ets index 3039b89682e9263866006ecda10437ce01a462a1..498eeecf8241cbce91d82354e2819663c485ee70 100644 --- a/ets2panda/test/ast/compiler/ets/circular_inheritance.ets +++ b/ets2panda/test/ast/compiler/ets/circular_inheritance.ets @@ -26,5 +26,4 @@ class cls implements I1 { foo2():void {} } -/* @@? 16:11 Error TypeError: Cyclic inheritance involving I1. */ - +/* @@? 16:11 Error Semantic error ESE0310: Cyclic inheritance involving I1. */ diff --git a/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets b/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets index d6f8d2deb534611f9ac63a263092579616287874..96df2830b7373e2daa80ebe8a5c7aa549be1a588 100644 --- a/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets +++ b/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets @@ -30,5 +30,4 @@ class C extends A { } } -/* @@? 16:7 Error TypeError: Cyclic inheritance involving A. */ - +/* @@? 16:7 Error Semantic error ESE0310: Cyclic inheritance involving A. */ diff --git a/ets2panda/test/ast/compiler/ets/circular_unfold.ets b/ets2panda/test/ast/compiler/ets/circular_unfold.ets index 6fabd26be970ccdd8a3f6a791be482626d9d6c39..470c60419d2f52068efe8029554726ca38a631a2 100644 --- a/ets2panda/test/ast/compiler/ets/circular_unfold.ets +++ b/ets2panda/test/ast/compiler/ets/circular_unfold.ets @@ -19,7 +19,4 @@ function foo() { return b - a } -/* @@? 17:11 Error TypeError: Circular dependency detected for identifier: a */ -/* @@? 17:15 Error TypeError: Variable 'a' is accessed before it's initialization. */ -/* @@? 18:11 Error TypeError: Circular dependency detected for identifier: b */ -/* @@? 18:15 Error TypeError: Variable 'b' is accessed before it's initialization. */ +/* @@? 18:11 Error Semantic error ESE0000: Block-scoped variable 'b' used before its declaration */ diff --git a/ets2panda/test/ast/compiler/ets/circular_variable_init.ets b/ets2panda/test/ast/compiler/ets/circular_variable_init.ets index fc6881da7f2ee8bf16964c5c552197dffa291df7..2590fc2e646a4367c1a2ce3ff8a21aa65e90c386 100644 --- a/ets2panda/test/ast/compiler/ets/circular_variable_init.ets +++ b/ets2panda/test/ast/compiler/ets/circular_variable_init.ets @@ -43,11 +43,11 @@ function main() { let maind = mainc; } -/* @@? 18:12 Error TypeError: Circular dependency detected for identifier: b */ -/* @@? 23:19 Error TypeError: Circular dependency detected for identifier: b */ -/* @@? 31:15 Error TypeError: Unresolved reference globalb */ -/* @@? 33:5 Error TypeError: Circular dependency detected for identifier: globalc */ -/* @@? 36:7 Error TypeError: Circular dependency detected for identifier: consta */ -/* @@? 40:17 Error TypeError: Unresolved reference mainb */ -/* @@? 42:17 Error TypeError: Variable 'maind' is accessed before it's initialization. */ -/* @@? 43:9 Error TypeError: Circular dependency detected for identifier: maind */ +/* @@? 18:12 Error Semantic error ESE0308: Circular dependency detected for identifier: b */ +/* @@? 23:19 Error Semantic error ESE0308: Circular dependency detected for identifier: b */ +/* @@? 31:15 Error Semantic error ESE0143: Unresolved reference globalb */ +/* @@? 33:5 Error Semantic error ESE0308: Circular dependency detected for identifier: globalc */ +/* @@? 36:7 Error Semantic error ESE0308: Circular dependency detected for identifier: consta */ +/* @@? 40:17 Error Semantic error ESE0143: Unresolved reference mainb */ +/* @@? 42:17 Error Semantic error ESE0365: Variable 'maind' is accessed before it's initialization. */ +/* @@? 43:9 Error Semantic error ESE0308: Circular dependency detected for identifier: maind */ diff --git a/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets b/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets index d495c7c9514e0254f84b57b15d5a7a724ba318b6..7c6da79d71fef6c26c8da1061607e7138e60edbb 100644 --- a/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets @@ -29,25 +29,4 @@ class A { } } -/* @@? 23:23 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 24:9 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 24:9 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 24:9 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 24:9 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:20 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 24:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 24:23 Error SyntaxError: Field type annotation expected. */ -/* @@? 24:23 Error SyntaxError: Unexpected token '.'. */ -/* @@? 24:31 Error SyntaxError: Field type annotation expected. */ -/* @@? 24:34 Error SyntaxError: Unexpected token '='. */ -/* @@? 24:36 Error SyntaxError: Unexpected token '{'. */ -/* @@? 24:38 Error TypeError: Unresolved reference caches */ -/* @@? 25:21 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@? 25:21 Error TypeError: No matching construct signature for class_cyclic_constructor.A(...tuple) */ -/* @@? 25:30 Error TypeError: Unresolved reference tuple */ -/* @@? 26:31 Error TypeError: Property 'bar' does not exist on type 'A' */ -/* @@? 27:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 27:7 Error SyntaxError: Unexpected token '{'. */ -/* @@? 28:9 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 28:14 Error TypeError: Property 'x' does not exist on type 'Error' */ -/* @@? 30:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 24:9 Error Syntax error ESY0000: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/compiler/ets/class_inheritance.ets b/ets2panda/test/ast/compiler/ets/class_inheritance.ets index 78e049e51ac5a9b226a4d896a97546d51ebd127e..7b72e99452c1515207d788c4cbd7abe05bd32ab7 100644 --- a/ets2panda/test/ast/compiler/ets/class_inheritance.ets +++ b/ets2panda/test/ast/compiler/ets/class_inheritance.ets @@ -21,5 +21,5 @@ class BBB extends AAA { objectProp = {name: 'Jone', age: 30}; } -/* @@? 17:5 Error TypeError: Cannot infer type for objectProp because class composite needs an explicit target type */ -/* @@? 21:5 Error TypeError: Cannot infer type for objectProp because class composite needs an explicit target type */ \ No newline at end of file +/* @@? 17:5 Error Semantic error ESE0174: Cannot infer type for objectProp because class composite needs an explicit target type */ +/* @@? 21:5 Error Semantic error ESE0174: Cannot infer type for objectProp because class composite needs an explicit target type */ diff --git a/ets2panda/test/ast/compiler/ets/class_literal.ets b/ets2panda/test/ast/compiler/ets/class_literal.ets index 6162acc11169e5bab28a982fc4ae3a2e44a22601..31c6b078ddc6c4aea61a34864ab99a3d1f528fa2 100644 --- a/ets2panda/test/ast/compiler/ets/class_literal.ets +++ b/ets2panda/test/ast/compiler/ets/class_literal.ets @@ -22,4 +22,4 @@ let rectangle = class { width: number; } -/* @@? 26:1 Error TypeError: Class literal is not yet supported. */ +/* @@? 26:1 Error Semantic error ESE0020: Class literal is not yet supported. */ diff --git a/ets2panda/test/ast/compiler/ets/class_return_as_object.ets b/ets2panda/test/ast/compiler/ets/class_return_as_object.ets index c4b77979fb43c6281000e9ec05d01fff847a6730..ad8b8406ac90c66ac5f7034863a29fe323baad5c 100644 --- a/ets2panda/test/ast/compiler/ets/class_return_as_object.ets +++ b/ets2panda/test/ast/compiler/ets/class_return_as_object.ets @@ -22,4 +22,4 @@ function getExampleClass() { const exampleClassReference = getExampleClass; exampleClassReference().toString(); -/* @@? 19:12 Error SyntaxError: Class cannot be used as object. */ \ No newline at end of file +/* @@? 19:12 Error Syntax error ESY0318: Class cannot be used as object. */ diff --git a/ets2panda/test/ast/compiler/ets/class_without_closing_parentheses.ets b/ets2panda/test/ast/compiler/ets/class_without_closing_parentheses.ets index 4c4d1ca68c2f3f6c8f275eeda94077be514aa2bf..33697815e2a459e49b8b5ae5c520beac0efae2cd 100644 --- a/ets2panda/test/ast/compiler/ets/class_without_closing_parentheses.ets +++ b/ets2panda/test/ast/compiler/ets/class_without_closing_parentheses.ets @@ -27,14 +27,14 @@ export default class TreeMap implements ReadonlyTreeMap { } } -/* @@? 16:47 Error TypeError: Cannot find type 'ReadonlyTreeMap'. */ -/* @@? 16:47 Error TypeError: Interface expected here. */ -/* @@? 18:39 Error TypeError: Cannot find type 'TreeMapEntry'. */ -/* @@? 19:9 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token 'default'. */ -/* @@? 19:24 Error SyntaxError: Unexpected token 'namespace'. */ -/* @@? 19:24 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 21:15 Error TypeError: Variable 'buffer' has already been declared. */ -/* @@? 21:15 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 24:32 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 26:20 Error TypeError: Cannot find type 'buffer'. */ +/* @@? 16:47 Error Semantic error ESE0371: Cannot find type 'ReadonlyTreeMap'. */ +/* @@? 16:47 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 18:39 Error Semantic error ESE0371: Cannot find type 'TreeMapEntry'. */ +/* @@? 19:9 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 19:16 Error Syntax error ESY0227: Unexpected token 'default'. */ +/* @@? 19:24 Error Syntax error ESY0227: Unexpected token 'namespace'. */ +/* @@? 19:24 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 21:15 Error Semantic error ESE0351: Variable 'buffer' has already been declared. */ +/* @@? 21:15 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 24:32 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 26:20 Error Semantic error ESE0371: Cannot find type 'buffer'. */ diff --git a/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets b/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets index 4f419d33d4438b4b395457fc8365a9d31fd174ef..8691fed4e42fa71588de65ce712f18d70ca8b525 100644 --- a/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets +++ b/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets @@ -15,4 +15,4 @@ class A {b5 : boolean = /* @@ label1 */7;} -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type 'Boolean' */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'Boolean' */ diff --git a/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets b/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets index d852f652917f4b46fc2edd7d7a331cfb3038dd20..b559f78997b90a17999408634a0ebad41436e501 100644 --- a/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets +++ b/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets @@ -16,9 +16,9 @@ // (arkts-no-conditional-types) type X = T extends number ? T : string -/* @@? 17:15 Error SyntaxError: Unexpected token 'extends'. */ -/* @@? 17:15 Error TypeError: Conditional type aliases are not supported. Introduce a new type with constraints explicitly, or rewrite logic using Object! */ -/* @@? 17:23 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:23 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:32 Error TypeError: Unresolved reference T */ -/* @@? 17:36 Error TypeError: Type name 'string' used in the wrong context */ +/* @@? 17:15 Error Syntax error ESY0227: Unexpected token 'extends'. */ +/* @@? 17:15 Error Semantic error ESE136365: Conditional type aliases are not supported. Introduce a new type with constraints explicitly, or rewrite logic using Object! */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:23 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:32 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 17:36 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ diff --git a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets index ece14278ce1e0ea0ce2eb5cc1836602e5dc6e2fe..186911a2f74bd1029a04f0d964a90075a8a4031c 100644 --- a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets +++ b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets @@ -16,4 +16,4 @@ const constExpr = "123" let variable: constExpr = 42 -/* @@? 17:15 Error TypeError: Cannot find type 'constExpr'. */ +/* @@? 17:15 Error Semantic error ESE0000: This reference refers to a value, but is being used as a type here. Did you mean to use 'typeof'? */ diff --git a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets index 60cb72873ec79bf0374872f317c91ea67f254a95..fe23ec4d6f2492915e08735ff57714ce9974158f 100644 --- a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets +++ b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets @@ -28,6 +28,6 @@ class A { const constExpr = new A let variable: constExpr.constClass.constField = 42 -/* @@? 29:15 Error TypeError: Cannot find type 'constExpr'. */ -/* @@? 29:25 Error TypeError: 'constClass' type does not exist. */ -/* @@? 29:36 Error TypeError: 'constField' type does not exist. */ +/* @@? 29:15 Error Semantic error ESE0371: Cannot find type 'constExpr'. */ +/* @@? 29:25 Error Semantic error ESE0070: 'constClass' type does not exist. */ +/* @@? 29:36 Error Semantic error ESE0070: 'constField' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets index ba90d65351785c6f913951fcc97bb6ccce6730b7..14b96d5567a0633f974795912b7b69cdca3e7ecd 100644 --- a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets +++ b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets @@ -20,5 +20,5 @@ class A { const constExpr = new A let variable: constExpr.constField = 42 -/* @@? 21:15 Error TypeError: Cannot find type 'constExpr'. */ -/* @@? 21:25 Error TypeError: 'constField' type does not exist. */ +/* @@? 21:15 Error Semantic error ESE0371: Cannot find type 'constExpr'. */ +/* @@? 21:25 Error Semantic error ESE0070: 'constField' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets b/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets index fa6ab227a59a4186cdd10e47e5c3839da42e54c3..5981495eb3049f82b9b0ee06a6931006fdc07023 100644 --- a/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets +++ b/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets @@ -22,6 +22,6 @@ const a = +(flag) const b = -(flag) const c = ~(flag) -/* @@? 21:11 Error TypeError: Wrong operand type for unary expression */ -/* @@? 22:11 Error TypeError: Wrong operand type for unary expression */ -/* @@? 23:11 Error TypeError: Wrong operand type for unary expression */ +/* @@? 21:11 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 22:11 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 23:11 Error Semantic error ESE0347: Wrong operand type for unary expression */ diff --git a/ets2panda/test/ast/compiler/ets/constant_expression_test/constant_expression_test.ets b/ets2panda/test/ast/compiler/ets/constant_expression_test/constant_expression_test.ets index 8a8a7fa5113cdb10df07fcb38928d96cfd8d1a19..4bb13ac0996ca54341ba00012a749489d5de9a61 100644 --- a/ets2panda/test/ast/compiler/ets/constant_expression_test/constant_expression_test.ets +++ b/ets2panda/test/ast/compiler/ets/constant_expression_test/constant_expression_test.ets @@ -19,5 +19,4 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: Unresolved reference MathPartialSums */ -/* @@@ label Error TypeError: Only constant expression allowed for element access on tuples. */ +/* @@? 16:18 Error Semantic error ESE0000: Cannot find name int */ diff --git a/ets2panda/test/ast/compiler/ets/constant_variable_import_tests/enum_import_constant.ets b/ets2panda/test/ast/compiler/ets/constant_variable_import_tests/enum_import_constant.ets index 8685ee6c0d26087365b43d6635eab628151cdc44..84fcad306ae9f1477b08723b12e6d5aa31509785 100644 --- a/ets2panda/test/ast/compiler/ets/constant_variable_import_tests/enum_import_constant.ets +++ b/ets2panda/test/ast/compiler/ets/constant_variable_import_tests/enum_import_constant.ets @@ -20,4 +20,4 @@ enum Color { C = /* @@ label */constVar } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_typeerror.ets b/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_typeerror.ets index 79d20a19eedf960bc851df4fa4c105d1dfe3331b..7d538df9022cd1409322b792d5f7f5352d36fa60 100644 --- a/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_typeerror.ets +++ b/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_typeerror.ets @@ -18,4 +18,4 @@ function main(): void { return; } -/* @@@ label Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ +/* @@@ label Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_w_try_stmt_typerror.ets b/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_w_try_stmt_typerror.ets index 6dd1de85e1aebe9a26c460668c90cbb50b2afd40..27e5d43f6599cb2a476ddfd786ead3af4a43dd5b 100644 --- a/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_w_try_stmt_typerror.ets +++ b/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_w_try_stmt_typerror.ets @@ -21,5 +21,5 @@ function getD(d : double): Int { function main(): void { } -/* @@@ label Error TypeError: Type 'Double' is not compatible with the enclosing method's return type 'Int' */ -/* @@@ label1 Error TypeError: Type 'Double' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label Error Semantic error ESE0091: Type 'Double' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label1 Error Semantic error ESE0091: Type 'Double' is not compatible with the enclosing method's return type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/conversion_double_to_float.ets b/ets2panda/test/ast/compiler/ets/conversion_double_to_float.ets index 18a14085dc15282e037ca0e0892f9833c732c931..4fb7c9f4d7b686b6912d071f0fe961dad7e90e38 100644 --- a/ets2panda/test/ast/compiler/ets/conversion_double_to_float.ets +++ b/ets2panda/test/ast/compiler/ets/conversion_double_to_float.ets @@ -30,9 +30,9 @@ function main() { foo(NaN); } -/* @@? 28:5 Error TypeError: No matching call signature for foo(Double) */ -/* @@? 28:9 Error TypeError: Type 'Double' is not compatible with type 'Float' at index 1 */ -/* @@? 29:5 Error TypeError: No matching call signature for foo(Double) */ -/* @@? 29:9 Error TypeError: Type 'Double' is not compatible with type 'Float' at index 1 */ -/* @@? 30:5 Error TypeError: No matching call signature for foo(Double) */ -/* @@? 30:9 Error TypeError: Type 'Double' is not compatible with type 'Float' at index 1 */ +/* @@? 28:5 Error Semantic error ESE0127: No matching call signature for foo(Double) */ +/* @@? 28:9 Error Semantic error ESE0046: Type 'Double' is not compatible with type 'Float' at index 1 */ +/* @@? 29:5 Error Semantic error ESE0127: No matching call signature for foo(Double) */ +/* @@? 29:9 Error Semantic error ESE0046: Type 'Double' is not compatible with type 'Float' at index 1 */ +/* @@? 30:5 Error Semantic error ESE0127: No matching call signature for foo(Double) */ +/* @@? 30:9 Error Semantic error ESE0046: Type 'Double' is not compatible with type 'Float' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/conversion_w_functions_w_try-stmts.ets b/ets2panda/test/ast/compiler/ets/conversion_w_functions_w_try-stmts.ets index cd8dc86933b0bd4a6ae57913915a2d7c714d847e..23efd40252030075beac4bc64e669a5d210ab73d 100644 --- a/ets2panda/test/ast/compiler/ets/conversion_w_functions_w_try-stmts.ets +++ b/ets2panda/test/ast/compiler/ets/conversion_w_functions_w_try-stmts.ets @@ -95,4 +95,4 @@ function main(): void { uglifruit(); */ } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ diff --git a/ets2panda/test/ast/compiler/ets/debugger-statement.ets b/ets2panda/test/ast/compiler/ets/debugger-statement.ets index 0f2f52cc71b62cdcaa15bba42ed472a4e2832de4..2132596a4df5e6324d4b5b991ac5615ae6ab6493 100644 --- a/ets2panda/test/ast/compiler/ets/debugger-statement.ets +++ b/ets2panda/test/ast/compiler/ets/debugger-statement.ets @@ -22,4 +22,4 @@ function main(): void { } } -/* @@? 20:9 Error SyntaxError: Debugger statement is not supported! */ \ No newline at end of file +/* @@? 20:9 Error Syntax error ESY0299: Debugger statement is not supported! */ diff --git a/ets2panda/test/ast/compiler/ets/declaration_merging.ets b/ets2panda/test/ast/compiler/ets/declaration_merging.ets index b553f41948fd1da83fef303b788c009d1f0cf3c9..272bee7a9590832c3cc7d736c8ccd79dca1645a1 100644 --- a/ets2panda/test/ast/compiler/ets/declaration_merging.ets +++ b/ets2panda/test/ast/compiler/ets/declaration_merging.ets @@ -27,6 +27,5 @@ } } -/* @@? 24:8 Error TypeError: Variable 'C' has already been declared. */ -/* @@? 24:8 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ - \ No newline at end of file +/* @@? 24:8 Error Semantic error ESE0351: Variable 'C' has already been declared. */ +/* @@? 24:8 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ diff --git a/ets2panda/test/ast/compiler/ets/declareNameSpace.ets b/ets2panda/test/ast/compiler/ets/declareNameSpace.ets index a077650b6af3a6402d7d04709cbcfa9f1b99ff5f..fb4cdde14649eb2b0de1d1de62a9d1c5e89d8982 100644 --- a/ets2panda/test/ast/compiler/ets/declareNameSpace.ets +++ b/ets2panda/test/ast/compiler/ets/declareNameSpace.ets @@ -24,5 +24,4 @@ declare namespace A { } -/* @@@ label Error TypeError: Variable 'c' has already been declared. */ - +/* @@@ label Error Semantic error ESE0351: Variable 'c' has already been declared. */ diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets index 3ba2dfbb74eb2fb78e457e85c01bc1a5dfee7b5d..647f8cd27bef2edc749135b6b068881e5d004a9f 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets @@ -15,7 +15,7 @@ declare const type typeA = int; -/* @@? 16:20 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 16:20 Error SyntaxError: Unexpected token 'typeA'. */ -/* @@? 16:20 Error TypeError: Unresolved reference typeA */ -/* @@? 16:28 Error SyntaxError: Unexpected token 'int'. */ +/* @@? 16:20 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token 'typeA'. */ +/* @@? 16:20 Error Semantic error ESE0143: Unresolved reference typeA */ +/* @@? 16:28 Error Syntax error ESY0227: Unexpected token 'int'. */ diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets index ba03a78da1d25d035ed1071fe7ca7f1039c75d69..2aa3fe0e034e6feca0ce23cecfe775066a70f61e 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets @@ -21,4 +21,4 @@ declare type type_utility = Partial; let a : type_utility = {description : 1234} -/* @@? 22:39 Error TypeError: Type 'Int' is not compatible with type 'String|undefined' at property 'description' */ +/* @@? 22:39 Error Semantic error ESE0319: Type 'Int' is not compatible with type 'String|undefined' at property 'description' */ diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets index ee618b7cbe8c02d83036de67d9bd6db5e0b1d711..79be154dcc52eaaecac609cdc10e8e927da2662d 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets @@ -22,5 +22,4 @@ declare type type_utility = Required; let a : type_utility = {title : "declare type alias test"} -/* @@? 22:24 Error TypeError: Class property 'description' needs to be initialized for Required. */ - +/* @@? 22:24 Error Semantic error ESE0226: Class property 'description' needs to be initialized for Required. */ diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets index 76fdc63e58a654c1e154b920bab032e16ce05c35..96b30ed110b6452fcd4b1632f554e0206605f88a 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets @@ -21,5 +21,4 @@ let a : int[] = [1,2,3] let b : type_array_alias = a; -/* @@? 21:37 Error TypeError: Type 'Array' cannot be assigned to type 'Array>|Array' */ - +/* @@? 21:37 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'Array>|Array' */ diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets index 0b54a5df0f2ab504e466b38470ddcd6e2707e4ae..7d001a8682f0d3e1f55af061fc4f648b1c92959e 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets @@ -16,5 +16,4 @@ import typeA from './declareType_neg_export' let a : typeA = new Array() -/* @@? 16:22 Error TypeError: Type 'Array' cannot be assigned to type 'Array' */ - +/* @@? 16:22 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/compiler/ets/default_export/export_default_bad1.ets b/ets2panda/test/ast/compiler/ets/default_export/export_default_bad1.ets index ac3975abae5a4d00fdfae1a599d2cb041e5b05ba..e4355692d8298579236a7f08b18dcaf244c38d70 100644 --- a/ets2panda/test/ast/compiler/ets/default_export/export_default_bad1.ets +++ b/ets2panda/test/ast/compiler/ets/default_export/export_default_bad1.ets @@ -26,4 +26,4 @@ class B { export default {A, B} -/* @@? 27:20 Error SyntaxError: export default is not allowed to export multiple specifiers. */ +/* @@? 27:20 Error Syntax error ESY0005: export default is not allowed to export multiple specifiers. */ diff --git a/ets2panda/test/ast/compiler/ets/default_export/export_default_bad2.ets b/ets2panda/test/ast/compiler/ets/default_export/export_default_bad2.ets index 4f1f8f9fb0c513a1858491b207d6f21b1f06ea7d..ab8619d625bc5cf9c905079ee3c5213df8a7f59c 100644 --- a/ets2panda/test/ast/compiler/ets/default_export/export_default_bad2.ets +++ b/ets2panda/test/ast/compiler/ets/default_export/export_default_bad2.ets @@ -15,4 +15,4 @@ export default * from './export_default1' -/* @@? 16:18 Error SyntaxError: Cannot use 'export default' in re-export context */ +/* @@? 16:18 Error Syntax error ESY0244: Cannot use 'export default' in re-export context */ diff --git a/ets2panda/test/ast/compiler/ets/default_param_declare.ets b/ets2panda/test/ast/compiler/ets/default_param_declare.ets index 491faa15e8776f434ca3093296d3895001dfa6aa..3f9491fe7cc207ce3725acbfb7fd988e30c98365 100644 --- a/ets2panda/test/ast/compiler/ets/default_param_declare.ets +++ b/ets2panda/test/ast/compiler/ets/default_param_declare.ets @@ -17,5 +17,5 @@ declare class A{ foo(/* @@ label1 */a:number = 1, /* @@ label2 */b:int = 2):void } -/* @@@ label1 Error SyntaxError: A parameter initializer is only allowed in a function or constructor implementation. */ -/* @@@ label2 Error SyntaxError: A parameter initializer is only allowed in a function or constructor implementation. */ +/* @@@ label1 Error Syntax error ESY0328: A parameter initializer is only allowed in a function or constructor implementation. */ +/* @@@ label2 Error Syntax error ESY0328: A parameter initializer is only allowed in a function or constructor implementation. */ diff --git a/ets2panda/test/ast/compiler/ets/default_type_circular_dependency.ets b/ets2panda/test/ast/compiler/ets/default_type_circular_dependency.ets index 973142e608fa841101956aa3d71627bd596646eb..45efc10557cd30c6cf6740a4030e1b4be1365a9f 100644 --- a/ets2panda/test/ast/compiler/ets/default_type_circular_dependency.ets +++ b/ets2panda/test/ast/compiler/ets/default_type_circular_dependency.ets @@ -17,12 +17,6 @@ class Racer { stat; } -/* @@? 17:9 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:16 Error TypeError: Default type of type parameter has circular dependency. */ -/* @@? 17:22 Error TypeError: 'f' type does not exist. */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 17:24 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:25 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:25 Error SyntaxError: Unexpected token '>'. */ +/* @@? 17:25 Error Syntax error ESY0000: Unexpected token, expected an identifier. */ +/* @@? 17:23 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 17:24 Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/compiler/ets/division-by-zero.ets b/ets2panda/test/ast/compiler/ets/division-by-zero.ets index 85b5646d7379a7b59dfce0302410fec31e18c792..d3a5b600e34dd852976cd8766ff93088e8c1bf4c 100644 --- a/ets2panda/test/ast/compiler/ets/division-by-zero.ets +++ b/ets2panda/test/ast/compiler/ets/division-by-zero.ets @@ -20,7 +20,7 @@ function main() : void { let mod_long: long = /* @@ label4 */1 % 0; } -/* @@@ label1 Error SyntaxError: Division by zero is not allowed. */ -/* @@@ label2 Error SyntaxError: Division by zero is not allowed. */ -/* @@@ label3 Error SyntaxError: Division by zero is not allowed. */ -/* @@@ label4 Error SyntaxError: Division by zero is not allowed. */ +/* @@@ label1 Error Syntax error ESY0273: Division by zero is not allowed. */ +/* @@@ label2 Error Syntax error ESY0273: Division by zero is not allowed. */ +/* @@@ label3 Error Syntax error ESY0273: Division by zero is not allowed. */ +/* @@@ label4 Error Syntax error ESY0273: Division by zero is not allowed. */ diff --git a/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_optional_decl.ets b/ets2panda/test/ast/compiler/ets/dynamic_optional_decl.ets similarity index 100% rename from ets2panda/test/parser/ets/dynamic_import_tests/dynamic_optional_decl.ets rename to ets2panda/test/ast/compiler/ets/dynamic_optional_decl.ets diff --git a/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets b/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets index 09828e793277d00ece590dd6d438a2dd971ec0b9..71a3c07e9235b43c58514186ebb8994b39ab9c5d 100644 --- a/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets +++ b/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets @@ -21,6 +21,6 @@ class Src implements Dep { someMethod? } -/* @@? 17:14 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 18:1 Error SyntaxError: Invalid Type. */ -/* @@? 21:14 Error SyntaxError: Field type annotation expected. */ +/* @@? 17:14 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:14 Error Syntax error ESY0121: Field type annotation expected. */ diff --git a/ets2panda/test/ast/compiler/ets/empty_array_expression.ets b/ets2panda/test/ast/compiler/ets/empty_array_expression.ets index ea4da1ee58457a7dcc19febe4c36a1db766ecc03..be008073fe738f1f0e353c7b08f7d073e723c117 100644 --- a/ets2panda/test/ast/compiler/ets/empty_array_expression.ets +++ b/ets2panda/test/ast/compiler/ets/empty_array_expression.ets @@ -30,11 +30,11 @@ class A{ } } -/* @@@ label1 Error TypeError: Can't resolve array type */ -/* @@@ label2 Error TypeError: Can't resolve array type */ -/* @@@ label3 Error TypeError: Can't resolve array type */ -/* @@@ label4 Error TypeError: Can't resolve array type */ -/* @@@ label5 Error TypeError: Can't resolve array type */ -/* @@@ label6 Error TypeError: Can't resolve array type */ -/* @@@ label7 Error TypeError: Can't resolve array type */ -/* @@@ label8 Error TypeError: Can't resolve array type */ +/* @@@ label1 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label2 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label3 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label4 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label5 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label6 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label7 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label8 Error Semantic error ESE0301: Can't resolve array type */ diff --git a/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets b/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets index 80163182816856e82a7c3e58a536d9d9e106ee05..2a4873de74ce40ba56bc946d15048534f7b4465f 100644 --- a/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets +++ b/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets @@ -16,4 +16,4 @@ let tuple: [string,number] = /* @@ label */[] -/* @@@ label Error TypeError: Initializer has 0 elements, but tuple requires 2 */ +/* @@? 17:5 Error Semantic error ESE0000: Type '[]' is not assignable to type '[string, number]'. */ diff --git a/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets b/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets index 456bb88409431a29e385cc77ecf07b9cfda0806f..8cfd04cc3387593836083180c54de409fa9dc95a 100644 --- a/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets +++ b/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets @@ -22,5 +22,5 @@ E = "0xd", } -/* @@? 21:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 22:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file +/* @@? 21:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 22:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/compiler/ets/enum-to-int-conversion.ets b/ets2panda/test/ast/compiler/ets/enum-to-int-conversion.ets index 6ee37e69b89d0af965dc5812b0b605d05995ce22..0a73a69c997dce21122a2e26fac9e81d62a2eae0 100644 --- a/ets2panda/test/ast/compiler/ets/enum-to-int-conversion.ets +++ b/ets2panda/test/ast/compiler/ets/enum-to-int-conversion.ets @@ -20,4 +20,4 @@ let a: int = E.FIRST - /* @@? 16:2 Error TypeError: Type 'Long' cannot be assigned to type 'Int' */ + /* @@? 16:2 Error Semantic error ESE0318: Type 'Long' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/enumConversions.ets b/ets2panda/test/ast/compiler/ets/enumConversions.ets index 353ca83e8fccc42181af47b2b18dd800dfbe3530..d4fb887323cadf0daccb73208114b8ed2159dba8 100644 --- a/ets2panda/test/ast/compiler/ets/enumConversions.ets +++ b/ets2panda/test/ast/compiler/ets/enumConversions.ets @@ -31,5 +31,5 @@ function foo(e: E, i: int) { // e = 10 // CTE, 10 is out of range } -/* @@? 26:7 Warning Warning: Enum cast is deprecated. Cast support from 'E' to 'Int' will be removed. */ -/* @@? 28:7 Warning Warning: Enum cast is deprecated. Cast support from 'Int' to 'E' will be removed. */ +/* @@? 26:7 Warning Warning W0030: Enum cast is deprecated. Cast support from 'E' to 'Int' will be removed. */ +/* @@? 28:7 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Int' to 'E' will be removed. */ diff --git a/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char.ets b/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char.ets index ad4d7a36a4e3dfab9b142fbec3163170befd38d7..3405bc8f93ad7bce9daf8720d5f0a282554a0d77 100644 --- a/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char.ets +++ b/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char.ets @@ -22,5 +22,5 @@ function main() { arktest.assertEQ(TestEnum.One.valueOf(),101) } -/* @@? 20:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 22:22 Error TypeError: Unresolved reference TestEnum */ \ No newline at end of file +/* @@? 20:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 22:22 Error Semantic error ESE0143: Unresolved reference TestEnum */ diff --git a/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char_asexpression.ets b/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char_asexpression.ets index 13c418b307e5541398772a9259df1b25c0b6b96c..cb1748792bf61e1e16c36bea1ebbd42dbe4a6ca2 100644 --- a/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char_asexpression.ets +++ b/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char_asexpression.ets @@ -38,15 +38,15 @@ function main() { } -/* @@? 19:29 Error TypeError: Cannot cast type 'Char' to 'Byte' */ -/* @@? 21:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 22:22 Error TypeError: Unresolved reference TestEnum1 */ -/* @@? 24:30 Error TypeError: Cannot cast type 'Char' to 'Short' */ -/* @@? 26:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 27:22 Error TypeError: Unresolved reference TestEnum2 */ -/* @@? 29:28 Error TypeError: Cannot cast type 'Char' to 'Int' */ -/* @@? 31:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 32:22 Error TypeError: Unresolved reference TestEnum3 */ -/* @@? 34:29 Error TypeError: Cannot cast type 'Char' to 'Long' */ -/* @@? 36:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 37:22 Error TypeError: Unresolved reference TestEnum4 */ +/* @@? 19:29 Error Semantic error ESE0326: Cannot cast type 'Char' to 'Byte' */ +/* @@? 21:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 22:22 Error Semantic error ESE0143: Unresolved reference TestEnum1 */ +/* @@? 24:30 Error Semantic error ESE0326: Cannot cast type 'Char' to 'Short' */ +/* @@? 26:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 27:22 Error Semantic error ESE0143: Unresolved reference TestEnum2 */ +/* @@? 29:28 Error Semantic error ESE0326: Cannot cast type 'Char' to 'Int' */ +/* @@? 31:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 32:22 Error Semantic error ESE0143: Unresolved reference TestEnum3 */ +/* @@? 34:29 Error Semantic error ESE0326: Cannot cast type 'Char' to 'Long' */ +/* @@? 36:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 37:22 Error Semantic error ESE0143: Unresolved reference TestEnum4 */ diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets index 724f1b214d7440fb7cb51be7ce9d6102d2e0641b..3fdece5e312e36abaae3b98dfdc8c3b2c860ff5d 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets @@ -20,4 +20,4 @@ function test(): int{ return /* @@ label */a; } -/* @@@ label Error TypeError: Type 'A|null' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label Error Semantic error ESE0091: Type 'A|null' is not compatible with the enclosing method's return type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets index f187202a424ce9c528d4b2d1bc2843427593efcd..95573959b47ac235e68da7a308b6b41ade146d1c 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets @@ -20,4 +20,4 @@ function test0(): A { return /* @@ label */a; } -/* @@@ label Error TypeError: Type 'A|null' is not compatible with the enclosing method's return type 'A' */ +/* @@@ label Error Semantic error ESE0091: Type 'A|null' is not compatible with the enclosing method's return type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets index 59b78a19fdcfaa2fd6b4d433c891e3c1e4861871..18bf34c03e08aa7d9ebed26d58271721fc936190 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets @@ -20,4 +20,4 @@ function test1(): A|null { return /* @@ label */a; } -/* @@@ label Error TypeError: Type 'A|null' is not compatible with the enclosing method's return type 'A|null' */ +/* @@@ label Error Semantic error ESE0091: Type 'A|null' is not compatible with the enclosing method's return type 'A|null' */ diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString3.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString3.ets index bbfa7a32cad0c54e821e740280e29a0ce5a26f9d..13d7de182ee2790bf1fda29457d9421e7901cc21 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString3.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString3.ets @@ -20,4 +20,4 @@ let z: A = /* @@ label */(): A => { return b; } -/* @@@ label Error TypeError: Type '() => A' cannot be assigned to type 'A' */ +/* @@@ label Error Semantic error ESE0318: Type '() => A' cannot be assigned to type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString4.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString4.ets index d46422e571e83bd1d6a6a6335152a6ef889af3e1..a184451f84bcc82d43f57489a392890c4e9339e7 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString4.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString4.ets @@ -17,4 +17,4 @@ class A{} let f: (() => int) | null = /* @@ label */5; -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type '() => Int|null' */ +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type '() => Int|null' */ diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString5.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString5.ets index 8f7092c48b7f5121d5a58f95204be32deb2bc418..fd16feb607a7009d3a64242c71f3bb6989292980 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString5.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString5.ets @@ -19,4 +19,4 @@ let g:((y:A) => A|null)|null = /* @@ label */(y:A): A| return y; } -/* @@@ label Error TypeError: Type '(y: A) => A|null' cannot be assigned to type '(y: A) => A|null|null' */ +/* @@@ label Error Semantic error ESE0318: Type '(y: A) => A|null' cannot be assigned to type '(y: A) => A|null|null' */ diff --git a/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_1.ets b/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_1.ets index e4c7f8ebe1504fa21225cf5a0720668d563da1de..2829d8317e5346fc272471e084fca45882b2a07b 100644 --- a/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_1.ets +++ b/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_1.ets @@ -17,4 +17,4 @@ function foo(x: null) { return x! } -/* @@? 17:12 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file +/* @@? 17:12 Warning Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_2.ets b/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_2.ets index edd26e7c88e5b867bccc75cdd2ef797f501358a3..52ab94741f72fbd892d3798dad2014e311108c22 100644 --- a/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_2.ets +++ b/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_2.ets @@ -20,4 +20,4 @@ function foo(x: Object|null) { return x! } -/* @@? 20:12 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file +/* @@? 20:12 Warning Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_3.ets b/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_3.ets index befbfdddc917298a0860176b26af677e6a58af03..3edd9653e3c7f3a7989ee3c32b1350747f924cb4 100644 --- a/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_3.ets +++ b/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_3.ets @@ -18,4 +18,4 @@ function foo() { return x! } -/* @@? 18:12 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file +/* @@? 18:12 Warning Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorMissingReceiver.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorMissingReceiver.ets index f26a5a9313e7acd5ee09e3b7089366cd66177c55..8d7b81f56d3f25399ad6b64a61cdabdf867cdf28 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorMissingReceiver.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorMissingReceiver.ets @@ -23,6 +23,6 @@ get field(a: A): int /* @@ label1 */{ /* @@ label2 */set field() /* @@ label3 */{} -/* @@@ label1 Error SyntaxError: Extension Accessor must have a receiver. */ -/* @@@ label2 Error SyntaxError: Extension Setter can only have 2 parameters. */ -/* @@@ label3 Error SyntaxError: Extension Accessor must have a receiver. */ +/* @@@ label1 Error Syntax error ESY0146: Extension Accessor must have a receiver. */ +/* @@@ label2 Error Syntax error ESY0023: Extension Setter can only have 2 parameters. */ +/* @@@ label3 Error Syntax error ESY0146: Extension Accessor must have a receiver. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithExtensionFunction.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithExtensionFunction.ets index c97f4b9e8bd55821c387088c424708f347e28755..5dac71e02c789e1a88104e3356242301a3e93401 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithExtensionFunction.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithExtensionFunction.ets @@ -28,5 +28,4 @@ set name/* @@ label */(this: B, n: string) { this.name_ = n; } -/* @@@ label Error TypeError: Function name with this assembly signature already declared. */ -/* @@@ label Error TypeError: Function name with this assembly signature already declared. */ +/* @@@ label Error Semantic error ESE0131: Function name with this assembly signature already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithFunction.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithFunction.ets index c97f4b9e8bd55821c387088c424708f347e28755..5dac71e02c789e1a88104e3356242301a3e93401 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithFunction.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithFunction.ets @@ -28,5 +28,4 @@ set name/* @@ label */(this: B, n: string) { this.name_ = n; } -/* @@@ label Error TypeError: Function name with this assembly signature already declared. */ -/* @@@ label Error TypeError: Function name with this assembly signature already declared. */ +/* @@@ label Error Semantic error ESE0131: Function name with this assembly signature already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInstanceField.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInstanceField.ets index 9f85bf3b5c247e1be4a7eb9b32efce2a32d64cb1..3b262c82dd2baa43e64f4200c6104f996ce1b486 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInstanceField.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInstanceField.ets @@ -26,5 +26,5 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor or extension function 'name' has the same name with field of class B */ -/* @@@ label2 Error TypeError: The extension accessor or extension function 'name' has the same name with field of class B */ +/* @@@ label1 Error Semantic error ESE0079: The extension accessor or extension function 'name' has the same name with field of class B */ +/* @@@ label2 Error Semantic error ESE0079: The extension accessor or extension function 'name' has the same name with field of class B */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInterfaceInstanceField.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInterfaceInstanceField.ets index 06b36a3401978e40d6fed1a6a2473e7624ac066c..62fe79d0329d6da51cf8d8d711669f8836e783e9 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInterfaceInstanceField.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInterfaceInstanceField.ets @@ -29,7 +29,7 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class B */ -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class A */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class B */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod1.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod1.ets index 3daffc27c80e7e6217d62086d1ec6143e4c9e5a1..a71fb83a0940ac50a0853284420938253e355295 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod1.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod1.ets @@ -32,5 +32,5 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class B */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod2.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod2.ets index 0eba306ba272b261fa225dedabc7c580eb69f270..4e72df7bbb508e295666af66464a2a453edbdeaa 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod2.ets @@ -32,5 +32,5 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class B */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperInstanceField.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperInstanceField.ets index cb8f0655bc9c9760ac76a6fb5f6d4ba719c960be..8eca2f87879f9abe514efc38282d4f16d7c49fee 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperInstanceField.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperInstanceField.ets @@ -26,5 +26,5 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor or extension function 'name' has the same name with field of class A */ -/* @@@ label2 Error TypeError: The extension accessor or extension function 'name' has the same name with field of class A */ +/* @@@ label1 Error Semantic error ESE0079: The extension accessor or extension function 'name' has the same name with field of class A */ +/* @@@ label2 Error Semantic error ESE0079: The extension accessor or extension function 'name' has the same name with field of class A */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod1.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod1.ets index 0538aa60f86b29c09247e4bb6f5738e289d7ed3b..2d48d296e428c2506f07a23dd0ab08b3010e0f8c 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod1.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod1.ets @@ -35,5 +35,5 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class A */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod2.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod2.ets index dbb0ca95a9823fd1895dd994fc26a7217cf0794d..e649b211ecbeebfa1c4d82f704e0bc1772131d18 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod2.ets @@ -35,5 +35,5 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class A */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorParams.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorParams.ets index 26228dec0453bea2ff9c8e0f4afe86593e22c735..0b208063a747dc3dbb23b74137026658448e217a 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorParams.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorParams.ets @@ -25,5 +25,5 @@ class A{ } -/* @@@ label1 Error SyntaxError: Extension Getter can only have 1 parameter. */ -/* @@@ label2 Error SyntaxError: Extension Setter can only have 2 parameters. */ +/* @@@ label1 Error Syntax error ESY0022: Extension Getter can only have 1 parameter. */ +/* @@@ label2 Error Syntax error ESY0023: Extension Setter can only have 2 parameters. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetMustReturnValue.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetMustReturnValue.ets index f6fdb9f662504949e57a71086c647928a7e538ae..b00e46a8633b9be443131da6e46d88b84e9690bd 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetMustReturnValue.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetMustReturnValue.ets @@ -18,4 +18,4 @@ class A{ } get /* @@ label */field(this: A){} -/* @@@ label Error TypeError: Getter must return a value */ +/* @@@ label Error Semantic error ESE0086: Getter must return a value */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterInWrongUsage.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterInWrongUsage.ets index 5b7b527bffea4ccd5ea8ccfc1557e033b498e0a1..f645d59a76f3374a22946b6a7bf93cea6cfaf26b 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterInWrongUsage.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterInWrongUsage.ets @@ -32,6 +32,6 @@ function main() { console.log(/* @@ label3 */a.idx = 1) } -/* @@@ label1 Error TypeError: Extension getter in wrong usage */ -/* @@@ label2 Error TypeError: Extension getter in wrong usage */ -/* @@@ label3 Error TypeError: Extension getter in wrong usage */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0269: Extension getter in wrong usage */ +/* @@@ label2 Error Semantic error ESE0269: Extension getter in wrong usage */ +/* @@@ label3 Error Semantic error ESE0269: Extension getter in wrong usage */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly.ets index c5047d1454df4504cecd4fe36aea9f868881e6a5..f6d45a97455f6a74a6c04b4551814cdcdb698e37 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly.ets @@ -25,7 +25,7 @@ new A()./* @@ label2 */field += 1; new A()./* @@ label3 */field++; ++new A()./* @@ label4 */field; -/* @@@ label1 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label2 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label3 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label4 Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label1 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label2 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label3 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label4 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly2.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly2.ets index 228ae744cce2164e86d6fd9b875328c5c1c9c237..60a75e4567f4f3a0abee59055d887583e707b287 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly2.ets @@ -33,7 +33,7 @@ new A()./* @@ label2 */field += 1; new A()./* @@ label3 */field++; ++new A()./* @@ label4 */field; -/* @@@ label1 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label2 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label3 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label4 Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label1 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label2 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label3 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label4 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetCantReturnValue.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetCantReturnValue.ets index 510aa86382c533ce1b293407bbb1f381e355b271..b1f3108487167fc7a44318c9998260b16c130371 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetCantReturnValue.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetCantReturnValue.ets @@ -21,4 +21,4 @@ class A{ return this.field_ } -/* @@@ label Error SyntaxError: Setter must not have return type even if it is void. */ +/* @@@ label Error Syntax error ESY0241: Setter must not have return type even if it is void. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly.ets index 97be18efb3a1b5ace8768bbe7eeb0b8343faf845..3728d7aac7bccf8a344becebfee82863336df35e 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly.ets @@ -24,6 +24,6 @@ new A()./* @@ label1 */field++; new A()./* @@ label2 */field += 1; ++new A()./* @@ label3 */field; -/* @@@ label1 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label2 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label3 Error TypeError: Cannot read from this property because it is writeonly. */ +/* @@@ label1 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label2 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label3 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly2.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly2.ets index a93f3c5e6162c45552c53fafde0024199e5d2b6f..08a7b121121ab02a477cc2371f49d74aa90de93d 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly2.ets @@ -35,7 +35,7 @@ new A()./* @@ label2 */field += 1; new A().field = 1; /* @@ label4 */new A().field = 1.23 -/* @@@ label1 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label2 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label3 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label4 Error TypeError: Can't find the extension accessor. */ +/* @@@ label1 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label2 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label3 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label4 Error Semantic error ESE0246: Can't find the extension accessor. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_crash.ets b/ets2panda/test/ast/compiler/ets/extension_crash.ets index 4cea736a025dceffd04c645e0d6f52efe5ac0157..afa84fdd7bd4cb0cb2c2bc359d96402552bbb405 100644 --- a/ets2panda/test/ast/compiler/ets/extension_crash.ets +++ b/ets2panda/test/ast/compiler/ets/extension_crash.ets @@ -20,9 +20,4 @@ class A { function foo(this: A) { } -/* @@? 17:8 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:13 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:13 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:13 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:18 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:18 Error SyntaxError: Unexpected token ')'. */ +/* @@? 17:13 Error Syntax error ESY0000: , expected */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets index 5f973b3f44f310419aa440d90ad94bf59e8a0074..7bd6e50dc9b79230c0e4f9a9636b20ce601f1691 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets @@ -17,5 +17,5 @@ function toString(this: double[]) /* @@ label */{ return "ext-func" } -/* @@? 16:49 Error TypeError: The extension function 'toString' has the same name with public method in class Array */ -/* @@? 16:49 Error TypeError: The extension function 'toString' has the same name with public method in class Object */ +/* @@@ label Error Semantic error ESE0081: The extension function 'toString' has the same name with public method in class Array */ +/* @@@ label Error Semantic error ESE0081: The extension function 'toString' has the same name with public method in class Object */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_private_field.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_private_field.ets index 50f2e2e3d60ef8d291d2235a86460767c1db54c5..95d5886d971fb1c83dafc30f3ddfab93cc1d4d25 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_private_field.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_private_field.ets @@ -26,4 +26,4 @@ function main() { console.println(banana.name()); } -/* @@@ label Error TypeError: Property id is not visible here. */ +/* @@@ label Error Semantic error ESE0293: Property id is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_protected_field.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_protected_field.ets index 6e0fe6102ba6c100c9cc404be687b10ab0229f5a..df3b24968892cfd94e4bd8c039cb4901ef40c682 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_protected_field.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_protected_field.ets @@ -28,5 +28,5 @@ function main() { console.println(banana.name()); } -/* @@@ label Error TypeError: Signature price(): Int is not visible here. */ -/* @@@ label Error TypeError: No matching call signature */ +/* @@@ label Error Semantic error ESE0139: Signature price(): Int is not visible here. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_called_by_class.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_called_by_class.ets index fb813f1d3110289c1581766bc3c9c27474136d26..2e4c97575f6f23e803669308dbe8cd8ab808299e 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_called_by_class.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_called_by_class.ets @@ -27,12 +27,12 @@ function main() { console.println(A./* @@ label */price(1)); } -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Boolean): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Byte): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Short): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Char): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Int): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Long): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Float): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Double): void` */ -/* @@@ label Error TypeError: Property 'price' does not exist on type 'A' */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Boolean): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Byte): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Short): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Char): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Int): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Long): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Float): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Double): void` */ +/* @@@ label Error Semantic error ESE0087: Property 'price' does not exist on type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplicated_with_private_field.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplicated_with_private_field.ets index ab7af4dedc648f10e40eeb7470aa87f5893db382..462a06b0017c72b995051635ff802d1a861aa0f4 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplicated_with_private_field.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplicated_with_private_field.ets @@ -28,12 +28,12 @@ function main() { console.println(/* @@label */banana.name(2)); } -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Boolean): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Byte): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Short): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Char): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Int): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Long): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Float): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Double): void` */ -/* @@? 28:34 Error TypeError: No matching call signature for name(Int) */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Boolean): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Byte): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Short): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Char): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Int): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Long): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Float): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Double): void` */ +/* @@? 28:34 Error Semantic error ESE0127: No matching call signature for name(Int) */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplication.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplication.ets index 0b88f49865717f87148319224114361f7f3e377c..38cd9a0236e2c1eb737a929f804062d205ba9ff5 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplication.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplication.ets @@ -25,4 +25,4 @@ function name(this: Fruit) { console.println("this is extension function 2"); } -/* @@@ label Error TypeError: Function name is already declared. */ +/* @@@ label Error Semantic error ESE0130: Function name is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_for_unresolved_type.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_for_unresolved_type.ets index 857aab986887354cceab6a24752e387c4584da64..0fcc792aabf5006d12b581d641b58b04303cc8d5 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_for_unresolved_type.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_for_unresolved_type.ets @@ -17,5 +17,5 @@ function name(this: /* @@label */Fruit): int { return 1; } -/* @@@ label Error TypeError: Cannot find type 'Fruit'. */ -/* @@? 16:1 Error TypeError: Extension function can only defined for class, interface or array. */ +/* @@? 16:1 Error Semantic error ESE0082: Extension function can only defined for class, interface or array. */ +/* @@? 16:34 Error Semantic error ESE0371: Cannot find type 'Fruit'. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_miss_signature.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_miss_signature.ets index 2e8df50de75c6d2e9be2a1cf3f35aeb6928983a3..1aa2e5c8ad9e27b87639fbc71ff6577b5ab0dff8 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_miss_signature.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_miss_signature.ets @@ -39,6 +39,6 @@ function main() { asMethodCall(); } -/* @@? 30:5 Error TypeError: Expected 2 arguments, got 3. */ -/* @@? 30:5 Error TypeError: No matching call signature for foo(Fruit, Double, Double) */ -/* @@? 34:5 Error TypeError: No matching call signature for foo(Double, Double) */ +/* @@? 30:5 Error Semantic error ESE0124: Expected 2 arguments, got 3. */ +/* @@? 30:5 Error Semantic error ESE0127: No matching call signature for foo(Fruit, Double, Double) */ +/* @@? 34:5 Error Semantic error ESE0127: No matching call signature for foo(Double, Double) */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_not_for_class_type.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_not_for_class_type.ets index b0659282cdefb04f38ec72875bb7755c5fd03b18..01b3c9218348af9e30aed97d7012911af00ae40e 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_not_for_class_type.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_not_for_class_type.ets @@ -19,4 +19,4 @@ enum Fruit { size = 4 }; return 1; } -/* @@@ label Error TypeError: Extension function can only defined for class, interface or array. */ +/* @@? 18:14 Error Semantic error ESE0082: Extension function can only defined for class, interface or array. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg1.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg1.ets index 8edd9cf10c2a31024233518d76ec72373a43a8ae..faf3bd4b34f78619da6062809a2b28e236e9df81 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg1.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg1.ets @@ -17,4 +17,4 @@ class Fruit {} function price(this/* @@label */) {} -/* @@@ label Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ +/* @@? 18:33 Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg2.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg2.ets index a548876f98cb59492525a502363cc075ec40517d..8b4dc235a5a654161e0c2aaf93904889d99701fe 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg2.ets @@ -17,4 +17,4 @@ class Fruit {} function price(a: number, this: Fruit/* @@label */) {} -/* @@@ label Error SyntaxError: Function Parameter 'this' must be the first. */ +/* @@? 18:51 Error Syntax error ESY0158: Function Parameter 'this' must be the first. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_primitive.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_primitive.ets index ec9bcf5d7502b27c66571371980efc212a35a015..0ec237751ffcea1471091f5d7bce03f8eaf70b57 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_primitive.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_primitive.ets @@ -17,4 +17,4 @@ return 1.2; } -/* @@? 16:52 Error TypeError: The extension accessor or extension function 'value' has the same name with field of class Double */ +/* @@? 16:52 Error Semantic error ESE0079: The extension accessor or extension function 'value' has the same name with field of class Double */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg.ets index 1c4439bcc7136a7c2c98de302d7c8cc9dc7e5163..6c869339665291f2eccd8d3772ed482fece4dc43 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg.ets @@ -21,4 +21,4 @@ function foo(this: B): this { return /* @@ label */2; } -/* @@@ label Error TypeError: Type 'Int' is not compatible with the enclosing method's return type 'B' */ +/* @@@ label Error Semantic error ESE0091: Type 'Int' is not compatible with the enclosing method's return type 'B' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg2.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg2.ets index e0e2bf5db7fccc506b67db6f0367f13a4ec63ffb..747d12e5e79fd65374cf18d5da9cf4ed071d948b 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg2.ets @@ -20,5 +20,5 @@ function f1(this : B): /* @@ label*/this[] { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'Array' */ +/* @@? 19:37 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'Array' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg3.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg3.ets index ea19f50512b63ae5b9dcd78e401ed49641c04bd8..a9be8cce096cdf818cf5990059335da6831d5c77 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg3.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg3.ets @@ -20,5 +20,5 @@ function f1(this : B): B | A { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'B|A' */ +/* @@? 19:44 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'B|A' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union.ets index c3776e2b05917273baf9fe26eefbed5f73f96dee..81e87f9dab7c6aa30eb9e66f42b1e9f10f0b2199 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union.ets @@ -19,6 +19,6 @@ class B {} function f1(this : B): /* @@ label*/this | A { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 19:37 Error TypeError: A 'this' cannot be used as a part of union type. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'ETSGLOBAL|A' */ +/* @@? 19:37 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 19:37 Error Semantic error ESE0281: A 'this' cannot be used as a part of union type. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'ETSGLOBAL|A' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union2.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union2.ets index 05f1930cee0c9306d8164c966c82480a797edfa0..fd4212db3e44b0fb90c8d2b4279922a41455b709 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union2.ets @@ -18,5 +18,5 @@ class B {} function f1(this : B): /* @@ label*/this | B { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 18:37 Error TypeError: A 'this' cannot be used as a part of union type. */ +/* @@? 18:37 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 18:37 Error Semantic error ESE0281: A 'this' cannot be used as a part of union type. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union3.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union3.ets index 404e72c9c8681d85448e4621214c89c5f45ef080..064b2c52e17a915066f6ee6f292bfab6bc0bd92f 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union3.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union3.ets @@ -20,6 +20,6 @@ function f1(this : B): A | /* @@ label*/this { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 19:41 Error TypeError: A 'this' cannot be used as a part of union type. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'A|ETSGLOBAL' */ +/* @@? 19:41 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 19:41 Error Semantic error ESE0281: A 'this' cannot be used as a part of union type. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'A|ETSGLOBAL' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_different_return_type_interface_function.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_different_return_type_interface_function.ets index 75fdf1d9093d00fe5ce83e340a4d5c5253660bdb..01d0281851bedf6eb4b839916af84834fea20d3b 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_different_return_type_interface_function.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_different_return_type_interface_function.ets @@ -33,4 +33,4 @@ function foo(this:Banana, id2: int, k2: String): int/* @@ label */{ return 2; } -/* @@@ label Error TypeError: The extension function 'foo' has the same name with public method in class Yellow */ +/* @@@ label Error Semantic error ESE0081: The extension function 'foo' has the same name with public method in class Yellow */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_member_function.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_member_function.ets index bb32798a7a944a9004a61a10108097a1a7a6c740..686d9e25ab7e54bfc0c769698a531fd8eddb8399 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_member_function.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_member_function.ets @@ -46,5 +46,5 @@ function price(this:B) /* @@label2 */{ function xxx(this:A, id: int) { } -/* @@@ label1 Error TypeError: The extension function 'sweetness1' has the same name with public method in class B */ -/* @@@ label2 Error TypeError: The extension function 'price' has the same name with public method in class B */ +/* @@? 40:56 Error Semantic error ESE0081: The extension function 'sweetness1' has the same name with public method in class B */ +/* @@? 43:38 Error Semantic error ESE0081: The extension function 'price' has the same name with public method in class B */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_duplicated_with_extension_function.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_duplicated_with_extension_function.ets index 2e14e4f388aa091869c70a0725db2c5036b1e2f6..f62aff1f3f00087a7d882b52e86979cf8c2e9fe8 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_duplicated_with_extension_function.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_duplicated_with_extension_function.ets @@ -25,4 +25,4 @@ function name(this: Fruit) { console.println("this is normal function"); } -/* @@@ label Error TypeError: Function name is already declared. */ +/* @@@ label Error Semantic error ESE0130: Function name is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_with_extension_style_signature.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_with_extension_style_signature.ets index 15efd392f63cbf0f645b2e67addbda98dd2959f7..3e032259f0dd473b89be99ed2abedc058d4316e2 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_with_extension_style_signature.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_with_extension_style_signature.ets @@ -30,4 +30,4 @@ function main() { banana./* @@ label */price(); } -/* @@@ label Error TypeError: Property 'price' does not exist on type 'Banana' */ +/* @@@ label Error Semantic error ESE0087: Property 'price' does not exist on type 'Banana' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/put_this_as_method_params.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/put_this_as_method_params.ets index 7f0a2c48898b7510b454172a98242055a2d63d2b..3b6b4f0d575a65493622d9610e7b4b48746914fb 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/put_this_as_method_params.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/put_this_as_method_params.ets @@ -20,4 +20,4 @@ class Banana { } -/* @@@ label Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ +/* @@@ label Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets b/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets index 4b2ca22d2237ede77d490dff5c8ca604fd5bbfb4..e8f85e11cc8ace77ec19fbda070d0aed051b3c70 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets @@ -42,11 +42,11 @@ function main() { a.foo(true); } -/* @@@ label Error TypeError: Signature fooPrivate(x: String): void is not visible here. */ -/* @@@ label Error TypeError: No matching call signature for fooPrivate("abc") */ -/* @@@ label1 Error TypeError: Type '"abc"' is not compatible with type 'Double' at index 1 */ -/* @@@ label1 Error TypeError: Type '"abc"' is not compatible with type 'Boolean' at index 1 */ -/* @@@ label2 Error TypeError: Signature fooPrivate(x: String): void is not visible here. */ -/* @@@ label2 Error TypeError: No matching call signature for foo("abc") */ -/* @@@ label3 Error TypeError: Signature fooProtected(x: Double): void is not visible here. */ -/* @@@ label3 Error TypeError: No matching call signature for foo(Int) */ +/* @@@ label Error Semantic error ESE0139: Signature fooPrivate(x: String): void is not visible here. */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for fooPrivate("abc") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"abc"' is not compatible with type 'Double' at index 1 */ +/* @@@ label1 Error Semantic error ESE0046: Type '"abc"' is not compatible with type 'Boolean' at index 1 */ +/* @@@ label2 Error Semantic error ESE0139: Signature fooPrivate(x: String): void is not visible here. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for foo("abc") */ +/* @@@ label3 Error Semantic error ESE0139: Signature fooProtected(x: Double): void is not visible here. */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for foo(Int) */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/access_modifiers_2.ets b/ets2panda/test/ast/compiler/ets/first_match/access_modifiers_2.ets index 8c7362de2245e6567c2d738861290c1a56f1483f..0a167f9a9c832a591685f513285b6b9f54fa49f0 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/access_modifiers_2.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/access_modifiers_2.ets @@ -31,6 +31,6 @@ class Test3 { abstract overload foo{ foo1, foo2 } } -/* @@? 19:21 Error SyntaxError: Overload Declaration only allow use modifier 'static' | 'async'. */ -/* @@? 25:23 Error SyntaxError: Overload Declaration only allow use modifier 'static' | 'async'. */ -/* @@? 31:23 Error SyntaxError: Overload Declaration only allow use modifier 'static' | 'async'. */ +/* @@? 19:21 Error Syntax error ESY0323: Overload Declaration only allow use modifier 'static' | 'async'. */ +/* @@? 25:23 Error Syntax error ESY0323: Overload Declaration only allow use modifier 'static' | 'async'. */ +/* @@? 31:23 Error Syntax error ESY0323: Overload Declaration only allow use modifier 'static' | 'async'. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets b/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets index 7e8ca5089a1f6d1ff8b825c7f5fd432b68120dad..3d2f0bccc8eb8a05b3b32f672aa4b6a788d52cfd 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets @@ -35,5 +35,5 @@ function main(){ a.foo111([123,123,123]); } -/* @@? 32:5 Error TypeError: No matching call signature for foo111(Array) */ -/* @@? 33:5 Error TypeError: No matching call signature for foo111(Array) */ +/* @@? 32:5 Error Semantic error ESE0127: No matching call signature for foo111(Array) */ +/* @@? 33:5 Error Semantic error ESE0127: No matching call signature for foo111(Array) */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/constructor.ets b/ets2panda/test/ast/compiler/ets/first_match/constructor.ets index db1517374ca74696a0a2f24ee0220c9095ff0a55..880063b0af919c4229e43f9e68ccea7e20cf461a 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/constructor.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/constructor.ets @@ -46,7 +46,7 @@ class Test5{ /* @@ label3 */overload constructor{con1} } -/* @@@ label1 Error TypeError: Function con1 is already declared. */ -/* @@@ label2 Error TypeError: The overloaded name 'constructor' can't refer to a function with overload signatures. */ -/* @@@ label2 Error TypeError: The overloaded name 'con1' can't refer to a function with overload signatures. */ -/* @@@ label3 Error TypeError: The overloaded name 'constructor' can't refer to a function with overload signatures. */ +/* @@@ label1 Error Semantic error ESE0130: Function con1 is already declared. */ +/* @@@ label2 Error Semantic error ESE0389: The overloaded name 'constructor' can't refer to a function with overload signatures. */ +/* @@@ label2 Error Semantic error ESE0389: The overloaded name 'con1' can't refer to a function with overload signatures. */ +/* @@@ label3 Error Semantic error ESE0389: The overloaded name 'constructor' can't refer to a function with overload signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration.ets index 8f7d7c607a85577679c28294c606616c275fd2bf..ca1f8e4fc3dcdcaf30f3735c518e3a1b3edb7cd0 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration.ets @@ -19,15 +19,15 @@ class Test { overload: foo{ foo1, foo2 } } -/* @@? 19:13 Error SyntaxError: Identifier expected, got ':'. */ -/* @@? 19:15 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 19:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:15 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 19:18 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 19:18 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:20 Error TypeError: Variable 'foo1' has already been declared. */ -/* @@? 19:24 Error SyntaxError: Field type annotation expected. */ -/* @@? 19:24 Error SyntaxError: Unexpected token ','. */ -/* @@? 19:26 Error TypeError: Variable 'foo2' has already been declared. */ -/* @@? 19:30 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 19:13 Error Syntax error ESY0224: Identifier expected, got ':'. */ +/* @@? 19:15 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 19:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:15 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 19:18 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 19:18 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:20 Error Semantic error ESE0351: Variable 'foo1' has already been declared. */ +/* @@? 19:24 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 19:24 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 19:26 Error Semantic error ESE0351: Variable 'foo2' has already been declared. */ +/* @@? 19:30 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_2.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_2.ets index 63be2fcf48790b11a0eb23f8056c5cee1ca5c633..d38d6e4da894297fd6c3e49907f2b4b46870c1c2 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_2.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_2.ets @@ -19,13 +19,13 @@ class Base { overload foo(foo1, foo2) } -/* @@? 19:17 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 19:17 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:17 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 19:18 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 19:18 Error TypeError: Variable 'foo1' has already been declared. */ -/* @@? 19:22 Error SyntaxError: Field type annotation expected. */ -/* @@? 19:22 Error SyntaxError: Unexpected token ','. */ -/* @@? 19:24 Error TypeError: Variable 'foo2' has already been declared. */ -/* @@? 19:28 Error SyntaxError: Field type annotation expected. */ -/* @@? 19:28 Error SyntaxError: Unexpected token ')'. */ +/* @@? 19:17 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 19:17 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:17 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 19:18 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 19:18 Error Semantic error ESE0351: Variable 'foo1' has already been declared. */ +/* @@? 19:22 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 19:22 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 19:24 Error Semantic error ESE0351: Variable 'foo2' has already been declared. */ +/* @@? 19:28 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 19:28 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_3.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_3.ets index c6e43822e8d77df970144d830f523080f05d6f14..bd1341f114f40d74ee3b98f77444f1cf8cc97609 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_3.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_3.ets @@ -19,7 +19,7 @@ class Base { overload { foo1, foo2 } } -/* @@? 19:14 Error SyntaxError: Identifier expected, got '{'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:16 Error TypeError: overloaded name must refer to an accessible method. */ +/* @@? 19:14 Error Syntax error ESY0224: Identifier expected, got '{'. */ +/* @@? 19:16 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 19:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:16 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_4.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_4.ets index a3d50ec7214d0ffbb10cea7b76db16d26ad94391..46ec5f00f1f9cc5e2428ed51fe7591d5bdc91eaa 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_4.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_4.ets @@ -19,5 +19,5 @@ class Base { overload foo{ fo, fo2 } } -/* @@? 19:19 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 19:23 Error TypeError: overloaded name must refer to an accessible method. */ +/* @@? 19:19 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 19:23 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_5.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_5.ets index c7a80816f02fbb0dec419f0ca02691fb0e1239bb..f8c01816d7f330c8112e762ddc5de06930efacc3 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_5.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_5.ets @@ -15,9 +15,8 @@ overload foo{ foo.,T,} -/* @@? 16:19 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:19 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 16:20 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 16:20 Error TypeError: Unresolved reference T */ -/* @@? 16:21 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:22 Error SyntaxError: Unexpected token '}'. */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'foo'. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 16:19 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 16:22 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declare.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declare.ets index 090aa4c25a1bed2ae8e7fdd14100942d82869e32..9d2702788b1bb96dd416aba60b97dccbcfdd4952 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declare.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declare.ets @@ -15,10 +15,10 @@ overload * you thMMMMMMMMdSTICKER, -/* @@? 16:10 Error SyntaxError: Identifier expected, got '*'. */ -/* @@? 16:12 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 16:12 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:12 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 16:16 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 16:16 Error TypeError: Unresolved reference thMMMMMMMMdSTICKER */ -/* @@? 16:34 Error SyntaxError: Unexpected token ','. */ +/* @@? 16:10 Error Syntax error ESY0224: Identifier expected, got '*'. */ +/* @@? 16:12 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 16:12 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:12 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 16:16 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 16:16 Error Semantic error ESE0143: Unresolved reference thMMMMMMMMdSTICKER */ +/* @@? 16:34 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declare2.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declare2.ets index a9f652b9de1bfb071691c24e84caf55b313d6842..6e8cedce098478e718d837be8054289fdf5f2db4 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declare2.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declare2.ets @@ -17,10 +17,10 @@ class A{ overload * you thMMMMMMMMdSTICKER, } -/* @@? 17:14 Error SyntaxError: Identifier expected, got '*'. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:16 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 17:20 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 17:38 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:38 Error SyntaxError: Unexpected token ','. */ +/* @@? 17:14 Error Syntax error ESY0224: Identifier expected, got '*'. */ +/* @@? 17:16 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 17:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:16 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 17:20 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 17:38 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:38 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_identifier.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_identifier.ets index 597ad29e1a5d28de16e8d6f818b30dbc7bc1b145..4239814a055caf836d6e5cd92afe300740bbec27 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_identifier.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_identifier.ets @@ -27,25 +27,25 @@ function main(){ a.foo111(["abc","abc",1]); } -/* @@? 21:20 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 21:20 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 21:20 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 21:21 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 21:21 Error TypeError: Variable 'foo1' has already been declared. */ -/* @@? 21:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:25 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:30 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:30 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:35 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:35 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:36 Error SyntaxError: Unexpected token '{'. */ -/* @@? 22:20 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 22:20 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 22:20 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 22:21 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 22:21 Error TypeError: Unresolved reference foo1 */ -/* @@? 22:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:26 Error SyntaxError: Unexpected token 'foo2'. */ -/* @@? 22:26 Error TypeError: Unresolved reference foo2 */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 23:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 21:20 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 21:20 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 21:20 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 21:21 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 21:21 Error Semantic error ESE0351: Variable 'foo1' has already been declared. */ +/* @@? 21:25 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:25 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:30 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:30 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:35 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:35 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:36 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 22:20 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 22:20 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 22:20 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 22:21 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 22:21 Error Semantic error ESE0143: Unresolved reference foo1 */ +/* @@? 22:25 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:26 Error Syntax error ESY0227: Unexpected token 'foo2'. */ +/* @@? 22:26 Error Semantic error ESE0143: Unresolved reference foo2 */ +/* @@? 22:30 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 23:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_paramter.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_paramter.ets index 9e6faafbe0955c7fe3ed9eeb4ce616870c9db287..2032f9ab95f756bad7a2e8f945e2c7fa0133698b 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_paramter.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_paramter.ets @@ -33,5 +33,5 @@ function main() { a.foo111(new A(), new A(), new A()) } -/* @@? 27:34 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 27:40 Error TypeError: overloaded name must refer to an accessible method. */ +/* @@? 27:34 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 27:40 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/modifier_async.ets b/ets2panda/test/ast/compiler/ets/first_match/modifier_async.ets index 1c3ba11c80c11863e6ae394b6dba3be9ffcb303f..b22a794c25fa7042ca0ce0698397c6b513ebebf3 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/modifier_async.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/modifier_async.ets @@ -25,5 +25,5 @@ class Base2 { async overload foo {fooNumber, /* @@ label2 */fooString } } -/* @@@ label1 Error TypeError: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ -/* @@@ label2 Error TypeError: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ +/* @@@ label1 Error Semantic error ESE0387: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ +/* @@@ label2 Error Semantic error ESE0387: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/modifier_static.ets b/ets2panda/test/ast/compiler/ets/first_match/modifier_static.ets index 28ab388f03bf34d17247229e6183ef07e8f07fa6..34bda2525a0de61f1f4f445d89fb342c00ecbcbb 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/modifier_static.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/modifier_static.ets @@ -25,7 +25,7 @@ class Base2 { static overload foo {fooNumber, /* @@ label2 */fooString } } -/* @@@ label1 Error TypeError: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ -/* @@@ label1 Error TypeError: Static property 'fooNumber' must be accessed through it's class 'Base1' */ -/* @@@ label2 Error TypeError: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ -/* @@@ label2 Error TypeError: Property 'fooString' must be accessed through 'this' */ +/* @@@ label1 Error Semantic error ESE0387: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ +/* @@@ label1 Error Semantic error ESE0173: Static property 'fooNumber' must be accessed through it's class 'Base1' */ +/* @@@ label2 Error Semantic error ESE0387: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ +/* @@@ label2 Error Semantic error ESE0145: Property 'fooString' must be accessed through 'this' */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/namespace.ets b/ets2panda/test/ast/compiler/ets/first_match/namespace.ets index 562555e43fd2f058a7686cb22849741a9e8b7c6c..2113aafc6518d1b9ba33afed44561938c84fd6a2 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/namespace.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/namespace.ets @@ -61,12 +61,12 @@ function main(){ NS.overloadfoo3("abc"); } -/* @@? 49:8 Error TypeError: 'foo1' is not exported in 'NS' */ -/* @@? 50:8 Error TypeError: 'foo2' is not exported in 'NS' */ -/* @@? 52:8 Error TypeError: 'foo4' is not exported in 'NS' */ -/* @@? 54:5 Error TypeError: 'foo1' is not exported in 'NS' */ -/* @@? 55:5 Error TypeError: 'foo2' is not exported in 'NS' */ -/* @@? 58:5 Error TypeError: 'foo4' is not exported in 'NS' */ -/* @@? 60:8 Error TypeError: 'overloadfoo3' is not exported in 'NS' */ -/* @@? 61:5 Error TypeError: 'foo6' is not exported in 'NS' */ -/* @@? 61:8 Error TypeError: 'overloadfoo3' is not exported in 'NS' */ +/* @@? 49:8 Error Semantic error ESE0206: 'foo1' is not exported in 'NS' */ +/* @@? 50:8 Error Semantic error ESE0206: 'foo2' is not exported in 'NS' */ +/* @@? 52:8 Error Semantic error ESE0206: 'foo4' is not exported in 'NS' */ +/* @@? 54:5 Error Semantic error ESE0206: 'foo1' is not exported in 'NS' */ +/* @@? 55:5 Error Semantic error ESE0206: 'foo2' is not exported in 'NS' */ +/* @@? 58:5 Error Semantic error ESE0206: 'foo4' is not exported in 'NS' */ +/* @@? 60:8 Error Semantic error ESE0206: 'overloadfoo3' is not exported in 'NS' */ +/* @@? 61:5 Error Semantic error ESE0206: 'foo6' is not exported in 'NS' */ +/* @@? 61:8 Error Semantic error ESE0206: 'overloadfoo3' is not exported in 'NS' */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/override.ets b/ets2panda/test/ast/compiler/ets/first_match/override.ets index 2bb8873b99c8a87f93037886e0143eae01387a02..34a0f9f1022fc38798f65298cc45737e415a532a 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/override.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/override.ets @@ -36,4 +36,4 @@ class Sub2 extends Base{ overload foo{fooInt,fooNumber} } -/* @@? 32:20 Error TypeError: Cannot inherit from class Base, because overload foo is inherited with a different declaration type */ +/* @@? 32:20 Error Semantic error ESE0216: Cannot inherit from class Base, because overload foo is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/compiler/ets/first_match/same_name.ets b/ets2panda/test/ast/compiler/ets/first_match/same_name.ets index 22a1f98fa777f615d63f25ca9ba53a77e5afcc65..a56824d958eeab1934a1588f6af445bfa5d3d68f 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/same_name.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/same_name.ets @@ -29,4 +29,4 @@ class D{ overload foo{fooString,fooBoolean} } -/* @@? 29:5 Error TypeError: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ +/* @@? 29:5 Error Semantic error ESE0397: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ diff --git a/ets2panda/test/ast/compiler/ets/for_of_missing_iterator_type.ets b/ets2panda/test/ast/compiler/ets/for_of_missing_iterator_type.ets index c9b2fb0cacd99f3b2a14ccdbcece0fc02e8ad953..42c64e72f1f9d4345b92501443fae4596ae7a8ae 100644 --- a/ets2panda/test/ast/compiler/ets/for_of_missing_iterator_type.ets +++ b/ets2panda/test/ast/compiler/ets/for_of_missing_iterator_type.ets @@ -30,4 +30,4 @@ function main(): void { new A().foo(n) } -/* @@@ label Error TypeError: Cannot obtain iterator type in 'for-of' statement. */ +/* @@@ label Error Semantic error ESE0099: Cannot obtain iterator type in 'for-of' statement. */ diff --git a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_1.ets b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_1.ets index b7caa0f3ffef667a312ebf6b2fcd0939f5b8a1be..16a2687fcec8d7656df41ec64c4ce5cbe617a58c 100644 --- a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_1.ets +++ b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_1.ets @@ -21,4 +21,4 @@ class B extends /* @@ label */Partial { } -/* @@@ label Error TypeError: The super type of 'B' class is not extensible. */ +/* @@@ label Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ diff --git a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_2.ets b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_2.ets index b068fedca602eff6dac47c318280fd14b34448eb..69d7125b108264e5c5fd414791eca85384c46b42 100644 --- a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_2.ets +++ b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_2.ets @@ -21,4 +21,4 @@ class B extends /* @@ label */Required { } -/* @@@ label Error TypeError: The super type of 'B' class is not extensible. */ +/* @@@ label Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ diff --git a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_3.ets b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_3.ets index b249acc3016b1a96183cf05373a0a89728cfbd5c..c92281b8b8a5348f0cc188a6aea1a8b3bcfe3bd5 100644 --- a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_3.ets +++ b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_3.ets @@ -21,4 +21,4 @@ class B extends /* @@ label */Readonly { } -/* @@@ label Error TypeError: The super type of 'B' class is not extensible. */ +/* @@@ label Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ diff --git a/ets2panda/test/ast/compiler/ets/forof_iterator_doesnt_return_iteartor.ets b/ets2panda/test/ast/compiler/ets/forof_iterator_doesnt_return_iteartor.ets index e340e0579b0de0ac364512cdacfe3c67a47909db..50d67f02eda5ccf9b15996695be88e35e5df9db3 100644 --- a/ets2panda/test/ast/compiler/ets/forof_iterator_doesnt_return_iteartor.ets +++ b/ets2panda/test/ast/compiler/ets/forof_iterator_doesnt_return_iteartor.ets @@ -48,7 +48,6 @@ function main(): void { } -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface.*/ -/* @@? 46:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 46:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ - +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 46:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 46:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/forof_iterator_missing_next.ets b/ets2panda/test/ast/compiler/ets/forof_iterator_missing_next.ets index f513a77c6e85deebbe8b98aa645ed8d95c84e15f..114e93da89521cc5a655b40e95af353915adb455 100644 --- a/ets2panda/test/ast/compiler/ets/forof_iterator_missing_next.ets +++ b/ets2panda/test/ast/compiler/ets/forof_iterator_missing_next.ets @@ -35,6 +35,6 @@ function main(): void { arktest.assertEQ(res, 6); } -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface.*/ -/* @@? 34:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 34:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 34:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 34:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method.ets b/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method.ets index 8952030938ed9e0299fe4d66d42505ead97d20d6..73656873b6c79bcbb185d8d647df54b845977870 100644 --- a/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method.ets +++ b/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method.ets @@ -27,5 +27,5 @@ function main(): int { return 0 } -/* @@? 23:17 Error TypeError: Object type doesn't have proper iterator method. */ -/* @@? 23:17 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 23:17 Error Semantic error ESE0258: Object type doesn't have proper iterator method. */ +/* @@? 23:17 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method_with_sig.ets b/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method_with_sig.ets index 0adcb03bf1eb9a1fae580c5187ba574b6aa21732..67f6967ddede1d4eeedbe2d7290dbbd8b6c07bca 100644 --- a/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method_with_sig.ets +++ b/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method_with_sig.ets @@ -31,7 +31,7 @@ function main(): int { return 0; } -/* @@? 17:3 Error SyntaxError: The special predefined method '$_iterator' should not have parameters. */ -/* @@? 17:13 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ -/* @@? 26:17 Error TypeError: Cannot find iterator method with the required signature. */ -/* @@? 26:17 Error TypeError: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file +/* @@? 17:3 Error Syntax error ESY0223: The special predefined method '$_iterator' should not have parameters. */ +/* @@? 17:13 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 26:17 Error Semantic error ESE0259: Cannot find iterator method with the required signature. */ +/* @@? 26:17 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/forof_prop_is_static.ets b/ets2panda/test/ast/compiler/ets/forof_prop_is_static.ets index ff9986cb413d7253e4be1848410181fa7fe88526..0f7d13184c674d8c6a01752d30b6822e37932aec 100644 --- a/ets2panda/test/ast/compiler/ets/forof_prop_is_static.ets +++ b/ets2panda/test/ast/compiler/ets/forof_prop_is_static.ets @@ -43,5 +43,5 @@ function main(): int { return 0 } -/* @@? 39:17 Error TypeError: '$_iterator' is a static property of 'C' */ -/* @@? 39:17 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 39:17 Error Semantic error ESE0207: '$_iterator' is a static property of 'C' */ +/* @@? 39:17 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/function_namespace.ets b/ets2panda/test/ast/compiler/ets/function_namespace.ets index 218177cc0576f25a40a0bc47a2be2213941a7d5f..470658b01eef1391792a3b2120832f67513e747f 100644 --- a/ets2panda/test/ast/compiler/ets/function_namespace.ets +++ b/ets2panda/test/ast/compiler/ets/function_namespace.ets @@ -17,8 +17,8 @@ function main () { export namespace taskpool { function taskfinished(task:Task) : boolean {} -/* @@? 17:1 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 17:8 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 18:32 Error TypeError: Cannot find type 'Task'. */ -/* @@? 25:1 Error SyntaxError: Unexpected token. */ -/* @@? 25:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 17:1 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 17:8 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 18:32 Error Semantic error ESE0371: Cannot find type 'Task'. */ +/* @@? 25:1 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 25:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/function_property.ets b/ets2panda/test/ast/compiler/ets/function_property.ets index e0ca9949621a5f30e7c3afb54435133470626f1d..20b08224193531782e5256e6396cbca7a62fc54f 100644 --- a/ets2panda/test/ast/compiler/ets/function_property.ets +++ b/ets2panda/test/ast/compiler/ets/function_property.ets @@ -19,4 +19,4 @@ function readImage(path: string) { } return contents; } -/* @@@ label Error TypeError: Property 'sync' does not exist on type 'Function' */ +/* @@@ label Error Semantic error ESE0087: Property 'sync' does not exist on type 'Function' */ diff --git a/ets2panda/test/ast/compiler/ets/function_signature.ets b/ets2panda/test/ast/compiler/ets/function_signature.ets index 1a516601825d7ffa8052117ce023a471493a9ce0..f7a4a9875906c3a40084df2020c597bf365c4500 100644 --- a/ets2panda/test/ast/compiler/ets/function_signature.ets +++ b/ets2panda/test/ast/compiler/ets/function_signature.ets @@ -17,9 +17,9 @@ final class TypeCreateCtx { internal static native getObjectArrayForCCtor(ctxPtr: long): FixedArray must have only one type parameter. */ -/* @@? 17:88 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 17:88 Error SyntaxError: Unexpected token '>'. */ -/* @@? 17:97 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:120 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:138 Error TypeError: Cannot find type 'RuntimeTypeDescriptor'. */ +/* @@? 17:66 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 17:88 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 17:88 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 17:97 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:120 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:138 Error Semantic error ESE0371: Cannot find type 'RuntimeTypeDescriptor'. */ diff --git a/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets b/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets index 4c5b9c11ed522bdb9d94116ca66af9a4f0a693bc..f849d9c397a9783fcba19b9b0bda345f89355c85 100644 --- a/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets +++ b/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets @@ -19,4 +19,4 @@ class B extends A {} function main(): void { let x: (p: B) => B = /* @@ label */(p: A): A => { return new B() } } -/* @@@ label Error TypeError: Type '(p: A) => A' cannot be assigned to type '(p: B) => B' */ +/* @@@ label Error Semantic error ESE0318: Type '(p: A) => A' cannot be assigned to type '(p: B) => B' */ diff --git a/ets2panda/test/ast/compiler/ets/function_subtyping_3.ets b/ets2panda/test/ast/compiler/ets/function_subtyping_3.ets index a27238968eb3ce85ae219eac78d08b855bc960f0..f5efbf472cc08ba62b63dfba188531798c0c6806 100644 --- a/ets2panda/test/ast/compiler/ets/function_subtyping_3.ets +++ b/ets2panda/test/ast/compiler/ets/function_subtyping_3.ets @@ -19,4 +19,4 @@ class B extends A {} function main(): void { let x: (p: A) => A = /* @@ label */(p: B): B => { return new B() } } -/* @@@ label Error TypeError: Type '(p: B) => B' cannot be assigned to type '(p: A) => A' */ +/* @@@ label Error Semantic error ESE0318: Type '(p: B) => B' cannot be assigned to type '(p: A) => A' */ diff --git a/ets2panda/test/ast/compiler/ets/function_typeerror.ets b/ets2panda/test/ast/compiler/ets/function_typeerror.ets index 969d9217bec1a4d83e9ad8686bc2e71a6b3ebe39..15f3daacf663152440dedb3fb1cfaf4b87fb863c 100644 --- a/ets2panda/test/ast/compiler/ets/function_typeerror.ets +++ b/ets2panda/test/ast/compiler/ets/function_typeerror.ets @@ -35,21 +35,21 @@ function main(): void { arktest.assertEQ(resultA, resultB); } -/* @@? 17:14 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:19 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:19 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:30 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:30 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:32 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 17:36 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:41 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:41 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:42 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:48 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:49 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token 'return'. */ -/* @@? 18:17 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 23:23 Error TypeError: Method methodOne(p: Derived): Base in Derived not overriding any method */ -/* @@? 32:21 Error TypeError: Property 'methodOne' does not exist on type 'Base' */ +/* @@? 17:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:19 Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ +/* @@? 17:30 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:30 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:32 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 17:36 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:41 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:41 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:42 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:48 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:49 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 18:9 Error Syntax error ESY0227: Unexpected token 'return'. */ +/* @@? 18:17 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 23:23 Error Semantic error ESE0136: Method methodOne(p: Derived): Base in Derived not overriding any method */ +/* @@? 32:21 Error Semantic error ESE0087: Property 'methodOne' does not exist on type 'Base' */ diff --git a/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets b/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets index c85cff638a433b70fc6ea49c2c22a3176c708d76..9ed7de16caded88e91249143342d3e795eef2445 100644 --- a/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets +++ b/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets @@ -28,9 +28,9 @@ class A { } -/* @@? 22:8 Error SyntaxError: Field type annotation expected. */ -/* @@? 23:9 Error SyntaxError: Unexpected token 'return'. */ -/* @@? 23:16 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 23:20 Error SyntaxError: Unexpected token '.'. */ -/* @@? 23:43 Error SyntaxError: Field type annotation expected. */ -/* @@? 25:5 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 22:8 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 23:9 Error Syntax error ESY0227: Unexpected token 'return'. */ +/* @@? 23:16 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 23:20 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 23:43 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 25:5 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ diff --git a/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets b/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets index 39746c2c669e9fcf75817c5b03e4fdc2845bf62d..ece199b90ffc5f2f771da303fe9a18354fca7e92 100644 --- a/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets +++ b/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets @@ -17,13 +17,13 @@ class D{ strB = (new StringBuilder).append('{ ').append(strB.toString()).append(' }') } -/* @@? 17:12 Error TypeError: Circular call function */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Boolean): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Byte): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Short): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Char): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Int): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Long): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Float): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Double): StringBuilder` */ -/* @@? 17:52 Error TypeError: Property 'strB' must be accessed through 'this' */ +/* @@? 17:12 Error Semantic error ESE0381: Circular call function */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Boolean): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Byte): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Short): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Char): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Int): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Long): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Float): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Double): StringBuilder` */ +/* @@? 17:52 Error Semantic error ESE0145: Property 'strB' must be accessed through 'this' */ diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets index 63fb0322b11fe1da063d382c4195d76a4e7a4ca2..c85eb499d76c72edc6463a7c0cfc9fce1263c5ca 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets @@ -16,10 +16,10 @@ // the test case is from fuzzer. let callback = () => {for /* @@ label1 */aa !== /* @@ label2 */arr[idx]/* @@ label3 */) -/* @@@ label1 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@@ label1 Error TypeError: Unresolved reference aa */ -/* @@@ label2 Error TypeError: Unresolved reference arr */ -/* @@@ label2 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label3 Error SyntaxError: Invalid left-hand side in 'For[In/Of]Statement'. */ -/* @@? 26:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 26:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference aa */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference arr */ +/* @@@ label2 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@@ label3 Error Syntax error ESY0167: Invalid left-hand side in 'For[In/Of]Statement'. */ +/* @@? 26:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 26:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets index 08bf93ddf630f27c5accb8a58f2d0d4cbd8ba160..722aa4d2f8f10d0ca4fed48065cf157a554c91cb 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets @@ -16,7 +16,7 @@ // the test case is from fuzzer. /* @@ label */fuzzz./* @@ label2 */@@/* @@ label3 */@@ -/* @@? 17:15 Error TypeError: Unresolved reference fuzzz */ -/* @@? 17:36 Error SyntaxError: There is no any node to insert at the placeholder position. */ -/* @@? 17:36 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 17:53 Error SyntaxError: Unexpected token '@@'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference fuzzz */ +/* @@@ label2 Error Syntax error ESY0010: There is no any node to insert at the placeholder position. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token '@@'. */ diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets index eff6fa17ba130e470d740431c838955d1a41bd3f..18d2d611ecb447dfe89ffa9e6118a3a0fa63ec4d 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets @@ -16,5 +16,5 @@ // the test case is from fuzzer. /* @@ label */i ??/* @@ label2 */@@ -/* @@@ label Error TypeError: Unresolved reference i */ -/* @@@ label2 Error SyntaxError: Unexpected token '@@'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference i */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '@@'. */ diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets index f3b80f5accdf87cfe4c100707ab1fe084746f04b..542000680622578761b6f872f13e9d6c263d5773 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets @@ -14,11 +14,11 @@ */ // the test case is from fuzzer. -/* @@? 24:1 Error TypeError: Unresolved reference abcdefghijklmnopqrstuvwxyzABC */ -/* @@? 24:30 Error SyntaxError: Unexpected token '`'. */ -/* @@? 24:30 Error SyntaxError: Unexpected token, expected '`'. */ -/* @@? 24:31 Error SyntaxError: Unterminated string. */ -/* @@? 24:31 Error SyntaxError: Unexpected token, expected '${' or '`' */ -/* @@? 24:31 Error SyntaxError: Unexpected token, expected '`'. */ +/* @@? 24:1 Error Semantic error ESE0143: Unresolved reference abcdefghijklmnopqrstuvwxyzABC */ +/* @@? 24:30 Error Syntax error ESY0227: Unexpected token '`'. */ +/* @@? 24:30 Error Syntax error ESY0228: Unexpected token, expected '`'. */ +/* @@? 24:31 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 24:31 Error Syntax error ESY0259: Unexpected token, expected '${' or '`' */ +/* @@? 24:31 Error Syntax error ESY0228: Unexpected token, expected '`'. */ abcdefghijklmnopqrstuvwxyzABC`DEF\n� \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets index 93c9fbf39d51b2a8ed6d010a84b565cf64134b3e..d0cd2b38b4baf220e2b1f1ab0baa80633ad09c1e 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets @@ -17,6 +17,6 @@ function foo() { new CC. } -/* @@? 17:9 Error TypeError: Cannot find type 'CC'. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ -/* @@? 18:1 Error TypeError: Invalid type reference. */ +/* @@? 17:9 Error Semantic error ESE0371: Cannot find type 'CC'. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:1 Error Semantic error ESE0299: Invalid type reference. */ diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest5.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest5.ets index 34e6e9c60d71edc9c69a3b76d6277f57cdeb45c7..931413b83ed578c4251fe13844a0723f4c7eee9d 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest5.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest5.ets @@ -19,5 +19,5 @@ class A { } } -/* @@? 18:9 Error TypeError: Property 'f' must be accessed through 'this' */ -/* @@? 18:13 Error TypeError: Type 'Int' cannot be assigned to type '() => void' */ +/* @@? 18:9 Error Semantic error ESE0145: Property 'f' must be accessed through 'this' */ +/* @@? 18:13 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type '() => void' */ diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest6.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest6.ets index 79c7af6977e643e5033a498f04f1560735c5f29a..006b61eb09eb0b4b5e527a00493912e1765f1244 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest6.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest6.ets @@ -21,5 +21,5 @@ class B extends A implements inter { function foo1(b: Partial>) { } -/* @@? 18:20 Error TypeError: Cannot find type 'A'. */ -/* @@? 18:20 Error TypeError: The super type of 'B' class is not extensible. */ +/* @@? 18:20 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 18:20 Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ diff --git a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets index 11b245f328fa6e74d25d02acdd8746d4cf4c3955..ec987cf0844731e5685ba4e876a00a87f7f0657f 100644 --- a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets @@ -22,4 +22,4 @@ function main(): void { let b : Person ={name: /* @@ label */42, age:25} } -/* @@@ label Error TypeError: Type 'Int' is not compatible with type 'String' at property 'name' */ +/* @@@ label Error Semantic error ESE0319: Type 'Int' is not compatible with type 'String' at property 'name' */ diff --git a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets index d12d67284b5a12d1a2967e8f79e05e205b429e4e..c5f220b14b89172dceaec6e15af52cf41ef537a5 100644 --- a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets @@ -22,4 +22,4 @@ function main(): void { let b : Person/* @@ label */ ={name: "John", age:25} } -/* @@@ label Error TypeError: Type argument 'String' should be a subtype of 'Double'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'String' should be a subtype of 'Double'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets index fd7eed0b9edf505a81a665ea8fc1c3afe705f05a..259e84c7f3068de8835d6151fb58b9d307edd616 100644 --- a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets +++ b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets @@ -22,5 +22,5 @@ function main(): void { let b : Person/* @@ label */ ={name: "John", age:/* @@ label1 */"25"} } -/* @@@ label Error TypeError: Type argument 'Double' should be a subtype of 'String'-constraint */ -/* @@@ label1 Error TypeError: Type '"25"' is not compatible with type 'Double' at property 'age' */ +/* @@@ label Error Semantic error ESE0228: Type argument 'Double' should be a subtype of 'String'-constraint */ +/* @@@ label1 Error Semantic error ESE0319: Type '"25"' is not compatible with type 'Double' at property 'age' */ diff --git a/ets2panda/test/ast/compiler/ets/generic_callback.ets b/ets2panda/test/ast/compiler/ets/generic_callback.ets index 92c4b7ad7e8c7186666911d3e4c1f5ee1faa81f4..e12ae1d028d2ae5c91978caa6029538984942d9f 100644 --- a/ets2panda/test/ast/compiler/ets/generic_callback.ets +++ b/ets2panda/test/ast/compiler/ets/generic_callback.ets @@ -18,11 +18,11 @@ } let x = [1, 2, 3].map(identity)[0]; -/* @@? 19:9 Error TypeError: No matching call signature for map((a: A) => A) */ -/* @@? 19:9 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 19:9 Error TypeError: No matching call signature for map((a: A) => A) */ -/* @@? 19:9 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 19:23 Error TypeError: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: Array) => A' at index 1 */ -/* @@? 19:23 Error TypeError: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: ReadonlyArray) => A' at index 1 */ -/* @@? 19:23 Error TypeError: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: Array) => A' at index 1 */ -/* @@? 19:23 Error TypeError: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: ReadonlyArray) => A' at index 1 */ +/* @@? 19:9 Error Semantic error ESE0127: No matching call signature for map((a: A) => A) */ +/* @@? 19:9 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 19:9 Error Semantic error ESE0127: No matching call signature for map((a: A) => A) */ +/* @@? 19:9 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: Array) => A' at index 1 */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: ReadonlyArray) => A' at index 1 */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: Array) => A' at index 1 */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(a: A) => A' is not compatible with type '(value: Int, index: Double, array: ReadonlyArray) => A' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_1.ets b/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_1.ets index 1755972658cf2dfe011adeb5f6554399e7bda555..7cf7526e96b6e683e3316ffbd9e0841e1fb76ca5 100644 --- a/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_1.ets +++ b/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_1.ets @@ -19,4 +19,4 @@ function main(): void { let i: /* @@ label */A = undefined; } -/* @@@ label Error TypeError: Type 'A' is generic but type argument were not provided. */ +/* @@@ label Error Semantic error ESE0170: Type 'A' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_2.ets b/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_2.ets index 049b1c7a37f4d32fc444fd2baf2b5b899e538b87..f89e7d434302f954535291c5de70f919c2e48ba0 100644 --- a/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_2.ets +++ b/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_2.ets @@ -20,4 +20,4 @@ function main(): void { arktest.assertEQ(i, undefined); } -/* @@@ label Error TypeError: Type 'A' is generic but type argument were not provided. */ +/* @@@ label Error Semantic error ESE0170: Type 'A' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/compiler/ets/generic_function_call_2.ets b/ets2panda/test/ast/compiler/ets/generic_function_call_2.ets index e4a18c20be1fd72aa1930602b2da642b1a1b1e34..ecc8bd38ae26868b3d99d3316ab55a475ac2355c 100644 --- a/ets2panda/test/ast/compiler/ets/generic_function_call_2.ets +++ b/ets2panda/test/ast/compiler/ets/generic_function_call_2.ets @@ -24,5 +24,5 @@ function main() : void { /* @@ label */fn(/* @@ label1 */b); } -/* @@@ label1 Error TypeError: Type 'B' is not compatible with type 'A' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for fn(B) */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for fn(B) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'B' is not compatible with type 'A' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/generic_function_call_6.ets b/ets2panda/test/ast/compiler/ets/generic_function_call_6.ets index e0688a9e7bb985a760fae2d7027ddf2be6591b92..0a4d25f7391b5a95998c0bd53cdf93670962426f 100644 --- a/ets2panda/test/ast/compiler/ets/generic_function_call_6.ets +++ b/ets2panda/test/ast/compiler/ets/generic_function_call_6.ets @@ -22,4 +22,4 @@ function main() { /* @@ label */fn() } -/* @@@ label Error TypeError: No matching call signature */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/generic_typealias_2_neg.ets b/ets2panda/test/ast/compiler/ets/generic_typealias_2_neg.ets index 2ce7f0e30f105ea1619d16cd28d95a3e80b60edf..c3625891af0412f08619be2458dde6adb2270a5a 100644 --- a/ets2panda/test/ast/compiler/ets/generic_typealias_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_typealias_2_neg.ets @@ -20,4 +20,4 @@ function main(): void { let a: my_type = new Int(); } -/* @@? 20:12 Error TypeError: Type alias declaration is generic, but too few type arguments were provided */ +/* @@? 20:12 Error Semantic error ESE0155: Type alias declaration is generic, but too few type arguments were provided */ diff --git a/ets2panda/test/ast/compiler/ets/generic_typealias_3_neg.ets b/ets2panda/test/ast/compiler/ets/generic_typealias_3_neg.ets index 2cbad3fcf140298601839f1c322d7737be1273d3..0dbb020200fe7e2c9582cbdfec85f4cdaa901275 100644 --- a/ets2panda/test/ast/compiler/ets/generic_typealias_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_typealias_3_neg.ets @@ -20,4 +20,4 @@ function main(): void { let a: my_type/* @@ label */ = new Int(); } -/* @@@ label Error TypeError: Type alias declaration is not generic, but type parameters were provided */ +/* @@@ label Error Semantic error ESE0156: Type alias declaration is not generic, but type parameters were provided */ diff --git a/ets2panda/test/ast/compiler/ets/generic_typealias_4_neg.ets b/ets2panda/test/ast/compiler/ets/generic_typealias_4_neg.ets index a4cf992ba00fe211979f00457c90f0d1994641e5..3c45fb337e00fc66548df6ac441bf1ee186514c9 100644 --- a/ets2panda/test/ast/compiler/ets/generic_typealias_4_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_typealias_4_neg.ets @@ -20,4 +20,4 @@ function main(): void { let a: my_type/* @@ label */ = new Int(); } -/* @@@ label Error TypeError: Expected at least 1 type arguments, but got 2. */ +/* @@@ label Error Semantic error ESE0274: Expected at least 1 type arguments, but got 2. */ diff --git a/ets2panda/test/ast/compiler/ets/generic_typealias_5_neg.ets b/ets2panda/test/ast/compiler/ets/generic_typealias_5_neg.ets index 1905464507069943fd44d75f80a28c7a7da25588..250fedf8fcc923d781a5a0bf9df5f16bbc8f03f4 100644 --- a/ets2panda/test/ast/compiler/ets/generic_typealias_5_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_typealias_5_neg.ets @@ -22,4 +22,4 @@ function main(): void { let a: A/* @@ label */; } -/* @@@ label Error TypeError: Type argument 'B' should be a subtype of 'Comparable'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'B' should be a subtype of 'Comparable'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_2.ets b/ets2panda/test/ast/compiler/ets/generic_variance_2.ets index be03b15a71f4a77eb20ff2d87bf28eb9a4d86b29..1ecd07f1018d567577a41ec2885d325af7d014b1 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_2.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_2.ets @@ -22,4 +22,4 @@ class A2 {} function main(): void { let x1: A1 = /* @@ label */new A1() } -/* @@@ label Error TypeError: Type 'A1' cannot be assigned to type 'A1' */ +/* @@@ label Error Semantic error ESE0318: Type 'A1' cannot be assigned to type 'A1' */ diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_3.ets b/ets2panda/test/ast/compiler/ets/generic_variance_3.ets index 827eee769a70266b8617ef9c376f4a573468288a..6911c98a1560bfdccb09b0b78d0190583c371794 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_3.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_3.ets @@ -22,4 +22,4 @@ class A2 {} function main(): void { let x1: A2 = /* @@ label */new A2() } -/* @@@ label Error TypeError: Type 'A2' cannot be assigned to type 'A2' */ +/* @@@ label Error Semantic error ESE0318: Type 'A2' cannot be assigned to type 'A2' */ diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_4.ets b/ets2panda/test/ast/compiler/ets/generic_variance_4.ets index 53bb2466a9fecf6f345b99c70fabfdab7e69aaeb..1005d7902f514e6173107ae5201eca4e43c49b64 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_4.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_4.ets @@ -22,4 +22,4 @@ class A2 {} function main(): void { let x2: A1 = /* @@ label */new A1() } -/* @@@ label Error TypeError: Type 'A1' cannot be assigned to type 'A1' */ +/* @@@ label Error Semantic error ESE0318: Type 'A1' cannot be assigned to type 'A1' */ diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_5.ets b/ets2panda/test/ast/compiler/ets/generic_variance_5.ets index 51d455618c3a9e806423afc8685c9fefc8d628bc..ce9daa1e2cab24d58a0ff3cb341fb21135dec302 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_5.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_5.ets @@ -22,4 +22,4 @@ class A2 {} function main(): void { let x4: A2 = /* @@ label */new A2() } -/* @@@ label Error TypeError: Type 'A2' cannot be assigned to type 'A2' */ +/* @@@ label Error Semantic error ESE0318: Type 'A2' cannot be assigned to type 'A2' */ diff --git a/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets b/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets index 5b39271b37ec918f80b393f759ea5f4070630ea2..ff0ceb429eab063ec583f6bd2215953803241d7a 100644 --- a/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets +++ b/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets @@ -19,4 +19,4 @@ function main() { foo(/* @@ label */(a: int, b: String, c: String): String => { return "XXX" }); } -/* @@@ label Error TypeError: Type '(a: Int, b: String, c: String) => String' is not compatible with type '(a: Int, b: String, c: Int) => String' at index 1 */ +/* @@@ label Error Semantic error ESE0046: Type '(a: Int, b: String, c: String) => String' is not compatible with type '(a: Int, b: String, c: Int) => String' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_1.ets b/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_1.ets index c8f046fedf8411f27f2f55d2a9fb84bad6e45592..0b88634ec0a3beca55e88c791ef361606ffb1f09 100644 --- a/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_1.ets @@ -27,4 +27,4 @@ function main(): void { } } -/* @@@ label Error TypeError: Constant expression required */ +/* @@@ label Error Semantic error ESE0163: Constant expression required */ diff --git a/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_2.ets b/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_2.ets index 9aa95c9ad4178a3bb9b7eeebfaa5b742f6593d63..e6b10b4c51fd0281561fd54ab29c61170fbbd0b2 100644 --- a/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_2.ets @@ -25,4 +25,4 @@ function main(): void { a_B.value./* @@ label */unboxed(); } -/* @@@ label Error TypeError: Property 'unboxed' does not exist on type 'B' */ +/* @@@ label Error Semantic error ESE0087: Property 'unboxed' does not exist on type 'B' */ diff --git a/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets b/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets index 82dcc47f2adfd2ede7dcd2b92bdff6080e368db3..34f098dd9a107b36002f0c9c0532e1affa2150f1 100644 --- a/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets +++ b/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets @@ -27,4 +27,4 @@ function main() { let a: A = new A() } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets b/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets index 09d7a9ab24ea9f474b522a8d35321313b962c6c7..ca0f05845c0ff623bebb6ae1791f349cfc1a8bec 100644 --- a/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets +++ b/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets @@ -34,4 +34,4 @@ function main() { let a: A = new A() } -/* @@@ label Error TypeError: Not all code paths return a value. */ +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/compiler/ets/greater_than_neg.ets b/ets2panda/test/ast/compiler/ets/greater_than_neg.ets index f5dea30ef16a64a5319578985f633e47b29c8704..68b6e15dc795bd30c0a06dc2f6fa3d18591cdc08 100644 --- a/ets2panda/test/ast/compiler/ets/greater_than_neg.ets +++ b/ets2panda/test/ast/compiler/ets/greater_than_neg.ets @@ -16,7 +16,7 @@ let a: Array>>=2 let b: Array>=2 -/* @@? 16:21 Error SyntaxError: Unexpected token '>>='. */ -/* @@? 16:24 Error SyntaxError: Unexpected token '2'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token '>='. */ -/* @@? 17:23 Error SyntaxError: Unexpected token '2'. */ +/* @@? 16:21 Error Syntax error ESY0227: Unexpected token '>>='. */ +/* @@? 16:24 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token '>='. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token '2'. */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference1.ets b/ets2panda/test/ast/compiler/ets/identifierReference1.ets index 13df0cf58b231bda3d52d113c0fc7d11c0c711f0..a2c42f3730cba8bff5cab78ed2f6ca32680c2070 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference1.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference1.ets @@ -49,6 +49,6 @@ class A extends B { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 16:33 Error TypeError: Overloaded method is used as value */ -/* @@? 47:12 Error TypeError: Property 'b' does not exist on type 'C' */ +/* @@? 16:33 Error Semantic error ESE0307: Overloaded method is used as value */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 47:12 Error Semantic error ESE0087: Property 'b' does not exist on type 'C' */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference10.ets b/ets2panda/test/ast/compiler/ets/identifierReference10.ets index bb75765d532f7330f56161213ea840dcb21813f6..8b1757634d9404c1a5e28f47e4e956124b010cc4 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference10.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference10.ets @@ -25,4 +25,4 @@ class A { } } -/* @@@ label Error TypeError: Type '"foo"' cannot be assigned to type 'Int' */ +/* @@@ label Error Semantic error ESE0318: Type '"foo"' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference11.ets b/ets2panda/test/ast/compiler/ets/identifierReference11.ets index 2d0de4caff48e4c8b213f94069f510ca1d7a1d6f..38884e8df9cdf471cae63ed014a1bf308ea05f0c 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference11.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference11.ets @@ -23,4 +23,4 @@ class A { } } -/* @@@ label Error TypeError: Unresolved reference foo */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference foo */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference12.ets b/ets2panda/test/ast/compiler/ets/identifierReference12.ets index 1c34cf4214e39791ff58b24b218d0d53505ab981..0cfefd21b39d487e8d12b887999aa898c760a706 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference12.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference12.ets @@ -25,4 +25,4 @@ class A { } } -/* @@@ label Error TypeError: Type 'Int' has no call signatures. */ +/* @@@ label Error Semantic error ESE0002: Type 'Int' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference13.ets b/ets2panda/test/ast/compiler/ets/identifierReference13.ets index 2271863d17d950f9bd7f76fb66c64ed86d0e271f..2b6cfc2f867aeaa7cb4fa18aa1d59827e14e8ee9 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference13.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference13.ets @@ -25,4 +25,4 @@ class A { } } -/* @@? 24:13 Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ +/* @@? 24:13 Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference15.ets b/ets2panda/test/ast/compiler/ets/identifierReference15.ets index 4a7f86a7cc63f4d736c8af16cdaee1e4dd708d5b..069a584d31d20850fe44335ee1c3a29e56a305e6 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference15.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference15.ets @@ -33,6 +33,6 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 31:7 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 31:7 Error TypeError: No matching call signature */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 31:7 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 31:7 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference16.ets b/ets2panda/test/ast/compiler/ets/identifierReference16.ets index aefc534f96224ee5e6560910e73b0cef63d5c7c9..f4a6b76639cfd5f9ea3c6f07afe81dcfa09a93f8 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference16.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference16.ets @@ -43,6 +43,6 @@ class A extends B { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 41:7 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 41:7 Error TypeError: No matching call signature for foo(Int) */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 41:7 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 41:7 Error Semantic error ESE0127: No matching call signature for foo(Int) */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference2.ets b/ets2panda/test/ast/compiler/ets/identifierReference2.ets index 3ee1d5748378d9d01ced5c74cf219365b7f2401a..30446637f56b74474dd68fa9d90548c396f03a4a 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference2.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference2.ets @@ -15,4 +15,4 @@ let a:(a: int, b: int) => void = max; -/* @@? 16:34 Error TypeError: Overloaded method is used as value */ +/* @@? 16:34 Error Semantic error ESE0307: Overloaded method is used as value */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference3.ets b/ets2panda/test/ast/compiler/ets/identifierReference3.ets index ddc353921b26c4b613eb7e4677dcf07b414af3f2..085de5b56a6c3aa7bb8c185d61a43f9c93877cce 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference3.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference3.ets @@ -21,4 +21,4 @@ class A { } } -/* @@@ label Error TypeError: Type '"foo"' cannot be assigned to type 'Int' */ +/* @@@ label Error Semantic error ESE0318: Type '"foo"' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference5.ets b/ets2panda/test/ast/compiler/ets/identifierReference5.ets index 0bf988779949e502dad4eb46ef3a730fd7f54f3d..3b20265aa2970b76e56a9a45a5e001189f8cd507 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference5.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference5.ets @@ -32,4 +32,4 @@ class A extends B { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference6.ets b/ets2panda/test/ast/compiler/ets/identifierReference6.ets index 42207403133ec1bca9c26e7363267c45939d5cbe..e3b68be998e7a329b540e2c5f0dfcee0e0577814 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference6.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference6.ets @@ -23,6 +23,6 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 21:7 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 21:12 Error TypeError: Property 'a' does not exist on type 'B' */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 21:7 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 21:12 Error Semantic error ESE0087: Property 'a' does not exist on type 'B' */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference7.ets b/ets2panda/test/ast/compiler/ets/identifierReference7.ets index d2b4110f65973998a54197e162d1378bbb5cc327..3ffd539a7f69ff9ad50514ba8e7455c5e4a78f03 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference7.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference7.ets @@ -27,5 +27,5 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 25:7 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 25:7 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference8.ets b/ets2panda/test/ast/compiler/ets/identifierReference8.ets index 0a7509f35b599dc5ba95ab790267f92e32ea8202..63b69fe8ed9f5a3262bfb227d69ccba3e38987c7 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference8.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference8.ets @@ -25,4 +25,4 @@ class A { } } -/* @@? 24:5 Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ +/* @@? 24:5 Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ diff --git a/ets2panda/test/ast/compiler/ets/identifierReference9.ets b/ets2panda/test/ast/compiler/ets/identifierReference9.ets index 3021ebf7a1953f57ccd1e53d8ba2ba11c4805025..e3ea58dd1a15b6ea234ed57f65830a695e9d4910 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference9.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference9.ets @@ -25,4 +25,4 @@ class A { } } -/* @@? 24:5 Error TypeError: Class methods cannot be overwritten. */ +/* @@? 24:5 Error Semantic error ESE0394: Class methods cannot be overwritten. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_1_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_1_neg.ets index 88652992e46272cd0ab62bd784eecd405b8cc154..3f62b62dd2753fe8c0299b53cb83eecce1ee5fb7 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_1_neg.ets @@ -15,4 +15,4 @@ /* @@ label */package pack1; -/* @@? 1:1 Error SyntaxError: Files 'package_module_1_neg' and 'package_module_2_neg' are in the same folder, but have different package names. */ +/* @@? 1:1 Error Syntax error ESY0002: Files 'package_module_1_neg' and 'package_module_2_neg' are in the same folder, but have different package names. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_2_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_2_neg.ets index 55482b2196a1e13aa7b5b6c30e04b9ae478ad6a6..ac02ce34a4657fc768e74d70092400b89081e84f 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_2_neg.ets @@ -15,4 +15,4 @@ /* @@ label */package pack2; -/* @@? 1:1 Error SyntaxError: Files 'package_module_2_neg' and 'package_module_1_neg' are in the same folder, but have different package names. */ +/* @@? 1:1 Error Syntax error ESY0002: Files 'package_module_2_neg' and 'package_module_1_neg' are in the same folder, but have different package names. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_4/package_module_1.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_4/package_module_1.ets index 60a86f221b1b5f3f0fbd4a6f1254d8c77bd12eb2..886e5de1982def4b9bb42429b897bce6c32941cc 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_4/package_module_1.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_4/package_module_1.ets @@ -18,5 +18,5 @@ import {myvar} from "./package_module_2" // compiling this file will fail with import from it's own package -/* @@? 17:1 Error SyntaxError: Package module cannot import from a file in it's own package. */ -/* @@? 17:21 Error TypeError: Cannot find import: ./package_module_2 */ +/* @@? 17:1 Error Syntax error ESY0003: Package module cannot import from a file in it's own package. */ +/* @@? 17:21 Error Semantic error ESE0360: Cannot find import: ./package_module_2 */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_1.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_1.ets index 904df0697ac5bc8a916eedde2c6e6a9c958fb478..142620af41054b816cbbf57644fca7fc2850e412 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_1.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_1.ets @@ -17,8 +17,8 @@ package mypack; let myvar: number = wont_exist; -/* @@? package_module_2_neg.ets:22:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_2_neg.ets:22:1 Error TypeError: Unresolved reference syntax */ -/* @@? package_module_2_neg.ets:22:8 Error SyntaxError: Unexpected token 'error'. */ -/* @@? package_module_2_neg.ets:22:8 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_2_neg.ets:22:8 Error TypeError: Unresolved reference error */ +/* @@? package_module_2_neg.ets:22:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_2_neg.ets:22:1 Error Semantic error ESE0143: Unresolved reference syntax */ +/* @@? package_module_2_neg.ets:22:8 Error Syntax error ESY0227: Unexpected token 'error'. */ +/* @@? package_module_2_neg.ets:22:8 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_2_neg.ets:22:8 Error Semantic error ESE0143: Unresolved reference error */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_2_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_2_neg.ets index 1ee3c41129052ffb25add85b234b83ea8f93ffba..8b37730bc9c33ea87e30acc52d01c11e1e5f2da5 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_2_neg.ets @@ -21,8 +21,8 @@ let wont_exist: number = 8; syntax error -/* @@? 22:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? 22:1 Error TypeError: Unresolved reference syntax */ -/* @@? 22:8 Error SyntaxError: Unexpected token 'error'. */ -/* @@? 22:8 Error SyntaxError: Invalid package toplevel statement */ -/* @@? 22:8 Error TypeError: Unresolved reference error */ +/* @@? 22:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 22:1 Error Semantic error ESE0143: Unresolved reference syntax */ +/* @@? 22:8 Error Syntax error ESY0227: Unexpected token 'error'. */ +/* @@? 22:8 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 22:8 Error Semantic error ESE0143: Unresolved reference error */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_1.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_1.ets index 810b288169035ab9584040656568878648fc8849..e06b5bf3d198d785d910d345f5996b51f2618ddf 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_1.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_1.ets @@ -17,4 +17,4 @@ package mypackage; let myvar: number = exist_but_checker_fails_in_file; -/* @@? package_module_2.ets:19:39 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@? package_module_2.ets:19:39 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_2.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_2.ets index cf77170f19624360a6ea8102c4ef4e8bf55f7595..2ec100eccd66baf36e009edde507be14128fd0d9 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_2.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_2.ets @@ -18,4 +18,4 @@ package mypackage; let exist_but_checker_fails_in_file: number = 8; let wong_type: string = /* @@ label */9; -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_1_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_1_neg.ets index 7671deb63ced84c5bf6ab34b4836761b7cc4639c..00f77384f4e8dee0552d3fe3fd8b6ad199d337a5 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_1_neg.ets @@ -18,4 +18,4 @@ package mypackage; // Special additional empty line for another position of error in compare with package_module_2_neg.ets function foo(): void {} -/* @@? package_module_2_neg.ets:18:1 Error TypeError: Function foo is already declared. */ +/* @@? package_module_2_neg.ets:18:1 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_2_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_2_neg.ets index 88592f7d18084a026efb6214ac72336903e7fa66..804b9005774a926c920add2ad56d95a022cce0fb 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_2_neg.ets @@ -17,4 +17,4 @@ package mypackage; function foo(): void {} -/* @@? package_module_1_neg.ets:19:1 Error TypeError: Function foo is already declared. */ +/* @@? package_module_1_neg.ets:19:1 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_8/import_multi_error.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_8/import_multi_error.ets index de22e82f51011f07fd0bc2bec035fe11307e9a6e..f84e9b9d92baf4162bcd0e1f8ad004acad2d0fcb 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_8/import_multi_error.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_8/import_multi_error.ets @@ -20,7 +20,7 @@ import {myvar2} from "./package_module" export let a: String = "SubpackageA"; -/* @@? 18:1 Error SyntaxError: Package module cannot import from a file in it's own package. */ -/* @@? 18:21 Error TypeError: Cannot find import: ./package_module */ -/* @@? 19:1 Error SyntaxError: Package module cannot import from a file in it's own package. */ -/* @@? 19:22 Error TypeError: Cannot find import: ./package_module */ +/* @@? 18:1 Error Syntax error ESY0003: Package module cannot import from a file in it's own package. */ +/* @@? 18:21 Error Semantic error ESE0360: Cannot find import: ./package_module */ +/* @@? 19:1 Error Syntax error ESY0003: Package module cannot import from a file in it's own package. */ +/* @@? 19:22 Error Semantic error ESE0360: Cannot find import: ./package_module */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module.ets index 3eaf30089d8abe7967f6bb633895bf2fe5b8d3c0..9dec7617272e56c808f36df8901ff41118ea3e5d 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module.ets @@ -17,14 +17,14 @@ package mypack; // That is the main file, from which we will compile full package -/* @@? package_module_with_semantic_error.ets:18:14 Error TypeError: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ +/* @@? package_module_with_semantic_error.ets:18:14 Error Semantic error ESE0318: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Unexpected token '='. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Unexpected token ')'. */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0291: Invalid package toplevel statement */ -/* @@? package_with_both_errors.ets:21:16 Error TypeError: Cannot find type 'good'. */ -/* @@? package_with_both_errors.ets:21:21 Error SyntaxError: Unexpected token 'Day'. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: Type 'Day' has no call signatures. */ +/* @@? package_with_both_errors.ets:21:16 Error Semantic error ESE0371: Cannot find type 'good'. */ +/* @@? package_with_both_errors.ets:21:21 Error Syntax error ESY0227: Unexpected token 'Day'. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0002: Type 'Day' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_semantic_error.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_semantic_error.ets index ecb87c42d0f24147e053be1de3a7bdc9873ed1d8..d5febd326892d5ff9459bb7ab59a2a291b708aeb 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_semantic_error.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_semantic_error.ets @@ -17,14 +17,14 @@ package mypack; let a: int = "I am a number, I promise..."; -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Unexpected token '='. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Unexpected token ')'. */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0291: Invalid package toplevel statement */ -/* @@? package_with_both_errors.ets:21:16 Error TypeError: Cannot find type 'good'. */ -/* @@? package_with_both_errors.ets:21:21 Error SyntaxError: Unexpected token 'Day'. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: Type 'Day' has no call signatures. */ +/* @@? package_with_both_errors.ets:21:16 Error Semantic error ESE0371: Cannot find type 'good'. */ +/* @@? package_with_both_errors.ets:21:21 Error Syntax error ESY0227: Unexpected token 'Day'. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0002: Type 'Day' has no call signatures. */ -/* @@? package_module_with_semantic_error.ets:18:14 Error TypeError: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ +/* @@? package_module_with_semantic_error.ets:18:14 Error Semantic error ESE0318: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_syntax_error.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_syntax_error.ets index 18341d2998d6555b2cd8a8a9e4ff41841ba6ea57..84f7577b9e2eab4d643a27c21862eb8017592a07 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_syntax_error.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_syntax_error.ets @@ -17,14 +17,14 @@ package mypack; =) -/* @@? package_module_with_semantic_error.ets:18:14 Error TypeError: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ +/* @@? package_module_with_semantic_error.ets:18:14 Error Semantic error ESE0318: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ -/* @@? package_with_both_errors.ets:21:16 Error TypeError: Cannot find type 'good'. */ -/* @@? package_with_both_errors.ets:21:21 Error SyntaxError: Unexpected token 'Day'. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: Type 'Day' has no call signatures. */ +/* @@? package_with_both_errors.ets:21:16 Error Semantic error ESE0371: Cannot find type 'good'. */ +/* @@? package_with_both_errors.ets:21:21 Error Syntax error ESY0227: Unexpected token 'Day'. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0002: Type 'Day' has no call signatures. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Unexpected token '='. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Unexpected token ')'. */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0291: Invalid package toplevel statement */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_with_both_errors.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_with_both_errors.ets index bab0e7b0a57cec997f15aba779f719f39e7cae3c..b40ec45903fdc35b91fda52524dfa1d00959d60f 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_with_both_errors.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_with_both_errors.ets @@ -21,14 +21,14 @@ function foo(): Day { return new good Day(); } -/* @@? package_module_with_semantic_error.ets:18:14 Error TypeError: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ +/* @@? package_module_with_semantic_error.ets:18:14 Error Semantic error ESE0318: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Unexpected token '='. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Unexpected token ')'. */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0291: Invalid package toplevel statement */ -/* @@? package_with_both_errors.ets:21:16 Error TypeError: Cannot find type 'good'. */ -/* @@? package_with_both_errors.ets:21:21 Error SyntaxError: Unexpected token 'Day'. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: Type 'Day' has no call signatures. */ +/* @@? package_with_both_errors.ets:21:16 Error Semantic error ESE0371: Cannot find type 'good'. */ +/* @@? package_with_both_errors.ets:21:21 Error Syntax error ESY0227: Unexpected token 'Day'. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0002: Type 'Day' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/scopes_multi_error.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/scopes_multi_error.ets index 3a8d9a439000eff96096f75c8833421453b8b7d5..a08d9b8cb586410a3976a64734a72919502bad3d 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/scopes_multi_error.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/scopes_multi_error.ets @@ -28,8 +28,8 @@ function main(i : string[], g : int): void { export default function TestFunc(): void {} export default function TestFuncToo(): void {} -/* @@? 20:10 Error TypeError: Main overload is not enabled */ -/* @@? 20:15 Error TypeError: Only 'FixedArray' type argument is allowed. */ -/* @@? 24:10 Error TypeError: Main overload is not enabled */ -/* @@? 24:10 Error TypeError: 0 or 1 argument are allowed */ -/* @@? 29:16 Error TypeError: Only one default export is allowed in a module */ +/* @@? 20:10 Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 20:15 Error Semantic error ESE0135: Only 'FixedArray' type argument is allowed. */ +/* @@? 24:10 Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 24:10 Error Semantic error ESE0133: 0 or 1 argument are allowed */ +/* @@? 29:16 Error Semantic error ESE0374: Only one default export is allowed in a module */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_1_ne.ets index 3fed30fb928713556c742877448e04e52530511d..69c560c5ee273bf7b8fa1ba44cdec3770b0f49b9 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_1_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_2_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_2_ne.ets index a1da533413588dc4e365d98dd45f4a702099b030..273c18110282f02ad9b3fd4f04632901d67982bb 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_2_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_2_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_3_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_3_ne.ets index 5b0fa101622e9a9e8ca48a9b0c91ae82e6c92517..c4765ccb125ea77b1a631ee4c824867777e39c18 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_3_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_3_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_4_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_4_ne.ets index aa8c172b1fc2789a4651b9a2d62913e45bb38d77..70f712916144754142479d214dc038ae00ec12ed 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_4_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_4_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_5_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_5_ne.ets index 38e266873e042dca44e8ef7ceba7bd730943e7e7..0e45e43b6de9f325e9e43dcc1872287ebb238763 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_5_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_5_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_6_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_6_ne.ets index 06251d99394b889ece26ea66b66029d854a17326..de19aa65abf94ce425b7dc049ebadf02616e26bc 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_6_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_6_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_7_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_7_ne.ets index 2aa03a66a4ade9939d13e2c681d3e736d44fc848..b37e0c6f403f20c519392f2d8226aec538041b56 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_7_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_7_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_B_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_B_1_ne.ets index 259a491d0a744327bbb2afb04cca9e1d683f66db..3d2a773ae34f2e30cddab9bceae88ca9706b8ca9 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_B_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_B_1_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_1_ne.ets index 8350e64f9112d6920edac99072e60f4d6b6a3258..228077491a9072f5b46c09fd785bf74bff4cc876 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_1_ne.ets @@ -16,6 +16,6 @@ import * as ns from "./eitest_import_all_2_ne" const f: ns.qw.Root.Foo = {x:10} -/* @@? eitest_import_all_1_ne.ets:17:13 Error TypeError: 'qw' type does not exist. */ -/* @@? eitest_import_all_1_ne.ets:17:16 Error TypeError: 'Root' type does not exist. */ -/* @@? eitest_import_all_1_ne.ets:17:21 Error TypeError: 'Foo' type does not exist. */ \ No newline at end of file +/* @@? 17:13 Error Semantic error ESE0070: 'qw' type does not exist. */ +/* @@? 17:16 Error Semantic error ESE0070: 'Root' type does not exist. */ +/* @@? 17:21 Error Semantic error ESE0070: 'Foo' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_4_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_4_ne.ets index 57e068b6d1bbbefc29e614a1e875dd9c75349b0c..c9d02fe26bffa504719ce0d875c8b8b1330c9ddd 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_4_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_4_ne.ets @@ -16,4 +16,4 @@ import * as ns from "./eitest_import_all_5_ne" const t: ns.B = new ns.B() -/* @@? eitest_import_all_4_ne.ets:17:13 Error TypeError: 'B' type does not exist. */ \ No newline at end of file +/* @@? 17:13 Error Semantic error ESE0070: 'B' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_1_ne.ets index da65463362abc626fdc61908e514ec5646f9691c..dd49a8e32623c9b180ee07f01af2fee303b0f5ab 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_1_ne.ets @@ -19,4 +19,4 @@ function main(){ let a :A = new A() } -/* @@? 16:17 Error TypeError: Use the default import syntax to import a default exported element */ \ No newline at end of file +/* @@? 16:17 Error Semantic error ESE0353: Use the default import syntax to import a default exported element */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_2_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_2_ne.ets index 6758e4fdde85322ba1387f33e1efb3b9910bbb42..f8f13875273835a83cbd374fe517444cd425f3d3 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_2_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_2_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :B = new B() } -/* @@? 16:17 Error TypeError: Cannot find imported element 'B' */ -/* @@? 19:12 Error TypeError: Cannot find type 'B'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'B'. */ \ No newline at end of file +/* @@? 16:17 Error Semantic error ESE0356: Cannot find imported element 'B' */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'B'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'B'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_3_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_3_ne.ets index 95df0589cc4dbf3e84837bbebb749b660f871d6d..3ceb444163fd684ef0fc93bff7031c1ebd311115 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_3_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_3_ne.ets @@ -19,4 +19,4 @@ function main(){ let a :A = new A() } -/* @@? 16:17 Error TypeError: Use the default import syntax to import a default exported element */ \ No newline at end of file +/* @@? 16:17 Error Semantic error ESE0353: Use the default import syntax to import a default exported element */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_type_A_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_type_A_1_ne.ets index a5e1725a38e9997b18267ef86f67f8825ffb52af..2c9cad102d622f57f256cf1903b339d40fc4e9fc 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_type_A_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_type_A_1_ne.ets @@ -19,4 +19,4 @@ function main(){ let a :CLASS_A = new CLASS_A() } -/* @@? 16:23 Error TypeError: Use the default import syntax to import a default exported element */ +/* @@? 16:23 Error Semantic error ESE0353: Use the default import syntax to import a default exported element */ diff --git a/ets2panda/test/ast/compiler/ets/import_export/import_type_star.ets b/ets2panda/test/ast/compiler/ets/import_export/import_type_star.ets index 048b83604535d472b7f359bdca1563334566154b..87ca6701348686110145d524cd600063ed80a437 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/import_type_star.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/import_type_star.ets @@ -20,6 +20,7 @@ let bad1 : TEST.CallBack = () => { } let bad2 : TEST.A = new TEST.A() -/* @@? 19:12 Error TypeError: Type '"A"' is not compatible with the enclosing method's return type 'Int' */ -/* @@? 21:21 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 21:21 Error TypeError: No matching construct signature */ +/* @@? 16:15 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 16:18 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 16:23 Error Syntax error ESY0227: Unexpected token 'from'. */ +/* @@? 16:28 Error Syntax error ESY0227: Unexpected token './export'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_1.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_1.ets index fbf91a5f6d272d0dcd6f0843c43bd9be41dab74e..4fb4726af0f73a8c50474c201ba7c13faac707df 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_1.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_1.ets @@ -24,10 +24,9 @@ export class A { let 1: number // First level import with both types of error -/* @@? import_1.ets:21:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_1.ets:24:5 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? import_1.ets:24:5 Error SyntaxError: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? import_2.ets:17:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? import_2.ets:20:5 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ -// Second level import import with both types of error -/* @@? import_2.ets:17:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_2.ets:20:5 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ +/* @@? import_1.ets:21:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? import_1.ets:24:5 Error Syntax error ESY0315: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? import_1.ets:24:5 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_2.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_2.ets index ce4e0f07042c02f31af6209e52948cc0af03a73c..ab69efcb1b85a4e8b4039d47e42df75cd21be7c9 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_2.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_2.ets @@ -20,6 +20,5 @@ export class B { var not_ok = false // Second level import import with both types of error -/* @@? import_2.ets:17:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_2.ets:20:5 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ - +/* @@? 17:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 20:5 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/master_file.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/master_file.ets index c7b79fc31dc88b8dd9c755538d3f57985f899b0f..3fa77e1a32bf5ab34fbd51d1e4170605253d5e13 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/master_file.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/master_file.ets @@ -18,16 +18,14 @@ import {A, B} from "./import_1.ets" let b = new B(10); // First level import with both types of error -/* @@? import_1.ets:21:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_1.ets:24:5 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? import_1.ets:24:5 Error SyntaxError: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? import_1.ets:21:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? import_1.ets:24:5 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? import_1.ets:24:5 Error Syntax error ESY0315: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ // Second level import import with both types of error -/* @@? import_2.ets:17:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_2.ets:20:5 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ +/* @@? import_2.ets:17:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? import_2.ets:20:5 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ // Error in main file based on class from the most distant file -/* @@? master_file.ets:18:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? master_file.ets:18:9 Error TypeError: No matching construct signature for import_2.B(Int) */ -/* @@? master_file.ets:18:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? master_file.ets:18:9 Error TypeError: No matching construct signature for import_2.B(Int) */ +/* @@? master_file.ets:18:9 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? master_file.ets:18:9 Error Semantic error ESE0127: No matching construct signature for import_2.B(Int) */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/import_in_package_with_error.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/import_in_package_with_error.ets index d7c0b1872b7a96393b889dbfdddff465126ce207..6c93980ef6159790aa2b7cc186fc4691ae543d89 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/import_in_package_with_error.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/import_in_package_with_error.ets @@ -19,15 +19,15 @@ import { notInit, importantInfo } from "./inner_package_with_errors" function bar(x: notInit) { (=_=) } -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ +/* @@? distant_package.ets:22:22 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ -/* @@? package_with_errors_1.ets:19:32 Error TypeError: Cannot cast type 'String' to 'Double' */ +/* @@? package_with_errors_1.ets:19:32 Error Semantic error ESE0326: Cannot cast type 'String' to 'Double' */ -/* @@? package_with_errors_2.ets:19:16 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: Unresolved reference foo */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: This expression is not callable. */ +/* @@? package_with_errors_2.ets:19:16 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0289: This expression is not callable. */ -/* @@? import_in_package_with_error.ets:20:17 Error TypeError: Cannot find type 'notInit'. */ -/* @@? import_in_package_with_error.ets:20:29 Error SyntaxError: Unexpected token '='. */ -/* @@? import_in_package_with_error.ets:20:30 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? import_in_package_with_error.ets:20:32 Error SyntaxError: Unexpected token ')'. */ +/* @@? import_in_package_with_error.ets:20:17 Error Semantic error ESE0371: Cannot find type 'notInit'. */ +/* @@? import_in_package_with_error.ets:20:29 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? import_in_package_with_error.ets:20:30 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? import_in_package_with_error.ets:20:32 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/inner_package_with_errors/distant_package.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/inner_package_with_errors/distant_package.ets index fb0a7d4075fe3387546adf09baf2bd27eb747baf..15a015b55e6382a9b8e826b682af9bddfed4b0d6 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/inner_package_with_errors/distant_package.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/inner_package_with_errors/distant_package.ets @@ -21,5 +21,5 @@ export let importantInfo = "All good!" export const notInit ; -/* @@? distant_package.ets:22:14 Error SyntaxError: Missing initialization for const package property */ -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ +/* @@? 22:14 Error Syntax error ESY0294: Missing initialization for const package property */ +/* @@? 22:22 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_1.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_1.ets index 8ea80e1135ed035aadbbf61f772d09e686fee779..6a62e1bb86ecb42f1667fffe6c8619dd13974fb8 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_1.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_1.ets @@ -18,15 +18,15 @@ package package_with_errors // "importantInfo" is imported in "import_in_package_with_error.ets" export let moreImportantInfo = importantInfo as number; -/* @@? import_in_package_with_error.ets:20:17 Error TypeError: Cannot find type 'notInit'. */ -/* @@? import_in_package_with_error.ets:20:29 Error SyntaxError: Unexpected token '='. */ -/* @@? import_in_package_with_error.ets:20:30 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? import_in_package_with_error.ets:20:32 Error SyntaxError: Unexpected token ')'. */ +/* @@? import_in_package_with_error.ets:20:17 Error Semantic error ESE0371: Cannot find type 'notInit'. */ +/* @@? import_in_package_with_error.ets:20:29 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? import_in_package_with_error.ets:20:30 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? import_in_package_with_error.ets:20:32 Error Syntax error ESY0227: Unexpected token ')'. */ -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ +/* @@? distant_package.ets:22:22 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ -/* @@? package_with_errors_2.ets:19:16 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: Unresolved reference foo */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: This expression is not callable. */ +/* @@? package_with_errors_2.ets:19:16 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0289: This expression is not callable. */ -/* @@? package_with_errors_1.ets:19:32 Error TypeError: Cannot cast type 'String' to 'Double' */ +/* @@? package_with_errors_1.ets:19:32 Error Semantic error ESE0326: Cannot cast type 'String' to 'Double' */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_2.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_2.ets index bd2e68d9233625dc5b18d7ac203e4c9a56c404f4..56f97d00b8e71a24bb6d933f65fb988775b9527d 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_2.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_2.ets @@ -20,15 +20,15 @@ let newValue = foo(notInit) export notInit -/* @@? import_in_package_with_error.ets:20:17 Error TypeError: Cannot find type 'notInit'. */ -/* @@? import_in_package_with_error.ets:20:29 Error SyntaxError: Unexpected token '='. */ -/* @@? import_in_package_with_error.ets:20:30 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? import_in_package_with_error.ets:20:32 Error SyntaxError: Unexpected token ')'. */ +/* @@? import_in_package_with_error.ets:20:17 Error Semantic error ESE0371: Cannot find type 'notInit'. */ +/* @@? import_in_package_with_error.ets:20:29 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? import_in_package_with_error.ets:20:30 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? import_in_package_with_error.ets:20:32 Error Syntax error ESY0227: Unexpected token ')'. */ -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ +/* @@? distant_package.ets:22:22 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ -/* @@? package_with_errors_1.ets:19:32 Error TypeError: Cannot cast type 'String' to 'Double' */ +/* @@? package_with_errors_1.ets:19:32 Error Semantic error ESE0326: Cannot cast type 'String' to 'Double' */ -/* @@? package_with_errors_2.ets:19:16 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: Unresolved reference foo */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: This expression is not callable. */ +/* @@? package_with_errors_2.ets:19:16 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_1.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_1.ets index e7628a6a7050e85f4cba2a350b55735ecfc3e17e..8beb17106cd3c4a1b72dc1de9d2987fb537ce8e3 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_1.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_1.ets @@ -17,4 +17,4 @@ namespace ns { import * as nsi from './export_file'; } -/* @@? 17:5 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 17:5 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_2.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_2.ets index e5dbc4c1f517123bb55f636e2cdd5ab72f676817..081c8ace4d8cf75d71b9a42fb9ba7e19afb69b87 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_2.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_2.ets @@ -19,4 +19,4 @@ function main() { } } -/* @@? 18:9 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 18:9 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_3.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_3.ets index b57db803922961286b25b776ce62bdd26c10b8da..06133c261753bf1d36142196dd0f2845620dda08 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_3.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_3.ets @@ -19,4 +19,4 @@ function main() { } } -/* @@? 18:9 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file +/* @@? 18:9 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_function_wrong_name.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_function_wrong_name.ets index 232dd176a1a215ef72e7de879424dc81de48a7c7..cb2f2a10c88b012f63d8d17f2f1c35a9b4f62f19 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_function_wrong_name.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_function_wrong_name.ets @@ -15,4 +15,4 @@ import {/* @@ label */test_func} from "./selective_export_function" -/* @@@ label Error TypeError: Cannot find imported element 'test_func' */ +/* @@@ label Error Semantic error ESE0356: Cannot find imported element 'test_func' */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_interface_wrong_name.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_interface_wrong_name.ets index 317a1ed4e0e3651fe0a248460f711cbb92070790..46bde7435f46431c4d0e549844116cfe372092fa 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_interface_wrong_name.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_interface_wrong_name.ets @@ -15,4 +15,4 @@ import {/* @@ label */InterfaceToAlias} from "./selective_export_interface"; -/* @@@ label Error TypeError: Cannot find imported element 'InterfaceToAlias' */ +/* @@@ label Error Semantic error ESE0356: Cannot find imported element 'InterfaceToAlias' */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_3.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_3.ets index fec071802f9ed657b099cc121f7fced934488fd2..5b5ae3058961e7652b50b6b4f81a22f19c4b931c 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_3.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_3.ets @@ -20,5 +20,5 @@ f2() let c1: a1 = new a1() let c2: a2 = new a2() -/* @@? 16:10 Error TypeError: Cannot find imported element 'foo' */ -/* @@? 16:23 Error TypeError: Cannot find imported element 'A' */ +/* @@? 16:10 Error Semantic error ESE0356: Cannot find imported element 'foo' */ +/* @@? 16:23 Error Semantic error ESE0356: Cannot find imported element 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/namespace_import_wrong_access_name.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/namespace_import_wrong_access_name.ets index b594028cb9d22c2c9804e7b8ec750f0f97a245ec..58c8e04db97b09698b44d9cbe7f355966c3b0bce 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/namespace_import_wrong_access_name.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/namespace_import_wrong_access_name.ets @@ -17,4 +17,4 @@ import * as all from "./selective_export" let test_var = new all.TestClass(); -/* @@? 18:24 Error TypeError: 'TestClass' type does not exist. */ +/* @@? 18:24 Error Semantic error ESE0070: 'TestClass' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_3.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_3.ets index b9e214dc37854c00fae258439648f56e534c9f3e..9ec7a76e8262695e210d137f24dbe633d4edcb95 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_3.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_3.ets @@ -21,4 +21,4 @@ export { msg as foo } -/* @@? 21:10 Error SyntaxError: The given name 'foo' is already used in another export. */ +/* @@? 21:10 Error Syntax error ESY0281: The given name 'foo' is already used in another export. */ diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_4.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_4.ets index 38dc700daf9b2798b0969c51cae97bd61eb8bd58..5adbf232fe79c96ca29eda25729123083d962268 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_4.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_4.ets @@ -21,4 +21,4 @@ export { msg as foo } -/* @@? 21:10 Error SyntaxError: The given name 'foo' is already used in another export. */ +/* @@? 21:10 Error Syntax error ESY0281: The given name 'foo' is already used in another export. */ diff --git a/ets2panda/test/ast/compiler/ets/import_type_with_invalid_syntax.ets b/ets2panda/test/ast/compiler/ets/import_type_with_invalid_syntax.ets index 9b7ecfe360a18d95e8519b7a0e057be0f14136be..0f0c3e6bcab7addc6a88682ad61b8709056f7faf 100644 --- a/ets2panda/test/ast/compiler/ets/import_type_with_invalid_syntax.ets +++ b/ets2panda/test/ast/compiler/ets/import_type_with_invalid_syntax.ets @@ -19,6 +19,7 @@ let a = new A(); class C implements B {}; let c = new C() -/* @@@ label1 Error SyntaxError: Unexpected token, expected 'as'. */ -/* @@? 16:35 Error TypeError: Class 'C' is already defined. */ -/* @@? export_type.ets:1:1 Error TypeError: Function main is already declared. */ +/* @@? export_type.ets:1:1 Error Semantic error ESE0130: Function main is already declared. */ + +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected 'as'. */ +/* @@? import_type_with_invalid_syntax.ets:16:35 Error Semantic error ESE0349: Class 'C' is already defined. */ diff --git a/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets b/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets index c4664c65f9cf5e0a697f63f35e31d162ac6309ce..b2196c13dc4ab9460a705c6caab784f383bb94ab 100644 --- a/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets +++ b/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets @@ -24,5 +24,5 @@ function bar(arr:number[]){ }) } -/* @@? 17:12 Error TypeError: No matching call signature for (T) */ -/* @@? 17:14 Error TypeError: Type 'T' is not compatible with type 'Array' at index 1 */ +/* @@? 17:12 Error Semantic error ESE0127: No matching call signature for (T) */ +/* @@? 17:14 Error Semantic error ESE0046: Type 'T' is not compatible with type 'Array' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets index d886e32944bab02a919a0cb54c1b1d8a5d69a69d..2d1e71d087cfe617157eba107ebc3d95336e8ff7 100644 --- a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets +++ b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets @@ -18,8 +18,8 @@ a[0] = 1 a[1] = "1" let b = a[0] + a[1] -/* @@? 16:9 Error TypeError: Can't resolve array type */ -/* @@? 17:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 18:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 19:9 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 19:16 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@? 16:9 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 17:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 18:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 19:9 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 19:16 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets index c8400f2b115b5afbbb436508b24fe92ad03769ad..f3ba012be1b534e7a87c531e7161986fb11f41f5 100644 --- a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets +++ b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets @@ -16,6 +16,6 @@ let a = [1, 2, 3] a[0] = /* @@ label */"1" -/* @@? 17:1 Error TypeError: No matching indexing signature for $_set(Int, "1") */ -/* @@? 17:3 Error TypeError: Cannot find index access method with the required signature. */ -/* @@? 17:22 Error TypeError: Type '"1"' is not compatible with type 'Double' at index 2 */ +/* @@? 17:1 Error Semantic error ESE0127: No matching indexing signature for $_set(Int, "1") */ +/* @@? 17:3 Error Semantic error ESE0251: Cannot find index access method with the required signature. */ +/* @@@ label Error Semantic error ESE0046: Type '"1"' is not compatible with type 'Double' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets b/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets index ceb44b333e6396435d9bc13e07403144c1e8010f..4593fa23c55e57f542b0a5810c5d46e5747848c8 100644 --- a/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets +++ b/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets @@ -17,9 +17,9 @@ export const floatInf: float = /* @@ label2 */1.0 / 0.0 export const byteInf: byte = /* @@ label */1.0 / 0.0 export const shortInf: short = /* @@ label1 */1.0 / 0.0 -/* @@@ label Error TypeError: Type 'Double' cannot be assigned to type 'Byte' */ -/* @@@ label1 Error TypeError: Type 'Double' cannot be assigned to type 'Short' */ -/* @@@ label2 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@@ label2 Error TypeError: Value is out of range */ -/* @@@ label1 Error TypeError: Floating-point value cannot be converted */ -/* @@@ label Error TypeError: Floating-point value cannot be converted */ +/* @@@ label2 Error Semantic error ESE0345: Value is out of range */ +/* @@@ label2 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ label Error Semantic error ESE0344: Floating-point value cannot be converted */ +/* @@@ label Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Byte' */ +/* @@@ label1 Error Semantic error ESE0344: Floating-point value cannot be converted */ +/* @@@ label1 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Short' */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative1.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative1.ets index 683b62432d78c2310e478d5163f7119738a2ecf2..71361d1aad7d7ccc6b782d8e118ac8a285cca144 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative1.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative1.ets @@ -17,4 +17,4 @@ function foo() { /* @@ label */initModule('./module_to_init.ets') } -/* @@@ label Error SyntaxError: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ +/* @@@ label Error Syntax error ESY0322: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative2.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative2.ets index 7887e38abf24d0f0ba6795abf5924fb16e7a7d04..3774470e769280238a523f7ff5e240e69817644d 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative2.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative2.ets @@ -18,4 +18,4 @@ class A { /* @@ label */initModule('./module_to_init.ets') -/* @@@ label Error SyntaxError: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ +/* @@@ label Error Syntax error ESY0322: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative3.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative3.ets index 18a7108e9362871bd65fdae78bc7f8fe837237c5..94c64e95db43a11966a68398881d17b6126ef31f 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative3.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative3.ets @@ -16,4 +16,4 @@ let b = 1 /* @@ label */initModule('./module_to_init.ets') -/* @@@ label Error SyntaxError: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ +/* @@@ label Error Syntax error ESY0322: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative4.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative4.ets index e9d9ffd119ac1d841104d0a2410b52432eeed989..ac364fd1483ab0740a109e7e5f50df29bd2f97fd 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative4.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative4.ets @@ -15,4 +15,4 @@ /* @@ label */initModule(1) -/* @@@ label Error SyntaxError: initModule() only accept string literal as argument. */ +/* @@@ label Error Syntax error ESY0321: initModule() only accept string literal as argument. */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative5.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative5.ets index 5bf4e846f0e26c47d2ea2dec71a63e188425878b..015a7a2f61f352a7f72702528e8d945d3f15e426 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative5.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative5.ets @@ -15,5 +15,5 @@ initModule( -/* @@? 16:1 Error SyntaxError: initModule() only accept string literal as argument. */ -/* @@? 20:1 Error SyntaxError: Expected ')', got 'end of stream'. */ +/* @@? 16:1 Error Syntax error ESY0321: initModule() only accept string literal as argument. */ +/* @@? 20:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative6.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative6.ets index 3bc35e5a51645f08e146a6df47374a86ebd24a1e..98a837310dd2bfa647098e6d0652a73ff42614ad 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative6.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative6.ets @@ -15,6 +15,6 @@ initModule) -/* @@? 16:11 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 21:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 21:1 Error SyntaxError: Unexpected token, expected ')'. */ +/* @@? 16:11 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 21:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative7.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative7.ets index f91b70836f001ed2914c4084a54783c66d405b02..f04d113d77a13b92209053889e36340af9e61d19 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative7.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative7.ets @@ -15,4 +15,4 @@ /* @@ label */initmodule('./module_to_init.ets') -/* @@@ label Error TypeError: Unresolved reference initmodule */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference initmodule */ diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative8.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative8.ets index 20adc6d8ff0fe764e5008a6caa7ac6a1ba22f2c4..28da5f629682b479b93ab56e990db55e5362b454 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative8.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative8.ets @@ -15,4 +15,4 @@ initModule() -/* @@? 16:1 Error SyntaxError: initModule() only accept string literal as argument. */ +/* @@? 16:1 Error Syntax error ESY0321: initModule() only accept string literal as argument. */ diff --git a/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets b/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets index 630cd8cdfcbf54c2ed70e538bf17b5be3ae95718..6ce56e04211c00bfd03b27c32fbe2500cac5f410 100644 --- a/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets +++ b/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets @@ -23,8 +23,6 @@ export namespace xml { } } -/* @@? 17:3 Error SyntaxError: Unexpected token 'static'. */ -/* @@? 17:10 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 17:13 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:13 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 20:3 Error SyntaxError: Only one static block is allowed in one namespace or class. */ +/* @@? 17:3 Error Syntax error ESY0227: Unexpected token 'static'. */ +/* @@? 19:3 Error Syntax error ESY0227: Unexpected token 'static'. */ +/* @@? 22:3 Error Syntax error ESY0227: Unexpected token 'static'. */ diff --git a/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets b/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets index 9d2fef2044422f716fa5e9d5d606f9ae3f04f37f..775b38fb5cc2606c8bb47a3e99263039c52df38d 100644 --- a/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets +++ b/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets @@ -23,14 +23,14 @@ function fn(i: I) { return new i("hello") } -/* @@? 19:5 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 19:5 Error SyntaxError: Constructor signatures are not supported in interfaces, use methods instead! */ -/* @@? 19:10 Error TypeError: Cannot find type 's'. */ -/* @@? 19:11 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 19:11 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 19:19 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 19:20 Error SyntaxError: Invalid Type. */ -/* @@? 19:20 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 19:20 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 20:1 Error SyntaxError: Invalid Type. */ -/* @@? 23:16 Error TypeError: Cannot find type 'i'. */ +/* @@? 19:5 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 19:5 Error Syntax error ESY81515: Constructor signatures are not supported in interfaces, use methods instead! */ +/* @@? 19:10 Error Semantic error ESE0371: Cannot find type 's'. */ +/* @@? 19:11 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 19:11 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 19:19 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 19:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 19:20 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 19:20 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 20:1 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 23:16 Error Semantic error ESE0371: Cannot find type 'i'. */ diff --git a/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets b/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets index 2d32350377f2b4b0b42f6124dbecf907a793baa8..a7e0f46b19edeae014dd8d66defead303af40f75 100644 --- a/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets +++ b/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets @@ -23,4 +23,4 @@ class B implements A /* @@ label */{ } } -/* @@@ label Error TypeError: B is not abstract and does not override abstract method foo(): void in A */ +/* @@@ label Error Semantic error ESE0190: B is not abstract and does not override abstract method foo(): void in A */ diff --git a/ets2panda/test/ast/compiler/ets/interface_ambient_call_signature_1.ets b/ets2panda/test/ast/compiler/ets/interface_ambient_call_signature_1.ets index f2a2037d5378d7bd18ee5f82a82220da33e488ee..2dcd40648408f00fce1c594882f26e5b711d3371 100644 --- a/ets2panda/test/ast/compiler/ets/interface_ambient_call_signature_1.ets +++ b/ets2panda/test/ast/compiler/ets/interface_ambient_call_signature_1.ets @@ -16,7 +16,7 @@ declare interface A { (arg :string) string } -/* @@? 17:7 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:3 Error SyntaxError: Identifier expected. */ \ No newline at end of file +/* @@? 17:7 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 17:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:21 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:3 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/compiler/ets/interface_class_implement.ets b/ets2panda/test/ast/compiler/ets/interface_class_implement.ets index 41591ce4089dd86e86832407cbfa58594684c120..db5dcc52a5b7268829fdbe15726abce3d6b64873 100644 --- a/ets2panda/test/ast/compiler/ets/interface_class_implement.ets +++ b/ets2panda/test/ast/compiler/ets/interface_class_implement.ets @@ -20,4 +20,4 @@ class A implements AA{ static X :int=1; } -/* @@? 19:22 Error TypeError: A is not abstract and does not implement getter for X property in AA */ +/* @@? 17:8 Error Semantic error ESE0000: Cannot find name int */ diff --git a/ets2panda/test/ast/compiler/ets/interface_partial.ets b/ets2panda/test/ast/compiler/ets/interface_partial.ets index f3f836c47b1a14c13b0265dba3a438f2ffd6c519..29fc2ebb825713b2fc9618f8741e503b6ec83f09 100644 --- a/ets2panda/test/ast/compiler/ets/interface_partial.ets +++ b/ets2panda/test/ast/compiler/ets/interface_partial.ets @@ -30,11 +30,11 @@ function main() { foo(break.var_one); } -/* @@? 18:1 Error SyntaxError: Invalid Type. */ -/* @@? 21:13 Error TypeError: Property 'var_one' does not exist on type 'I$partial' */ -/* @@? 22:13 Error TypeError: Property 'var_one' does not exist on type 'I$partial' */ -/* @@? 27:18 Error TypeError: type I has no property named var_one */ -/* @@? 28:11 Error TypeError: Property 'var_one' does not exist on type 'I' */ -/* @@? 29:9 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 29:18 Error TypeError: type I has no property named var_two */ -/* @@? 30:9 Error SyntaxError: Unexpected token 'break'. */ \ No newline at end of file +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:13 Error Semantic error ESE0087: Property 'var_one' does not exist on type 'I$partial' */ +/* @@? 22:13 Error Semantic error ESE0087: Property 'var_one' does not exist on type 'I$partial' */ +/* @@? 27:18 Error Semantic error ESE0065: type I has no property named var_one */ +/* @@? 28:11 Error Semantic error ESE0087: Property 'var_one' does not exist on type 'I' */ +/* @@? 29:9 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 29:18 Error Semantic error ESE0065: type I has no property named var_two */ +/* @@? 30:9 Error Syntax error ESY0227: Unexpected token 'break'. */ diff --git a/ets2panda/test/ast/compiler/ets/interface_property_scope.ets b/ets2panda/test/ast/compiler/ets/interface_property_scope.ets index 0c8647af1e83986f2993a93f6fd6f0e77c54dc70..5399e5870a6dd71a62bc560716ad89fb56582e1f 100644 --- a/ets2panda/test/ast/compiler/ets/interface_property_scope.ets +++ b/ets2panda/test/ast/compiler/ets/interface_property_scope.ets @@ -18,10 +18,4 @@ interface itf0{ @Anno(()=> {testList.subArrayList(0, 1)}, exceptionCherckEmptyContainer) } -/* @@? 16:2 Error TypeError: Cannot find type 'Anno'. */ -/* @@? 18:6 Error TypeError: Cannot find type 'Anno'. */ -/* @@? 18:11 Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 18:45 Error SyntaxError: Expected ')', got ','. */ -/* @@? 18:45 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:76 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 19:1 Error SyntaxError: Invalid Type. */ +/* @@? 18:5 Error Syntax error ESY0000: Decorators are not allowed here */ diff --git a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets index 260287ee8be8c7b82885277472210700cc56ef59..e501fa890941ca3bd82137f6835e2f29c03ad61a 100644 --- a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets +++ b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets @@ -34,5 +34,5 @@ function main(): void { arktest.assertEQ(instance.getX(), true); } -/* @@@ label1 Error TypeError: Type 'Boolean' has no call signatures. */ -/* @@@ label Error TypeError: Cannot inherit from class C, because field x is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class C, because field x is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0002: Type 'Boolean' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets index 75c6af1ac9d660e384e24d9e0cb4058ac09ecedf..5de44b01961f5bd1a992e1cdb6dd20b592de9cab 100644 --- a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets +++ b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets @@ -34,5 +34,5 @@ function main(): void { arktest.assertEQ(instance.getX(), true); } -/* @@@ label1 Error TypeError: Type 'Boolean' has no call signatures. */ -/* @@@ label Error TypeError: Cannot inherit from class C, because field x is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class C, because field x is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0002: Type 'Boolean' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets b/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets index 4a53c7b8605b6e5f34eb4563ca7b938b8cb899ba..6aea8463a5eb1a00aa1e19494a3fc2e6a2799fe3 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets @@ -23,4 +23,4 @@ class B extends /* @@ label */A { } } -/* @@@ label Error TypeError: Cannot inherit from class A, because method a is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class A, because method a is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets b/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets index c3f4fde638851a88ae829914daa350c79de75fe2..de88e128df9da330980da6dc9bd363072013095c 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets @@ -26,5 +26,5 @@ class C extends B { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 23:17 Error TypeError: Cannot inherit from class B, because class a is inherited with a different declaration type */ +/* @@? 23:17 Error Semantic error ESE0216: Cannot inherit from class B, because class a is inherited with a different declaration type */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets b/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets index dad9d78408895ea1a8b00ece94e957b2bed4e3a8..8a743df69132415300fbe22724694d07065c75fa 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets @@ -21,4 +21,4 @@ class B extends /* @@ label */A { name(): int {} } -/* @@@ label Error TypeError: Cannot inherit from class A, because method name is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class A, because method name is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets index 966bca830e5d056e84a030ff4456df392c05bc50..cc643ee0c78edb1a9d8df2df3107f7a41ec38620 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets @@ -30,5 +30,5 @@ function main(): void { let instance: B = new B(); arktest.assertEQ(instance.getX(), true); } -/* @@@ label1 Error TypeError: Type 'Boolean' has no call signatures. */ -/* @@@ label Error TypeError: Cannot inherit from class A, because field x is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class A, because field x is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0002: Type 'Boolean' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets index c406f86f399ac7ed8345888492e85079694ff92f..12fb6a8fc3eeccd0cb12f65906988e8cedbb047f 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets @@ -30,5 +30,5 @@ function main(): void { let instance: B = new B(); arktest.assertEQ(instance.getX(), true); } -/* @@@ label1 Error TypeError: Type 'Boolean' has no call signatures. */ -/* @@@ label Error TypeError: Cannot inherit from interface A because field x is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0215: Cannot inherit from interface A because field x is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0002: Type 'Boolean' has no call signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets index 1dee731ac20dd68488bccfa52ab2e23179d5766e..39c15ab9e42d4aae8fbae56e85342fc83019532b 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets @@ -22,4 +22,4 @@ class A { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets index 1dee731ac20dd68488bccfa52ab2e23179d5766e..39c15ab9e42d4aae8fbae56e85342fc83019532b 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets @@ -22,4 +22,4 @@ class A { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets index 639026ee3f49a909cf7a1b50db09ba9539a84859..391b571b8b26bb3bb5be69511ba1813769ba2ce1 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets @@ -22,4 +22,4 @@ class A { } } -/* @@@ label Error TypeError: 'foo_in_A' is an instance property of 'A' */ +/* @@@ label Error Semantic error ESE0208: 'foo_in_A' is an instance property of 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets index 4150dacde6760baa454644346afc4e2dce6d4c02..6032463126259850c46d2e2ea533cfffeb057211 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets @@ -24,4 +24,4 @@ final class B { } } -/* @@@ label Error TypeError: 'foo_in_A' is an instance property of 'A' */ +/* @@@ label Error Semantic error ESE0208: 'foo_in_A' is an instance property of 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets index dc02b67ec10ea1cf558e02327488151127d62af8..ff84e7686a75150b931486406df599f824489fe7 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets @@ -24,4 +24,4 @@ final class B extends A { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets index dc02b67ec10ea1cf558e02327488151127d62af8..ff84e7686a75150b931486406df599f824489fe7 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets @@ -24,4 +24,4 @@ final class B extends A { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets index c2c56037a8d77cb58099ebeb1243b3451c35c89b..41f879722c55c59dacda934ccf034423bc40b1dc 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets @@ -24,4 +24,4 @@ final class B extends A { } } -/* @@@ label Error TypeError: 'foo_in_A' is an instance property of 'A' */ +/* @@@ label Error Semantic error ESE0208: 'foo_in_A' is an instance property of 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets index 07c477480d2a9b8f6069d939a9d0e80e3d2c399c..7f548e4c03512da206fac0f35f206d548ca36b24 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets @@ -24,4 +24,4 @@ final class B extends A { } } -/* @@@ label Error TypeError: 'foo_in_A' is an instance property of 'B' */ +/* @@@ label Error Semantic error ESE0208: 'foo_in_A' is an instance property of 'B' */ diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets index a4057a41356bbfa41b469aa08ded29899d8bb8df..10e5b55689a48de98d7896897844aabf72b53e7b 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets @@ -24,4 +24,4 @@ function main(): void { let a = klass./* @@ label */a; } -/* @@@ label Error TypeError: Property a is not visible here. */ +/* @@@ label Error Semantic error ESE0293: Property a is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets index f517470b8dda872cb3f495b00b8c435035b386f0..e5a04db47377db4c08876e02579bc9b092633c90 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets @@ -25,5 +25,5 @@ function main(): void { let klass: Klass = new Klass(); } -/* @@? 25:24 Error TypeError: Signature constructor(): void is not visible here. */ -/* @@? 25:24 Error TypeError: No matching construct signature */ +/* @@? 25:24 Error Semantic error ESE0139: Signature constructor(): void is not visible here. */ +/* @@? 25:24 Error Semantic error ESE0128: No matching construct signature */ diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets index 511ee961f9e200c9f2b685f6f2ab8297c7f5fa23..26c123952179582996f0dd48e5b592d37699c950 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets @@ -35,6 +35,6 @@ function main(): void { klass.foo(); } -/* @@? 35:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 35:5 Error TypeError: Signature foo(): void is not visible here. */ -/* @@? 35:5 Error TypeError: No matching call signature */ +/* @@? 35:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 35:5 Error Semantic error ESE0139: Signature foo(): void is not visible here. */ +/* @@? 35:5 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets index 575b66b45373ee271a72c3c47e64679275dfe475..b1fb68f6d042b1dccdf97c7a2290731d704f653e 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets @@ -23,5 +23,5 @@ class B extends A { } } -/* @@@ label Error TypeError: Class field 'a' defined by the parent class is not accessible in the child class via super. */ -/* @@@ label Error TypeError: Property a is not visible here. */ +/* @@@ label Error Semantic error ESE0377: Class field 'a' defined by the parent class is not accessible in the child class via super. */ +/* @@@ label Error Semantic error ESE0293: Property a is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets index 64d7e24678733f955e044498a2e13075e72d7c75..b12f72aee17fde726e5d3b416986d916a9ff4619 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets @@ -27,9 +27,9 @@ class Outer { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 24:13 Error TypeError: Signature a(): void is not visible here. */ -/* @@? 24:13 Error TypeError: No matching call signature */ -/* @@? 25:13 Error TypeError: Signature a(): void is not visible here. */ -/* @@? 25:13 Error TypeError: No matching call signature */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label1 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 24:13 Error Semantic error ESE0139: Signature a(): void is not visible here. */ +/* @@? 24:13 Error Semantic error ESE0128: No matching call signature */ +/* @@? 25:13 Error Semantic error ESE0139: Signature a(): void is not visible here. */ +/* @@? 25:13 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets index 1dbd8709db2ad0c6692391e76ad6f02d9cac48e3..a677f7be4efb66adcc88a3e6d457e2555f6a3cd3 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets @@ -38,6 +38,6 @@ class D { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 37:11 Error TypeError: Property c is not visible here. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label1 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 37:11 Error Semantic error ESE0293: Property c is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets index a83be828c680e800ee95596a770e50453fee75b9..235ad962647fb10b4d18e277328b9dc2e8401478 100644 --- a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets @@ -24,4 +24,4 @@ function main(): void { let a = klass./* @@ label */a; } -/* @@@ label Error TypeError: Property a is not visible here. */ +/* @@@ label Error Semantic error ESE0293: Property a is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets index e05cbd8ccddf23be55a0c6d4c8476507e6b88aac..50991ee6172309dba2eff4f16a02ceef877c2471 100644 --- a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets @@ -25,5 +25,5 @@ function main(): void { let klass : Klass = new Klass(); } -/* @@? 25:25 Error TypeError: Signature constructor(): void is not visible here. */ -/* @@? 25:25 Error TypeError: No matching construct signature */ +/* @@? 25:25 Error Semantic error ESE0139: Signature constructor(): void is not visible here. */ +/* @@? 25:25 Error Semantic error ESE0128: No matching construct signature */ diff --git a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets index eeaa22daaa3be3ac557d17a03cd89c106fbbd1c4..efd87846c843a7acd90b5e6718580cee712b866d 100644 --- a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets +++ b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets @@ -35,6 +35,6 @@ function main(): void { klass.foo(); } -/* @@? 35:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 35:5 Error TypeError: Signature foo(): void is not visible here. */ -/* @@? 35:5 Error TypeError: No matching call signature */ +/* @@? 35:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 35:5 Error Semantic error ESE0139: Signature foo(): void is not visible here. */ +/* @@? 35:5 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets b/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets index 14f2dbbba75c0962f18f779e8cfb20e5f98ccfb7..0e77c9dc09dc150565ed37b37a8cd0587f28e975 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets @@ -17,11 +17,8 @@ class A{ private \\\\foo(){} } -/* @@? 17:13 Error SyntaxError: Invalid character. */ -/* @@? 17:13 Error SyntaxError: Access modifier must precede field and method modifiers. */ -/* @@? 17:14 Error SyntaxError: Invalid character. */ -/* @@? 17:14 Error SyntaxError: Access modifier must precede field and method modifiers. */ -/* @@? 17:15 Error SyntaxError: Invalid character. */ -/* @@? 17:15 Error SyntaxError: Access modifier must precede field and method modifiers. */ -/* @@? 17:16 Error SyntaxError: Invalid character. */ -/* @@? 17:16 Error SyntaxError: Access modifier must precede field and method modifiers. */ +/* @@? 17:13 Error Syntax error ESY0077: Invalid character. */ +/* @@? 17:14 Error Syntax error ESY0077: Invalid character. */ +/* @@? 17:14 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 17:15 Error Syntax error ESY0077: Invalid character. */ +/* @@? 17:16 Error Syntax error ESY0077: Invalid character. */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets b/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets index 082a7347c6f729257514aa07347da03dc9bc3cd8..f980b1d36f65e65afa9c2ca5aa93af8e9823f5c0 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets @@ -16,5 +16,5 @@ class Integral {} class Numeric {} -/* @@? 1:3 Error TypeError: Class 'Integral' is already defined. */ -/* @@? 1:3 Error TypeError: Class 'Numeric' is already defined. */ +/* @@? 1:3 Error Semantic error ESE0349: Class 'Integral' is already defined. */ +/* @@? 1:3 Error Semantic error ESE0349: Class 'Numeric' is already defined. */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets index 2f3707f2acf87959d1beed916ef47f23830e600c..2c87865fe2b85b5cff606a938ddbc17f010fb54a 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets @@ -23,5 +23,5 @@ namespace C{ } } -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 28:1 Error SyntaxError: Unexpected token. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 28:1 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets index c7941e4248b1d7fc9f997fb803fba3db4fd1d678..9fbb8baf0ffae3094a3316e54779b23ca119b31d 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets @@ -19,4 +19,4 @@ } } -/* @@@ label1 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ +/* @@@ label1 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_object.ets b/ets2panda/test/ast/compiler/ets/invalid_object.ets index 6d2e5fb2a110538949a686b1fc8e2bd36a626bf3..1fcaae048fa72b9a42185d8c9bd65fef0aa538f5 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_object.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_object.ets @@ -18,11 +18,11 @@ const object1: Obj = {}; console.log(Objˆct.keys(object1)); -/* @@? 19:13 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 19:13 Error TypeError: Class or interface 'Obj' cannot be used as object */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:16 Error SyntaxError: Unexpected token 'ˆct'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:16 Error TypeError: Unresolved reference ˆct */ -/* @@? 19:33 Error SyntaxError: Unexpected token ')'. */ \ No newline at end of file +/* @@? 19:13 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 19:13 Error Semantic error ESE0294: Class or interface 'Obj' cannot be used as object */ +/* @@? 19:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:16 Error Syntax error ESY0227: Unexpected token 'ˆct'. */ +/* @@? 19:16 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:16 Error Semantic error ESE0143: Unresolved reference ˆct */ +/* @@? 19:33 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_param_in_constructor.ets b/ets2panda/test/ast/compiler/ets/invalid_param_in_constructor.ets index c24f12ba1649dff7a22b5774705262a5d6537897..df0ee7aa5ccd7421447019cb62e3445073c1ea4a 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_param_in_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_param_in_constructor.ets @@ -18,11 +18,4 @@ class A { } } -/* @@? 17:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:21 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:23 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:23 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:25 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:21 Error Syntax error ESY0000: , expected */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets b/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets index 0ef867033bb85c3592807d5eb5e3dc68aa48014a..f61d4bb6978633d78a03c20754f42813f6e59211 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets @@ -37,8 +37,8 @@ class Derived2 extends Base2{ } } -/* @@? 17:17 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 17:24 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 29:13 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 29:20 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 36:3 Error TypeError: Property 'my_func' must be accessed through 'this' */ +/* @@? 17:17 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 17:24 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 29:13 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 29:20 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 36:3 Error Semantic error ESE0145: Property 'my_func' must be accessed through 'this' */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_switch_case_in_function_assignment.ets b/ets2panda/test/ast/compiler/ets/invalid_switch_case_in_function_assignment.ets index 37691e50670c5c93f75b8ef5f610117ed00e3e9c..672a62fcf05cd3110c6b8f4153cf25adae50ae36 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_switch_case_in_function_assignment.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_switch_case_in_function_assignment.ets @@ -19,7 +19,7 @@ let a = foo() { } } -/* @@? 16:9 Error TypeError: Unresolved reference foo */ -/* @@? 16:9 Error TypeError: This expression is not callable. */ -/* @@? 18:9 Error SyntaxError: Unexpected token 'string literal', expected 'case' or 'default'. */ -/* @@? 18:9 Error SyntaxError: Expected ':', got 'string literal'. */ +/* @@? 16:9 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 16:9 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 18:9 Error Syntax error ESY0231: Unexpected token 'string literal', expected 'case' or 'default'. */ +/* @@? 18:9 Error Syntax error ESY0230: Expected ':', got 'string literal'. */ diff --git a/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets b/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets index f4850751e54e1f9d72894560bd436e6a932569d9..267cb475b74554b8293450697ff7ed7446b6de28 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets @@ -20,6 +20,6 @@ const b = a.map(function (e) { return e * 2; }); -/* @@? 16:2 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 19:17 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 19:28 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:2 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:17 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:28 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ diff --git a/ets2panda/test/ast/compiler/ets/iterabletypes_with_protected_iterator_neg.ets b/ets2panda/test/ast/compiler/ets/iterabletypes_with_protected_iterator_neg.ets index 64cce0d8f4cba279e99989553bb0c93278389d2c..feeed30d1a39057e4550936595940b63a03a93a7 100644 --- a/ets2panda/test/ast/compiler/ets/iterabletypes_with_protected_iterator_neg.ets +++ b/ets2panda/test/ast/compiler/ets/iterabletypes_with_protected_iterator_neg.ets @@ -44,5 +44,5 @@ function main(): int { return 0; } -/* @@? 40:19 Error TypeError: Cannot find iterator method with the required signature. */ -/* @@? 40:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 40:19 Error Semantic error ESE0259: Cannot find iterator method with the required signature. */ +/* @@? 40:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets b/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets index 5edd48126e4922f1439ab8a08ec0c2294b004999..3b5dc74cab1967522cdb62634a5609d407a5dfb2 100644 --- a/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets +++ b/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets @@ -23,41 +23,41 @@ class ObservableImpl extends Observable { type NestedKey = T[K] extends object ? keyof T[K] : never; -/* @@? 16:24 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 16:42 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 16:45 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 18:33 Error TypeError: Cannot find type 'Observable'. */ -/* @@? 18:33 Error TypeError: The super type of 'ObservableImpl' class is not extensible. */ -/* @@? 20:24 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 20:27 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 20:31 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:41 Error SyntaxError: Unexpected token '&'. */ -/* @@? 20:41 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 20:41 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 20:44 Error SyntaxError: Unexpected token ')'. */ -/* @@? 20:44 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:45 Error SyntaxError: Unexpected token ']'. */ -/* @@? 20:46 Error SyntaxError: Unexpected token ':'. */ -/* @@? 20:48 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 20:51 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 20:51 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 20:51 Error SyntaxError: Unexpected token '&'. */ -/* @@? 20:54 Error SyntaxError: Unexpected token ')'. */ -/* @@? 20:54 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:56 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 20:57 Error SyntaxError: Unexpected token ']'. */ -/* @@? 24:36 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 24:42 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 24:42 Error SyntaxError: Unexpected token ']'. */ -/* @@? 24:43 Error SyntaxError: Unexpected token ']'. */ -/* @@? 24:45 Error SyntaxError: Unexpected token 'extends'. */ -/* @@? 24:53 Error SyntaxError: Unexpected token 'object'. */ -/* @@? 24:53 Error TypeError: Type name 'object' used in the wrong context */ -/* @@? 24:62 Error TypeError: Unresolved reference keyof */ -/* @@? 24:68 Error SyntaxError: Unexpected token. */ -/* @@? 24:68 Error TypeError: Unresolved reference T */ -/* @@? 24:68 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 24:70 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 24:73 Error SyntaxError: Unexpected token ':'. */ -/* @@? 24:75 Error SyntaxError: Class cannot be used as object. */ -/* @@? 24:75 Error SyntaxError: Unexpected token 'never'. */ +/* @@? 16:24 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 16:42 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 16:45 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 18:33 Error Semantic error ESE0371: Cannot find type 'Observable'. */ +/* @@? 18:33 Error Semantic error ESE0176: The super type of 'ObservableImpl' class is not extensible. */ +/* @@? 20:24 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 20:27 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 20:31 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:41 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 20:41 Error Syntax error ESY0227: Unexpected token '&'. */ +/* @@? 20:41 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 20:44 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:44 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:45 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 20:46 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 20:48 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 20:51 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 20:51 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 20:51 Error Syntax error ESY0227: Unexpected token '&'. */ +/* @@? 20:54 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:54 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:56 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 20:57 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 24:36 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 24:42 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 24:42 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 24:43 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 24:45 Error Syntax error ESY0227: Unexpected token 'extends'. */ +/* @@? 24:53 Error Syntax error ESY0227: Unexpected token 'object'. */ +/* @@? 24:53 Error Semantic error ESE0144: Type name 'object' used in the wrong context */ +/* @@? 24:62 Error Semantic error ESE0143: Unresolved reference keyof */ +/* @@? 24:68 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 24:68 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 24:68 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 24:70 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 24:73 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 24:75 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 24:75 Error Syntax error ESY0227: Unexpected token 'never'. */ diff --git a/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_super.ets b/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_super.ets index a12fa1c5d2bd10580c3ef38e9a24c72fadeac8d7..38a788d3cced76afd7f85784a352ddeccba147bb 100644 --- a/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_super.ets +++ b/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_super.ets @@ -17,5 +17,5 @@ declare namespace super { } -/* @@? 16:19 Error SyntaxError: Hard keyword 'super' cannot be used as identifier */ -/* @@? 16:19 Error SyntaxError: Identifier expected, got 'super'. */ +/* @@? 16:19 Error Syntax error ESY0316: Hard keyword 'super' cannot be used as identifier */ +/* @@? 16:19 Error Syntax error ESY0224: Identifier expected, got 'super'. */ diff --git a/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_this.ets b/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_this.ets index 4e6aabb12a709d01fcd38599436dbb7c76033b43..8913309ad7d4138e9bf8c95f49b9714b1867de11 100644 --- a/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_this.ets +++ b/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_this.ets @@ -17,5 +17,5 @@ declare namespace this { } -/* @@? 16:19 Error SyntaxError: Hard keyword 'this' cannot be used as identifier */ -/* @@? 16:19 Error SyntaxError: Identifier expected, got 'this'. */ +/* @@? 16:19 Error Syntax error ESY0316: Hard keyword 'this' cannot be used as identifier */ +/* @@? 16:19 Error Syntax error ESY0224: Identifier expected, got 'this'. */ diff --git a/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentType.ets b/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentType.ets index 3bb62aa9f24f4a8dedebe3190e35875f8e6615dc..ec9b5e11b8d09b8c8730c5d8eb3705b9910b96d2 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentType.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentType.ets @@ -18,4 +18,4 @@ function main(): void { test1(); } -/* @@@ label Error TypeError: Type '() => String' cannot be assigned to type '() => Int' */ +/* @@@ label Error Semantic error ESE0318: Type '() => String' cannot be assigned to type '() => Int' */ diff --git a/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentTypeInfunction.ets b/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentTypeInfunction.ets index 30a62660c775183180d4244cbeb030778b1cd7f3..53252b0911b8e8f5b4421cc0497c61ecae207e70 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentTypeInfunction.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentTypeInfunction.ets @@ -22,4 +22,4 @@ function main(): void { test1() } -/* @@@ label Error TypeError: Type 'String' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label Error Semantic error ESE0091: Type 'String' is not compatible with the enclosing method's return type 'Int' */ diff --git a/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets b/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets index 27787e59c7fe455a9463681cadeb1f67e3f47290..db261e6675c3abb4745c0b9e92fe5d35ce54b867 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets @@ -19,4 +19,4 @@ function foo(): void { } } -/* @@@ label Error TypeError: Type '(b: Int) => void' cannot be assigned to type '(b: String) => void' */ +/* @@@ label Error Semantic error ESE0318: Type '(b: Int) => void' cannot be assigned to type '(b: String) => void' */ diff --git a/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets b/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets index cf2c48260b3a3d374bc8baa253bbda9c85611f40..ff2b0f3e5e4254e023c728f9f6dfcb805104ab08 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets @@ -21,4 +21,4 @@ class A { } } -/* @@@ label Error TypeError: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ diff --git a/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets b/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets index 259a8abf16d35b4d2d56f106a8c277beee8cf59c..465a55d4c3c8ed3c67f30218f8ead87c79a45d0b 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets @@ -35,5 +35,5 @@ function main(): void { /* @@ label */a.foo(1)(1, /* @@ label1 */"foo"); } -/* @@@ label1 Error TypeError: Type '"foo"' is not compatible with type 'Int' at index 2 */ -/* @@@ label Error TypeError: No matching call signature for (Int, "foo") */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for (Int, "foo") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"foo"' is not compatible with type 'Int' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_override.ets b/ets2panda/test/ast/compiler/ets/lambda_override.ets index f48a63238c12fc801387720540122a7685dc9fe8..905733d84c5c642996bd74fa1cc45ceb7920bbb3 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_override.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_override.ets @@ -20,5 +20,5 @@ class bbb extends aaa { /* @@ label1 */x: ()=>string } -/* @@@ label Error TypeError: Property 'x' might not have been initialized. */ -/* @@@ label1 Error TypeError: Property 'x' might not have been initialized. */ +/* @@@ label Error Semantic error ESE0280: Property 'x' might not have been initialized. */ +/* @@@ label1 Error Semantic error ESE0280: Property 'x' might not have been initialized. */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_infer_to_rest_type.ets b/ets2panda/test/ast/compiler/ets/lambda_type_infer_to_rest_type.ets index 1a449142937d531082b2386380346a1e3776f39b..d9f776101ce33b88a326e2169ea5e8f3eac42324 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_infer_to_rest_type.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_infer_to_rest_type.ets @@ -17,4 +17,4 @@ declare function testRest(a: (t: T, t1: T, ...ts: T[]) => void): T testRest((t1:number, t2:boolean, t3) => {}) -/* @@? 18:10 Error TypeError: Type '(t1: Double, t2: Boolean, t3: never) => void' is not compatible with type '(t: never, t1: never, ...ts: Array) => void' at index 1 */ +/* @@? 16:18 Error Semantic error ESE0000: Function implementation is missing or not immediately following the declaration. */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets b/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets index 4c0ce6a576b1d685825b47b74ca37bb049b0f71c..49f8f0536ce97147398cc0640339aa694ff11fb0 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets @@ -19,6 +19,6 @@ let fob:(...args:number[])=>number = (...args:number[]) =>{} let foc:(c:string, ...args:number[])=>string = (c:number, ...args:string[]):string=>{} -/* @@? 16:46 Error TypeError: Type '(c: Double, ...args: Array) => void' cannot be assigned to type '(c: String, ...args: Array) => void' */ -/* @@? 18:38 Error TypeError: Type '(...args: Array) => void' cannot be assigned to type '(...args: Array) => Double' */ -/* @@? 20:48 Error TypeError: Type '(c: Double, ...args: Array) => String' cannot be assigned to type '(c: String, ...args: Array) => String' */ +/* @@? 16:46 Error Semantic error ESE0318: Type '(c: Double, ...args: Array) => void' cannot be assigned to type '(c: String, ...args: Array) => void' */ +/* @@? 18:38 Error Semantic error ESE0318: Type '(...args: Array) => void' cannot be assigned to type '(...args: Array) => Double' */ +/* @@? 20:48 Error Semantic error ESE0318: Type '(c: Double, ...args: Array) => String' cannot be assigned to type '(c: String, ...args: Array) => String' */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/MakeNormalFunctypeAsMethodCall.ets b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/MakeNormalFunctypeAsMethodCall.ets index 618b2d2289ab195e4a7762bba219835c34270058..f9a7f5091b284b8790084947fa202b343e4a4b48 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/MakeNormalFunctypeAsMethodCall.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/MakeNormalFunctypeAsMethodCall.ets @@ -29,5 +29,5 @@ let f2: F2 = (this: A): boolean => { return this.value } a./* @@ label1 */f1(); a./* @@ label2 */f2(); -/* @@@ label1 Error TypeError: Property 'f1' does not exist on type 'A' */ -/* @@@ label2 Error TypeError: Property 'f2' does not exist on type 'A' */ +/* @@@ label1 Error Semantic error ESE0087: Property 'f1' does not exist on type 'A' */ +/* @@@ label2 Error Semantic error ESE0087: Property 'f2' does not exist on type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated3.ets b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated3.ets index e97bafda8fd1af93cf73acba84c06084eb10a021..2b2f410208a950346bebf2b40fd2eaccf106a4d5 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated3.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated3.ets @@ -21,4 +21,4 @@ class A { function foo(this: A, f: (this: A) => void) /* @@ label1 */{} -/* @@@ label1 Error TypeError: The extension function 'foo' has the same name with public method in class A */ +/* @@@ label1 Error Semantic error ESE0081: The extension function 'foo' has the same name with public method in class A */ diff --git a/ets2panda/test/ast/compiler/ets/literal_init_parameterless_constructor.ets b/ets2panda/test/ast/compiler/ets/literal_init_parameterless_constructor.ets index 17cdbda3903a17fed1740c448d0679a6b4e0ae65..2b44e2b78b41393d25c19c3d553541eb050dea3d 100644 --- a/ets2panda/test/ast/compiler/ets/literal_init_parameterless_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/literal_init_parameterless_constructor.ets @@ -27,4 +27,4 @@ function main(): void { } - /* @@? 26:14 Error TypeError: Type C has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ \ No newline at end of file + /* @@? 26:14 Error Semantic error ESE0291: Type C has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ diff --git a/ets2panda/test/ast/compiler/ets/localTypeAlias.ets b/ets2panda/test/ast/compiler/ets/localTypeAlias.ets index 406e90965e049f7f67c9fbfd6975ca9a4198ea38..fb1a51d79028d7a564655359e804583e3e4a6541 100644 --- a/ets2panda/test/ast/compiler/ets/localTypeAlias.ets +++ b/ets2panda/test/ast/compiler/ets/localTypeAlias.ets @@ -76,30 +76,30 @@ function foo(){ } - /* @@? 17:16 Error TypeError: Cannot find type 'a'. */ - /* @@? 19:5 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 21:13 Error TypeError: Cannot find type 'a'. */ - /* @@? 30:13 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 31:23 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 34:22 Error TypeError: Cannot find type 'asd'. */ - /* @@? 37:13 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 41:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 42:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 43:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 44:19 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 48:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 49:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 50:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 51:19 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 56:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 57:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 59:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 60:19 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 64:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 65:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 67:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 68:19 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 70:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 71:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 73:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 74:19 Error TypeError: Cannot find type 'dsa'. */ + /* @@? 17:16 Error Semantic error ESE0371: Cannot find type 'a'. */ +/* @@? 19:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 21:13 Error Semantic error ESE0371: Cannot find type 'a'. */ +/* @@? 30:13 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 31:23 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 34:22 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 37:13 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 41:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 42:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 43:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 44:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 48:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 49:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 50:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 51:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 56:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 57:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 59:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 60:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 64:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 65:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 67:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 68:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 70:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 71:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 73:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 74:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ diff --git a/ets2panda/test/ast/compiler/ets/local_enum02.ets b/ets2panda/test/ast/compiler/ets/local_enum02.ets index 43b006318a74b9acfae22a330d6f9e6b6214b542..6c3879e654186fca6d193ba9d85179c9cf8c2ce2 100644 --- a/ets2panda/test/ast/compiler/ets/local_enum02.ets +++ b/ets2panda/test/ast/compiler/ets/local_enum02.ets @@ -25,5 +25,5 @@ function main() { arktest.assertEQ(Foo.Bar as int, 0) } -/* @@? 21:7 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 22:24 Warning Warning: Enum cast is deprecated. Cast support from 'Foo' to 'Int' will be removed. */ +/* @@? 21:7 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 22:24 Error Warning W0030: Enum cast is deprecated. Cast support from 'Foo' to 'Int' will be removed. */ diff --git a/ets2panda/test/ast/compiler/ets/local_enum03.ets b/ets2panda/test/ast/compiler/ets/local_enum03.ets index 0b08ef92588064ddf597463ac384112d9380b789..f80368d1b13b0ff6af050c485c1668c3ce19d353 100644 --- a/ets2panda/test/ast/compiler/ets/local_enum03.ets +++ b/ets2panda/test/ast/compiler/ets/local_enum03.ets @@ -22,5 +22,5 @@ function main() { arktest.assertEQ(Foo.Baz, 1) } - /* @@? 19:5 Error SyntaxError: Illegal start of ENUM expression. */ - /* @@? 20:22 Error TypeError: Unresolved reference Foo */ + /* @@? 19:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 20:22 Error Semantic error ESE0143: Unresolved reference Foo */ diff --git a/ets2panda/test/compiler/ets/manyLocalsParamRegUsage.ets b/ets2panda/test/ast/compiler/ets/manyLocalsParamRegUsage.ets similarity index 100% rename from ets2panda/test/compiler/ets/manyLocalsParamRegUsage.ets rename to ets2panda/test/ast/compiler/ets/manyLocalsParamRegUsage.ets diff --git a/ets2panda/test/ast/compiler/ets/math_const_as_identifier.ets b/ets2panda/test/ast/compiler/ets/math_const_as_identifier.ets index ef222fcc9f772058479b15c4bb03e777c2d78d67..b8146583b42fec003e2af794b4e1e996d931eb0f 100644 --- a/ets2panda/test/ast/compiler/ets/math_const_as_identifier.ets +++ b/ets2panda/test/ast/compiler/ets/math_const_as_identifier.ets @@ -23,9 +23,9 @@ function foo1() { let undefined }; -/* @@? 21:9 Error TypeError: Variable 'NaN' has already been declared. */ -/* @@? 22:9 Error TypeError: Variable 'Infinity' has already been declared. */ -/* @@? 22:20 Error TypeError: Unresolved reference test */ -/* @@? 23:9 Error SyntaxError: Hard keyword 'undefined' cannot be used as identifier */ -/* @@? 23:9 Error SyntaxError: Identifier expected, got 'undefined'. */ -/* @@? 24:1 Error SyntaxError: Variable must be initialized or it's type must be declared. */ +/* @@? 21:9 Error Semantic error ESE0351: Variable 'NaN' has already been declared. */ +/* @@? 22:9 Error Semantic error ESE0351: Variable 'Infinity' has already been declared. */ +/* @@? 22:20 Error Semantic error ESE0143: Unresolved reference test */ +/* @@? 23:9 Error Syntax error ESY0316: Hard keyword 'undefined' cannot be used as identifier */ +/* @@? 23:9 Error Syntax error ESY0224: Identifier expected, got 'undefined'. */ +/* @@? 24:1 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ diff --git a/ets2panda/test/ast/compiler/ets/method-assignment.ets b/ets2panda/test/ast/compiler/ets/method-assignment.ets index 8bf46b3b8dda5d946381769cc48228a96d5c63f8..f64211aef6d7b25c34d38fd63bafb629520998d9 100644 --- a/ets2panda/test/ast/compiler/ets/method-assignment.ets +++ b/ets2panda/test/ast/compiler/ets/method-assignment.ets @@ -47,10 +47,10 @@ c.foo1 = bar; C.foo2 = bar; c.interfaceFoo = bar; -/* @@? 31:9 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 36:9 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 44:1 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 45:1 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 46:1 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 47:1 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 48:1 Error TypeError: Class methods cannot be overwritten. */ +/* @@? 31:9 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 36:9 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 44:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 45:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 46:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 47:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 48:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_1.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_1.ets index 999bdad93dea8250fcc665788c654eaced220eed..83b768c66031e85f2844b5c9885150c9d14c6be7 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_1.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_1.ets @@ -39,4 +39,4 @@ function main(): int { } -/* @@@ label Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: I): String` and `foo(x: J): String` */ +/* @@@ label Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: I): String` and `foo(x: J): String` */ diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_2.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_2.ets index 6fa2b2d5ba67a8a630f4cd05e22766cd0022093c..dda372381f3f0a8b2d33a09eb62b5999b07e721b 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_2.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_2.ets @@ -39,4 +39,4 @@ function main(): int { } -/* @@@ label Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: B): String` and `foo(x: I): String` */ +/* @@@ label Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: B): String` and `foo(x: I): String` */ diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_3.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_3.ets index 1914bd1ec30927d99a87379f4aa4fecbe010778c..75a567f38f1b7076ed008e79d93887a62edbbb1e 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_3.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_3.ets @@ -34,4 +34,4 @@ function main(): int { } -/* @@@ label Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: I): String` and `foo(x: J): String` */ +/* @@@ label Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: I): String` and `foo(x: J): String` */ diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_4.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_4.ets index edc7a14ec11b25eeeca9788fe05af7eb5db14337..79ac8bc1cdae2b8208a7fea1de5c12f510700bba 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_4.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_4.ets @@ -36,5 +36,5 @@ function main(): int { } -/* @@? 34:22 Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: A): String` and `foo(x: I): String` */ -/* @@? 34:22 Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: A): String` and `foo(x: J): String` */ +/* @@? 34:22 Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: A): String` and `foo(x: I): String` */ +/* @@? 34:22 Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: A): String` and `foo(x: J): String` */ diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_6.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_6.ets index 670b535d0dfbde90170c8bdfd09eb0d3b7271fb5..16c17a7fe5d880b20f715fbd50fa2b8c4751eb33 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_6.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_6.ets @@ -42,6 +42,6 @@ function main(): int { let asd5: double = /* @@ label */foo(new A(), 2.1); return 0; } -/* @@? 38:21 Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(b: Int, a: I): Int` and `foo(d: Double, a: J): Double` */ -/* @@? 41:21 Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(a: I, b: Int): Int` and `foo(a: J, d: Double): Double` */ -/* @@@ label Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(a: J, d: Double): Double` and `foo(a: I, d: Double): Double` */ +/* @@? 38:21 Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(b: Int, a: I): Int` and `foo(d: Double, a: J): Double` */ +/* @@? 41:21 Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(a: I, b: Int): Int` and `foo(a: J, d: Double): Double` */ +/* @@@ label Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(a: J, d: Double): Double` and `foo(a: I, d: Double): Double` */ diff --git a/ets2panda/test/ast/compiler/ets/method_call_confilict_in_union_types.ets b/ets2panda/test/ast/compiler/ets/method_call_confilict_in_union_types.ets index a0a65edf47dc84a2349095ad711a68459f59cfa2..ad254eb8ccb006a16c92ddddeed5f3a747caff45 100644 --- a/ets2panda/test/ast/compiler/ets/method_call_confilict_in_union_types.ets +++ b/ets2panda/test/ast/compiler/ets/method_call_confilict_in_union_types.ets @@ -26,17 +26,8 @@ function foo(x: A | B) { x.foo("123") } -/* @@? 17:8 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:14 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:18 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:27 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:28 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:9 Error TypeError: Unresolved reference v */ -/* @@? 18:10 Error SyntaxError: Unexpected token ':'. */ -/* @@? 18:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 18:15 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:16 Error SyntaxError: Unexpected token ':'. */ -/* @@? 18:18 Error SyntaxError: Unexpected token 'void'. */ -/* @@? 18:23 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:9 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 17:19 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 17:28 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:16 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/method_error_identifier.ets b/ets2panda/test/ast/compiler/ets/method_error_identifier.ets index 4ccc87265748fcb23d0d70e5fcd589d70efe5b7c..3129ec9bdbb434d5a7e3a8ff9c63e16b21a33100 100644 --- a/ets2panda/test/ast/compiler/ets/method_error_identifier.ets +++ b/ets2panda/test/ast/compiler/ets/method_error_identifier.ets @@ -20,11 +20,10 @@ class BindFuncExpr { callback1 = callback1 || function () { } } -/* @@? 16:1 Error SyntaxError: Unexpected token 'void'. */ -/* @@? 16:6 Error SyntaxError: Unexpected token 'function'. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:5 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 19:21 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 20:5 Error TypeError: Variable 'callback1' has already been declared. */ -/* @@? 20:17 Error TypeError: Unresolved reference callback1 */ -/* @@? 20:30 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:9 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:19 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 19:21 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:30 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 19:31 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:33 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets b/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets index 8668545833a47c7add9ef2b98e3799d24db5ed21..96f328e430b09609604664571f190967113bfa95 100644 --- a/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets +++ b/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets @@ -24,4 +24,4 @@ function main() : void { /* @@ label */foo(a, a); } -/* @@@ label Error TypeError: Reference to foo is ambiguous */ +/* @@@ label Error Semantic error ESE0126: Reference to foo is ambiguous */ diff --git a/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets b/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets index 4ff78ff8d24bd56ff06a61e9987cbecc43b8636a..67429035977ff6fc88ee12706cddd786d19e098f 100644 --- a/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets +++ b/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets @@ -30,4 +30,4 @@ function main() : void { /* @@ label */obj.Foo(a, a); } -/* @@@ label Error TypeError: Reference to Foo is ambiguous */ +/* @@@ label Error Semantic error ESE0126: Reference to Foo is ambiguous */ diff --git a/ets2panda/test/ast/compiler/ets/most_specific_method_with_empty_rest_param.ets b/ets2panda/test/ast/compiler/ets/most_specific_method_with_empty_rest_param.ets index 7ec8ba7d899bf8deb6ce500629a6e5559edda128..bb0a33435ed68774c5094c46bf5e6a85fb1a8ab5 100644 --- a/ets2panda/test/ast/compiler/ets/most_specific_method_with_empty_rest_param.ets +++ b/ets2panda/test/ast/compiler/ets/most_specific_method_with_empty_rest_param.ets @@ -27,4 +27,4 @@ function main() { c.met() } -/* @@? 20:5 Error TypeError: Function met with this assembly signature already declared. */ +/* @@? 20:5 Error Semantic error ESE0131: Function met with this assembly signature already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets index fae775ab98240d0dfea0f359ec31bb21a4b6d5aa..b5645879c70e8441f23efeb57d8d2067c3a45d30 100644 --- a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets +++ b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets @@ -25,5 +25,4 @@ class B extends A{ } -/* @@? 23:17 Error TypeError: Cannot inherit from class A, because field callback is inherited with a different declaration type */ - +/* @@? 23:17 Error Semantic error ESE0216: Cannot inherit from class A, because field callback is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg_2.ets b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg_2.ets index f8eb76600c2c0faa4a277e911b9a1b34e5cf726d..5287468edc90c3b927ec59f3e256235e47608b24 100644 --- a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg_2.ets @@ -24,5 +24,4 @@ class B extends A{ } -/* @@? 20:17 Error TypeError: Cannot inherit from class A, because method foo is inherited with a different declaration type */ - +/* @@? 20:17 Error Semantic error ESE0216: Cannot inherit from class A, because method foo is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets b/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets index 7650215aa64b566b915174ad7903c0cc950b19fc..2e80deb56003946f8f8cb130667534888470b015 100644 --- a/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets +++ b/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets @@ -21,5 +21,5 @@ function main(): void { let ab : A = /* @@ label1 */abn; // should not work: nullable B (the type of abn) is not the subtype of non nullable B } -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'A' */ -/* @@@ label1 Error TypeError: Type 'A' cannot be assigned to type 'A' */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'A' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets b/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets index 9d8d2764cd2eaa989cb0787a5f5919579618cdcf..c3f938b47e6f23de4d78bbd83c31b8f2840fe160 100644 --- a/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets +++ b/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets @@ -26,10 +26,10 @@ idx++; 222222??222.27?22dXX2222 -/* @@? 16:1 Error SyntaxError: Unexpected token '*'. */ -/* @@? 16:2 Error SyntaxError: Unexpected token '22'. */ -/* @@? 16:4 Error SyntaxError: Unexpected token 'Array'. */ -/* @@? 16:4 Error TypeError: No matching call signature with trailing lambda */ -/* @@? 20:74 Error SyntaxError: Expected '}', got 'identification literal'. */ -/* @@? 27:22 Error SyntaxError: Unexpected token. */ -/* @@? 36:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 16:1 Error Syntax error ESY0227: Unexpected token '*'. */ +/* @@? 16:2 Error Syntax error ESY0227: Unexpected token '22'. */ +/* @@? 16:4 Error Syntax error ESY0227: Unexpected token 'Array'. */ +/* @@? 16:4 Error Semantic error ESE0140: No matching call signature with trailing lambda */ +/* @@? 20:74 Error Syntax error ESY0230: Expected '}', got 'identification literal'. */ +/* @@? 27:22 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 36:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets b/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets index 5b5f4986f71c2771f73c26c79bdf12b7f6672ed6..1c5c5ce30a46ffbbdd23f1d954d1b0315fc6533b 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets @@ -20,6 +20,6 @@ namespace NS { NS.baz(); -/* @@? 17:12 Error SyntaxError: Export declarations are not permitted in a namespace. */ -/* @@? 17:14 Error SyntaxError: Cannot find name 'baz' to export. */ -/* @@? 20:4 Error TypeError: Property 'baz' does not exist on type 'NS' */ +/* @@? 17:12 Error Syntax error ESY0111: Export declarations are not permitted in a namespace. */ +/* @@? 17:14 Error Syntax error ESY0279: Cannot find name 'baz' to export. */ +/* @@? 20:4 Error Semantic error ESE0087: Property 'baz' does not exist on type 'NS' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets b/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets index 3d09af97b64693d9db9c21c8edb2dd25dc263ed3..52777a0c1244715f8b454f8a5ec1f44660d2b08f 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets @@ -20,4 +20,4 @@ namespace X { } -/* @@? 19:12 Error SyntaxError: Export declarations are not permitted in a namespace. */ \ No newline at end of file +/* @@? 19:12 Error Syntax error ESY0111: Export declarations are not permitted in a namespace. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets b/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets index d019c77f6ee3a4e7892b8bf6ecf7d51d3ab7492f..b0cec3bc463644a4c9634d7feb24f6b4f5100c52 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets @@ -41,9 +41,9 @@ namespace M { } } -/* @@? 18:18 Error SyntaxError: Unexpected token 'const'. */ -/* @@? 23:14 Error SyntaxError: Unexpected token 'const'. */ -/* @@? 27:5 Error TypeError: Unresolved reference readonly */ -/* @@? 27:14 Error SyntaxError: Unexpected token 'R'. */ -/* @@? 27:14 Error TypeError: Unresolved reference R */ -/* @@? 27:16 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@? 18:18 Error Syntax error ESY0227: Unexpected token 'const'. */ +/* @@? 23:14 Error Syntax error ESY0227: Unexpected token 'const'. */ +/* @@? 27:5 Error Semantic error ESE0143: Unresolved reference readonly */ +/* @@? 27:14 Error Syntax error ESY0227: Unexpected token 'R'. */ +/* @@? 27:14 Error Semantic error ESE0143: Unresolved reference R */ +/* @@? 27:16 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_static_block_init_neg.ets b/ets2panda/test/ast/compiler/ets/namespace_static_block_init_neg.ets index 282ee1ede5c25a91d9259c0b3168feff8d80db5e..f6552bd484fcd7234dcdf62585e0316d4b0e9dcd 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_static_block_init_neg.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_static_block_init_neg.ets @@ -20,4 +20,4 @@ namespace NS { } } -/* @@@ label Error TypeError: Property 'ss' is used before being assigned. */ +/* @@? 18:3 Error Syntax error ESY0227: Unexpected token 'static'. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation.ets index b94f23b4016ab073b35e697e29f7b2e348fcfb81..f024407bca0882e88c4ea7b8f68c2ba805f75c65 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation.ets @@ -56,12 +56,12 @@ let a = new Array() // CTE MySpace.C.a // CTE -/* @@? 55:27 Error TypeError: 'C' is not exported in 'MySpace' */ -/* @@? 44:13 Error TypeError: 'innerClass' is not exported in 'MySpace' */ -/* @@? 49:9 Error TypeError: 'privateVariable' is not exported in 'MySpace' */ -/* @@? 51:9 Error TypeError: 'foo' is not exported in 'MySpace' */ -/* @@? 53:13 Error TypeError: 'C' is not exported in 'MySpace' */ -/* @@? 57:9 Error TypeError: 'C' is not exported in 'MySpace' */ -/* @@? 42:28 Error TypeError: 'myInterface' is not exported in 'MySpace' */ -/* @@? 46:10 Error TypeError: 'Anno' is not exported in 'MySpace' */ -/* @@? 46:23 Error TypeError: 'Color' is not exported in 'MySpace' */ \ No newline at end of file +/* @@? 42:28 Error Semantic error ESE0206: 'myInterface' is not exported in 'MySpace' */ +/* @@? 44:13 Error Semantic error ESE0206: 'innerClass' is not exported in 'MySpace' */ +/* @@? 46:10 Error Semantic error ESE0206: 'Anno' is not exported in 'MySpace' */ +/* @@? 46:23 Error Semantic error ESE0206: 'Color' is not exported in 'MySpace' */ +/* @@? 49:9 Error Semantic error ESE0206: 'privateVariable' is not exported in 'MySpace' */ +/* @@? 51:9 Error Semantic error ESE0206: 'foo' is not exported in 'MySpace' */ +/* @@? 53:13 Error Semantic error ESE0206: 'C' is not exported in 'MySpace' */ +/* @@? 55:27 Error Semantic error ESE0206: 'C' is not exported in 'MySpace' */ +/* @@? 57:9 Error Semantic error ESE0206: 'C' is not exported in 'MySpace' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_circular_dependencies.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_circular_dependencies.ets index 854d49684b4ea799c91bef3ab5aa18650d0e775a..f96f8328c18fd17fdb1c1e54dc942afcee5e3009 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_circular_dependencies.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_circular_dependencies.ets @@ -22,4 +22,4 @@ namespace NS2 { export let constant = NS1.value; // Error: Circular dependency } -/* @@? 18:16 Error TypeError: Circular dependency detected for identifier: value */ \ No newline at end of file +/* @@? 18:16 Error Semantic error ESE0308: Circular dependency detected for identifier: value */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_conflicts.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_conflicts.ets index 04395a85772b0621c5da314b119a718d92bfbf44..0cd9e64b1f9303cdc568ca90fd3bfa2afd97539d 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_conflicts.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_conflicts.ets @@ -21,5 +21,5 @@ namespace ConflictedSpace { } } -/* @@? 19:22 Error TypeError: Variable 'InnerSpace' has already been declared. */ -/* @@? 19:22 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 19:22 Error Semantic error ESE0351: Variable 'InnerSpace' has already been declared. */ +/* @@? 19:22 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_exports.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_exports.ets index e590afd056c111189f0a79d1edec2e7f1097e9a7..39d80b2798532f02d2980d2a9ef37ea5b30eb15f 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_exports.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_exports.ets @@ -20,4 +20,4 @@ namespace DuplicateSpace { } -/* @@? 19:16 Error TypeError: Variable 'shared' has already been declared. */ \ No newline at end of file +/* @@? 19:16 Error Semantic error ESE0351: Variable 'shared' has already been declared. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_import_conflicts.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_import_conflicts.ets index 0b828cc1314b15196cbd5d573b50bf5d370f12f3..eea81808e84e9a9f68b3f5999f06483b8f5ee963 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_import_conflicts.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_import_conflicts.ets @@ -23,7 +23,7 @@ if (Space1.variable == Space1.constant) { // CTE Space1.foo(); // CTE Space1.foo(1234); //ok -/* @@? 19:31 Error TypeError: Property 'constant' does not exist on type 'Space2' */ -/* @@? 20:23 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 23:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:1 Error TypeError: No matching call signature */ +/* @@? 19:31 Error Semantic error ESE0087: Property 'constant' does not exist on type 'Space2' */ +/* @@? 20:23 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 23:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:1 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_merge_conflicts.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_merge_conflicts.ets index 6ad2245981f9ec156f82f68e483140b82789f604..5c6b69d2abd7e23198b9117c9619c92372cb7974 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_merge_conflicts.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_merge_conflicts.ets @@ -18,4 +18,4 @@ export namespace MergeSpace { export function foo() { return 42; } // Error: Conflicting 'foo()' definitions } -/* @@? src01.ets:19:11 Error TypeError: Function foo is already declared. */ +/* @@? src01.ets:19:11 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_nested_scopes.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_nested_scopes.ets index d0b7b04d91b522573f278fad8776243238c355a7..35e11900dbc3778f28b83833016ad01a67396408 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_nested_scopes.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_nested_scopes.ets @@ -50,14 +50,14 @@ class C{} OuterSpace.InnerSpace.privateVariable = 456; // CTE -/* @@? 45:16 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 45:27 Error TypeError: 'innerClass' is not exported in 'InnerSpace' */ -/* @@? 40:27 Error TypeError: 'privateVariable' is not exported in 'InnerSpace' */ -/* @@? 50:12 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 50:23 Error TypeError: 'privateVariable' is not exported in 'InnerSpace' */ -/* @@? 43:31 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 43:42 Error TypeError: 'myInterface' is not exported in 'InnerSpace' */ -/* @@? 47:13 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 47:24 Error TypeError: 'Anno' is not exported in 'InnerSpace' */ -/* @@? 47:40 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 47:51 Error TypeError: 'Color' is not exported in 'InnerSpace' */ \ No newline at end of file +/* @@? 40:27 Error Semantic error ESE0206: 'privateVariable' is not exported in 'InnerSpace' */ +/* @@? 43:31 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 43:42 Error Semantic error ESE0206: 'myInterface' is not exported in 'InnerSpace' */ +/* @@? 45:16 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 45:27 Error Semantic error ESE0206: 'innerClass' is not exported in 'InnerSpace' */ +/* @@? 47:13 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 47:24 Error Semantic error ESE0206: 'Anno' is not exported in 'InnerSpace' */ +/* @@? 47:40 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 47:51 Error Semantic error ESE0206: 'Color' is not exported in 'InnerSpace' */ +/* @@? 50:12 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 50:23 Error Semantic error ESE0206: 'privateVariable' is not exported in 'InnerSpace' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_non_exported_merge.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_non_exported_merge.ets index 3f5830f9422277eeab0e48e7c871d3f243cdac9f..b459358e7b62bb9cb403624615e4b6e9d4791d26 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_non_exported_merge.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_non_exported_merge.ets @@ -26,4 +26,4 @@ namespace A.B { A.B.bar(); // Error: 'bar()' cannot be accessed -/* @@? 27:5 Error TypeError: 'bar' is not exported in 'B' */ \ No newline at end of file +/* @@? 27:5 Error Semantic error ESE0206: 'bar' is not exported in 'B' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_scope_resolution.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_scope_resolution.ets index 59f35f113c05f5f3d10c7babe1af1f979acc1575..1fb2e2a8d9645cbf807590f79fd868ce5730b81d 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_scope_resolution.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_scope_resolution.ets @@ -22,4 +22,4 @@ namespace A.B { A.foo(); // Error: 'A' does not contain a member named 'foo' -/* @@? 22:3 Error TypeError: Property 'foo' does not exist on type 'A' */ +/* @@? 22:3 Error Semantic error ESE0087: Property 'foo' does not exist on type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_undefined_scopes.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_undefined_scopes.ets index a30b66e6de35580a1adf3eb3b5acdfea1af73904..f914c8fe846b7421fbe455f8c29f2839726a2840 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_undefined_scopes.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_undefined_scopes.ets @@ -21,4 +21,4 @@ namespace ParentSpace { let result = ParentSpace.ChildSpace.value; // Error: 'ChildSpace' is not defined -/* @@? 22:26 Error TypeError: Property 'ChildSpace' does not exist on type 'ParentSpace' */ +/* @@? 22:26 Error Semantic error ESE0087: Property 'ChildSpace' does not exist on type 'ParentSpace' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type01.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type01.ets index bdda95648857545e37fcdc5b95d65630f1d09362..20da11c08de6438678a0451a74e5438ca335243d 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type01.ets @@ -18,4 +18,4 @@ namespace MySpace { let a = new MySpace() -/* @@? 19:13 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 19:13 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type02.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type02.ets index 84ddce2b349dd074b6a3fc4dba3aa550583efae5..cc422bd398864c817e6c1222cd21f6e0030ae24f 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type02.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type02.ets @@ -20,8 +20,8 @@ class A extends MySpace{} class B implements MySpace{} type C = MySpace -/* @@? 19:17 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 19:17 Error TypeError: The super type of 'A' class is not extensible. */ -/* @@? 20:20 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 20:20 Error TypeError: Interface expected here. */ -/* @@? 21:10 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file +/* @@? 19:17 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 19:17 Error Semantic error ESE0176: The super type of 'A' class is not extensible. */ +/* @@? 20:20 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 20:20 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 21:10 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type03.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type03.ets index 2839a3f2075e95f2ee4d8d8f0e681089e2b6cfe6..0c569e102cc7bda67d33dff79a75d1d82d2f6099 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type03.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type03.ets @@ -20,5 +20,5 @@ function foo(a:T){} let array:Array = new Array() -/* @@? 21:17 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 21:38 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 21:17 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 21:38 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type04.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type04.ets index ca16bb7470ef8d1ed32214bc9c0ea0df79d243b0..cdf44561127e3936dca9ee780ef2893733050cd8 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type04.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type04.ets @@ -20,5 +20,5 @@ function foo(a:T){} foo(new MySpace()) -/* @@? 21:5 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 21:18 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 21:5 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 21:18 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type05.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type05.ets index 1be420366490adef3533e4fe2218d52cbfc0a321..b7a04f4974f05b0e161d5c6d9414930a8c632b2c 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type05.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type05.ets @@ -22,4 +22,4 @@ class A{ new A() -/* @@? 23:7 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 23:7 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type06.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type06.ets index 291ec97cf1f2abaa4a2bf8e000b2d9c9279265ab..3c0a151f32cd75cea63450c62c0c9e32df056f69 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type06.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type06.ets @@ -21,6 +21,6 @@ function foo2(): MySpace {} foo1(new MySpace()) -/* @@? 20:18 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 19:17 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 22:10 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 19:17 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 20:18 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 22:10 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type07.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type07.ets index a3d4f85994167ffeee78e237c073e039ad7e4ab8..2da2f18e89fdbf8db33b2474dc68f69e0409aea7 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type07.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type07.ets @@ -23,7 +23,7 @@ class A{ let tuple:[int, string, MySpace] = [1, "1", new MySpace()] let union:int|string|MySpace = 1 -/* @@? 23:25 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 24:22 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 23:49 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 20:7 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file +/* @@? 20:7 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 23:25 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 23:49 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 24:22 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type08.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type08.ets index c9b3a95bee3a5560a3c4afe2a402d57384a2bc1f..57363b79de6bc1efea2dc4901827cb822de45475 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type08.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type08.ets @@ -19,5 +19,5 @@ namespace MySpace { let foo1:(a:MySpace)=>int let foo2:()=>MySpace -/* @@? 19:13 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 20:14 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file +/* @@? 19:13 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 20:14 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type09.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type09.ets index 34b0e476d3ec5b3b5765b22e98acc2e3e4ec0fc0..84f5437ba2eb6b602a153fd985ee8eba56eb74d7 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type09.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type09.ets @@ -18,4 +18,4 @@ namespace MySpace { let a = 1 as MySpace -/* @@? 19:14 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 19:14 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type10.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type10.ets index 89f6b4e6767cf39c411f58affdcda7919e680fb0..2e8466c88f7ee6929fc4182ea8812ea662b60a3a 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type10.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type10.ets @@ -18,5 +18,4 @@ namespace MySpace { let a = 1 instanceof MySpace -/* @@? 19:22 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 19:22 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file +/* @@? 19:22 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type11.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type11.ets index eb120df6c800b66d7b563804f51d40b13b6b4ec7..ab6f34a949519a98eb5217231e30513f6e06845f 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type11.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type11.ets @@ -18,4 +18,4 @@ namespace MySpace { let a = /* @@ label */MySpace -/* @@@ label Error SyntaxError: Namespace cannot be used as object. */ +/* @@@ label Error Syntax error ESY0318: Namespace cannot be used as object. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type12.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type12.ets index 897da0a75637194b67203a7f3bf950a9d431ae9a..16df419ec13a06d7e53075c327aa0982bc389f5e 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type12.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type12.ets @@ -19,5 +19,5 @@ namespace MySpace{ function foo(a: MySpace) {} -/* @@? 20:17 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 17:12 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 17:12 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 20:17 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged01.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged01.ets index e2854245d4c1048f17d883abdac2202759ebe721..781512b902d34ca66a05dfec4451d35ad30baf1d 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged01.ets @@ -21,6 +21,5 @@ namespace B { namespace C {} // CTE } -/* @@? 17:1 Error SyntaxError: Unable to merge namespaces 'A', because their modifiers are different. */ -/* @@? 21:3 Error SyntaxError: Unable to merge namespaces 'C', because their modifiers are different. */ - +/* @@? 17:1 Error Syntax error ESY0006: Unable to merge namespaces 'A', because their modifiers are different. */ +/* @@? 21:3 Error Syntax error ESY0006: Unable to merge namespaces 'C', because their modifiers are different. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged02.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged02.ets index dbb6238cad255e33b83947c6ace53d41e91b95c7..ff82472291239c79e3d871a580f50c66449b486e 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged02.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged02.ets @@ -29,5 +29,4 @@ namespace P { namespace R {} // OK } -/* @@? 20:10 Error SyntaxError: Unable to merge namespaces 'Y', because their modifiers are different. */ - +/* @@? 20:10 Error Syntax error ESY0006: Unable to merge namespaces 'Y', because their modifiers are different. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_default_import.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_default_import.ets index 6277f526218b7c04f4ce941777e5e551acd39620..8ee3398e2034d99421734a6ca44a70488835cf0c 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_default_import.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_default_import.ets @@ -17,4 +17,4 @@ import A from "./src03" A.foo() -/* @@? 18:3 Error TypeError: 'foo' is not exported in 'A' */ \ No newline at end of file +/* @@? 18:3 Error Semantic error ESE0206: 'foo' is not exported in 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_merge_conflicts.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_merge_conflicts.ets index a46528de4df5bed478a07da7a2e9c2f4babd2869..a234e2c846d6b96992f1432a0c596342fd3d5345 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_merge_conflicts.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_merge_conflicts.ets @@ -33,4 +33,4 @@ namespace A.C { function moo() { too(); } } -/* @@? 29:5 Error TypeError: Function foo is already declared. */ \ No newline at end of file +/* @@? 29:5 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets index 21ffae50b654eb4803d1eec19672674004f30ce4..fe9ac3005e7f0ce18da42f829c90a51510b77059 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets @@ -19,4 +19,4 @@ export namespace MergeSpace { export function foo() { return "string"; } } -/* @@? namespace_access_violation_merge_conflicts.ets:18:12 Error TypeError: Function foo is already declared. */ +/* @@? namespace_access_violation_merge_conflicts.ets:18:12 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets b/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets index f38f0c8d9deab4aa9c5463a0313c20dbb497607f..ab040ac88447c9dacfcffa2cc81d69b0c38ddd1b 100644 --- a/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets @@ -16,12 +16,4 @@ class A { constructor(buffer: ArrayBuffer, byteOffset?: number, length?V number); -/* @@? 17:3 Error TypeError: No matching call signature for constructor */ -/* @@? 17:14 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:64 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:64 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:65 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:66 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 17:72 Error SyntaxError: Unexpected token ')'. */ -/* @@? 28:1 Error SyntaxError: Expected '}', got 'end of stream'. */ - +/* @@? 17:64 Error Syntax error ESY0000: , expected */ diff --git a/ets2panda/test/ast/compiler/ets/negative_typo_1.ets b/ets2panda/test/ast/compiler/ets/negative_typo_1.ets index 946b6b4974729224417dbc0a781eda7c5d92fd7f..dcd5243dea9c2ffd861e3528f2741c1c68f7fb32 100644 --- a/ets2panda/test/ast/compiler/ets/negative_typo_1.ets +++ b/ets2panda/test/ast/compiler/ets/negative_typo_1.ets @@ -17,7 +17,4 @@ e: @ring[][] = [["a", (c +ue)]] } -/* @@? 17:3 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ -/* @@? 17:13 Error TypeError: Cannot find type 'ring'. */ -/* @@? 17:18 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 17:19 Error TypeError: Initializer has 2 elements, but tuple requires 0 */ +/* @@? 16:2 Error Syntax error ESY0000: Identifier expected */ diff --git a/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets b/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets index c09b2b929efaaece573ff4ddb3281f85c102bb40..b25c380639fd63ac78cfacf6df853db99da2bfee 100644 --- a/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets +++ b/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets @@ -24,4 +24,4 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: 'fun' type does not exist. */ +/* @@@ label Error Semantic error ESE0070: 'fun' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/new_expr_with_succesive_multi_dot.ets b/ets2panda/test/ast/compiler/ets/new_expr_with_succesive_multi_dot.ets index dc623f5b1a689d1c917e12b9ccc794f136cec3fa..cc8adcb08ad7538580aaf376868ce6f32d368789 100644 --- a/ets2panda/test/ast/compiler/ets/new_expr_with_succesive_multi_dot.ets +++ b/ets2panda/test/ast/compiler/ets/new_expr_with_succesive_multi_dot.ets @@ -15,10 +15,10 @@ importet lock1 = new ArkTSUt../main; -/* @@? 16:1 Error TypeError: Unresolved reference importet */ -/* @@? 16:10 Error SyntaxError: Unexpected token 'lock1'. */ -/* @@? 16:10 Error TypeError: Unresolved reference lock1 */ -/* @@? 16:18 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 16:30 Error SyntaxError: Identifier expected. */ -/* @@? 16:31 Error SyntaxError: Identifier expected. */ -/* @@? 16:31 Error TypeError: Invalid type reference. */ +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference importet */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'lock1'. */ +/* @@? 16:10 Error Semantic error ESE0143: Unresolved reference lock1 */ +/* @@? 16:18 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 16:30 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:31 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:31 Error Semantic error ESE0299: Invalid type reference. */ diff --git a/ets2panda/test/ast/compiler/ets/no_match_sig.ets b/ets2panda/test/ast/compiler/ets/no_match_sig.ets index ac70bf305df8d8abcd844b96e070bed282991a00..5ff7a6024d1365eb88d7a62bb58064145c112ad0 100644 --- a/ets2panda/test/ast/compiler/ets/no_match_sig.ets +++ b/ets2panda/test/ast/compiler/ets/no_match_sig.ets @@ -31,4 +31,5 @@ function foo3(a: number, b: number, c?: number) { overload foo{ foo1, foo2, foo3 } -/* @@? 17:5 Error TypeError: No matching call signature for foo() */ \ No newline at end of file +/* @@? 32:10 Error Syntax error ESY0227: Unexpected token 'foo'. */ +/* @@? 32:13 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets b/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets index d58ca014b280e98992adbbea042e4c85c21be64f..f6ce1446333297d35fcfd842934b0bbd77825592 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets @@ -26,4 +26,4 @@ B.NonNullable(new Object()) class NonNullable{} -/* @@? 27:7 Error SyntaxError: Cannot be used as user-defined type. */ +/* @@? 27:7 Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets b/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets index 409f8580b8f15020283442f61ebee9e9579509d0..03c26181bd824819f080df837b1183fc17f027c5 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets @@ -19,4 +19,4 @@ class A { } } -/* @@? 18:12 Error TypeError: Type 'T' is not compatible with the enclosing method's return type 'NonNullable' */ +/* @@? 18:12 Error Semantic error ESE0091: Type 'T' is not compatible with the enclosing method's return type 'NonNullable' */ diff --git a/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets b/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets index d0f02874ff3793918c44852e41ab420097031032..1ab7c8c62592a9c31580df7ab50c2332201f13c7 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets @@ -24,6 +24,5 @@ function main(){ a = undefined; } -/* @@? 23:7 Error TypeError: Type 'null' cannot be assigned to type 'Int|A' */ -/* @@? 24:7 Error TypeError: Type 'undefined' cannot be assigned to type 'Int|A' */ - +/* @@? 23:7 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Int|A' */ +/* @@? 24:7 Error Semantic error ESE0318: Type 'undefined' cannot be assigned to type 'Int|A' */ diff --git a/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets b/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets index 2ac195de816047fc3b954cdaabe265bcf4dba36e..a395f917c91f9fc016164fec4b162b083d35cb13 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets @@ -20,6 +20,6 @@ function main(){ a = null; } -/* @@? 19:22 Error SyntaxError: Expected '<', got 'identification literal'. */ -/* @@? 19:31 Error SyntaxError: Expected '>', got ';'. */ -/* @@? 20:7 Error TypeError: Type 'null' cannot be assigned to type 'Object' */ +/* @@? 19:22 Error Syntax error ESY0230: Expected '<', got 'identification literal'. */ +/* @@? 19:31 Error Syntax error ESY0230: Expected '>', got ';'. */ +/* @@? 20:7 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Object' */ diff --git a/ets2panda/test/ast/compiler/ets/not_all_paths_return_value.ets b/ets2panda/test/ast/compiler/ets/not_all_paths_return_value.ets index bb0b7a74cbae88030cfb3e9acc4ef56b4f70ae62..c5d32d9a38a2bd652110a343c997c6db53344572 100644 --- a/ets2panda/test/ast/compiler/ets/not_all_paths_return_value.ets +++ b/ets2panda/test/ast/compiler/ets/not_all_paths_return_value.ets @@ -41,5 +41,5 @@ async function test3(isError: boolean): Promise { //ok } -/* @@? 16:16 Error TypeError: Not all code paths return a value. */ -/* @@? 23:16 Error TypeError: Not all code paths return a value. */ +/* @@? 16:16 Error Semantic error ESE0104: Not all code paths return a value. */ +/* @@? 23:16 Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/compiler/ets/not_initialized_variable/complex_types.ets b/ets2panda/test/ast/compiler/ets/not_initialized_variable/complex_types.ets index 793e440b548f0bf9b07068f2763a75eb2d03ae88..362a6333aeb711592753d7e65b929654f2a4ba7c 100644 --- a/ets2panda/test/ast/compiler/ets/not_initialized_variable/complex_types.ets +++ b/ets2panda/test/ast/compiler/ets/not_initialized_variable/complex_types.ets @@ -35,8 +35,8 @@ export let plug: Plug console.log(car, animal, mutant, jsvalue, plug) -/* @@? 36:13 Error TypeError: Variable 'car' is used before being assigned. */ -/* @@? 36:18 Error TypeError: Variable 'animal' is used before being assigned. */ -/* @@? 36:26 Error TypeError: Variable 'mutant' is used before being assigned. */ -/* @@? 36:34 Error TypeError: Variable 'jsvalue' is used before being assigned. */ -/* @@? 36:43 Error TypeError: Variable 'plug' is used before being assigned. */ +/* @@? 36:13 Error Semantic error ESE0375: Variable 'car' is used before being assigned. */ +/* @@? 36:18 Error Semantic error ESE0375: Variable 'animal' is used before being assigned. */ +/* @@? 36:26 Error Semantic error ESE0375: Variable 'mutant' is used before being assigned. */ +/* @@? 36:34 Error Semantic error ESE0375: Variable 'jsvalue' is used before being assigned. */ +/* @@? 36:43 Error Semantic error ESE0375: Variable 'plug' is used before being assigned. */ diff --git a/ets2panda/test/ast/compiler/ets/not_initialized_variable/primitive_types.ets b/ets2panda/test/ast/compiler/ets/not_initialized_variable/primitive_types.ets index 41b5889e007711981dfb64a5061d482fc4ce38a1..369f22e75c38b03c86720b88583538c5ab00e582 100644 --- a/ets2panda/test/ast/compiler/ets/not_initialized_variable/primitive_types.ets +++ b/ets2panda/test/ast/compiler/ets/not_initialized_variable/primitive_types.ets @@ -19,4 +19,4 @@ let c: number console.log(a, b, c) -/* @@? 20:16 Error TypeError: Variable 'b' is used before being assigned. */ +/* @@? 20:16 Error Semantic error ESE0375: Variable 'b' is used before being assigned. */ diff --git a/ets2panda/test/ast/compiler/ets/null_coalescing_generic_1_neg.ets b/ets2panda/test/ast/compiler/ets/null_coalescing_generic_1_neg.ets index 65df01f730f4fc83b7469e56e0f9da6717f93a0d..b62dbac5e42e606553c41c4bf7c0847910203945 100644 --- a/ets2panda/test/ast/compiler/ets/null_coalescing_generic_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/null_coalescing_generic_1_neg.ets @@ -18,4 +18,4 @@ function fos(a0: T): T { return /* @@ label */a0 ?? myval; } -/* @@@ label Error TypeError: Type 'T|Short' is not compatible with the enclosing method's return type 'T' */ +/* @@@ label Error Semantic error ESE0091: Type 'T|Short' is not compatible with the enclosing method's return type 'T' */ diff --git a/ets2panda/test/ast/compiler/ets/null_coalescing_neg_01.ets b/ets2panda/test/ast/compiler/ets/null_coalescing_neg_01.ets index 095090df6f6f49a25ef2088ef81e755c38037c24..b8e4c6a8e91db6b4a3a03222a7de877c4e46d778 100644 --- a/ets2panda/test/ast/compiler/ets/null_coalescing_neg_01.ets +++ b/ets2panda/test/ast/compiler/ets/null_coalescing_neg_01.ets @@ -44,9 +44,9 @@ function foo6(z: float|undefined) { } -/* @@@ label1 Error TypeError: Value is out of range */ -/* @@@ label2 Error TypeError: Value is out of range */ -/* @@@ label3 Error TypeError: Value is out of range */ -/* @@@ label4 Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ -/* @@@ label5 Error TypeError: Type 'Float' cannot be assigned to type 'Long' */ -/* @@@ label6 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ label1 Error Semantic error ESE0345: Value is out of range */ +/* @@@ label2 Error Semantic error ESE0345: Value is out of range */ +/* @@@ label3 Error Semantic error ESE0345: Value is out of range */ +/* @@@ label4 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ +/* @@@ label5 Error Semantic error ESE0318: Type 'Float' cannot be assigned to type 'Long' */ +/* @@@ label6 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ diff --git a/ets2panda/test/ast/compiler/ets/null_pointer_error.ets b/ets2panda/test/ast/compiler/ets/null_pointer_error.ets index db3372360a637f8e096e9d20842309f4a3936fd0..d28827181cf5ed09880f357ab904a4391407ff34 100644 --- a/ets2panda/test/ast/compiler/ets/null_pointer_error.ets +++ b/ets2panda/test/ast/compiler/ets/null_pointer_error.ets @@ -21,8 +21,8 @@ export class AbstractDaoSession{ } } -/* @@? 1:3 Error TypeError: Cannot find type 'dataRdb'. */ -/* @@? 1:3 Error TypeError: 'ValueType' type does not exist. */ -/* @@? 17:62 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 19:17 Error TypeError: Cannot find type 'AbstractDao'. */ -/* @@? 20:22 Error TypeError: 'await' expressions require Promise object as argument. */ +/* @@? 1:3 Error Semantic error ESE0371: Cannot find type 'dataRdb'. */ +/* @@? 1:3 Error Semantic error ESE0070: 'ValueType' type does not exist. */ +/* @@? 17:62 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 19:17 Error Semantic error ESE0371: Cannot find type 'AbstractDao'. */ +/* @@? 20:22 Error Semantic error ESE0303: 'await' expressions require Promise object as argument. */ diff --git a/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets b/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets index 1d92528ee16f375e553d6ca63462070fd74386a4..bc8ededf475839ca093c14b91940dc0088503df3 100644 --- a/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets +++ b/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets @@ -23,4 +23,4 @@ function mustCallArgSize() { }); } -/* @@? 20:9 Error TypeError: Variable 'xf' is accessed before it's initialization. */ +/* @@? 20:13 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func.ets index cdc9e36f1bf375343d2cf01f383787d2385f49dc..63a1b82c2f63151299717de4cbf30f39a1023e37 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func.ets @@ -21,4 +21,4 @@ function main() { let result = foo(null, null); } -/* @@@ label Error TypeError: Bad operand type: multiple types left in the normalized union type (Int|null). Unions are not allowed in binary expressions except equality. */ +/* @@@ label Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (Int|null). Unions are not allowed in binary expressions except equality. */ diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func_w_undefined.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func_w_undefined.ets index 36888a9df3f1fa76601436c20811f93b85364bdb..1097fdc366c17bda78c44503d584472a69118b4a 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func_w_undefined.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func_w_undefined.ets @@ -21,4 +21,4 @@ function main() { let result = foo(undefined, undefined); } -/* @@@ label Error TypeError: Bad operand type: multiple types left in the normalized union type (Int|undefined). Unions are not allowed in binary expressions except equality. */ +/* @@@ label Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (Int|undefined). Unions are not allowed in binary expressions except equality. */ diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_func.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_func.ets index 7a6a190621518f77f4f697a543cc1ace729b06b3..b75e0efe09e7ee9ee2299458e4eb359e3ddbddba 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_func.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_func.ets @@ -21,4 +21,4 @@ function main() { let result = foo(null, null); } -/* @@@ label Error TypeError: Bad operand type: multiple types left in the normalized union type (Int|null). Unions are not allowed in binary expressions except equality. */ +/* @@@ label Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (Int|null). Unions are not allowed in binary expressions except equality. */ diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_w_undefined.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_w_undefined.ets index cd52b90aaeddba9d05cad9a9ad8f960cbb47537f..accfe306fdcc5d2194ec351274fcd4a9396c9203 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_w_undefined.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_w_undefined.ets @@ -19,4 +19,4 @@ let result = /* @@ label */a + b; } -/* @@@ label Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ +/* @@@ label Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_stringconcat_func.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_stringconcat_func.ets index c06bf7467413aa9839a777ac90bfba0ab6ce5cfe..dbfc847d9d1ee21970ca16bb724b1a1c26538fd3 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_stringconcat_func.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_stringconcat_func.ets @@ -26,5 +26,5 @@ function main() { let result2 = foo2(null, null); } -/* @@@ label Error TypeError: Bad operand type: multiple types left in the normalized union type (String|null). Unions are not allowed in binary expressions except equality. */ -/* @@@ label1 Error TypeError: Bad operand type: multiple types left in the normalized union type (String|null). Unions are not allowed in binary expressions except equality. */ +/* @@@ label Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (String|null). Unions are not allowed in binary expressions except equality. */ +/* @@@ label1 Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (String|null). Unions are not allowed in binary expressions except equality. */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets b/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets index d93a7dccdde10b944e31c4816265bfb36fe6dd55..0568fd1d53f0c68cdc1b9713965b40619c524f5d 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets @@ -20,4 +20,4 @@ let c: C = /* @@ label */{ 33: 44, }; -/* @@@ label Error TypeError: key in class composite should be either identifier or string literal */ +/* @@@ label Error Semantic error ESE0073: key in class composite should be either identifier or string literal */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets b/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets index 574c0ff1f17c2f03503e8f38c2de5f4305b9fed4..b08f62ba53dbf257e1c3780fc41bd2a4abd9a810 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets @@ -21,4 +21,4 @@ let c: C = { /* @@ label */f: 44, }; -/* @@@ label Error TypeError: Property f is not visible here. */ +/* @@@ label Error Semantic error ESE0293: Property f is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets b/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets index a9609fd36be7baa6c4e248456f042a56ad39928b..685c59a1403f9d0a8a6d45fb874de67cb52d98da 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets @@ -15,4 +15,4 @@ let /* @@ label */x = {}; -/* @@@ label Error TypeError: Cannot infer type for x because class composite needs an explicit target type */ +/* @@@ label Error Semantic error ESE0174: Cannot infer type for x because class composite needs an explicit target type */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets b/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets index 35d389ecbf6f78a1c8d410b6bba21dc320c13ad8..76992d4f7eba035e3dcb0e70249a6b373f32be3d 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets @@ -19,4 +19,4 @@ class C { let c: C = /* @@ label */{}; -/* @@@ label Error TypeError: Type C has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ +/* @@@ label Error Semantic error ESE0291: Type C has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets b/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets index 8cd6e2dcf237043aac0ee84a76304b4dc05a102e..7499e31e9a46fbcb917f469fd99facfde43d29d9 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets @@ -20,4 +20,4 @@ let c: C = { /* @@ label */f: 44, }; -/* @@@ label Error TypeError: type C has no property named f */ +/* @@@ label Error Semantic error ESE0065: type C has no property named f */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets b/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets index 23a7a7719e0a7b59720d6597b3957728aacc8d4c..039aea4bcffd8be1f55a58a4d759df33c6eb5cd1 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets @@ -19,4 +19,4 @@ class C { let c: C = /* @@ label */{}; -/* @@@ label Error TypeError: Signature constructor(): void is not visible here. */ +/* @@@ label Error Semantic error ESE0139: Signature constructor(): void is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets b/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets index ce025f5c2a5a4a6e93340741f3af53e9fef5650d..de703db1042df3f27ddcbe0c95abcb1a2dc7c07e 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets @@ -21,4 +21,4 @@ let c: C = { f: /* @@ label */"ouch" }; -/* @@@ label Error TypeError: Type '"ouch"' is not compatible with type 'Int' at property 'f' */ +/* @@@ label Error Semantic error ESE0319: Type '"ouch"' is not compatible with type 'Int' at property 'f' */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets index 876abd1349d3a2170de76a59e50f5952858f0c36..fa18d96488daf8a8cae936ec0eca7c54bd1eec1d 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets @@ -38,8 +38,8 @@ function main(){ let x5:C3 = /* @@ label5 */{field1:1000, field2:"some str"}; } -/* @@@ label Error TypeError: type C has no property named field3 */ -/* @@@ label2 Error TypeError: Property field2 is not visible here. */ -/* @@@ label3 Error TypeError: Type '"some str"' is not compatible with type 'Double' at property 'field1' */ -/* @@@ label4 Error TypeError: Type C2 has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ -/* @@@ label5 Error TypeError: Signature constructor(): void is not visible here. */ +/* @@@ label Error Semantic error ESE0065: type C has no property named field3 */ +/* @@@ label2 Error Semantic error ESE0293: Property field2 is not visible here. */ +/* @@@ label3 Error Semantic error ESE0319: Type '"some str"' is not compatible with type 'Double' at property 'field1' */ +/* @@@ label4 Error Semantic error ESE0291: Type C2 has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ +/* @@@ label5 Error Semantic error ESE0139: Signature constructor(): void is not visible here. */ diff --git a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class_2.ets b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class_2.ets index 8c0a2cc2bbed25a9a7f7953833dddb09cf76b49e..f5cedb5de5285ec309fccd300323202489edaff9 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class_2.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class_2.ets @@ -24,4 +24,4 @@ function main(){ let x:C4 = /* @@ label */{field1:1000,field2:"some str"}; } -/* @@@ label Error TypeError: Abstract class has abstract method method1 */ +/* @@@ label Error Semantic error ESE0257: Abstract class has abstract method method1 */ diff --git a/ets2panda/test/ast/compiler/ets/optional_method.ets b/ets2panda/test/ast/compiler/ets/optional_method.ets index 5f4df228347176b9e89cd59bde2f7cbde80c8d68..6d4fce92ca00a116905f463cae236a844fd9f2e4 100644 --- a/ets2panda/test/ast/compiler/ets/optional_method.ets +++ b/ets2panda/test/ast/compiler/ets/optional_method.ets @@ -20,5 +20,5 @@ interface Y { interfaceMethod?/* @@ label2 */(): void } -/* @@@ label1 Error SyntaxError: Optional methods are not supported. */ -/* @@@ label2 Error SyntaxError: Optional methods are not supported. */ +/* @@@ label1 Error Syntax error ESY129375: Optional methods are not supported. */ +/* @@@ label2 Error Syntax error ESY129375: Optional methods are not supported. */ diff --git a/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets b/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets index f73c7e1334be4b34c39e151eacdbbb48af131b42..b54c6a51d201b057f6c89cce6705841972bf055c 100644 --- a/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets +++ b/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets @@ -27,4 +27,4 @@ function main() { /* @@ label */foo(1, 2, 3) } -/* @@@ label Error TypeError: Reference to foo is ambiguous */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0126: Reference to foo is ambiguous */ diff --git a/ets2panda/test/ast/compiler/ets/overload/class_overloaded_name_must_ident.ets b/ets2panda/test/ast/compiler/ets/overload/class_overloaded_name_must_ident.ets index 6559e6d66b2b63c401c72bc8f8e9a956aabec490..adf7b7c7dd65986aa318d7bf1593af4c07b3982f 100644 --- a/ets2panda/test/ast/compiler/ets/overload/class_overloaded_name_must_ident.ets +++ b/ets2panda/test/ast/compiler/ets/overload/class_overloaded_name_must_ident.ets @@ -21,4 +21,4 @@ class C { overload foo { /* @@label1 */B.foo1 } } -/* @@@ label1 Error SyntaxError: The overloaded method name in class/interface method overload declaration must be identifier. */ +/* @@? 21:34 Error Syntax error ESY0324: The overloaded method name in class/interface method overload declaration must be identifier. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/constructor_overloaded_name_must_ident.ets b/ets2panda/test/ast/compiler/ets/overload/constructor_overloaded_name_must_ident.ets index d4a9648f60ef2a4bb147d3f46ba5fc5be635664f..d60cb0a20a840cc9c277cfeeb108134c9374e589 100644 --- a/ets2panda/test/ast/compiler/ets/overload/constructor_overloaded_name_must_ident.ets +++ b/ets2panda/test/ast/compiler/ets/overload/constructor_overloaded_name_must_ident.ets @@ -21,4 +21,4 @@ class C { overload constructor { /* @@label1 */B.foo1 } } -/* @@@ label1 Error SyntaxError: The overloaded method name in class/interface method overload declaration must be identifier. */ +/* @@? 21:42 Error Syntax error ESY0324: The overloaded method name in class/interface method overload declaration must be identifier. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/function_overloaded_name_must_qualified_name.ets b/ets2panda/test/ast/compiler/ets/overload/function_overloaded_name_must_qualified_name.ets index 70eb87ba28801033a1a0e893285a0f3c51c5141e..1e26ffb29dcbb8a032d8aee6e0321c817f059654 100644 --- a/ets2panda/test/ast/compiler/ets/overload/function_overloaded_name_must_qualified_name.ets +++ b/ets2panda/test/ast/compiler/ets/overload/function_overloaded_name_must_qualified_name.ets @@ -23,4 +23,4 @@ namespace NS { overload foo {NS.foo1, NS.A.foo2, /* @@ label1 */NS.A.foo2} -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/interface_overloaded_name_must_ident.ets b/ets2panda/test/ast/compiler/ets/overload/interface_overloaded_name_must_ident.ets index 3d5f01eb897bf0fec1d25cc1beaa44e1f62ed5fc..c3d9eed094a3261c909148ff01c383f5407f20a3 100644 --- a/ets2panda/test/ast/compiler/ets/overload/interface_overloaded_name_must_ident.ets +++ b/ets2panda/test/ast/compiler/ets/overload/interface_overloaded_name_must_ident.ets @@ -20,4 +20,4 @@ interface I { overload foo { /* @@label1 */B.foo1 } } -/* @@@ label1 Error SyntaxError: The overloaded method name in class/interface method overload declaration must be identifier. */ +/* @@? 20:34 Error Syntax error ESY0324: The overloaded method name in class/interface method overload declaration must be identifier. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function.ets b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function.ets index 3b4308b99f283d843e9c3b710ee2188ebf8db746..9b057f89e32be4d8454614d4be2d8f92341607a3 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function.ets @@ -30,4 +30,4 @@ function foo113(a: C): C { overload foo{ foo111, foo112, foo113,/* @@ label1 */foo111 } -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function_2.ets b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function_2.ets index fa182d50daa9913808bdd440e4bedca29bc69dac..d1e10c4ad5a27a234be171d32640d176231add82 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function_2.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function_2.ets @@ -33,5 +33,4 @@ namespace NS { overload foo{ NS.NS2.foo1, NS.NS2.NS3.foo2, NS.foo3, /* @@ label1 */NS.NS2.NS3.foo2}; -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ - +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_method.ets b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_method.ets index 2d656eb4b7ba2b810e6509c2e5ead4c19803a130..5a0e8f9a51fbc55c45407bd2ba61d212794786d2 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_method.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_method.ets @@ -31,4 +31,4 @@ class Test1 { overload foo{ foo111, foo112, foo113,/* @@ label1 */foo111 } } -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_overload_name_1.ets b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_overload_name_1.ets index d5a1d45da91831f60376e7d0956a1d2e3f3607a0..c9726e80927fb6b015184a78bf5da9f51a4dff9a 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_overload_name_1.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_overload_name_1.ets @@ -19,7 +19,7 @@ class Base { overload foo {/* @@ label2 */foo, /* @@ label3 */foo} } -/* @@@ label1 Error TypeError: Only abstract or native methods can't have body. */ -/* @@@ label2 Error TypeError: The overloaded name 'foo' can't refer to a function with overload signatures. */ -/* @@@ label3 Error TypeError: Duplicate overloaded method. */ -/* @@@ label3 Error TypeError: The overloaded name 'foo' can't refer to a function with overload signatures. */ +/* @@@ label1 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@@ label2 Error Semantic error ESE0389: The overloaded name 'foo' can't refer to a function with overload signatures. */ +/* @@@ label3 Error Semantic error ESE0385: Duplicate overloaded method. */ +/* @@@ label3 Error Semantic error ESE0389: The overloaded name 'foo' can't refer to a function with overload signatures. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_at_most_once_1.ets b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_at_most_once_1.ets index 1a2ab17c31f1cbb69baa1fb82b8cfb8c32bfe794..f07d022201ab344ee0dfd8f4b8598511d57ef491 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_at_most_once_1.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_at_most_once_1.ets @@ -28,4 +28,4 @@ class Test1 extends Test0 { overload foo{foo111, /* @@ label1 */foo111, foo112} } -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_1.ets b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_1.ets index dec7657edd7f6c47dd41b1f5b439678d14183d36..444b4e0bd045dadd84c36016ae24cb741b9f75e4 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_1.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_1.ets @@ -23,5 +23,4 @@ class E { } } -/* @@? 22:22 Error TypeError: Overloaded method is used as value */ - +/* @@? 22:22 Error Semantic error ESE0307: Overloaded method is used as value */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_2.ets b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_2.ets index 79401623d249b1af4deaf68041bac458edf77bdf..6fcdab1633b219868b6e45fed08691b3d4d70f6c 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_2.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_2.ets @@ -18,4 +18,4 @@ function foo2() {} overload foo{foo1, foo2} let OL = /* @@ label */foo; -/* @@@ label Error TypeError: Overloaded method is used as value */ +/* @@@ label Error Semantic error ESE0307: Overloaded method is used as value */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_union_call.ets b/ets2panda/test/ast/compiler/ets/overload/overload_union_call.ets index f377a79a6ae473dad12fb0d80db368b0c8227c81..9ae32c093636a01e33f842b78a06caf5049c6ef9 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_union_call.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_union_call.ets @@ -35,4 +35,4 @@ function foo(a: T) { return /* @@ label1 */a.foo() } -/* @@@ label1 Error TypeError: Overload declaration cannot be called by union. */ +/* @@@ label1 Error Semantic error ESE0391: Overload declaration cannot be called by union. */ diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_union_call_2.ets b/ets2panda/test/ast/compiler/ets/overload/overload_union_call_2.ets index e718f6244308177f35d7b72a24070b915d842405..cdd2254fa8c8fb767c5ec0070ebe94e472c01aed 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_union_call_2.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_union_call_2.ets @@ -31,5 +31,5 @@ function foo(a: T) { return /* @@ label1 */a.foo() } -/* @@@ label1 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label1 Error TypeError: No matching call signature */ +/* @@@ label1 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label1 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets index 9baccdcf5cac44858fe08efeb20c2328b49869b6..c2875ea1e67466059c02f46f1d58d1be4316ba16 100644 --- a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets +++ b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets @@ -25,4 +25,4 @@ function main() { foo(1, 2) } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets index b1be5bf6b435e809974fbcc0447ec5f6ea99c0b0..20b4b5c0d44c8f753f2977e053ffb51e400e2fe0 100644 --- a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets +++ b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets @@ -31,4 +31,4 @@ function /*@@ label */foo(x: int, y: int): int{ function main() { } -/* @@@ label Error TypeError: Not all code paths return a value. */ +/* @@? 21:23 Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets b/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets index f5f2b2064a392090ae2dd10afac22b6ec154ee83..05e2c369282f21d21dd321c65a12a64337f53baa 100644 --- a/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets +++ b/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets @@ -20,4 +20,4 @@ class Base { } class Derived extends Base {} -/* @@@ label Error TypeError: Function foo with this assembly signature already declared. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/override11.ets b/ets2panda/test/ast/compiler/ets/override11.ets index 2c43199671770c0c92a925404dcaadf1c5a81391..5ee14e54fe3ec089be90d9382adefc4e8e0058a5 100644 --- a/ets2panda/test/ast/compiler/ets/override11.ets +++ b/ets2panda/test/ast/compiler/ets/override11.ets @@ -21,5 +21,5 @@ class B extends A { override fn(t: int): void { } } -/* @@? 21:14 Error TypeError: fn(t: Int): void in B cannot override fn(t: Int): Int in A because overriding return type is not compatible with the other return type. */ -/* @@? 21:14 Error TypeError: Method fn(t: Int): void in B not overriding any method */ +/* @@? 21:14 Error Semantic error ESE0141: fn(t: Int): void in B cannot override fn(t: Int): Int in A because overriding return type is not compatible with the other return type. */ +/* @@? 21:14 Error Semantic error ESE0136: Method fn(t: Int): void in B not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/override15.ets b/ets2panda/test/ast/compiler/ets/override15.ets index 2afb8940d3f7ff872881b3c2ffc60be47684b524..94fdb03d80b2382b0ab0e3f0dc77cd09cac86fa6 100644 --- a/ets2panda/test/ast/compiler/ets/override15.ets +++ b/ets2panda/test/ast/compiler/ets/override15.ets @@ -21,5 +21,5 @@ interface I2 extends I { fn(): float; } -/* @@? 21:3 Error TypeError: fn(): Float in I2 cannot override fn(): Int in I because overriding return type is not compatible with the other return type. */ -/* @@? 21:3 Error TypeError: Method fn(): Float in I2 not overriding any method */ +/* @@? 21:3 Error Semantic error ESE0141: fn(): Float in I2 cannot override fn(): Int in I because overriding return type is not compatible with the other return type. */ +/* @@? 21:3 Error Semantic error ESE0136: Method fn(): Float in I2 not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/override3.ets b/ets2panda/test/ast/compiler/ets/override3.ets index 96cdf17944ed5bf697ec2ac4054cd9d0b85b5ac5..cb3a62e4d8526dc571d76959256682aa9630d945 100644 --- a/ets2panda/test/ast/compiler/ets/override3.ets +++ b/ets2panda/test/ast/compiler/ets/override3.ets @@ -17,5 +17,5 @@ interface I { toString(): int; } -/* @@? 17:3 Error TypeError: toString(): Int in I cannot override toString(): String in Object because overriding return type is not compatible with the other return type. */ -/* @@? 17:3 Error TypeError: Method toString(): Int in I not overriding any method */ +/* @@? 17:3 Error Semantic error ESE0141: toString(): Int in I cannot override toString(): String in Object because overriding return type is not compatible with the other return type. */ +/* @@? 17:3 Error Semantic error ESE0136: Method toString(): Int in I not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/override7.ets b/ets2panda/test/ast/compiler/ets/override7.ets index aca0ae3a32e7e578d50010e0b04addd4007e5a06..631804ad31c9bcda86f9e356d2222b08aa541be9 100644 --- a/ets2panda/test/ast/compiler/ets/override7.ets +++ b/ets2panda/test/ast/compiler/ets/override7.ets @@ -23,5 +23,5 @@ abstract class A implements I { public override fn(): int { return 1; } } -/* @@? 23:21 Error TypeError: fn(): Int in A cannot override fn(): void in J because overriding return type is not compatible with the other return type. */ -/* @@? 23:21 Error TypeError: Method fn(): Int in A not overriding any method */ +/* @@? 23:21 Error Semantic error ESE0141: fn(): Int in A cannot override fn(): void in J because overriding return type is not compatible with the other return type. */ +/* @@? 23:21 Error Semantic error ESE0136: Method fn(): Int in A not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets b/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets index abc1ea45628fd526592f8b87fcab27054610bdc4..bb9068338bbfc6924afce1887d59b27ab518c69c 100644 --- a/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets +++ b/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets @@ -25,4 +25,4 @@ class B { } } -/* @@@ label Error TypeError: Method foo(a: Int): Int in B not overriding any method */ +/* @@@ label Error Semantic error ESE0136: Method foo(a: Int): Int in B not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/package_invalid_initializer/P3/P3.ets b/ets2panda/test/ast/compiler/ets/package_invalid_initializer/P3/P3.ets index 3609cbb822433097e51adf6a68531a869e015874..7acbdc98c1ee335b35c1fc20ff5ee91c509c78c2 100644 --- a/ets2panda/test/ast/compiler/ets/package_invalid_initializer/P3/P3.ets +++ b/ets2panda/test/ast/compiler/ets/package_invalid_initializer/P3/P3.ets @@ -42,13 +42,13 @@ static { var_tobe_shadowed = 2; } -/* @@? P3.ets:26:25 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:27:23 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:29:14 Error SyntaxError: Missing initialization for const package property */ -/* @@? P3.ets:29:18 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? P3.ets:30:30 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:31:14 Error TypeError: Cannot reassign constant c_nn2 */ -/* @@? P3.ets:32:6 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:33:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? P3.ets:34:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? P3.ets:39:14 Error SyntaxError: Missing initialization for const package property */ +/* @@? 26:25 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? 27:23 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? 29:14 Error Syntax error ESY0294: Missing initialization for const package property */ +/* @@? 29:18 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 30:30 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? 31:14 Error Semantic error ESE0297: Cannot reassign constant c_nn2 */ +/* @@? 32:6 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? 33:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 34:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 39:14 Error Syntax error ESY0294: Missing initialization for const package property */ diff --git a/ets2panda/test/ast/compiler/ets/package_invalid_initializer/main_test.ets b/ets2panda/test/ast/compiler/ets/package_invalid_initializer/main_test.ets index 241151b6461a23c0f6494d44460e212e3cb73052..cfa4702f5ef8f37c6ae39100fc69ecb7133f01f5 100644 --- a/ets2panda/test/ast/compiler/ets/package_invalid_initializer/main_test.ets +++ b/ets2panda/test/ast/compiler/ets/package_invalid_initializer/main_test.ets @@ -15,10 +15,10 @@ import {nn, nn1, nn2} from "./P3" -/* @@? P3.ets:26:25 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:27:23 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:29:18 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? P3.ets:30:30 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:32:6 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:33:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? P3.ets:34:1 Error SyntaxError: Invalid package toplevel statement */ +/* @@? P3.ets:26:25 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? P3.ets:27:23 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? P3.ets:29:18 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? P3.ets:30:30 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? P3.ets:32:6 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? P3.ets:33:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? P3.ets:34:1 Error Syntax error ESY0291: Invalid package toplevel statement */ diff --git a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/main_test.ets b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/main_test.ets index 9973e90217e072f4113e48d0fa682be2ddb01dc6..225e724a19459177b27479beaf1c16a9bc929c87 100644 --- a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/main_test.ets +++ b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/main_test.ets @@ -15,4 +15,4 @@ import {NS} from "./package" -/* @@? P2_01.ets:22:5 Error SyntaxError: Only one static block is allowed in one namespace or class. */ \ No newline at end of file +/* @@? P2_01.ets:22:5 Error Syntax error ESY0034: Only one static block is allowed in one namespace or class. */ diff --git a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_01.ets b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_01.ets index a61fb5e005e7ba1b10f593c7a0ec49d482673ad1..3a4f6b9c1f32b194cdcadecc08ed61030a688145 100644 --- a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_01.ets +++ b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_01.ets @@ -22,4 +22,5 @@ export namespace NS { } } -/* @@? P2_01.ets:22:5 Error SyntaxError: Only one static block is allowed in one namespace or class. */ +/* @@? 16:1 Error Syntax error ESY0227: Unexpected token 'package'. */ +/* @@? 20:5 Error Syntax error ESY0227: Unexpected token 'static'. */ diff --git a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_02.ets b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_02.ets index 8d0dd864534d22e2eeb5ea7783580aecb005f1f3..3c48fdfe5f64484871223f2f80ecdaf404650203 100644 --- a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_02.ets +++ b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_02.ets @@ -21,4 +21,5 @@ export namespace NS { } } -/* @@? P2_02.ets:21:5 Error SyntaxError: Only one static block is allowed in one namespace or class. */ +/* @@? 16:1 Error Syntax error ESY0227: Unexpected token 'package'. */ +/* @@? 19:5 Error Syntax error ESY0227: Unexpected token 'static'. */ diff --git a/ets2panda/test/ast/compiler/ets/package_static_block_multi_files/main_test.ets b/ets2panda/test/ast/compiler/ets/package_static_block_multi_files/main_test.ets index dfb039f82efa6e9b2698f9d40ce3ac6467fe3d4a..7aa7a4e34cfd19704882d3e6d5dc513cdfa44ae8 100644 --- a/ets2panda/test/ast/compiler/ets/package_static_block_multi_files/main_test.ets +++ b/ets2panda/test/ast/compiler/ets/package_static_block_multi_files/main_test.ets @@ -15,4 +15,4 @@ import {nn3, nn4} from "./P1" -/* @@? P1_1.ets:20:5 Error SyntaxError: static block cannot apply to multi-files for one package */ \ No newline at end of file +/* @@? P1_1.ets:20:5 Error Syntax error ESY0289: static block cannot apply to multi-files for one package */ diff --git a/ets2panda/test/ast/compiler/ets/param_sort_1.ets b/ets2panda/test/ast/compiler/ets/param_sort_1.ets index bba3a5f57043e0bd5aaff4c0caa008ead1061f3a..d08088ef80440d3aa694acdae5cdb4267695c5d1 100644 --- a/ets2panda/test/ast/compiler/ets/param_sort_1.ets +++ b/ets2panda/test/ast/compiler/ets/param_sort_1.ets @@ -14,4 +14,4 @@ */ function foo(p1: int, p2?: int, /* @@ label */p3: int) { } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ diff --git a/ets2panda/test/ast/compiler/ets/param_sort_2.ets b/ets2panda/test/ast/compiler/ets/param_sort_2.ets index 17b9a79e2ee2a79c88673bb1f7dd9d798cb9e8bb..ac3e532111627da7434f901b5852c92ae9a5faba 100644 --- a/ets2panda/test/ast/compiler/ets/param_sort_2.ets +++ b/ets2panda/test/ast/compiler/ets/param_sort_2.ets @@ -14,4 +14,4 @@ */ function foo(p1: boolean, p2?: int, /* @@ label */p3: string) { } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ diff --git a/ets2panda/test/ast/compiler/ets/param_sort_3.ets b/ets2panda/test/ast/compiler/ets/param_sort_3.ets index 8a38d4cdace43bbd2497c7d874ad9e446c334b81..ef829375c337e76c4281578bc5518a20b074d824 100644 --- a/ets2panda/test/ast/compiler/ets/param_sort_3.ets +++ b/ets2panda/test/ast/compiler/ets/param_sort_3.ets @@ -14,4 +14,4 @@ */ function foo(p1: int, p2: int = 44, /* @@ label */p3: int) { } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ diff --git a/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets b/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets index 22b996e74db89a8fba96d28baee3d2e739883d4a..19b7d505e711e32e09bdd172c7d036e50634fb7d 100644 --- a/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets +++ b/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets @@ -38,24 +38,24 @@ function main() { } catch (e) { } } -/* @@? 28:3 Error TypeError: No matching call signature for foo1(Double) */ -/* @@? 28:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 29:3 Error TypeError: No matching call signature for foo2(Double) */ -/* @@? 29:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 30:3 Error TypeError: No matching call signature for foo3(Int) */ -/* @@? 30:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 30:10 Error TypeError: Class or interface 'Int' cannot be used as object */ -/* @@? 31:3 Error TypeError: No matching call signature for foo4(String) */ -/* @@? 31:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 31:10 Error TypeError: Class or interface 'String' cannot be used as object */ -/* @@? 32:3 Error TypeError: No matching call signature for foo5(Boolean) */ -/* @@? 32:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 32:10 Error TypeError: Class or interface 'Boolean' cannot be used as object */ -/* @@? 33:3 Error TypeError: No matching call signature for foo6(Double) */ -/* @@? 33:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 34:3 Error TypeError: No matching call signature for foo7(Double) */ -/* @@? 34:8 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 35:14 Error TypeError: No matching call signature for isSafeInteger(Double) */ -/* @@? 35:35 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 37:16 Error TypeError: No matching call signature for isSafeInteger(Double) */ -/* @@? 37:37 Error TypeError: Class name can't be the argument of function or method. */ \ No newline at end of file +/* @@? 28:3 Error Semantic error ESE0127: No matching call signature for foo1(Double) */ +/* @@? 28:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 29:3 Error Semantic error ESE0127: No matching call signature for foo2(Double) */ +/* @@? 29:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 30:3 Error Semantic error ESE0127: No matching call signature for foo3(Int) */ +/* @@? 30:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 30:10 Error Semantic error ESE0294: Class or interface 'Int' cannot be used as object */ +/* @@? 31:3 Error Semantic error ESE0127: No matching call signature for foo4(String) */ +/* @@? 31:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 31:10 Error Semantic error ESE0294: Class or interface 'String' cannot be used as object */ +/* @@? 32:3 Error Semantic error ESE0127: No matching call signature for foo5(Boolean) */ +/* @@? 32:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 32:10 Error Semantic error ESE0294: Class or interface 'Boolean' cannot be used as object */ +/* @@? 33:3 Error Semantic error ESE0127: No matching call signature for foo6(Double) */ +/* @@? 33:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 34:3 Error Semantic error ESE0127: No matching call signature for foo7(Double) */ +/* @@? 34:8 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 35:14 Error Semantic error ESE0127: No matching call signature for isSafeInteger(Double) */ +/* @@? 35:35 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 37:16 Error Semantic error ESE0127: No matching call signature for isSafeInteger(Double) */ +/* @@? 37:37 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ diff --git a/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets b/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets index 39968154fee1957830420ef410bd854c23e857bf..5b43fa8669e97f94d53d3b0880227773f459b0a7 100644 --- a/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets +++ b/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets @@ -20,4 +20,4 @@ const _innerFunc = (arg: { x: number } | undefined): number => { return arg.x; }; -/* @@? 16:26 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 16:26 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ diff --git a/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets b/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets index 32781a0e03ff9243f03759e7940168c57252ce1d..eef609e5aa5b9351caa6264b951d5eec1f3da05f 100644 --- a/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets +++ b/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets @@ -15,5 +15,5 @@ @interface /* @@ label1 */� -/* @@@ label1 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 20:1 Error SyntaxError: Expected '{', got 'end of stream'. */ +/* @@@ label1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 20:1 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/parser_format.ets b/ets2panda/test/ast/compiler/ets/parser_format.ets index a468621ea1b27722401f57c863f3fa0d443129f1..524eb60e205b395221b2071662982ed4c8eedd5e 100644 --- a/ets2panda/test/ast/compiler/ets/parser_format.ets +++ b/ets2panda/test/ast/compiler/ets/parser_format.ets @@ -17,10 +17,10 @@ declaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare struct MainProg2 { @@Stave } -/* @@? 16:1 Error TypeError: Cannot find type 'declaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare'. */ -/* @@? 16:1 Error TypeError: Class literal is not yet supported. */ -/* @@? 16:46 Error SyntaxError: Unexpected token 'MainProg2'. */ -/* @@? 16:46 Error TypeError: Unresolved reference MainProg2 */ -/* @@? 16:56 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:5 Error SyntaxError: There is no any node to insert at the placeholder position. */ -/* @@? 17:7 Error TypeError: Unresolved reference Stave */ +/* @@? 16:1 Error Semantic error ESE0371: Cannot find type 'declaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare'. */ +/* @@? 16:1 Error Semantic error ESE0020: Class literal is not yet supported. */ +/* @@? 16:46 Error Syntax error ESY0227: Unexpected token 'MainProg2'. */ +/* @@? 16:46 Error Semantic error ESE0143: Unresolved reference MainProg2 */ +/* @@? 16:56 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:5 Error Syntax error ESY0010: There is no any node to insert at the placeholder position. */ +/* @@? 17:7 Error Semantic error ESE0143: Unresolved reference Stave */ diff --git a/ets2panda/test/ast/compiler/ets/parser_import.ets b/ets2panda/test/ast/compiler/ets/parser_import.ets index 3fb9464550bcc0d64c5aa909ff64063cd9c409e4..adff45b9cd36458e9e5884a74e4228f0a4e2d51a 100644 --- a/ets2panda/test/ast/compiler/ets/parser_import.ets +++ b/ets2panda/test/ast/compiler/ets/parser_import.ets @@ -17,6 +17,6 @@ let callbackc = (arrElem: JSValue) => { import {a} from } -/* @@? 17:5 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ -/* @@? 18:1 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 22:70 Error SyntaxError: Expected '}', got 'end of stream'. */ \ No newline at end of file +/* @@? 17:5 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 18:1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 23:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets b/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets index 1692ddeb25bf22c5838e5388c6b3c2977008c87f..bd202274020dfa095c606a31d71b36e9bc84feae 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets @@ -28,4 +28,4 @@ function foo(): void { let fld_1: Partial = /* @@ label */new A(); // CTE } -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'Partial' */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'Partial' */ diff --git a/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets b/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets index 9096cd90ec156549567fea04880b87bf51c8470b..23bcbaa5728046b958372f1ca64d2d5254525f34 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets @@ -23,4 +23,4 @@ function foo(): void { let a_class: A = /* @@ label */partial_A; } -/* @@@ label Error TypeError: Type 'Partial' cannot be assigned to type 'A' */ +/* @@@ label Error Semantic error ESE0318: Type 'Partial' cannot be assigned to type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets b/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets index eda9ef37580abb8c8aa7d893b5cdf651c3a0c4ff..ba0e18a649b8767532ff86ce9f1c1c73fc6cf8ff 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets @@ -26,4 +26,4 @@ function foo(): void { a_class.mmeb = /* @@ label */undefined; } -/* @@@ label Error TypeError: Type 'undefined' cannot be assigned to type 'Double' */ +/* @@@ label Error Semantic error ESE0318: Type 'undefined' cannot be assigned to type 'Double' */ diff --git a/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets b/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets index 2b6557074b07ccbedd8b296b0c99f794a80e98c9..4878eabfb9dee8f894d76e9a1b86fb487c01effc 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets @@ -21,6 +21,4 @@ function main() { genericFunc<{a: number, b: string}>({a: 1}) } -/* @@? 21:3 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 21:15 Error TypeError: need to specify target type for class composite */ -/* @@? 21:38 Error TypeError: need to specify target type for class composite */ +/* @@? 16:28 Error Semantic error ESE0000: Cannot find name Partial */ diff --git a/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets b/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets index 7cd333f43ecc247a20d9cb7dde880708dcef045a..df98b031ff98848331f4a3ab0c8ad82cafcfac0b 100644 --- a/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets +++ b/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets @@ -23,4 +23,4 @@ class B extends A { } } -/* @@@ label Error TypeError: Method foo(): void in B not overriding any method */ +/* @@@ label Error Semantic error ESE0136: Method foo(): void in B not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/private_field_declaration.ets b/ets2panda/test/ast/compiler/ets/private_field_declaration.ets index 153546fc726d2b85669b7c39e72ec5821a105010..ec421a2d713c0ebdb34f7fb3e6bd0d626dc8d19a 100644 --- a/ets2panda/test/ast/compiler/ets/private_field_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/private_field_declaration.ets @@ -18,5 +18,5 @@ #field: int = 0; } - /* @@? 18:5 Error SyntaxError: Use 'private' keyword to declare an identifier as private. */ - /* @@? 18:5 Error SyntaxError: Unexpected token '{'. */ \ No newline at end of file + /* @@? 18:5 Error Syntax error ESY0298: Use 'private' keyword to declare an identifier as private. */ +/* @@? 18:5 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets index 9a07282a7a7d536dc9472ac92964d0d670469dc8..8c4c57551e7e1955a59fad28ba4839d241cebf37 100755 --- a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets +++ b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets @@ -23,4 +23,4 @@ function main() { /* @@ label */z.i = 2.9 } -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets index 974a88ae5f338857829d266e7a168c774dba52b8..422bed0145366b4ecf9e20b8beb9b3ece2db3173 100755 --- a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets +++ b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets @@ -33,4 +33,4 @@ function main() { /* @@ label */z.j = "new str" } -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly/label_readonly_true.ets b/ets2panda/test/ast/compiler/ets/readonly/label_readonly_true.ets index 7a6e516d42d80c2b8f8bf4fb27d601ab37936774..3a5c949b0c7407682c93931beb60fb57eed653ac 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/label_readonly_true.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/label_readonly_true.ets @@ -16,9 +16,9 @@ WE: readonly true; let: readonly; -/* @@? 16:5 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 16:5 Error TypeError: Unresolved reference readonly */ -/* @@? 16:14 Error SyntaxError: Unexpected token 'true'. */ -/* @@? 17:4 Error SyntaxError: Identifier expected, got ':'. */ -/* @@? 17:6 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 17:6 Error SyntaxError: Unexpected token 'readonly'. */ +/* @@? 16:5 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 16:5 Error Semantic error ESE0143: Unresolved reference readonly */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token 'true'. */ +/* @@? 17:4 Error Syntax error ESY0224: Identifier expected, got ':'. */ +/* @@? 17:6 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token 'readonly'. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets b/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets index bace18b65dc77cca02417040a7ac92699f76e59d..1506e93995efb2f6131adec7f742b09331bf3366 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets @@ -15,5 +15,5 @@ let a: readonly int [""]; -/* @@? 16:21 Error SyntaxError: Indexed access types are not supported, use type name instead! */ -/* @@? 16:25 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ \ No newline at end of file +/* @@? 16:21 Error Syntax error ESY49888: Indexed access types are not supported, use type name instead! */ +/* @@? 16:25 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly/readonly_as_args_type.ets b/ets2panda/test/ast/compiler/ets/readonly/readonly_as_args_type.ets index fe4d6158f78c51023de89e1f32803c86ea9f73d9..1b750e27109fa8ece281880f75658c3484213404 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/readonly_as_args_type.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/readonly_as_args_type.ets @@ -15,8 +15,7 @@ function foo(param1: readonly/* @@ foo_param1 */, param2: readonly /* @@ foo_param2 */true) {} -/* @@@ foo_param1 Error SyntaxError: Invalid Type. */ -/* @@@ foo_param1 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ - -/* @@@ foo_param2 Error SyntaxError: Invalid Type. */ -/* @@@ foo_param2 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@@ foo_param1 Error Syntax error ESY0138: Invalid Type. */ +/* @@@ foo_param1 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@@ foo_param2 Error Syntax error ESY0138: Invalid Type. */ +/* @@@ foo_param2 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly/readonly_as_fields_type.ets b/ets2panda/test/ast/compiler/ets/readonly/readonly_as_fields_type.ets index 3830a00052e10a05e2dadd2cd1222756c99a44be..ed89e2ca1ca011aa3d64a4a5e22e0f23d59a6bcb 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/readonly_as_fields_type.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/readonly_as_fields_type.ets @@ -19,13 +19,11 @@ class A { c: readonly /* @@ A_c */1; } -/* @@@ A_a Error SyntaxError: Invalid Type. */ -/* @@@ A_a Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ - -/* @@@ A_b Error SyntaxError: Invalid Type. */ -/* @@@ A_b Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@@ A_b Error SyntaxError: Unexpected token 'false'. */ - -/* @@@ A_c Error SyntaxError: Invalid Type. */ -/* @@@ A_c Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@@ A_c Error SyntaxError: Unexpected token '1'. */ +/* @@@ A_a Error Syntax error ESY0138: Invalid Type. */ +/* @@@ A_a Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@@ A_b Error Syntax error ESY0138: Invalid Type. */ +/* @@@ A_b Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@@ A_b Error Syntax error ESY0227: Unexpected token 'false'. */ +/* @@@ A_c Error Syntax error ESY0138: Invalid Type. */ +/* @@@ A_c Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@@ A_c Error Syntax error ESY0227: Unexpected token '1'. */ diff --git a/ets2panda/test/ast/compiler/ets/readonly/readonly_static_var.ets b/ets2panda/test/ast/compiler/ets/readonly/readonly_static_var.ets index 46ad39e55c1155e8e58d8e5179d5278fe7e290aa..90c8bcaaa71226f89cef91779dc44dd8fc530032 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/readonly_static_var.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/readonly_static_var.ets @@ -15,7 +15,7 @@ readonly static S = c' '; -/* @@? 16:1 Error TypeError: Unresolved reference readonly */ -/* @@? 16:10 Error SyntaxError: Unexpected token 'static'. */ -/* @@? 16:17 Error SyntaxError: Unexpected token 'S'. */ -/* @@? 16:17 Error TypeError: Unresolved reference S */ +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference readonly */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'static'. */ +/* @@? 16:17 Error Syntax error ESY0227: Unexpected token 'S'. */ +/* @@? 16:17 Error Semantic error ESE0143: Unresolved reference S */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyField.ets b/ets2panda/test/ast/compiler/ets/readonlyField.ets index 4b48970029505fe74164a27e30ec7937146c82fe..f94dc57b3c0b6d8d82643a0332e22b9b6bd73ff4 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyField.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyField.ets @@ -24,4 +24,4 @@ function main(): void { /* @@ label */myData.value = "new data"; } -/* @@@ label Error TypeError: Cannot assign to a readonly variable value */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable value */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyField_2.ets b/ets2panda/test/ast/compiler/ets/readonlyField_2.ets index 9dc39f7fa44be247318d885cf06cc13fc2b8ea0a..57b49b45afe3633317a5bef429ef5dd2ed93978b 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyField_2.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyField_2.ets @@ -27,4 +27,4 @@ function main(): void { updatePerson(person); } -/* @@@ label Error TypeError: Cannot assign to a readonly variable name */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable name */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets index b68cabb42463875bbdea4ee23df3f69456096f37..6c3773134d10adc5de77026a1008c1e63fbcd60f 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets @@ -23,4 +23,4 @@ function main() { } -/* @@? 22:7 Error TypeError: Cannot assign to this property because it is readonly. */ \ No newline at end of file +/* @@? 22:7 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets index 1e8c2d5d4801ed5d8899d2aa2f66d87cfb93afbf..e88257e30751862cd83c1648c58c26e4fe5b5758 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets @@ -28,4 +28,4 @@ function main() { } -/* @@? 27:12 Error TypeError: Cannot assign to this property because it is readonly. */ \ No newline at end of file +/* @@? 27:12 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_1.ets b/ets2panda/test/ast/compiler/ets/readonlyType_1.ets index b2680473fc15c6ad0c57183fb2b8bed3f2396c2c..b74812ecfe9507ab7416112a36460793a7226be9 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_1.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_1.ets @@ -26,5 +26,5 @@ function foo(a0: A) { } -/* @@@ label Error TypeError: Cannot assign to a readonly variable fld */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable fld */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_2.ets b/ets2panda/test/ast/compiler/ets/readonlyType_2.ets index 5685a9042ef15463186ccfd86e9a53e3c3199a9e..fc0886cc79d8e11709da65c4c8656a8045a534b9 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_2.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_2.ets @@ -22,5 +22,5 @@ function foo(a0: A) { /* @@ label */a.fld = 5 } -/* @@@ label Error TypeError: Cannot assign to a readonly variable fld */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable fld */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_3.ets b/ets2panda/test/ast/compiler/ets/readonlyType_3.ets index 7ef6007189723be2af27f5629dc3f96beeb8a05a..53c1c775efc1bc13307fd354a1aaeb2d36f1ec3d 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_3.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_3.ets @@ -20,5 +20,5 @@ class A { } } -/* @@@ label Error TypeError: Cannot assign to a readonly variable fld */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable fld */ diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_4.ets b/ets2panda/test/ast/compiler/ets/readonlyType_4.ets index 4d3bf9936efd7457877d54af9f0ce3af04dac227..c86cd451214737865a0ababcb54f43c7945c0540 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_4.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_4.ets @@ -29,5 +29,5 @@ class C extends B { } } -/* @@@ label Error TypeError: Cannot assign to a readonly variable fld */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable fld */ diff --git a/ets2panda/test/ast/compiler/ets/readonly_array01.ets b/ets2panda/test/ast/compiler/ets/readonly_array01.ets index 35d50fac5059d4dbee3c79e8b97c152c816daded..0280a8d5bac94fb9f50e48bfa51ebeccd2499559 100644 --- a/ets2panda/test/ast/compiler/ets/readonly_array01.ets +++ b/ets2panda/test/ast/compiler/ets/readonly_array01.ets @@ -19,5 +19,5 @@ function main() { v[0] = [] // CTE } -/* @@? 19:5 Error TypeError: Object type doesn't have proper index access method. */ -/* @@? 19:12 Error TypeError: Can't resolve array type */ +/* @@? 19:5 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@? 19:12 Error Semantic error ESE0301: Can't resolve array type */ diff --git a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets index c496f272391302a8141c7ec00cb87d3b180d952d..1d3afd85484b85458344ec45efab3b99ab521e9e 100644 --- a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets +++ b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets @@ -21,4 +21,4 @@ function main(): void { } } -/* @@? 20:12 Error TypeError: Type '(param: String) => String' is not compatible with type '(param: Double) => String' at index 2 */ +/* @@? 20:12 Error Semantic error ESE0046: Type '(param: String) => String' is not compatible with type '(param: Double) => String' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets index 662eea658f08e52b3c3d39396599106ae8fe53fb..87b479ad90a46198a6c06556aa6479d44e4f7657 100644 --- a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets +++ b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets @@ -23,6 +23,6 @@ function main(): void { handlerMap[2] = 1 } -/* @@? 23:5 Error TypeError: No matching indexing signature for $_set(Int, Int) */ -/* @@? 23:16 Error TypeError: Cannot find index access method with the required signature. */ -/* @@? 23:21 Error TypeError: Type 'Int' is not compatible with type '(param: Double) => String' at index 2 */ +/* @@? 23:5 Error Semantic error ESE0127: No matching indexing signature for $_set(Int, Int) */ +/* @@? 23:16 Error Semantic error ESE0251: Cannot find index access method with the required signature. */ +/* @@? 23:21 Error Semantic error ESE0046: Type 'Int' is not compatible with type '(param: Double) => String' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets b/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets index f2f1b08aa92063a310383baee9819bff4879b4e3..00f8c6e111f9d18556047ecac6cf66c24e202f49 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets @@ -17,6 +17,6 @@ class A>>{} class C extends A/* @@ label1 */>{} /* A does not satisfy the constraint due to invariance of T */ -/* @@@ label Error TypeError: Type argument 'A' should be a subtype of 'A>>'-constraint */ -/* @@@ label2 Error TypeError: Type argument 'C' should be a subtype of 'A>'-constraint */ -/* @@@ label1 Error TypeError: Type argument 'A' should be a subtype of 'A>>'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'A' should be a subtype of 'A>>'-constraint */ +/* @@@ label1 Error Semantic error ESE0228: Type argument 'A' should be a subtype of 'A>>'-constraint */ +/* @@@ label2 Error Semantic error ESE0228: Type argument 'C' should be a subtype of 'A>'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_function_neg_1.ets b/ets2panda/test/ast/compiler/ets/recursive_function_neg_1.ets index 9bc5f8cdccf6e2a89d17b018c6a6a6191c1001fc..aaaedc1f711aee4754d3d8bb4aa51d2d89498f77 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_function_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_function_neg_1.ets @@ -20,4 +20,4 @@ function main(){ /* @@ label */foo() } -/* @@@ label Error TypeError: No matching call signature */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_interface_neg_1.ets b/ets2panda/test/ast/compiler/ets/recursive_interface_neg_1.ets index 9ee831177ac4d9cc1e1fbde7792d3e0a99f5ebd2..39892c08192eafdce8ca8782104895b933bb6f06 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_interface_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_interface_neg_1.ets @@ -16,4 +16,4 @@ interface A>{} interface D{} interface B extends A/* @@ label */{} -/* @@@ label Error TypeError: Type argument 'D' should be a subtype of 'A'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'D' should be a subtype of 'A'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_interface_neg_2.ets b/ets2panda/test/ast/compiler/ets/recursive_interface_neg_2.ets index 3596a49b970eaec3a724466ce519c6cc4d5c71fe..95a0a5cf6dd40990e10809a783808c4d82787cec 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_interface_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_interface_neg_2.ets @@ -16,4 +16,4 @@ interface A,T2 extends A>{} interface D{} interface B extends A/* @@ label */{} -/* @@@ label Error TypeError: Type argument 'D' should be a subtype of 'A'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'D' should be a subtype of 'A'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_method_neg_1.ets b/ets2panda/test/ast/compiler/ets/recursive_method_neg_1.ets index 7cd9a2186a1aa140c0c66e8b8626803898aa4eeb..1b3e7368448dcb9a410e9be6d1394d508ea1c0df 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_method_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_method_neg_1.ets @@ -26,4 +26,4 @@ function main(){ /* @@ label */a_obj.foo(x) } -/* @@@ label Error TypeError: No matching call signature for foo(C) */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(C) */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_method_neg_2.ets b/ets2panda/test/ast/compiler/ets/recursive_method_neg_2.ets index 6bd9794ea2d0edca471561e0312369323d14b6ab..92cc19da26f4dc9812084016ae6d85a324439729 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_method_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_method_neg_2.ets @@ -24,5 +24,5 @@ function main(){ let a_obj = new A() /* @@ label */a_obj.foo(/* @@ label1 */y) } -/* @@@ label1 Error TypeError: Type 'D' is not compatible with type 'C' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(D) */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(D) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'D' is not compatible with type 'C' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_union_neg_1.ets b/ets2panda/test/ast/compiler/ets/recursive_union_neg_1.ets index 0238b2626c749d6cb6993a98133fbe35cb83284b..c90356d2be072036396f0404769a9ae5bad5158c 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_union_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_union_neg_1.ets @@ -19,4 +19,4 @@ class T

{} class C extends A/* @@ label */{} /* Constraint: B|D|C <: A, but B is not a subtype of A due to T invariance */ -/* @@@ label Error TypeError: Type argument 'B|D|C' should be a subtype of 'A'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'B|D|C' should be a subtype of 'A'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/recursive_union_neg_2.ets b/ets2panda/test/ast/compiler/ets/recursive_union_neg_2.ets index 5db6f7f690266baed759e6bbec114248ce63d266..f6c55f396703243bfa4388ed4df23e8217c035b9 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_union_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_union_neg_2.ets @@ -18,5 +18,5 @@ class B extends A{} class T

{} class C extends /* @@ label */A{} -/* @@@ label1 Error TypeError: Type 'T

' is generic but type argument were not provided. */ -/* @@@ label Error TypeError: The super type of 'C' class is not extensible. */ +/* @@@ label Error Semantic error ESE0176: The super type of 'C' class is not extensible. */ +/* @@@ label1 Error Semantic error ESE0170: Type 'T

' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/compiler/ets/redefine_class/redefine_array.ets b/ets2panda/test/ast/compiler/ets/redefine_class/redefine_array.ets index ec66c92c5ee8b8439db2564cde211051711c311a..523085dfeb9cba422758cc68308af1fbf1dcf5d1 100644 --- a/ets2panda/test/ast/compiler/ets/redefine_class/redefine_array.ets +++ b/ets2panda/test/ast/compiler/ets/redefine_class/redefine_array.ets @@ -23,4 +23,4 @@ export class Array { a: T } -/* @@? 1:3 Error TypeError: Class 'Array' is already defined. */ \ No newline at end of file +/* @@? 1:3 Error Semantic error ESE0349: Class 'Array' is already defined. */ diff --git a/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets index 98320d2d4ce205791760ad66c13b7a6bfb36b365..b6299a9443481d4a66ef98aaeae0d25dc28a5a45 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets @@ -25,4 +25,4 @@ function main(): void { let req_a: A = {fld: /* @@ label */{}}; } -/* @@@ label Error TypeError: Class property 'b_fld' needs to be initialized for Required. */ +/* @@@ label Error Semantic error ESE0226: Class property 'b_fld' needs to be initialized for Required. */ diff --git a/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets index e2c98e264dc9cc532684cba363723d5a55f4cb6f..00075afa63f1570a8a34dd53f7f88b857361af73 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets @@ -22,4 +22,4 @@ function main(): void { req_b.fld = /* @@ label */undefined; } -/* @@@ label Error TypeError: Type 'undefined' cannot be assigned to type 'Double' */ +/* @@@ label Error Semantic error ESE0318: Type 'undefined' cannot be assigned to type 'Double' */ diff --git a/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets index 28bad7ad5a0f0939450b00e974c7c1d49a266491..46ba6573bdb38113b567a678c9ba23de535f7842 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets @@ -21,4 +21,4 @@ function main(): void { let req_b: Required = /* @@ label */new B(); } -/* @@@ label Error TypeError: Type 'B' cannot be assigned to type 'Required' */ +/* @@@ label Error Semantic error ESE0318: Type 'B' cannot be assigned to type 'Required' */ diff --git a/ets2panda/test/ast/compiler/ets/requiredType_6.ets b/ets2panda/test/ast/compiler/ets/requiredType_6.ets index 399456dfc66ab6fd954196cfe2ae6d8b077cf8e5..e0a5e2c0bd617f90f203c1660a30d5e1bc2fdb2d 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_6.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_6.ets @@ -23,4 +23,4 @@ function main(): void { b_class = /* @@ label */req_b; } -/* @@@ label Error TypeError: Type 'Required' cannot be assigned to type 'B' */ +/* @@@ label Error Semantic error ESE0318: Type 'Required' cannot be assigned to type 'B' */ diff --git a/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets index bbd431829ce0854087b2e4b1ae805c0dc3073939..2901d70a747bf12ea4118dc4e512dc72005b0dd1 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets @@ -23,4 +23,4 @@ function main(): void { let req_b: Required = /* @@ label */{fld: 3.0, fld2: 5.0}; } -/* @@@ label Error TypeError: Class property 'fld3' needs to be initialized for Required. */ +/* @@@ label Error Semantic error ESE0226: Class property 'fld3' needs to be initialized for Required. */ diff --git a/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets index b9e237a906b0f29821ac93596e7ef9c1f2253285..ea1cbc802fac31d64b4d104b2702693466fcc940 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets @@ -21,4 +21,4 @@ function main(): void { let req_a: Required = new /* @@ label */Required(); } -/* @@@ label Error TypeError: Required type can be instantiated only with object literal */ +/* @@@ label Error Semantic error ESE0053: Required type can be instantiated only with object literal */ diff --git a/ets2panda/test/ast/compiler/ets/resolve_func_name_union_type.ets b/ets2panda/test/ast/compiler/ets/resolve_func_name_union_type.ets index 5cfc8c78642328650aac7d6c878559420bd02e27..2db81703736854f951b9ba09d44bb390a5ddf250 100644 --- a/ets2panda/test/ast/compiler/ets/resolve_func_name_union_type.ets +++ b/ets2panda/test/ast/compiler/ets/resolve_func_name_union_type.ets @@ -25,5 +25,5 @@ function main() { arktest.assertTrue((v as NumFunc)() == 3.14); // Is used 'arktest.assertTrue' due to #22840 } -/* @@? 24:17 Error TypeError: Type '() => Double' cannot be assigned to type '() => void|Double' */ -/* @@? 25:24 Error TypeError: Cannot use type 'void' as value. */ +/* @@? 24:17 Error Semantic error ESE0318: Type '() => Double' cannot be assigned to type '() => void|Double' */ +/* @@? 25:24 Error Semantic error ESE0078: Cannot use type 'void' as value. */ diff --git a/ets2panda/test/ast/compiler/ets/resolve_func_name_union_type_1.ets b/ets2panda/test/ast/compiler/ets/resolve_func_name_union_type_1.ets index 818d4995aaab947a026c4131bbfb9ca44a2e5c13..ad4355ce5420b44f2441fd98e392db705081889b 100644 --- a/ets2panda/test/ast/compiler/ets/resolve_func_name_union_type_1.ets +++ b/ets2panda/test/ast/compiler/ets/resolve_func_name_union_type_1.ets @@ -25,5 +25,5 @@ function main() { arktest.assertEQ((v as NumFunc)(), 3.14); } -/* @@@ label Error TypeError: Type '() => Double' cannot be assigned to type 'String|Double' */ -/* @@? 25:23 Error TypeError: Cannot cast type 'String|Double' to '() => Double' */ +/* @@@ label Error Semantic error ESE0318: Type '() => Double' cannot be assigned to type 'String|Double' */ +/* @@? 25:23 Error Semantic error ESE0326: Cannot cast type 'String|Double' to '() => Double' */ diff --git a/ets2panda/test/ast/compiler/ets/restvar_type_infer.ets b/ets2panda/test/ast/compiler/ets/restvar_type_infer.ets index b24788ce952c404b8cba82b6471b3187d8868fe4..a518f9156b221edb4ef64ed907f0986260b5d7f4 100644 --- a/ets2panda/test/ast/compiler/ets/restvar_type_infer.ets +++ b/ets2panda/test/ast/compiler/ets/restvar_type_infer.ets @@ -18,9 +18,9 @@ function main() { let r2 = ((a:number, ...args)=> { return args.length; })(1,2,3,4,5) } -/* @@? 17:14 Error TypeError: Cannot use type 'void' as value. */ -/* @@? 17:16 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 17:16 Error TypeError: The type of parameter 'args' cannot be inferred */ -/* @@? 18:14 Error TypeError: Cannot use type 'void' as value. */ -/* @@? 18:26 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 18:26 Error TypeError: The type of parameter 'args' cannot be inferred */ +/* @@? 17:14 Error Semantic error ESE0078: Cannot use type 'void' as value. */ +/* @@? 17:16 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 17:16 Error Semantic error ESE0132: The type of parameter 'args' cannot be inferred */ +/* @@? 18:14 Error Semantic error ESE0078: Cannot use type 'void' as value. */ +/* @@? 18:26 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 18:26 Error Semantic error ESE0132: The type of parameter 'args' cannot be inferred */ diff --git a/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets b/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets index 64f4958d341625ff8da0c28b31f822b54cfacbda..7dff15169917e5b3e4fb60b2b586e31963df076a 100755 --- a/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets +++ b/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets @@ -16,8 +16,8 @@ class Arr { public mp(a: int): FixedArray<()> } -/* @@? 16:11 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:24 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 16:37 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:37 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 16:37 Error SyntaxError: Unexpected token '>'. */ \ No newline at end of file +/* @@? 16:11 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:24 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 16:37 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 16:37 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 16:37 Error Syntax error ESY0227: Unexpected token '>'. */ diff --git a/ets2panda/test/ast/compiler/ets/return_missing_argument.ets b/ets2panda/test/ast/compiler/ets/return_missing_argument.ets index 019bd7f77d716fbd2147cca0162e21a4d1e751c8..3f057a61e67d4e90275d123dce011c68f8bfc0e8 100644 --- a/ets2panda/test/ast/compiler/ets/return_missing_argument.ets +++ b/ets2panda/test/ast/compiler/ets/return_missing_argument.ets @@ -22,4 +22,4 @@ function main(): void { let a: int = dummy(); } -/* @@@ label Error TypeError: Missing return value. */ +/* @@@ label Error Semantic error ESE0032: Missing return value. */ diff --git a/ets2panda/test/ast/compiler/ets/return_this/this_type_invalid_return_type.ets b/ets2panda/test/ast/compiler/ets/return_this/this_type_invalid_return_type.ets index 76d43fc869454fea523ad5688aabdedcbbc6bb25..4d209685e4534e216dece9caecb0bae16d50653b 100644 --- a/ets2panda/test/ast/compiler/ets/return_this/this_type_invalid_return_type.ets +++ b/ets2panda/test/ast/compiler/ets/return_this/this_type_invalid_return_type.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error TypeError: Only extension function or a class method can return 'this' */ +/* @@@ label Error Semantic error ESE0031: Only extension function or a class method can return 'this' */ diff --git a/ets2panda/test/ast/compiler/ets/return_this/this_type_overridden_by_child_class.ets b/ets2panda/test/ast/compiler/ets/return_this/this_type_overridden_by_child_class.ets index ad094e2accb9617483c103b67a911eaac1ba118f..0ffde51a987fedf664328f848f9b534e39960268 100644 --- a/ets2panda/test/ast/compiler/ets/return_this/this_type_overridden_by_child_class.ets +++ b/ets2panda/test/ast/compiler/ets/return_this/this_type_overridden_by_child_class.ets @@ -23,5 +23,5 @@ abstract class A implements I { } } -/* @@@ label Error TypeError: foo(): A in A cannot override foo(): I in I because overriding return type is not compatible with the other return type. */ -/* @@@ label Error TypeError: Method foo(): A in A not overriding any method */ +/* @@@ label Error Semantic error ESE0141: foo(): A in A cannot override foo(): I in I because overriding return type is not compatible with the other return type. */ +/* @@@ label Error Semantic error ESE0136: Method foo(): A in A not overriding any method */ diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/identical_signature.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/identical_signature.ets index 92b493beb73fa2a6fd7cdb86b3409215e5cadac6..e7be58d67e39a1eb6ceb5e255a3c892b0cf1bbef 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/identical_signature.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/identical_signature.ets @@ -16,5 +16,5 @@ declare function foo(A:number|undefined|null) declare function foo(A:number|undefined|null) -/* @@? 16:18 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 17:1 Error TypeError: Function foo is already declared. */ \ No newline at end of file +/* @@? 16:18 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 17:1 Error Semantic error ESE0130: Function foo is already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_1.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_1.ets index 78955a8122d25381b13e00dff486923743aa5f66..1a8b16b93ef8c2de7bd882de5b99fe811b2bed9d 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_1.ets @@ -18,4 +18,4 @@ export class A {} export declare function foo(a:A):void export declare function foo(a:A):number {} -/* @@? 19:49 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@? 19:49 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_2.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_2.ets index 18bdf1ec9ef90f3ca5698970adb7c7e35c47de6d..1a615bef8dd99146cc7c4370f6099671a76b6c7e 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_2.ets @@ -18,4 +18,4 @@ export class A {} export declare function foo(a:A):void export function foo(a:A):number {} -/* @@? 19:8 Error TypeError: Method declaration `foo` must all ambient or non-ambient */ +/* @@? 19:8 Error Semantic error ESE0399: Method declaration `foo` must all ambient or non-ambient */ diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/str_overload.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/str_overload.ets index d1d3c761c80fdbcdb79bdb9141c811be44ab302b..965f9fc972a4a0e9acad454b33739ab3a945ec51 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/str_overload.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/str_overload.ets @@ -17,4 +17,4 @@ declare function foo(a:"str1"):void declare function foo(a:"str2"):void -/* @@? 17:1 Warning Warning: Function foo with this assembly signature already declared. */ +/* @@? 17:1 Warning Warning W0022: Function foo with this assembly signature already declared. */ diff --git a/ets2panda/test/ast/compiler/ets/same_name_field_err.ets b/ets2panda/test/ast/compiler/ets/same_name_field_err.ets index fdfa470be384a0a806dab24a940e14e528ea91e6..0159c7c9929c68cbe8efc60312d5ee4f70b1935d 100644 --- a/ets2panda/test/ast/compiler/ets/same_name_field_err.ets +++ b/ets2panda/test/ast/compiler/ets/same_name_field_err.ets @@ -23,4 +23,4 @@ function main(): void { arktest.assertEQ(SameName.a, 32); } -/* @@? 19:12 Error TypeError: Variable 'a' has already been declared. */ +/* @@? 19:12 Error Semantic error ESE0351: Variable 'a' has already been declared. */ diff --git a/ets2panda/test/ast/compiler/ets/selective-export-multiple/import_ambient_const_neg.ets b/ets2panda/test/ast/compiler/ets/selective-export-multiple/import_ambient_const_neg.ets index 3817c2080ee358b0e986685e86cb96da48442f39..0c53e2a1f12ea8af8f8ebda31cfe9a6363e1dff6 100644 --- a/ets2panda/test/ast/compiler/ets/selective-export-multiple/import_ambient_const_neg.ets +++ b/ets2panda/test/ast/compiler/ets/selective-export-multiple/import_ambient_const_neg.ets @@ -19,5 +19,5 @@ import { double_3 } from "./ambient_const_vars.ets" import { double_4 } from "./ambient_const_vars.ets" import { double_5 } from "./ambient_const_vars.ets" -/* @@? 17:26 Error TypeError: Imported element not exported 'double_2' */ -/* @@? 19:26 Error TypeError: Imported element not exported 'double_4' */ \ No newline at end of file +/* @@? 17:26 Error Semantic error ESE0355: Imported element not exported 'double_2' */ +/* @@? 19:26 Error Semantic error ESE0355: Imported element not exported 'double_4' */ diff --git a/ets2panda/test/ast/compiler/ets/set_init_without_param.ets b/ets2panda/test/ast/compiler/ets/set_init_without_param.ets index 50710b371ef27d48a5e727df5979aa86f2252df8..cfabdc5acc8383ff0f2af5f830b306c8489ec448 100644 --- a/ets2panda/test/ast/compiler/ets/set_init_without_param.ets +++ b/ets2panda/test/ast/compiler/ets/set_init_without_param.ets @@ -15,8 +15,8 @@ set a '1;' -/* @@? 16:1 Error SyntaxError: Extension Setter can only have 2 parameters. */ -/* @@? 16:5 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:7 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 22:77 Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@? 22:77 Error SyntaxError: Extension Accessor must have a receiver. */ \ No newline at end of file +/* @@? 16:1 Error Syntax error ESY0023: Extension Setter can only have 2 parameters. */ +/* @@? 16:5 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:7 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 23:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 23:1 Error Syntax error ESY0146: Extension Accessor must have a receiver. */ diff --git a/ets2panda/test/ast/compiler/ets/setter_func_no_return_type.ets b/ets2panda/test/ast/compiler/ets/setter_func_no_return_type.ets index 741e45d5f3cb49388d9480d5ee8d9f48a3dd7ecc..11b906beaea6268515499d757226771baa918441 100644 --- a/ets2panda/test/ast/compiler/ets/setter_func_no_return_type.ets +++ b/ets2panda/test/ast/compiler/ets/setter_func_no_return_type.ets @@ -30,6 +30,6 @@ class Class3 { set f(x: string): void {this._f = x} /* @@ label2 */} -/* @@@ label Error SyntaxError: Setter must not have return type even if it is void. */ -/* @@@ label1 Error SyntaxError: Setter must not have return type even if it is void. */ -/* @@@ label2 Error SyntaxError: Setter must not have return type even if it is void. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0241: Setter must not have return type even if it is void. */ +/* @@@ label1 Error Syntax error ESY0241: Setter must not have return type even if it is void. */ +/* @@@ label2 Error Syntax error ESY0241: Setter must not have return type even if it is void. */ diff --git a/ets2panda/test/ast/compiler/ets/smart_cast.ets b/ets2panda/test/ast/compiler/ets/smart_cast.ets index 226a7a068e399b1f1724c71e87c372fdde566e5c..13f8d9d3567df8eb16bb9c2730101f1652c00b69 100644 --- a/ets2panda/test/ast/compiler/ets/smart_cast.ets +++ b/ets2panda/test/ast/compiler/ets/smart_cast.ets @@ -24,5 +24,4 @@ function baz(p: "Double") { let s: "Object" = p != undefined ? p : "Double"// should be cte } -/* @@? 24:23 Error TypeError: Type '"Double"' cannot be assigned to type '"Object"' */ - +/* @@? 24:23 Error Semantic error ESE0318: Type '"Double"' cannot be assigned to type '"Object"' */ diff --git a/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets b/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets index bef75565fae3580a50411132d71ceadda5e07bd5..ea2e261bc2ea3c495c8f31ed7285262882c1f608 100644 --- a/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets +++ b/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets @@ -20,5 +20,5 @@ const b1: Base = { n: 200 } const b2: Base = /* @@ label */{ ...{n: 200} } const c1: Child = /* @@ label1 */{ ...b1, a: "a" } -/* @@@ label Error TypeError: The object literal properties must be key-value pairs */ -/* @@@ label1 Error TypeError: The object literal properties must be key-value pairs */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0064: The object literal properties must be key-value pairs */ +/* @@@ label1 Error Semantic error ESE0064: The object literal properties must be key-value pairs */ diff --git a/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets b/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets index de366a4ce9c8977af5dafbc712422a52ccb5c62b..7d00742359cbfb2be420e0bf4beefeee01666054 100644 --- a/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets +++ b/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets @@ -21,9 +21,9 @@ function main() { let y2: [boolean, int, string, string] = /* @@ label3 */[true, /* @@ label4 */...x2, /* @@ label5 */...x3] } -/* @@? 18:56 Error TypeError: Initializer has 2 elements, but tuple requires 4 */ -/* @@? 18:72 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 18:94 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 21:61 Error TypeError: Initializer has 3 elements, but tuple requires 4 */ -/* @@? 21:83 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 21:105 Error TypeError: 'Array' cannot be spread in tuple. */ +/* @@@ label Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 4 */ +/* @@@ label1 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label2 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label3 Error Semantic error ESE0231: Initializer has 3 elements, but tuple requires 4 */ +/* @@@ label4 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label5 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ diff --git a/ets2panda/test/ast/compiler/ets/spread_record.ets b/ets2panda/test/ast/compiler/ets/spread_record.ets index f9782ab9747c4499a218df40d74a3a8ebcc80400..37ee9684cd19e85688c2fa0122cf78a25ecf53cc 100644 --- a/ets2panda/test/ast/compiler/ets/spread_record.ets +++ b/ets2panda/test/ast/compiler/ets/spread_record.ets @@ -20,12 +20,4 @@ let r3: Record = { ...r1, ...r2 } console.log(...r3) // crash - Issue #26773 -/* @@? 17:1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@? 17:1 Error TypeError: No matching call signature for log(...r1) */ -/* @@? 17:1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@? 17:13 Error TypeError: Type 'Record' is not compatible with rest parameter type 'Array' at index 1 */ -/* @@? 17:13 Error TypeError: Spread expression can be applied only to array or tuple type, but 'Record' is provided */ -/* @@? 20:1 Error TypeError: No matching call signature for log(...r3) */ -/* @@? 20:1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@? 20:13 Error TypeError: Type 'Record' is not compatible with rest parameter type 'Array' at index 1 */ -/* @@? 20:13 Error TypeError: Spread expression can be applied only to array or tuple type, but 'Record' is provided */ +/* @@? 16:9 Error Semantic error ESE0000: Cannot find name Record */ diff --git a/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets b/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets index 5ecd50b4cb3e449fb1f451203b036ca8ce6c02b5..bdd0a7db8d2070ff8bd04d5b4b9ae9f6b99b7b9e 100644 --- a/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets +++ b/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets @@ -31,6 +31,6 @@ class Outer { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 20:9 Error TypeError: Static initializer is not allowed in inner class. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 20:9 Error Semantic error ESE0014: Static initializer is not allowed in inner class. */ +/* @@@ label1 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/compiler/ets/static_index_function1.ets b/ets2panda/test/ast/compiler/ets/static_index_function1.ets index 36c1a7ebd551ea117a3c9dfddb806c4a3aad9ba0..cf8422b6612f4feae2464713e0c15af606129f1f 100644 --- a/ets2panda/test/ast/compiler/ets/static_index_function1.ets +++ b/ets2panda/test/ast/compiler/ets/static_index_function1.ets @@ -27,7 +27,7 @@ function main() { let e = /* @@ label2 */A[/* @@ label3 */'a'] } -/* @@@ label Error TypeError: '$_get' is a static property of 'A' */ -/* @@@ label1 Error TypeError: '$_get' is a static property of 'A' */ -/* @@@ label2 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label3 Error TypeError: '$_get' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: '$_get' is a static property of 'A' */ +/* @@@ label1 Error Semantic error ESE0207: '$_get' is a static property of 'A' */ +/* @@@ label2 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label3 Error Semantic error ESE0207: '$_get' is a static property of 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/static_index_function2.ets b/ets2panda/test/ast/compiler/ets/static_index_function2.ets index c6ae1e214f8ca52e2e8482918f9a36c7aea8f192..f9434dc2d0d12e94df5e913dddada9db92555e57 100644 --- a/ets2panda/test/ast/compiler/ets/static_index_function2.ets +++ b/ets2panda/test/ast/compiler/ets/static_index_function2.ets @@ -26,6 +26,6 @@ function main(): int { return 0 } -/* @@@ label Error TypeError: '$_set' is a static property of 'A' */ -/* @@@ label1 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label2 Error TypeError: '$_set' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: '$_set' is a static property of 'A' */ +/* @@@ label1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label2 Error Semantic error ESE0207: '$_set' is a static property of 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/static_index_function3.ets b/ets2panda/test/ast/compiler/ets/static_index_function3.ets index 0f7fdaddb6636dad33deb171a019616044aba2d2..19a2c9ca98ddf6336999c848f903a187adee7c9d 100644 --- a/ets2panda/test/ast/compiler/ets/static_index_function3.ets +++ b/ets2panda/test/ast/compiler/ets/static_index_function3.ets @@ -43,5 +43,5 @@ function main(): int { return 0 } -/* @@? 39:17 Error TypeError: '$_iterator' is a static property of 'C' */ -/* @@? 39:17 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 39:17 Error Semantic error ESE0207: '$_iterator' is a static property of 'C' */ +/* @@? 39:17 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/compiler/ets/string_enum_unary.ets b/ets2panda/test/ast/compiler/ets/string_enum_unary.ets index 68ca4eb5fadf8a2c1d71f6484bf4833801b8e4cc..7c18dae641bd236dfd0f7e39799ba9efad327864 100644 --- a/ets2panda/test/ast/compiler/ets/string_enum_unary.ets +++ b/ets2panda/test/ast/compiler/ets/string_enum_unary.ets @@ -24,6 +24,6 @@ function main() { arktest.assertEQ(!Color.Red, !10) } -/* @@@ label Error TypeError: Bad operand type, the type of the operand must be numeric type. */ -/* @@@ label1 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ -/* @@@ label2 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label1 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label2 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ diff --git a/ets2panda/test/ast/compiler/ets/string_tuple_type_neg.ets b/ets2panda/test/ast/compiler/ets/string_tuple_type_neg.ets index aa876db24447a59041e4bfb7238aeaa8d248a23f..cfaf31575738a93507e593b6bc5613565978c7bd 100644 --- a/ets2panda/test/ast/compiler/ets/string_tuple_type_neg.ets +++ b/ets2panda/test/ast/compiler/ets/string_tuple_type_neg.ets @@ -15,13 +15,13 @@ type A = [n1:string, n2:string] -/* @@? 16:11 Error TypeError: Cannot find type 'n1'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:14 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 16:14 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 16:20 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:22 Error SyntaxError: Unexpected token 'n2'. */ -/* @@? 16:25 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 16:25 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 16:31 Error SyntaxError: Unexpected token ']'. */ +/* @@? 16:11 Error Semantic error ESE0371: Cannot find type 'n1'. */ +/* @@? 16:13 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 16:14 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:22 Error Syntax error ESY0227: Unexpected token 'n2'. */ +/* @@? 16:25 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 16:25 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 16:31 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/compiler/ets/subtype.ets b/ets2panda/test/ast/compiler/ets/subtype.ets index 5207d81c18227c28b0b3fef250bc61fa73f5abca..5989576a7c77ce7cbf594dde68d9d630e336154b 100644 --- a/ets2panda/test/ast/compiler/ets/subtype.ets +++ b/ets2panda/test/ast/compiler/ets/subtype.ets @@ -40,4 +40,4 @@ const factory = new GenericObjectFactory(); const obj = g(factory); obj.give({}); -/* @@? 19:58 Error TypeError: Type argument 'Interface_2' should be a subtype of 'Interface_1'-constraint */ +/* @@? 19:58 Error Semantic error ESE0228: Type argument 'Interface_2' should be a subtype of 'Interface_1'-constraint */ diff --git a/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets b/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets index 0299dda17c0d864e191166a09f844f385760d404..1412bd1f42760774b70919b27f835985a7490415 100644 --- a/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets +++ b/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets @@ -27,4 +27,4 @@ class B extends A { } } -/* @@@ label Error TypeError: 'super' cannot be referenced from a static context */ +/* @@@ label Error Semantic error ESE0202: 'super' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/compiler/ets/switch_case_null_tstype.ets b/ets2panda/test/ast/compiler/ets/switch_case_null_tstype.ets index e5cacaf668537b14bbfe830020f94752452ddf7d..21d358e6585af6112aa260da440e1345cbedb898 100644 --- a/ets2panda/test/ast/compiler/ets/switch_case_null_tstype.ets +++ b/ets2panda/test/ast/compiler/ets/switch_case_null_tstype.ets @@ -23,10 +23,5 @@ switch (arg){ break; } -/* @@? 17:7 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 17:7 Error SyntaxError: Unexpected token 'null'. */ -/* @@? 17:7 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 17:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 22:5 Error TypeError: Constant expression required */ -/* @@? 22:10 Error SyntaxError: Class cannot be used as object. */ -/* @@? 22:10 Error TypeError: Switch case type 'A' is not comparable to discriminant type 'String' */ +/* @@? 21:9 Error Syntax error ESY0000: Type expected */ +/* @@? 17:7 Error Syntax error ESY0227: Unexpected token 'null'. */ diff --git a/ets2panda/test/ast/compiler/ets/switch_negative_5.ets b/ets2panda/test/ast/compiler/ets/switch_negative_5.ets index d0703f36d34c2cbc6e4b4ad81d6dcc60ee16ccb3..3324f2d8e11aac1ff6ed0feba2278b48fd05bd0d 100644 --- a/ets2panda/test/ast/compiler/ets/switch_negative_5.ets +++ b/ets2panda/test/ast/compiler/ets/switch_negative_5.ets @@ -24,4 +24,4 @@ function main(): void { f(0); } -/* @@? 18:14 Error TypeError: Switch case type 'undefined' is not comparable to discriminant type 'int' */ \ No newline at end of file +/* @@? 18:14 Error Semantic error ESE0262: Switch case type 'undefined' is not comparable to discriminant type 'int' */ diff --git a/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets b/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets index d1499c6e6e82ad7fcc75a975b902f456f8d67fbd..da93732af799b402677fde7a95e8e9f555847e69 100644 --- a/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets +++ b/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets @@ -31,4 +31,4 @@ class IndexStr { } } -/* @@@ label Error TypeError: Case duplicate */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0165: Case duplicate */ diff --git a/ets2panda/test/ast/compiler/ets/template_fold.ets b/ets2panda/test/ast/compiler/ets/template_fold.ets index c4255f98ba47d7a86666685d4100a2e3f9767496..7a26a0a630927d26cbb0f65dfc636e1616549d53 100644 --- a/ets2panda/test/ast/compiler/ets/template_fold.ets +++ b/ets2panda/test/ast/compiler/ets/template_fold.ets @@ -15,5 +15,4 @@ `\0#{(new (Reflect)() ? new () : {f: [], : 2})}${true}` -/* @@? 16:2 Error SyntaxError: Octal escape sequences are not allowed in template strings. */ - +/* @@? 16:2 Error Syntax error ESY0247: Octal escape sequences are not allowed in template strings. */ diff --git a/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets b/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets index 6ed9b3f87fb83ee8260d2645091eaf2d628e7325..e8feb9af28416c7fa280a81c934beeb336943cc1 100644 --- a/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets +++ b/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets @@ -21,5 +21,5 @@ class Klass { static a: int = 12; } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ -/* @@@ label1 Error TypeError: 'a' is a static property of 'Klass' */ +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@@ label1 Error Semantic error ESE0207: 'a' is a static property of 'Klass' */ diff --git a/ets2panda/test/ast/compiler/ets/this_expr_invalid_call_in_annotation_decl.ets b/ets2panda/test/ast/compiler/ets/this_expr_invalid_call_in_annotation_decl.ets index ff742c6bddad68f907eee6c43571c03d026d81ba..12d9f45c77fe791f96f719f8267d2d2016c1d3a9 100644 --- a/ets2panda/test/ast/compiler/ets/this_expr_invalid_call_in_annotation_decl.ets +++ b/ets2panda/test/ast/compiler/ets/this_expr_invalid_call_in_annotation_decl.ets @@ -19,4 +19,4 @@ ] } -/* @@? 17:28 Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ +/* @@? 17:28 Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets b/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets index 2bb53db77eab4763747c63a019afb22ce2c763a1..260345f5f8ecc27e9b6db9d6c62311d08fcfb7fe 100644 --- a/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets +++ b/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets @@ -24,4 +24,4 @@ function main(): void { } catch (e) {} } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ diff --git a/ets2panda/test/ast/compiler/ets/tolocalString.ets b/ets2panda/test/ast/compiler/ets/tolocalString.ets index e2576c4fd4f6f5090b1070e2e577071dae29c3c0..87e776aa0736dddde4df66777727849589d4d8cd 100644 --- a/ets2panda/test/ast/compiler/ets/tolocalString.ets +++ b/ets2panda/test/ast/compiler/ets/tolocalString.ets @@ -17,4 +17,4 @@ class A { toLocaleString = () => {} } -/* @@? 16:7 Error TypeError: Cannot inherit from class Object, because field toLocaleString is inherited with a different declaration type */ +/* @@? 16:7 Error Semantic error ESE0216: Cannot inherit from class Object, because field toLocaleString is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/compiler/ets/trailing_lambda.ets b/ets2panda/test/ast/compiler/ets/trailing_lambda.ets index 4de45fbe09f703a899d9c2eba8dabc2ba5165117..08f6c56520518ab09c002bbc819b2cd2d8cb16ed 100644 --- a/ets2panda/test/ast/compiler/ets/trailing_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/trailing_lambda.ets @@ -25,8 +25,8 @@ Obb.foos(){} Error().fromEntries() {} -/* @@? 23:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:1 Error TypeError: No matching call signature */ -/* @@? 26:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 26:1 Error TypeError: No matching call signature */ -/* @@? 26:9 Error TypeError: 'fromEntries' is a static property of 'Error' */ \ No newline at end of file +/* @@? 23:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:1 Error Semantic error ESE0128: No matching call signature */ +/* @@? 26:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 26:1 Error Semantic error ESE0128: No matching call signature */ +/* @@? 26:9 Error Semantic error ESE0207: 'fromEntries' is a static property of 'Error' */ diff --git a/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets b/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets index 4efd4a36f80aa0467017aeb9216d00588d215dac..f359a75f6ccc01e0d1f785a3ae2c62e3c78e2d52 100644 --- a/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets +++ b/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets @@ -23,4 +23,4 @@ function main(): void { } } -/* @@@ label Error TypeError: Default catch clause should be the last in the try statement */ +/* @@@ label Error Semantic error ESE0034: Default catch clause should be the last in the try statement */ diff --git a/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets b/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets index b2f1731f602830064845198374938f2c00396ab7..d8f9c824ede6dfb5e12c088e784bd57c0bc0bdfc 100644 --- a/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets +++ b/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets @@ -21,4 +21,4 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/compiler/ets/try_catch_already_declared.ets b/ets2panda/test/ast/compiler/ets/try_catch_already_declared.ets index 81a718b1216d20cff6c6eb00c6b894779ecc47d6..036f03e78bad78e9f4132d31c3ab432061a01efe 100644 --- a/ets2panda/test/ast/compiler/ets/try_catch_already_declared.ets +++ b/ets2panda/test/ast/compiler/ets/try_catch_already_declared.ets @@ -18,4 +18,4 @@ try { let a = 1 } -/* @@? 18:9 Error TypeError: Variable 'a' has already been declared. */ +/* @@? 18:9 Error Syntax error ESY0000: Variable 'a' has already been declared. */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_10_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_10_neg.ets index b03095bb29c8f63584f53ab314ea686c0139ae6b..d6188ec89c0caf35a206556089ddfee02be30e83 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_10_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_10_neg.ets @@ -19,4 +19,4 @@ function main(): void { let b: [number, number, number] = /* @@ label */a; } -/* @@@ label Error TypeError: Type '[Double, Double]' cannot be assigned to type '[Double, Double, Double]' */ +/* @@@ label Error Semantic error ESE0318: Type '[Double, Double]' cannot be assigned to type '[Double, Double, Double]' */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_11_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_11_neg.ets index b6a37f7126cb07e239ba9a58b735f2b9fe0e6b4b..8bba2dbedc5815228ec0c9c7deba1641237588b1 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_11_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_11_neg.ets @@ -19,4 +19,4 @@ function main(): void { let b: [number, number] = /* @@ label */a; } -/* @@@ label Error TypeError: Type '[Double, Double, Double]' cannot be assigned to type '[Double, Double]' */ +/* @@@ label Error Semantic error ESE0318: Type '[Double, Double, Double]' cannot be assigned to type '[Double, Double]' */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_1_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_1_neg.ets index ea8e9d99a571a33951a62d101b72f40b3ca9978b..5ee28fd0eec5a2df79751a143cb4b8f83eb5fd33 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_1_neg.ets @@ -18,4 +18,4 @@ function main(): void { const array: (number|boolean) [] = tuple } -/* @@? 18:40 Error TypeError: Type '[Double, Double, Boolean]' cannot be assigned to type 'Array' */ +/* @@? 18:40 Error Semantic error ESE0318: Type '[Double, Double, Boolean]' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_2_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_2_neg.ets index d89ff56fa7eb32821021af1d21aacbf01ab56839..355b361d4cd846d358281945095793b35b716598 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_2_neg.ets @@ -19,4 +19,4 @@ function main(): void { a[/* @@ label */2]; } -/* @@@ label Error TypeError: Element accessor value is out of tuple size bounds. */ +/* @@@ label Error Semantic error ESE0198: Element accessor value is out of tuple size bounds. */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_3_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_3_neg.ets index 9ca00bbcd50a49bdf1f2a46bd7c814dc839945d0..e523ec19b17431981ca4410eb74aaacb1e61d72c 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_3_neg.ets @@ -18,4 +18,4 @@ function main(): void { let a: [number] = /* @@ label */[1, 2]; } -/* @@@ label Error TypeError: Initializer has 2 elements, but tuple requires 1 */ +/* @@@ label Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 1 */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_4_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_4_neg.ets index ec42c5f8b753a59f1b52ab4df6185cc9c67aa2f6..fe9fe4bb8ea7ed0836c9c24659ca2594a2ebe847 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_4_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_4_neg.ets @@ -18,4 +18,4 @@ function main(): void { let a: [number, number] = /* @@ label */[1]; } -/* @@@ label Error TypeError: Initializer has 1 elements, but tuple requires 2 */ +/* @@@ label Error Semantic error ESE0231: Initializer has 1 elements, but tuple requires 2 */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_5_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_5_neg.ets index 6ccc172df0ffdffd33487c0ac07d36213729e7da..8cdcfdf0ac9162627dd7794b78d8ee691edc453c 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_5_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_5_neg.ets @@ -18,8 +18,8 @@ function main(): void { let a: [number, ...number[]] = [1]; } -/* @@? 18:21 Error SyntaxError: Invalid Type. */ -/* @@? 18:21 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:21 Error SyntaxError: Unexpected token '...'. */ -/* @@? 18:24 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 18:32 Error SyntaxError: Unexpected token ']'. */ +/* @@? 18:21 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:21 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:21 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 18:24 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 18:32 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_9_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_9_neg.ets index ea48bd251d88f0246ff63e8ff3fe23bb9b4410ea..096ec7518f03981058a8dde2d4378b89211b36fb 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_9_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_9_neg.ets @@ -19,8 +19,8 @@ function main(): void { let b: [number, string, Int] = /* @@ label */a; } -/* @@? 18:29 Error SyntaxError: Invalid Type. */ -/* @@? 18:29 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:29 Error SyntaxError: Unexpected token '...'. */ -/* @@? 18:32 Error SyntaxError: Unexpected token 'Int'. */ -/* @@? 18:37 Error SyntaxError: Unexpected token ']'. */ +/* @@? 18:29 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:29 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:29 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 18:32 Error Syntax error ESY0227: Unexpected token 'Int'. */ +/* @@? 18:37 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets index 34a2d31c5a5412e10a0a02a091d94183e2ffbf59..aa5d0085849c526bb5d9be9f15ade3be25ea7980 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets @@ -14,5 +14,4 @@ */ let v: [number]|null = ["A"] -/* @@? 15:25 Error TypeError: Array initializer's type is not assignable to tuple type at index: 0 */ - +/* @@? 15:25 Error Semantic error ESE0057: Array initializer's type is not assignable to tuple type at index: 0 */ diff --git a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets index 976f1c71f6cdaf3aa8f97d3ada30bf5e0e532b3b..df77ce7737666ce775626c306478ac8a05d0b5e5 100644 --- a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets +++ b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets @@ -18,4 +18,4 @@ type ValueAlias = Record<"val", V>; declare function value(): ValueAlias; -/* @@@ label Error TypeError: Type argument 'U' should be a subtype of 'String'-constraint */ +/* @@? 16:37 Error Semantic error ESE0000: Cannot find name Record */ diff --git a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets index 96cf4d03326b0bafb8935e69cb3d221657f63c8c..011b2a76d60f579cd5d86f17f1c3fa76f30aef43 100644 --- a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets +++ b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets @@ -20,4 +20,4 @@ declare function value(): ValueAlias; /* @@ label */value(); -/* @@@ label Error TypeError: No matching call signature */ +/* @@? 16:38 Error Semantic error ESE0000: Cannot find name Record */ diff --git a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets index 7378bd24f9ea49436f55c00fad536ef825b814b9..5cdb5d8ca12775c8f283e424273481f07400d149 100644 --- a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets +++ b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets @@ -18,5 +18,4 @@ type A = T; let v: A; -/* @@@ label1 Error TypeError: Type argument 'Int' should be a subtype of 'String'-constraint */ -/* @@@ label2 Error TypeError: Type argument 'String' should be a subtype of 'Numeric'-constraint */ +/* @@? 16:47 Error Semantic error ESE0000: This reference refers to a value, but is being used as a type here. Did you mean to use 'typeof'? */ diff --git a/ets2panda/test/ast/compiler/ets/typeOfString.ets b/ets2panda/test/ast/compiler/ets/typeOfString.ets index 24481e1f3291c5bc61a6672a35b09e1253cc03cd..ff92028ac54d4aa54473df962a6d0fe9c44d4f93 100644 --- a/ets2panda/test/ast/compiler/ets/typeOfString.ets +++ b/ets2panda/test/ast/compiler/ets/typeOfString.ets @@ -15,4 +15,4 @@ V = typeof `m` -/* @@? 16:1 Error TypeError: Unresolved reference V */ +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference V */ diff --git a/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets b/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets index 0e3ad5e269f9278d42d574b5660b092f9841abd7..7f40053e09818af7f5659286adce29527ba653c9 100644 --- a/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets +++ b/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets @@ -19,4 +19,4 @@ class Klass { } } -/* @@@ label Error TypeError: Cannot make a static reference to the non-static type T */ +/* @@@ label Error Semantic error ESE0288: Cannot make a static reference to the non-static type T */ diff --git a/ets2panda/test/ast/compiler/ets/type_alise_with_lambda.ets b/ets2panda/test/ast/compiler/ets/type_alise_with_lambda.ets index 3b39e198c9b2f0474894efc6606986117daa8b22..d2594c9bdc4fa1db19d043016b97e8c9b1ca127f 100644 --- a/ets2panda/test/ast/compiler/ets/type_alise_with_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/type_alise_with_lambda.ets @@ -15,6 +15,4 @@ export type L T> -/* @@? 16:26 Error TypeError: Cannot find type 'T'. */ -/* @@? 21:1 Error SyntaxError: Expected '=', got 'end of stream'. */ -/* @@? 21:1 Error SyntaxError: Invalid Type. */ +/* @@? 21:1 Error Syntax error ESY0000: '=' expected */ diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/not_constructible_types.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/not_constructible_types.ets index 46b03a8e16d9cb89c6776cf7ad86ced8efba602c..6e6d7433504bee93ec54dc22a79db5a19da13401 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/not_constructible_types.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/not_constructible_types.ets @@ -28,12 +28,12 @@ WeakSet [12] = new undefined() // *NOTE* error has printed twice, that is known issue #20560 -/* @@? 16:9 Error TypeError: Type 'null' is not constructible. */ -/* @@? 17:1 Error TypeError: Type 'null' is not constructible. */ -/* @@? 18:1 Error TypeError: Type 'undefined' is not constructible. */ -/* @@? 19:1 Error TypeError: Type 'never' is not constructible. */ -/* @@? 20:1 Error TypeError: This expression is not constructible. */ -/* @@? 23:1 Error TypeError: The union type is not constructible. */ -/* @@? 26:1 Error TypeError: Object type doesn't have proper index access method. */ -/* @@? 26:1 Error SyntaxError: Class cannot be used as object. */ -/* @@? 26:16 Error TypeError: Type 'undefined' is not constructible. */ +/* @@? 16:9 Error Semantic error ESE0290: Type 'null' is not constructible. */ +/* @@? 17:1 Error Semantic error ESE0290: Type 'null' is not constructible. */ +/* @@? 18:1 Error Semantic error ESE0290: Type 'undefined' is not constructible. */ +/* @@? 19:1 Error Semantic error ESE0290: Type 'never' is not constructible. */ +/* @@? 20:1 Error Semantic error ESE0292: This expression is not constructible. */ +/* @@? 23:1 Error Semantic error ESE0300: The union type is not constructible. */ +/* @@? 26:1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 26:1 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@? 26:16 Error Semantic error ESE0290: Type 'undefined' is not constructible. */ diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/param_typeannotation_null.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/param_typeannotation_null.ets index 71e76536db95195f451ec2584e8ae947aa24a29d..e5f954ba4991fab50687ddb3969bc6321173950b 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/param_typeannotation_null.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/param_typeannotation_null.ets @@ -20,4 +20,4 @@ interface inter { function foo(i: Partial>): void {} -/* @@? 18:17 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ +/* @@? 18:17 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/property_typeerror.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/property_typeerror.ets index 345a9e3ef7caa7a721626af9795859b8d9ecc564..3feeb6073ec8c31e3bea789e6935a3fbef95c9e6 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/property_typeerror.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/property_typeerror.ets @@ -19,11 +19,11 @@ class A { function foo (partial: Partial) {} -/* @@? 17:15 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:16 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:16 Error SyntaxError: Unexpected token 'break'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:15 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:16 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:16 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:16 Error Syntax error ESY0227: Unexpected token 'break'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/type_handlers.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/type_handlers.ets index f3cc9e64c33dc67868eca46d1e389b42f69e6568..e41985955f0929d0653c7f7c1862cf5f52bdf30e 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/type_handlers.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/type_handlers.ets @@ -37,14 +37,12 @@ type T13 = Required type T14 = Required type T15 = Required -/* @@? 22:18 Error TypeError: Invalid number of type parameters for Partial type, should be 1. */ -/* @@? 24:18 Error TypeError: Invalid number of type parameters for Partial type, should be 1. */ -/* @@? 25:18 Error TypeError: Invalid number of type parameters for Partial type, should be 1. */ - -/* @@? 28:19 Error TypeError: Invalid number of type parameters for Readonly type, should be 1. */ -/* @@? 30:19 Error TypeError: Invalid number of type parameters for Readonly type, should be 1. */ -/* @@? 31:19 Error TypeError: Invalid number of type parameters for Readonly type, should be 1. */ - -/* @@? 34:20 Error TypeError: Invalid number of type parameters for Required type, should be 1. */ -/* @@? 36:20 Error TypeError: Invalid number of type parameters for Required type, should be 1. */ -/* @@? 37:20 Error TypeError: Invalid number of type parameters for Required type, should be 1. */ +/* @@? 22:18 Error Semantic error ESE0223: Invalid number of type parameters for Partial type, should be 1. */ +/* @@? 24:18 Error Semantic error ESE0223: Invalid number of type parameters for Partial type, should be 1. */ +/* @@? 25:18 Error Semantic error ESE0223: Invalid number of type parameters for Partial type, should be 1. */ +/* @@? 28:19 Error Semantic error ESE0223: Invalid number of type parameters for Readonly type, should be 1. */ +/* @@? 30:19 Error Semantic error ESE0223: Invalid number of type parameters for Readonly type, should be 1. */ +/* @@? 31:19 Error Semantic error ESE0223: Invalid number of type parameters for Readonly type, should be 1. */ +/* @@? 34:20 Error Semantic error ESE0223: Invalid number of type parameters for Required type, should be 1. */ +/* @@? 36:20 Error Semantic error ESE0223: Invalid number of type parameters for Required type, should be 1. */ +/* @@? 37:20 Error Semantic error ESE0223: Invalid number of type parameters for Required type, should be 1. */ diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/var_without_def.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/var_without_def.ets index 39be4eb79ae1de0b0bfcc5da375cd306abe800a6..46c1df3edc29a6420e6db2b484e7bc3029c88fa8 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/var_without_def.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/var_without_def.ets @@ -24,7 +24,7 @@ function foo() { void = [([...asyncGenerator])] } -/* @@? 16:1 Error TypeError: Unresolved reference a */ -/* @@? 20:1 Error TypeError: Unresolved reference c */ -/* @@? 24:5 Error SyntaxError: Unexpected token 'void'. */ -/* @@? 24:18 Error TypeError: Unresolved reference asyncGenerator */ +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 20:1 Error Semantic error ESE0143: Unresolved reference c */ +/* @@? 24:5 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@? 24:18 Error Semantic error ESE0143: Unresolved reference asyncGenerator */ diff --git a/ets2panda/test/ast/compiler/ets/type_error_test2.ets b/ets2panda/test/ast/compiler/ets/type_error_test2.ets index 08c72c921ab06fa7752e36ba967dfb6a2c01800c..ca7c69cc550ffec3a090a21c04fa4d431af65378 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_test2.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_test2.ets @@ -15,17 +15,17 @@ let f:(c:string, ...abe])=>void = (c:be ...abe])=>{} -/* @@? 16:18 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 16:24 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:24 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:35 Error TypeError: Type '(c: *ERROR_TYPE*) => void' cannot be assigned to type '(c: String, ...abe: *ERROR_TYPE*) => void' */ -/* @@? 16:38 Error TypeError: Cannot find type 'be'. */ -/* @@? 16:41 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:41 Error SyntaxError: Expected '=>', got '...'. */ -/* @@? 16:41 Error SyntaxError: Unexpected token '...'. */ -/* @@? 16:41 Error TypeError: Unexpected return value, enclosing method return type is void. */ -/* @@? 16:44 Error SyntaxError: Unexpected token 'abe'. */ -/* @@? 16:44 Error TypeError: Unresolved reference abe */ -/* @@? 16:47 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:48 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:49 Error SyntaxError: Unexpected token '=>'. */ +/* @@? 16:18 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 16:24 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:24 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:35 Error Semantic error ESE0318: Type '(c: *ERROR_TYPE*) => void' cannot be assigned to type '(c: String, ...abe: *ERROR_TYPE*) => void' */ +/* @@? 16:38 Error Semantic error ESE0371: Cannot find type 'be'. */ +/* @@? 16:41 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:41 Error Syntax error ESY0230: Expected '=>', got '...'. */ +/* @@? 16:41 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 16:41 Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ +/* @@? 16:44 Error Syntax error ESY0227: Unexpected token 'abe'. */ +/* @@? 16:44 Error Semantic error ESE0143: Unresolved reference abe */ +/* @@? 16:47 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:48 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:49 Error Syntax error ESY0227: Unexpected token '=>'. */ diff --git a/ets2panda/test/ast/compiler/ets/typealias_conflict_with_builtin.ets b/ets2panda/test/ast/compiler/ets/typealias_conflict_with_builtin.ets index 80fc58e64188eedb24fa7c62050c0ad92d25ce3d..7130f86243eff3a55366b4dd5878a70f7b89ce58 100644 --- a/ets2panda/test/ast/compiler/ets/typealias_conflict_with_builtin.ets +++ b/ets2panda/test/ast/compiler/ets/typealias_conflict_with_builtin.ets @@ -15,4 +15,4 @@ type Type = int; -/* @@? 1:3 Error TypeError: Class 'Type' is already defined with different type. */ +/* @@? 1:3 Error Semantic error ESE0350: Class 'Type' is already defined with different type. */ diff --git a/ets2panda/test/ast/compiler/ets/typealias_default_type_01.ets b/ets2panda/test/ast/compiler/ets/typealias_default_type_01.ets index b7051016a8b9613cff7ce9aa7589dc585c3b65d5..18c9d322d26c14e48d1778c07b9449446dbddc2e 100644 --- a/ets2panda/test/ast/compiler/ets/typealias_default_type_01.ets +++ b/ets2panda/test/ast/compiler/ets/typealias_default_type_01.ets @@ -23,4 +23,4 @@ function test2(call: ErrorCallBack2) { } // should be error because typeParam ha function test3(call: ErrorCallBack2) { } // should be ok because we have explicitly provided a type. -/* @@? 22:22 Error TypeError: Type alias declaration is generic, but too few type arguments were provided */ \ No newline at end of file +/* @@? 22:22 Error Semantic error ESE0155: Type alias declaration is generic, but too few type arguments were provided */ diff --git a/ets2panda/test/ast/compiler/ets/typealias_default_type_02.ets b/ets2panda/test/ast/compiler/ets/typealias_default_type_02.ets index 9f91a1fe204dd57a024b9c768f51b2d1ae9ca5f4..332b14fc544781c9a0ac3a1e457a8c8f7172dab5 100644 --- a/ets2panda/test/ast/compiler/ets/typealias_default_type_02.ets +++ b/ets2panda/test/ast/compiler/ets/typealias_default_type_02.ets @@ -31,6 +31,6 @@ function test5(call: ErrorCallBack3) { } // should be ok because the sec function test6(call: ErrorCallBack3) { } // should be error -/* @@? 24:22 Error TypeError: Type alias declaration is generic, but too few type arguments were provided */ -/* @@? 26:36 Error TypeError: Expected at least 2 type arguments, but got 1. */ -/* @@? 32:22 Error TypeError: Type alias declaration is generic, but too few type arguments were provided */ \ No newline at end of file +/* @@? 24:22 Error Semantic error ESE0155: Type alias declaration is generic, but too few type arguments were provided */ +/* @@? 26:36 Error Semantic error ESE0274: Expected at least 2 type arguments, but got 1. */ +/* @@? 32:22 Error Semantic error ESE0155: Type alias declaration is generic, but too few type arguments were provided */ diff --git a/ets2panda/test/ast/compiler/ets/typeof_on_primitive_and_ref_types.ets b/ets2panda/test/ast/compiler/ets/typeof_on_primitive_and_ref_types.ets index 11c112c76c0ee4180ad3b6836080bb83e7bc9a0c..cfc295d3d31dcde60bbb7acb826f812a995e9bfb 100644 --- a/ets2panda/test/ast/compiler/ets/typeof_on_primitive_and_ref_types.ets +++ b/ets2panda/test/ast/compiler/ets/typeof_on_primitive_and_ref_types.ets @@ -36,5 +36,5 @@ function main() { } -/* @@@ label1 Error TypeError: Variable 'a2' is used before being assigned. */ -/* @@@ label2 Error TypeError: Variable 'a2' is used before being assigned. */ +/* @@@ label1 Error Semantic error ESE0375: Variable 'a2' is used before being assigned. */ +/* @@@ label2 Error Semantic error ESE0375: Variable 'a2' is used before being assigned. */ diff --git a/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets b/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets index 5e15bcbf7dada134279d2b9f12f5c685e0b3a4ab..98a5e3dbd5771f728c8cfdec90f97ea8b704c42a 100644 --- a/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets +++ b/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets @@ -20,13 +20,4 @@ let pthen = byteP.then((value ? Object): Object => { }); await byteP; -/* @@? 16:30 Error TypeError: Unresolved reference byteFunc */ -/* @@? 17:41 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:41 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:41 Error SyntaxError: Expected '=>', got 'identification literal'. */ -/* @@? 17:41 Error SyntaxError: Class cannot be used as object. */ -/* @@? 17:48 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:50 Error SyntaxError: Unexpected token 'Object'. */ -/* @@? 17:50 Error TypeError: The type of parameter 'Object' cannot be inferred */ -/* @@? 18:12 Error TypeError: Unresolved reference value */ -/* @@? 20:2 Error SyntaxError: Unexpected token ')'. */ \ No newline at end of file +/* @@? 17:41 Error Syntax error ESY0000: Unexpected token, expected ')' */ diff --git a/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets b/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets index c5bb53c7ebb55422acc3f0b24ff8b109b185e907..e8d78a3be20c73a201184b1d3b43a3c60610bd45 100644 --- a/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets +++ b/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets @@ -15,4 +15,4 @@ function foo(a?){} -/* @@? 16:16 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ \ No newline at end of file +/* @@? 16:14 Error Semantic error ESE0000: Parameter a implicitly has any type. */ diff --git a/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets b/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets index f03ea9734f398242b012ee3ac1dfefae39255300..b8286a9fe594bba4f8c081399ef247d53108cadb 100644 --- a/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets +++ b/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets @@ -51,10 +51,10 @@ function main() { arktest.assertEQ(/* @@ label8 */u.fld8, new Map()) } -/* @@@ label1 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label3 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label4 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label5 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label6 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label7 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label8 Error TypeError: Member type must be the same for all union objects. */ +/* @@@ label1 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label3 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label4 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label5 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label6 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label7 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label8 Error Semantic error ESE0244: Member type must be the same for all union objects. */ diff --git a/ets2panda/test/ast/compiler/ets/unionType_clone.ets b/ets2panda/test/ast/compiler/ets/unionType_clone.ets index 1af439f0e8543de1bee657ea7694ae31acac4155..3c3e4a1ba2d4370040dd13b7bd39698b7ede7d2a 100644 --- a/ets2panda/test/ast/compiler/ets/unionType_clone.ets +++ b/ets2panda/test/ast/compiler/ets/unionType_clone.ets @@ -22,16 +22,16 @@ function castValueKoBoolean(value ?: boolect) { if (value instanceof String) { value += "Hello Smar/* -/* @@? 16:38 Error TypeError: Cannot find type 'boolect'. */ -/* @@? 17:26 Error TypeError: Cannot find type 'Sean'. */ -/* @@? 21:3 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:5 Error SyntaxError: Unexpected token 'xml'. */ -/* @@? 21:5 Error TypeError: Unresolved reference xml */ -/* @@? 21:36 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 21:36 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:38 Error SyntaxError: Unexpected token 'Object'. */ -/* @@? 21:38 Error SyntaxError: Class cannot be used as object. */ -/* @@? 21:44 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:46 Error SyntaxError: Unexpected token '{'. */ -/* @@? 23:18 Error SyntaxError: Newline is not allowed in strings */ -/* @@? 37:70 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 16:38 Error Semantic error ESE0371: Cannot find type 'boolect'. */ +/* @@? 17:26 Error Semantic error ESE0371: Cannot find type 'Sean'. */ +/* @@? 21:3 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:5 Error Syntax error ESY0227: Unexpected token 'xml'. */ +/* @@? 21:5 Error Semantic error ESE0143: Unresolved reference xml */ +/* @@? 21:36 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:36 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 21:38 Error Syntax error ESY0227: Unexpected token 'Object'. */ +/* @@? 21:38 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 21:44 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:46 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 23:18 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@? 37:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/compiler/ets/union_array_declaration.ets b/ets2panda/test/ast/compiler/ets/union_array_declaration.ets index f64c5e85dfd3074ec59af8cb9cdbd87c12b1e55b..67d76009bface0f77023d02a210e83d39f5ffadb 100644 --- a/ets2panda/test/ast/compiler/ets/union_array_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/union_array_declaration.ets @@ -21,4 +21,4 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: Can't resolve array type */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0301: Can't resolve array type */ diff --git a/ets2panda/test/ast/compiler/ets/union_field_access.ets b/ets2panda/test/ast/compiler/ets/union_field_access.ets index 33cb90075f7fa1295cef7c0d4e22a26a10d9202c..5a5ddc3ec05cc49a5e192a97e7ff6ce1b8c1dbc7 100644 --- a/ets2panda/test/ast/compiler/ets/union_field_access.ets +++ b/ets2panda/test/ast/compiler/ets/union_field_access.ets @@ -28,4 +28,4 @@ function IfWithString(val: U) { return /* @@ label */val['kind'] === 'B' } -/* @@@ label Error TypeError: Indexed access is not supported for such expression type. */ +/* @@@ label Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/compiler/ets/union_field_access_2.ets b/ets2panda/test/ast/compiler/ets/union_field_access_2.ets index 8f9fd604200891c531d16c50c85e7f13565b8d3c..c5a6b48627bc82255adf3f38dd2c1fa742b73725 100644 --- a/ets2panda/test/ast/compiler/ets/union_field_access_2.ets +++ b/ets2panda/test/ast/compiler/ets/union_field_access_2.ets @@ -17,13 +17,13 @@ (a ? delete arguments==({: false, Float64Array: []}) : [ArrayBuffer[false]]) -/* @@? 18:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 18:2 Error TypeError: Unresolved reference a */ -/* @@? 18:6 Error TypeError: Types cannot be modified at runtime with 'delete'. */ -/* @@? 18:13 Error SyntaxError: Unexpected token. */ -/* @@? 18:13 Error TypeError: Unresolved reference arguments */ -/* @@? 18:24 Error TypeError: need to specify target type for class composite */ -/* @@? 18:26 Error SyntaxError: Unexpected token. */ -/* @@? 18:28 Error SyntaxError: Unexpected token. */ -/* @@? 18:54 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 18:76 Error SyntaxError: Unexpected token ')'. */ +/* @@? 18:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 18:2 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 18:6 Error Semantic error ESE55815: Types cannot be modified at runtime with 'delete'. */ +/* @@? 18:13 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:13 Error Semantic error ESE0143: Unresolved reference arguments */ +/* @@? 18:24 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 18:26 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:28 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:54 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 18:76 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/compiler/ets/union_generic_class_neg.ets b/ets2panda/test/ast/compiler/ets/union_generic_class_neg.ets index df0895904f95a6d29227998b0d60d3f9817d4480..2ddb2b017b11b39d06384b6ce03fbb1371c5e209 100644 --- a/ets2panda/test/ast/compiler/ets/union_generic_class_neg.ets +++ b/ets2panda/test/ast/compiler/ets/union_generic_class_neg.ets @@ -42,7 +42,7 @@ function main() { arktest.assertEQ(u4.fld, 'a') } -/* @@? 38:22 Error TypeError: Member type must be the same for all union objects. */ -/* @@? 39:22 Error TypeError: Member type must be the same for all union objects. */ -/* @@? 41:22 Error TypeError: Member type must be the same for all union objects. */ -/* @@? 42:22 Error TypeError: Member type must be the same for all union objects. */ +/* @@? 38:22 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@? 39:22 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@? 41:22 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@? 42:22 Error Semantic error ESE0244: Member type must be the same for all union objects. */ diff --git a/ets2panda/test/ast/compiler/ets/union_method_4.ets b/ets2panda/test/ast/compiler/ets/union_method_4.ets index ec919acd347782273ac29d284e84064e1767b3e6..83c43c7dddbc2048a64eff70ff70f43b970d436c 100644 --- a/ets2panda/test/ast/compiler/ets/union_method_4.ets +++ b/ets2panda/test/ast/compiler/ets/union_method_4.ets @@ -31,7 +31,7 @@ function bar(x: A|B) { /* @@ label2 */x.bar("123") } -/* @@@ label Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label Error TypeError: No matching call signature */ -/* @@@ label2 Error TypeError: Signature bar(v: String): void is not visible here. */ -/* @@@ label2 Error TypeError: No matching call signature for bar("123") */ +/* @@@ label Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ +/* @@@ label2 Error Semantic error ESE0139: Signature bar(v: String): void is not visible here. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for bar("123") */ diff --git a/ets2panda/test/ast/compiler/ets/union_overload_crash.ets b/ets2panda/test/ast/compiler/ets/union_overload_crash.ets index 01d75715b7a7840938025bb0989de29ffe62b83d..8727b81b384f22c91a53af030560339935d3de98 100644 --- a/ets2panda/test/ast/compiler/ets/union_overload_crash.ets +++ b/ets2panda/test/ast/compiler/ets/union_overload_crash.ets @@ -24,4 +24,4 @@ let a = new A(); (a as AVoidNumber).foo !== undefined -/* @@? 25:1 Error TypeError: Overloaded method is used as value */ +/* @@? 25:1 Error Semantic error ESE0307: Overloaded method is used as value */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_1.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_1.ets index 4ca936f70bacd09677c50c23a9d55e6add565114..8c010e6ea190e6a566de2157618ae1493df4688e 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_1.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_1.ets @@ -18,4 +18,4 @@ function foo(a: T) { return a } -/* @@@ label Error TypeError: Type '"abc"' cannot be assigned to type 'T' */ +/* @@@ label Error Semantic error ESE0318: Type '"abc"' cannot be assigned to type 'T' */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_2.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_2.ets index 2f55423922a933942dd5895b55213afe85ccd41c..f35fc3379c8476063d4c13177e797a3e789d4693 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_2.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_2.ets @@ -23,5 +23,5 @@ function main(): void { /* @@ label */foo<"abc">(/* @@ label1 */"ff"); } -/* @@@ label1 Error TypeError: Type '"ff"' is not compatible with type '"abc"' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo("ff") */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo("ff") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"ff"' is not compatible with type '"abc"' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_3.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_3.ets index d3fdd89efbe9c0d5180afab1fe991cd2938980c0..a0bd7e30b417744f5c566eecdac79b0e912d019e 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_3.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_3.ets @@ -16,4 +16,4 @@ type UT = "abc" | "bcd" | "cde" let a: UT = /* @@ label */"abcde" -/* @@@ label Error TypeError: Type '"abcde"' cannot be assigned to type '"abc"|"bcd"|"cde"' */ +/* @@@ label Error Semantic error ESE0318: Type '"abcde"' cannot be assigned to type '"abc"|"bcd"|"cde"' */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_5.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_5.ets index e23cc141a4c7e7e5cac266f78123d7080161cc7f..9cbdf6c316120b7c11c28840e4317ca1a6c06e5d 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_5.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_5.ets @@ -17,4 +17,4 @@ function f1(x: number|string, y: boolean|null): boolean { return /* @@ label */x == y } -/* @@@ label Error TypeError: Operator '==' cannot be applied to types 'Double|String' and 'Boolean|null'. */ +/* @@@ label Error Semantic error ESE0105: Operator '==' cannot be applied to types 'Double|String' and 'Boolean|null'. */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_6.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_6.ets index fe111c8edc03e57e698fd712bfbd2c24c29844da..2ec71ff6cd5363e837c1cf513002984294fb5bbe 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_6.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_6.ets @@ -24,4 +24,4 @@ function main() { } } -/* @@@ label Error TypeError: Operator '==' cannot be applied to types '"a"|"b"|"c"' and '"d"'. */ +/* @@@ label Error Semantic error ESE0105: Operator '==' cannot be applied to types '"a"|"b"|"c"' and '"d"'. */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_7.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_7.ets index f723e13d1855feb0f698a8d6201b7a32216c8abf..6b6cb35f6dfd425ebecb4a6e750ff4270a201ef3 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_7.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_7.ets @@ -20,5 +20,5 @@ function foo(a: "aa"|"bb") { let x = ["aa", "bb", "aa"] // type of x is FixedArray let y = foo(x) -/* @@? 21:9 Error TypeError: No matching call signature for foo(Array) */ -/* @@? 21:13 Error TypeError: Type 'Array' is not compatible with type '"aa"|"bb"' at index 1 */ +/* @@? 21:9 Error Semantic error ESE0127: No matching call signature for foo(Array) */ +/* @@? 21:13 Error Semantic error ESE0046: Type 'Array' is not compatible with type '"aa"|"bb"' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_8.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_8.ets index 1b84b36edde24468edab05646668cef6652e663a..6b0fdf369acffc472280aef8d907f17c9ed8a028 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_8.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_8.ets @@ -22,5 +22,5 @@ declare let cond: boolean; let x = cond ? "aa" : "bb" // type of x is string let y = foo(x) -/* @@? 23:13 Error TypeError: Type 'String' is not compatible with type '"aa"|"bb"' at index 1 */ -/* @@? 23:9 Error TypeError: No matching call signature for foo(String) */ +/* @@? 23:9 Error Semantic error ESE0127: No matching call signature for foo(String) */ +/* @@? 23:13 Error Semantic error ESE0046: Type 'String' is not compatible with type '"aa"|"bb"' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/union_types_2.ets b/ets2panda/test/ast/compiler/ets/union_types_2.ets index 8359a4b770fb929e2107e78563172faa4bac4cfd..1c5a8381f00adb373883634a86794c853b0a086b 100644 --- a/ets2panda/test/ast/compiler/ets/union_types_2.ets +++ b/ets2panda/test/ast/compiler/ets/union_types_2.ets @@ -39,4 +39,4 @@ function main() { foo(x); } -/* @@@ label Error TypeError: Property 'num' does not exist on type 'A' */ +/* @@@ label Error Semantic error ESE0087: Property 'num' does not exist on type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/union_types_4.ets b/ets2panda/test/ast/compiler/ets/union_types_4.ets index f22ce635f51e9f947df5343ad481105d66559f9e..3532f21967d14cd88b309cad69d465afa7189469 100644 --- a/ets2panda/test/ast/compiler/ets/union_types_4.ets +++ b/ets2panda/test/ast/compiler/ets/union_types_4.ets @@ -30,4 +30,4 @@ function main() { x = /* @@ label */new B(); // CTE } -/* @@@ label Error TypeError: Type 'B' cannot be assigned to type 'String|Short|A' */ +/* @@@ label Error Semantic error ESE0318: Type 'B' cannot be assigned to type 'String|Short|A' */ diff --git a/ets2panda/test/ast/compiler/ets/union_types_forof_1.ets b/ets2panda/test/ast/compiler/ets/union_types_forof_1.ets index b13724b2d10945e3c15315d3c042c2b2c7793f73..ce193aba691b26b3da87606818f1d7b4bdd9163c 100644 --- a/ets2panda/test/ast/compiler/ets/union_types_forof_1.ets +++ b/ets2panda/test/ast/compiler/ets/union_types_forof_1.ets @@ -31,4 +31,4 @@ for (const item of testValues) { processValue(item); } -/* @@? 19:26 Error TypeError: Object type doesn't have proper iterator method. */ +/* @@? 19:26 Error Semantic error ESE0258: Object type doesn't have proper iterator method. */ diff --git a/ets2panda/test/ast/compiler/ets/unmatch_arg_for_trailing_lambda.ets b/ets2panda/test/ast/compiler/ets/unmatch_arg_for_trailing_lambda.ets index 81037bd2a560d695e393f4d1b2852abfa1225b60..439a86843a15e2843d7d2ce0f6d8ab487ff583ca 100644 --- a/ets2panda/test/ast/compiler/ets/unmatch_arg_for_trailing_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/unmatch_arg_for_trailing_lambda.ets @@ -19,8 +19,8 @@ foo(1, "2") foo(1, 1) foo(1, () => { return "1" }) -/* @@? 18:1 Error TypeError: No matching call signature for foo(Double, "2") */ -/* @@? 18:8 Error TypeError: Type '"2"' is not compatible with type '() => void|undefined' at index 2 */ -/* @@? 19:1 Error TypeError: No matching call signature for foo(Double, Int) */ -/* @@? 19:8 Error TypeError: Type 'Int' is not compatible with type '() => void|undefined' at index 2 */ -/* @@? 20:23 Error TypeError: Unexpected return value, enclosing method return type is void. */ +/* @@? 18:1 Error Semantic error ESE0127: No matching call signature for foo(Double, "2") */ +/* @@? 18:8 Error Semantic error ESE0046: Type '"2"' is not compatible with type '() => void|undefined' at index 2 */ +/* @@? 19:1 Error Semantic error ESE0127: No matching call signature for foo(Double, Int) */ +/* @@? 19:8 Error Semantic error ESE0046: Type 'Int' is not compatible with type '() => void|undefined' at index 2 */ +/* @@? 20:23 Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ diff --git a/ets2panda/test/ast/compiler/ets/unresolve_class_with_type_infer.ets b/ets2panda/test/ast/compiler/ets/unresolve_class_with_type_infer.ets index 9347301cc3f96cac0dba997c2b30dd0fec9a5b9e..ee9911a6efc6fdba61f85b2c4f56c465f214cdfd 100644 --- a/ets2panda/test/ast/compiler/ets/unresolve_class_with_type_infer.ets +++ b/ets2panda/test/ast/compiler/ets/unresolve_class_with_type_infer.ets @@ -19,4 +19,4 @@ function foo>(record: Record>){ foo({}) -/* @@? 16:39 Error TypeError: Cannot find type 'A'. */ +/* @@? 16:51 Error Semantic error ESE0000: Cannot find name Record */ diff --git a/ets2panda/test/ast/compiler/ets/unresolved_reference.ets b/ets2panda/test/ast/compiler/ets/unresolved_reference.ets index f2dff3a5f03ca1c9f2220cca228ded133516c56c..19f01e78161237d3141c55afbff7653fa8ed4ecb 100644 --- a/ets2panda/test/ast/compiler/ets/unresolved_reference.ets +++ b/ets2panda/test/ast/compiler/ets/unresolved_reference.ets @@ -37,5 +37,5 @@ function main() { let a = (new A).b } -/* @@? 28:13 Error TypeError: Unresolved reference b */ -/* @@? 37:21 Error TypeError: Property 'b' does not exist on type 'A' */ +/* @@? 28:13 Error Semantic error ESE0143: Unresolved reference b */ +/* @@? 37:21 Error Semantic error ESE0087: Property 'b' does not exist on type 'A' */ diff --git a/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/file1.ets b/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/file1.ets index f2b2c5a5597ebb6f33383e06f6ef81567433d221..12278a2ac211657c53d87b4115a2e9c42f143306 100644 --- a/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/file1.ets +++ b/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/file1.ets @@ -23,5 +23,5 @@ export function atomicTask() { return Atomics.load(shareArray, 0); } -/* @@? 21:17 Error TypeError: Unresolved reference shareArray */ -/* @@? 23:12 Error TypeError: Call to `load` is ambiguous as `2` versions of `load` are available: `load(typedArray: BigInt64Array, index: Double): BigInt` and `load(typedArray: BigUint64Array, index: Double): BigInt` */ +/* @@? 21:17 Error Semantic error ESE0143: Unresolved reference shareArray */ +/* @@? 23:12 Error Semantic error ESE0142: Call to `load` is ambiguous as `2` versions of `load` are available: `load(typedArray: BigInt64Array, index: Double): BigInt` and `load(typedArray: BigUint64Array, index: Double): BigInt` */ diff --git a/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/main_test.ets b/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/main_test.ets index d5901ed027ab34b7dfdb4452e19f09fb29e679bf..1681cda02dc1c9b0d0b764ce6ee815ba3d4fbc12 100644 --- a/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/main_test.ets +++ b/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/main_test.ets @@ -16,5 +16,5 @@ import {atomicTask} from "./file1" const task = new taskpool.Task(atomicTask); -/* @@? file1.ets:23:12 Error TypeError: Call to `load` is ambiguous as `2` versions of `load` are available: `load(typedArray: BigInt64Array, index: Double): BigInt` and `load(typedArray: BigUint64Array, index: Double): BigInt` */ -/* @@? file1.ets:23:25 Error TypeError: Unresolved reference shareArray */ +/* @@? file1.ets:23:12 Error Semantic error ESE0142: Call to `load` is ambiguous as `2` versions of `load` are available: `load(typedArray: BigInt64Array, index: Double): BigInt` and `load(typedArray: BigUint64Array, index: Double): BigInt` */ +/* @@? file1.ets:23:25 Error Semantic error ESE0143: Unresolved reference shareArray */ diff --git a/ets2panda/test/ast/compiler/ets/update_const.ets b/ets2panda/test/ast/compiler/ets/update_const.ets index 15ffd430673492a7e6c6f970300e7698288ade34..4c7eb7e47589890b52c58d62833f316bcd6c8b07 100644 --- a/ets2panda/test/ast/compiler/ets/update_const.ets +++ b/ets2panda/test/ast/compiler/ets/update_const.ets @@ -18,4 +18,4 @@ function main(): void { /* @@ label */++c; } -/* @@@ label Error TypeError: Cannot assign to a constant variable c */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a constant variable c */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_2_neg.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_2_neg.ets index df09abb5e1ee956798bed2bc2115dfee085086c2..f919fbce9db7c095fe7706f7690760dcbbfffbc0 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_2_neg.ets @@ -16,4 +16,4 @@ import { A as A } from "./export1.ets" -/* @@? 17:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 17:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_3_neg.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_3_neg.ets index 1b1cd257acd0d0cbf73be91edb3d5b127469f7ec..1540c1d929c7e9d58f0167633c4635801f887c7d 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_3_neg.ets @@ -16,4 +16,4 @@ import { A as A } from "./export1.ets" -/* @@? 17:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 17:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_neg.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_neg.ets index e0a410adc716e144cc402fdb62ae96b724f39a06..4f9da0a5c1abca2ea36343973a64cf0fbc72372f 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_neg.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_neg.ets @@ -16,4 +16,4 @@ import { A as A } from "./export1.ets" -/* @@? 17:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 17:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_middle_importdecl_neg.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_middle_importdecl_neg.ets index b048662c5703cee2ba8b580714f257041e2bc5f8..abc0e348b3e9d3a3d7e83e341d5d291d6a4a0639 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_middle_importdecl_neg.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_middle_importdecl_neg.ets @@ -17,4 +17,4 @@ import {A as A} from "./export1.ets" "use static" import {B as B} from "./export2.ets" -/* @@? 18:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 18:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/package_2_neg/flag_before_package.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/package_2_neg/flag_before_package.ets index ee44269d82572ab85a05a0214ff273283d4a6b39..a3751f02a0a626c4e34ffd4264ba7ee85b40bfe0 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/package_2_neg/flag_before_package.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/package_2_neg/flag_before_package.ets @@ -20,5 +20,5 @@ let str2:String = "use static" import {A as A} from "../export1.ets" import {B as B} from "../export2.ets" -/* @@? 20:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ -/* @@? 21:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 20:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 21:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/package_3_neg/flag_before_package.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/package_3_neg/flag_before_package.ets index 55490f06d0b94f607cc3ecab80a8e8b9cc0eddd2..79768c473d9e1986e9aaadf9d54ccbeb591835bf 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/package_3_neg/flag_before_package.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/package_3_neg/flag_before_package.ets @@ -20,6 +20,6 @@ package usestaticpackage3; import {A as A} from "../export1.ets" import {B as B} from "../export2.ets" -/* @@? 19:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? 20:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ -/* @@? 21:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 19:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 20:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 21:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package.ets index ae374bb21fb24b2b877438455e694bd9f3e729cd..037cf8693c5ddf4528d15798d07fec30cd4ee3c3 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package.ets @@ -17,4 +17,4 @@ package usestaticpackage2; "use static" -/* @@? 18:1 Error SyntaxError: Invalid package toplevel statement */ +/* @@? 18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package2.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package2.ets index 551145bbe750acc82006c7d76ef820ae82d68dcd..a20310c946ed1ae0674f31e31ab0ea7e5d9cfaa2 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package2.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package2.ets @@ -16,4 +16,4 @@ package usestaticpackage2; -/* @@? flag_package.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ +/* @@? flag_package.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ diff --git a/ets2panda/test/ast/compiler/ets/utility_type_can_not_found_etsobjecttype.ets b/ets2panda/test/ast/compiler/ets/utility_type_can_not_found_etsobjecttype.ets index f549a860b8ab50e6349d41dcc5729825bdb46024..0bede715cffa44dcfc51a4bdeca9efc2025a7da6 100644 --- a/ets2panda/test/ast/compiler/ets/utility_type_can_not_found_etsobjecttype.ets +++ b/ets2panda/test/ast/compiler/ets/utility_type_can_not_found_etsobjecttype.ets @@ -25,5 +25,5 @@ class X { } } -/* @@? 16:34 Error TypeError: Cannot find type 'any'. */ -/* @@? 23:14 Error TypeError: Target type for class composite needs to be an object type, found 'T' */ \ No newline at end of file +/* @@? 16:34 Error Semantic error ESE0371: Cannot find type 'any'. */ +/* @@? 23:14 Error Semantic error ESE0063: Target type for class composite needs to be an object type, found 'T' */ diff --git a/ets2panda/test/ast/compiler/ets/validate_signatures_throw_type_error_more_param.ets b/ets2panda/test/ast/compiler/ets/validate_signatures_throw_type_error_more_param.ets index a7b4bf5973bc15b55d66b4e363546a50b98f31a6..827514f79ad7a89f8cd90bde680e1f14bba100cf 100644 --- a/ets2panda/test/ast/compiler/ets/validate_signatures_throw_type_error_more_param.ets +++ b/ets2panda/test/ast/compiler/ets/validate_signatures_throw_type_error_more_param.ets @@ -17,6 +17,6 @@ function main() : void { let e: Float = /* @@ label */new Float(6,"3"); } -/* @@@ label Error TypeError: Expected 0 arguments, got 2. */ -/* @@@ label Error TypeError: Expected 1 arguments, got 2. */ -/* @@@ label Error TypeError: No matching construct signature for std.core.Float(Int, "3") */ +/* @@@ label Error Semantic error ESE0124: Expected 0 arguments, got 2. */ +/* @@@ label Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@@ label Error Semantic error ESE0127: No matching construct signature for std.core.Float(Int, "3") */ diff --git a/ets2panda/test/ast/compiler/ets/var_declaration.ets b/ets2panda/test/ast/compiler/ets/var_declaration.ets index 2411ac75f8b68f3d74141204a32e2d5459a9dd67..8f1a8bd0574b7052fb0321278e10b4f837def9bc 100644 --- a/ets2panda/test/ast/compiler/ets/var_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/var_declaration.ets @@ -16,4 +16,4 @@ // (arkts-no-var) var x = 42; - /* @@? 17:6 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ \ No newline at end of file + /* @@? 17:6 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ diff --git a/ets2panda/test/ast/compiler/ets/variable_declaretion_neg_1.ets b/ets2panda/test/ast/compiler/ets/variable_declaretion_neg_1.ets index b4321b87c8349b7bd85ca6f199d131785c80f05d..15d7c6af13124ce07917ab38f53ed99f8770347a 100644 --- a/ets2panda/test/ast/compiler/ets/variable_declaretion_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/variable_declaretion_neg_1.ets @@ -15,6 +15,6 @@ let negative%%_ = 1 -/* @@? 16:13 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 16:13 Error SyntaxError: Unexpected token '%'. */ -/* @@? 16:15 Error TypeError: Unresolved reference _ */ +/* @@? 16:13 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token '%'. */ +/* @@? 16:15 Error Semantic error ESE0143: Unresolved reference _ */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam.ets index fe3e8ad43e8eed95c69215ce548264e0f0bb8ad4..97a9c76cb9b78cb4fe9356b0116b361f445dc080 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam.ets @@ -42,11 +42,11 @@ class A{ paramsFunc7(a:T1, b:/* @@ label8 */T2, c:T3){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label4 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label5 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label6 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label7 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label8 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets index 25d2d0d5cd925922c924167f7686aa22b3c8f37d..44a2cf77ada175ac2a03bbed3ad334c092fd70ef 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets @@ -42,17 +42,17 @@ class A{ paramsFunc7(a:T1/* @@ label13 */[], b:T2/* @@ label14 */[], c:T3[]){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label9 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label10 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label11 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label12 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label13 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label14 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label7 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label8 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label9 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label10 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label11 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label12 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label13 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label14 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets index 23d0400140d0386266b9c1b783e6857fff921898..094b84d594192399f576fe431e5689776ec70434 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets @@ -49,13 +49,13 @@ class A{ paramsFunc3(a:B){} } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label1 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label3 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label4 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label4 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label5 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label5 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets index d4816321453e16afa2cf1376a7c2f33621e8a4a1..ca085b31c601ce07f2d0a38391827629f51923bf 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets @@ -42,15 +42,15 @@ class A{ paramsFunc7(a:(a:(a:(a:T2)=>T1)=>T2)=>T1){} } -/* @@@ label1 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label9 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label10 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label11 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label12 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label6 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label7 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label8 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label9 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label10 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@? 40:37 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@? 41:40 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets index 824b06a2ce561d0d188c8b1dddc6ad2166cfa7ec..90ea4abf89a668723be55501aa205bb0b8ec0a20 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets @@ -19,5 +19,5 @@ class A{ paramsFunc1(a:T1, b:/* @@ label2 */T2, c:T3){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label1 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label2 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets index fd735fe39652e1eb9a848743545f42981d5b511a..e535c3df0fd16b593c28ea90e17a581601527a7b 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets @@ -29,7 +29,7 @@ class B8 extends A2{} class B9 extends A2{} class B10 extends /* @@ label4 */A2{} -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets index 9c96f4d42102cd61568283dfbf20e9f9b687c464..c6f9479b0b3ee38662616e3539f70900b76dc118 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets @@ -31,8 +31,8 @@ class A123{ readonly readonlyfield12:B; } -/* @@@ label1 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label1 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets index 374aa69fb398b383fc39f012f7754d29379ba28e..b8bd87286a5c3b2bcc1b5604b4b89e6dc0cd5a8e 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets @@ -38,11 +38,11 @@ class A{ paramsFunc3(a:[number,T3,string]){} } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label7 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label8 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets index 24c2b074ed9455814f4f408fa6808c980afee38a..b17b808bfe0b39bc00366efa709e2d66f0cdd5c8 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets @@ -67,23 +67,23 @@ class A123{ paramsFunc7(a:/* @@ label18 */T1|T2|T3){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label9 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label10 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label11 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label12 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label13 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label14 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label15 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label16 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label17 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label18 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label7 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label8 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label9 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label10 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label11 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label12 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label13 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label14 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label15 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label16 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label17 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label18 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ diff --git a/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets b/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets index 92db5f8ba840084ef330bbbedd41e1a31c204853..09be3620bc67753423e04a487f83fd5f880f6b59 100644 --- a/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets +++ b/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets @@ -20,6 +20,6 @@ function main(): void { arktest.assertTrue(false || check()) } -/* @@? 20:3 Error TypeError: No matching call signature for assertTrue(Boolean|void) */ -/* @@? 20:22 Error TypeError: Type 'Boolean|void' is not compatible with type 'Boolean' at index 1 */ -/* @@? 20:31 Error TypeError: Cannot use type 'void' as value. */ +/* @@? 20:3 Error Semantic error ESE0127: No matching call signature for assertTrue(Boolean|void) */ +/* @@? 20:22 Error Semantic error ESE0046: Type 'Boolean|void' is not compatible with type 'Boolean' at index 1 */ +/* @@? 20:31 Error Semantic error ESE0078: Cannot use type 'void' as value. */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_1.ets b/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_1.ets index 619efc697f18b060d9318c7234fe8cccdeaad6aa..ef41a97362ac23132e98826945c5362df41ecbbe 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_1.ets @@ -17,4 +17,4 @@ async function foo():Promise{ return void; } -/* @@? 17:12 Error SyntaxError: Unexpected token 'void'. */ +/* @@? 17:12 Error Syntax error ESY0227: Unexpected token 'void'. */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_2.ets b/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_2.ets index 50e646c928c4bcf24be1127c1ad71ac060367de3..f5674c2a1994b030fc04d6f4116b7575b1f5dac5 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_2.ets @@ -20,4 +20,4 @@ async function foo():Promise{ return test() } -/* @@? 20:12 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Promise | Int' */ \ No newline at end of file +/* @@? 20:12 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Promise | Int' */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_typeAnnotation_neg_1.ets b/ets2panda/test/ast/compiler/ets/void_as_typeAnnotation_neg_1.ets index 3b5b16d39b2cd293e8eeb4ac660f6ffdd005322c..423178030a243fabcf1fbed32bb4f60cc84285de 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_typeAnnotation_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_typeAnnotation_neg_1.ets @@ -14,5 +14,5 @@ */ function foo (): void let y = foo() -/* @@? 16:9 Error TypeError: Cannot use type 'void' as value. */ -/* @@? 15:10 Error TypeError: Only abstract or native methods can't have body. */ +/* @@? 15:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:9 Error Semantic error ESE0078: Cannot use type 'void' as value. */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_value_neg_1.ets b/ets2panda/test/ast/compiler/ets/void_as_value_neg_1.ets index 2e919669e23f4f0fc5bfcd1c8c24c22b25034af4..be606151958eb8496ce1fd6ca75898eecf1148ca 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_value_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_value_neg_1.ets @@ -25,4 +25,4 @@ function bar(value:A){ const x = /* @@ label */foo(value) } -/* @@@ label Error TypeError: Cannot use type 'void' as value. */ +/* @@@ label Error Semantic error ESE0078: Cannot use type 'void' as value. */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_value_neg_2.ets b/ets2panda/test/ast/compiler/ets/void_as_value_neg_2.ets index e2ce9f8526d77fdf433698f490c544a0bc6f102b..1ebaf24c1bb8345b4535063b70c379ae894d3d6d 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_value_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_value_neg_2.ets @@ -13,4 +13,4 @@ * limitations under the License. */ let x: /* @@ label */void -/* @@@ label Error TypeError: 'void' used as type annotation. */ +/* @@@ label Error Semantic error ESE0232: 'void' used as type annotation. */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_value_neg_3.ets b/ets2panda/test/ast/compiler/ets/void_as_value_neg_3.ets index 3608ddbfd289273e9dc87643256cd10b891e0306..707cf14df67a5f20748ae56af1597d34fccfb8f9 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_value_neg_3.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_value_neg_3.ets @@ -17,4 +17,4 @@ function foo(x: T) {} foo(void) -/* @@? 18:11 Error SyntaxError: Unexpected token 'void'. */ +/* @@? 18:11 Error Syntax error ESY0227: Unexpected token 'void'. */ diff --git a/ets2panda/test/ast/compiler/ets/void_as_value_neg_4.ets b/ets2panda/test/ast/compiler/ets/void_as_value_neg_4.ets index bafb8f9d54bc930f71f688d881a2e28c015b2600..3356e9070852ba40882bab4dfe5debbc19774895 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_value_neg_4.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_value_neg_4.ets @@ -24,5 +24,4 @@ function main(): void { foo(void_function()); } -/* @@? 24:9 Error TypeError: Cannot use type 'void' as value. */ - +/* @@? 24:9 Error Semantic error ESE0078: Cannot use type 'void' as value. */ diff --git a/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets b/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets index c9f2d161ac777d0a94186bbc33fbac1ace9ae92b..bb5ab2d6022776cf73f6c0af73618bccfc49490d 100644 --- a/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets +++ b/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets @@ -26,5 +26,5 @@ class C { class D extends C{} -/* @@? 19:13 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:12 Error TypeError: Variable 'C' has already been declared. */ \ No newline at end of file +/* @@? 19:13 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:12 Error Semantic error ESE0351: Variable 'C' has already been declared. */ diff --git a/ets2panda/test/ast/compiler/ets/xgc_ea/xgc_ea.ets b/ets2panda/test/ast/compiler/ets/xgc_ea/xgc_ea.ets index 05b98fcb0a68a6c37b33e96200c65aaf43680e4c..f6eff312cb14deadce921d6e97d6f241b10713ea 100755 --- a/ets2panda/test/ast/compiler/ets/xgc_ea/xgc_ea.ets +++ b/ets2panda/test/ast/compiler/ets/xgc_ea/xgc_ea.ets @@ -16,8 +16,8 @@ package xgc_ea const SHARED_OBJECTS_COUNT: testResult, "test20 $2" -/* @@? 17:7 Error SyntaxError: Missing initialization for const package property */ -/* @@? 17:29 Error TypeError: Cannot find type 'testResult'. */ -/* @@? 17:41 Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@? 17:41 Error SyntaxError: Number, string or computed value property name 'test20 $2' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 23:95 Error SyntaxError: Variable must be initialized or it's type must be declared. */ \ No newline at end of file +/* @@? 17:7 Error Syntax error ESY0294: Missing initialization for const package property */ +/* @@? 17:29 Error Semantic error ESE0371: Cannot find type 'testResult'. */ +/* @@? 17:41 Error Syntax error ESY0315: Number, string or computed value property name 'test20 $2' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 17:41 Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ +/* @@? 24:1 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts index b4df110fe09af52e6ac24e536171eda462b4af2d..b2951cb921b7401aae76749e5d85eb1316c459d1 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a - "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts index 584984578fba3461735c70ee6fd18ecb12e5bad2..7c272699a3ef8697476736a5267f90b5c213e2e0 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a / "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts index ad3bfff331d02499eac7d1d9e35d2ed9f9a08825..845e75923ff18d1742d420d76fa75d0fc7fb8fd7 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a / 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts index c4e280fc093dc367489e22914808317d7e12ad51..c3343eb8bd565eb50ab4bb5cfbaae72c73f09e3b 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a / false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts index b471f46f74a8390f7ccaf5b273325547d59dd1dc..650817ea182cc9c2d061338c2aafa9b369368c78 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a % "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts index 1dde7eeb0756d4a7871bf0452216112e3c44e27b..10b1e67bb1773a02e686403d8a3fe5956274c2b0 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a % 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts index 029a2900022ea48d930eaf56a7847238b0922cce..1dec7f6ef27c1ace0dd18430d66e80fa0557fdab 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a % false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts index 04045be9fde85edb2ea08cb68b6a8bd3663e6944..025393a57d2c078026e71f173cebed21fe6b7e76 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a++; -/* @@@ label Error TypeError: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts index 92a37d24df8155f906480b9d7abf09d5b1878993..df1c0fb46c71553a86f6a0ead59e5cbeddce6c30 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a--; -/* @@@ label Error TypeError: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts index 81e94d8af58b5e18625fa345b962072e973d1044..af1d437bda315cc282cd7b3888f7748e0e814675 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a - /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts index ccbd0e91549e584d8f03856b7cea0dd5f55453e8..461f84f701fbdfb6e0e89ad6fe9771c0607624e6 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a - /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts index 8c96f0b69d3af14b86e6fd4d5bc07bc66e659ea4..7d01837c527292c00e419e8229bf09c161578c70 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a - 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts index 978a410dde61253b3724e88aad28e05dc5c60803..ed27b340ba0074147af9478fe389924eb8714744 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a * /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts index 1c19bfa1c7f21d886408fa050fdce25560fc7468..ec32dac9e3bfa6bb21b281f682b5f8211591bfed 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a * /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts index b26469e8daf21364b579316339006c79e37a81af..320dcce4e31033cd338b5b9618d4369bfa144f0e 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a ** /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts index fa6eca101e0ea7f0201c9c515dc04e6d4c22aa37..447b7dc26d7106478c9235a3d5bb019641b678d9 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a ** /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts index e188e20bd95d7faa70bce2bf7f2acf22cc675ce3..fb495299c680bb37a6d0750f38c4a9e8da810dfa 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a / /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts index 7e4bb19c7084b3a7c603a978ebd88677002fe359..6ef55c680a75193431b5b5604ec3ab230892c2cc 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a / /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts index d765cb8e7f883cb672306270084e4ccc0ff1548c..d37d756f2c3025e897edf0833e8bd981b5bd490f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a % /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts index d79940233d9de0d8d2ee24c255f888b466a91f04..40794f137fb4caa40f520fed6863de99f682ae68 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts @@ -18,4 +18,4 @@ var a: number; a = 5; a % /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts index 87774020b0c45a3ccfca973faa8dd507756b160a..dfdbddb15d0d7624a404c4f1e70d00530f22db06 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a + "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts index ad0517fd6be65a69372a2d73526362cc15780d0f..9ec0f7fd696603b306f1d773ed43ecf19e9e33ae 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a + 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts index 90e274c5525d77e3cedacc61666feb09f0ad8e83..56c4110b3f1e0129ef09ce43da0bd43b918b3ded 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a - false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts index e4fae10f88ffba6df7a5523e3613c7781b5a02c9..ecf01c3a2029c7083681e3fd19131e6660eb6605 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a + false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts index 112ea2f4ed74b4204e8cc4b138198a2152bb3e1d..79b96f32af86a18ed67dc81f0f6b47fa222238f0 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a - "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts index f3368d051078ed8912cb5c91fcf9fc552409b995..745c7d00279126216fbe6451f964727da357fab2 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a - 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts index 3e3635f9c3ae3badcea1c0567e7af47189feaafb..7f214e7486388ad82508e820fe459b6b1e6fb3a8 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a - false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts index 8de905de63517d07bb8f72913184e889620a1934..079df22b35277aef6778923fcb134b3a4841c714 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a * "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts index a79f49c79826b679573523bb08bb89b9ed3c3d14..b03d52abe0f09b92a5f33358dfe7d46aa9a37554 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a * 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts index a7f187943ccf3c6285e92bed6df4fc647c5e84a1..04c125c62a1c15dd6ac88be71d4889838aa16a4c 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a * false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts index 74942114e6bdb646aa1ef98b67fb4417c2450335..a19783926c5d2804824f9d445214facb92826ca9 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a ** "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts index 970a477e73dbdc8182d3ab46d9457c13d67238d5..48ea44f7a38f7d13cc500adef34948015ebc9e0c 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a ** 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts index 40934154db1d721e9cad975814dc8300d0729d26..ba2f3e5d893c0ce13495b0639cf2b42347be9aed 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a ** false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts index e6f4632d57061959c3b8bb66cd2df44b7dc1450e..0c7ff9d92b225acac7d1d7f4746008bd3bbca69e 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a * "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts index f185ea530dad01a660d3296f97e2d0530e13c525..98f3e48b34dac2fd1b7aa5f62c02d3f7556d1cef 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a / "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts index 5a47a1481ffc5a8ae393fc31123664fd895f7d9b..6deb5f4073e9287eb1c7106e38dfd933a8eb3e91 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a / 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts index 4dbafc1f72e8bc351844da7e066e15778434007b..c570f7b586665a72558dcc5d7e7143a205d19df5 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a / false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts index fd3c11c11cd9353b0727c8750194ce4ddbb67033..d47d43205abe2d4c2bfac92d6455f97a7d425972 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a % "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts index b503012de9ccfb54567225c64f9a8995e21d6146..9340d45382ae37a0993c64e351cd431081327fad 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a % 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts index b4ca9e2ddf9365841e0210725945c8acc9c23f7e..8db3d2ab8fe73d2380a52b1891185dfd90125f63 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a % false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts index 5fa2d960520baac634948774fc395725fcc83395..ea5e9bee70bcb59d32bbc227e4b796345cad0844 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a++; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts index 3c4a1a669f797c478c199a9d0d57c0c112ee2303..92ecb95bbd91dadf9cd12e67c90bd311fc1b0ca2 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts @@ -18,4 +18,4 @@ var a: bigint; /* @@ label */a = 5; a--; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts index 089b320e3b2c0dcd1ff9913cb9b612be6064accc..43ffea7d9244d4f6fe7a3ba5d6b25d4519fbf9e5 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a - "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts index fb99c55fd7951a2bf30419a4cfa928242fab1ea9..77aec61270108891c7f73827739142172f7c8af7 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a - 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts index 7a5889f687402b418e4a8deebd034d379212a029..afe030208be7e088a08907a892195c6f0718fbef 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a * 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts index 8a113e24d547e4442a83021ed41ab04c9131e867..72a8f670b1a3f84284f9c6e9118fe61ae33fa2b5 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a - false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts index ac298c91abcb3bf624a4110f8ae472f8363bbe85..e5d45a3a6afb164d9c02b9dc002a425b4dc9f732 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a * "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts index 144258cbcb67dc3c00947bc3b4551cb90c237ff7..fafd0d5cc411916770590ed7f3ce256365f389bd 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a * 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts index c80a5e1f3186c62a668ce75ba3bbc08d03b566b6..725d3a608cb05c6c2f2bdcf76155e400464ab4cc 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a * false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts index 33aa017e3f62be4073842b19e6a57153039da753..1be9ac9d99033e81f6357bb2052f64786227c2a7 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a ** "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts index b3070b9b3f6c90eea305211e3e4f41adc856bc25..2fc10f62b9605b594947b1a09da31c582911893f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a ** 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts index 9f4945b3d2d1b0ffb8bd5afc8118abf5b3114fe5..0809419526503bdafdfbb881e4a21ec1a39399a8 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a ** false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts index 06e229926de87cf769bc1882a75ad4d401bc289c..e380d1c100d701d8b9c6aa09734bae18ef820f14 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a / "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts index 035cde3acb443e9e40e4e55e0aba2165fde103ec..a49e59bc1da4bcdde4c3b5b4dd9104dd52779647 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a / 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts index 53d48ba21af45d8032592e8036fc76435854f5e8..6eb9351341a6dd7ba1fdbe9644488f020b349f51 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a / false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts index 19244de69e72bf763de520bf537a3c5bb75e42e5..93cc55ccdca57edc2c8dc70c8c56d96c3833d584 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a * false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts index 7681fc6662b737eeccf20d6e8f607865e0c7cf03..9bc801d5b0e9d5d0ccd63fe055a29dab0a3d41af 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a % "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts index b847adcc0270f5d74f94b0b8b25ce6297d759350..4390863e2d76cf614009d05a460b37242af9e08b 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a % 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts index 600390ac7250c00f4a110f700bae995e451abd33..0537037f7260d53fa72b2c39faf3b277dcdcd3a8 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a % false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts index ca0cd875d091b86fe1a55b2398371a877ec8b394..8888ba0a759bf009be90bfcbac46bd13c53aa2d1 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a++; -/* @@@ label Error TypeError: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts index d001b3deeb2825d6b7d219c4caff31ef41fdbcb4..e1a2abab2a387010d57220e144fb73c87e9cfdb1 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts @@ -18,4 +18,4 @@ var a: boolean; a = false; /* @@ label */a--; -/* @@@ label Error TypeError: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts index f7b7e66376ae3d7c1149913554b3891705d1bef3..84f57a7885f70b455739ab7b6ebb0faeea4d10e9 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a ** "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts index e9fd9421006bef0b5d84ae09a3b2b8fa89264c1d..ff107e14e046f29c9bdc38eaacf13bf1e873d4f4 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a ** 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts index 329812394473339a3582380674d529bb2e3cb25c..6061cede1fd1096823a1e5468c8a21ece97fcb7d 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts @@ -18,4 +18,4 @@ var a: string; a = "foo"; /* @@ label */a ** false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts index c498295decf3a1283ccae3344fac155b744da608..81854db054999cfb2c11a1d72cfe5859331c7360 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts @@ -15,4 +15,4 @@ var /* @@ label */[a] = []; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 0. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 0. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts index 9744312f3560473a2360780d9f7b8cc3b8b79a64..1b2651316082ddf7d99b39e073def146f8759609 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts @@ -16,4 +16,4 @@ var [a = 6, b, ...c] = [, "foo", true, {}]; /* @@ label */c = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '[boolean, { }]'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '[boolean, { }]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts index a0ce8489aedc2f04314626a665305fa54c511ae6..cd9bb4fae269f1a3385775602c3dfac68060455f 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts @@ -16,4 +16,4 @@ var [...a] = [1, "foo", true]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '[number, string, boolean]'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '[number, string, boolean]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts index 66a9012411b4ef90ed6d29ecf5df576d46c991d2..f8721809308bbfab6c501dea7b18ea6425e821ec 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts @@ -16,4 +16,4 @@ var /* @@ label */[a = 5, ...b]: [number, string, boolean] | string[] | number = ["foo", "bar"]; -/* @@@ label Error TypeError: Type [number, string, boolean] | string[] | number must have a '[Symbol.iterator]()' method that returns an iterator. */ +/* @@@ label Error Semantic error ESE0000: Type [number, string, boolean] | string[] | number must have a '[Symbol.iterator]()' method that returns an iterator. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts index b71abf955c794624022e9258d2101787899337fb..f6922a85dd05b8f0afc0d655bbce74f60c6f1c8c 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts @@ -17,4 +17,4 @@ var a: [number, string, number]; var [b, c] = a; /* @@ label */b = {} -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts index 6ff3cb58889bbc6531460c9cf86cd2829446cdf3..65b9cdebd755af9ae6e513f7ae96899e36ca3831 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts @@ -16,4 +16,4 @@ var a: number; var /* @@ label */[b = 6, c = 6] = a; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts index 4354b90229b0b588819ae8c636c63efe512dcdaa..550e8a0e372635125278ab55d93ce224d3cbc4c6 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts @@ -16,4 +16,4 @@ var a: [number]; var /* @@ label */[b, c] = a; -/* @@@ label Error TypeError: Tuple type [number] of length 1 has no element at index 1. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [number] of length 1 has no element at index 1. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts index 4a9abe03f1fa0476c66649285ede301e1609957b..f414f9fb48d45584da1f293b26228577ef2d0134 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts @@ -17,4 +17,4 @@ var a: [string]; var [b, c = "foo"] = a; /* @@ label */c = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts index 621bb201cf0c6d95760872bb2c32a367581031ca..0483e55c5722802157f9987bdba1c1ea930e12b0 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts @@ -19,4 +19,4 @@ function a(a: number, b: string): [number, string] { } var /* @@ label */[b, c, d] = a(1, "bar"); -/* @@@ label Error TypeError: Tuple type [number, string] of length 2 has no element at index 2. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [number, string] of length 2 has no element at index 2. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts index c0730a2d6c39194b9f621c33f0363cc0517c26fd..55fada273640bc2b6192983f99d7bbe71e68cdc5 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts @@ -16,4 +16,4 @@ var [...a]: [number, string] | boolean[] | [bigint, void, {}] = [true, false]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '(number | string | boolean | bigint | void | { })[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '(number | string | boolean | bigint | void | { })[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts index 96a3983ebf18c74e900f8016485a1d4c22b1ff31..dd6db35d768872e5fe66c42e8d48e22516a19ff0 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts @@ -17,4 +17,4 @@ var [a, ...b]: [number, string] | boolean[] | [bigint, void, {}] = [true, false]; /* @@ label */b = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '(string | boolean | void | { })[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '(string | boolean | void | { })[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts index 4e74feb10806d8305abba3253dfe7420d1f92751..e60483cdda94f549fdd05aa7935febca82e20edb 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts @@ -16,4 +16,4 @@ var [a = 1] = []; /* @@ label */a = "foo" -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts index df0a552a2bde73452892242db498a0cf1ef96e61..43b613322c6fb08693ec68267d23c2624d059ae3 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts @@ -15,4 +15,4 @@ var [a, /* @@ label */[b, c]] = [1, 2]; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts index 3a5679fab285c8e871ef8a2f6c0ec5aad1d48364..fb6a264c3023f3500f7cef20848da70a8d819fea 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts @@ -15,4 +15,4 @@ var [/* @@ label */[a, b]] = [[1]]; -/* @@@ label Error TypeError: Tuple type [number] of length 1 has no element at index 1. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [number] of length 1 has no element at index 1. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts index 97a17a7981e4aae49f4646e73a19dfc76568983b..711c786f30013fedb502695ee02c60378f81f878 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts @@ -15,4 +15,4 @@ var [a, [/* @@ label */a, b] = [1, 2]] = [1, ["foo"]]; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type 'string | number'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type 'string | number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts index c805d730885031f97acabf975ca88b0d1a08d52f..4851d4e73143ce7def6511fefb0ec709775e529f 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts @@ -15,4 +15,4 @@ var [a, /* @@ label */[b, c] = [1]] = [1, ["foo"]]; -/* @@@ label Error TypeError: Property 1 does not exist on type [string] | [number]. */ +/* @@@ label Error Semantic error ESE0000: Property 1 does not exist on type [string] | [number]. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts index 3cd31db7c1b55671e8aad2073470aa4ad999d132..d19c60dbae6baa4b8eaa184a03e41a921a7a5d9a 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts @@ -16,4 +16,4 @@ var [a, [b, c] = [true, "foo"]] = [1, ["foo", { a: "foo" }]]; c = { /* @@ label */a: 5 } -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts index 970ee6f4884b7753572c54342001736331f223ce..715322ead4490491360723d8b997ff2f68c9dd20 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts @@ -15,4 +15,4 @@ var [a, .../* @@ label */[b, c]] = [1, 2]; -/* @@@ label Error TypeError: Tuple type [number] of length 1 has no element at index 1. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [number] of length 1 has no element at index 1. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts index c0a4f5543fc2716b3e7df49ffc8be83664964240..ef6aaf7f6769a97469db59b88c8698841804cf6d 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts @@ -15,4 +15,4 @@ var [a = 5, /* @@ label */{ b, c }] = [, { b: 5 }] -/* @@@ label Error TypeError: Property c does not exist on type { b: number; }. */ +/* @@@ label Error Semantic error ESE0000: Property c does not exist on type { b: number; }. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts index 76b31b203d92511268df4724196ef372fde701b3..26b01a799e8b668e598d38fb44376c64e46154d8 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts @@ -15,4 +15,4 @@ var [.../* @@ label */[b = 6, c = "foo", d]]: [number, number | string] = [1, 2]; -/* @@@ label Error TypeError: Tuple type [number, number | string] of length 2 has no element at index 2. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [number, number | string] of length 2 has no element at index 2. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts index 41061dd22e91cd9fd6332b569992a194c49d186d..7ed9c4335cc5c1723c52b380bfcf9004349d195a 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts @@ -16,4 +16,4 @@ var [a, [{ b = 6, c: foo }, [d = 6, e]]] = [1, [{ c: 2 }, [1, "foo"]]]; /* @@ label */e = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts index 18948b1654a304457d3e898527cbbcff08212f1a..09b1614dc2f9bd83d944b26155d3f9f89c1ff797 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts @@ -16,4 +16,4 @@ var a:number; /* @@ label */[a] = []; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 0. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 0. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts index 22c2e7fe0de0ad831aaa34e6f6d1acb091ff5d1b..8d6bd088c620cdbd52e10e9e8582ad3970f662f7 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts @@ -16,4 +16,4 @@ var [a = 1] = ["foo"]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string | number'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string | number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts index a453dfa250f861dfb5e30fabe040c468c7994407..d86549288231ff6547b318794f604245e962fe3a 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts @@ -17,4 +17,4 @@ var a:number; var b: number; /* @@ label */[a = 5, b] = []; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 1. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 1. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts index 06993d96a6f86ad279f6e96d45f39b72c08cbbd5..9b5977c9ef7e583f3af86ffc92c1b0e8925824a0 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts @@ -16,4 +16,4 @@ var a:number; [/* @@ label */a = "foo"] = []; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts index 79c920800cc9912dc384d0cbd059e0758e5be497..26a867e1c68185a3f6004339aebc7adb6127fa0b 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts @@ -15,4 +15,4 @@ /* @@ label */[a] = []; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 0. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 0. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts index 3d520eba7bea708fce0ca410c343d220153e10ea..3f7215604d85ed6cfda961aa56b94d35b2268c47 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts @@ -16,4 +16,4 @@ var a: number; [/* @@ label */a] = ["foo"]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts index 994216bb614cd38e35a293812c571631cc9e0c8f..3106d65b6e57c54633d01b6658cb6fe1aa2afccc 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts @@ -17,4 +17,4 @@ var a: number; var b = 5; /* @@ label */[a] = b; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts index c8677ee35aa1f743f1566e7aa6881a285709cdfc..17dca2346ffcb2b4ed2d77e55e3cfee1d47f9919 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts @@ -17,4 +17,4 @@ var a: string | number; [/* @@ label */a = 2] = [false]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string | number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string | number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts index f7b6795c88fb4ebf422f37255e7606cbc65510c2..7b1d1802f1a4fdeb8041a862cad172ac69177f1d 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts @@ -20,4 +20,4 @@ var c:string; var d = []; var e = ["foo", 5] as const; [a, [/* @@ label */b, , c = "bar"] = e, ...d] = [{}, [42, , "foo" + 2]]; -/* @@@ label Error TypeError: Type 'number | "foo"' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number | "foo"' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts index 51364e40c8c6172f876516740a1407637f462e11..277c9da1320ceed72090de2bf0c8fa23ce4c7eb7 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts @@ -19,4 +19,4 @@ var b: number; var c:string; var d = []; [a, [/* @@ label */b, , c = "bar"] = ["foo", 5], ...d] = [{}, [42, , "foo" + 2]]; -/* @@@ label Error TypeError: Type 'number | string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number | string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts index 80161bd03ddb42d710053ab3c496266ed6120b13..1c67270234313686598ea5fab74f34e1f9875406 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts @@ -16,4 +16,4 @@ var a:number; [/* @@ label */[a]] = [[]]; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 0. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 0. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts index 2b5f14d5a9bd19bad7c5bcb5066f325c42614739..32913083a0a1f35bee7193451b8634fbb95d7234 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts @@ -17,4 +17,4 @@ var a:number; var b: number; [/* @@ label */[a = 5, b]] = [[]]; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 1. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 1. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts index c43edc8e63c283ee15366144d2cfac22437d7b8f..06e61a43fa28be45e04032e0ad92a7ff5425cf73 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts @@ -15,4 +15,4 @@ var /* @@ label */[a]: [number, string] = [1]; -/* @@@ label Error TypeError: Type '[1]' is not assignable to type '[number, string]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[1]' is not assignable to type '[number, string]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts index 00c6168a374a6f0a231ce32bc3d6b1a86385a724..eb6468a3742621059b73e500768a7d39ea2d3104 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts @@ -16,4 +16,4 @@ var a: number; [[/* @@ label */a]] = [["foo"]]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts index d98a4fff2a63ab2e1881d082eac427a7b112aee3..364febea571d370588d01a65f4f29dacbd3c00c0 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts @@ -17,4 +17,4 @@ var a: number; var b = 5; [/* @@ label */[a]] = [b]; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts index 4fed3c2d9df44342da244a8081bae9d7587956d0..138a8055c98ddfca6ef14193b9122899cd40e109 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts @@ -17,4 +17,4 @@ var a: string[]; [/* @@ label */a] = [["foo", 1]] -/* @@@ label Error TypeError: Type '(string | number)[]' is not assignable to type 'string[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '(string | number)[]' is not assignable to type 'string[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts index e06fe27072b928a9361c23a12e75d9928d1eaf3b..5a35c37b5481851ecf24632da6dcaa4f5250efb3 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts @@ -17,4 +17,4 @@ var a: string[]; [.../* @@ label */a] = [2] -/* @@@ label Error TypeError: Type '[number]' is not assignable to type 'string[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[number]' is not assignable to type 'string[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts index 28fcb4e4ca2ad71ad40fe7a8b88bb853cb6a98e4..8d36ed8db93892cf8404f0405afa0e19914986bb 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts @@ -18,4 +18,4 @@ var a: string[]; var b: string[]; [[.../* @@ label */b], ...a] = [["foo", false], "foo"] -/* @@@ label Error TypeError: Type '[string, boolean]' is not assignable to type 'string[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[string, boolean]' is not assignable to type 'string[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts index b4e7d277d7531d8ae224d7b05891ee8442f1bf4d..97aa64a9e23ead359e66a593c40021bb06817605 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts @@ -15,4 +15,4 @@ var [a = 1, /* @@ label */b = "foo"]: [number, number] = [1, 1]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts index e606ec7ee102fea788261741f917008ae81f7077..cd32e854135217718e2a4d5a2858fd8c8ff4c546 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts @@ -16,4 +16,4 @@ var [a, b]: number[] | [string, number] = [1, 2]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'number | string'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'number | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts index 38886463cf5293a375943db770347e329edaf147..b7c449e5e9dcfa6cc6b4c6895cef634055a996cb 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts @@ -15,4 +15,4 @@ var /* @@ label */[a = [1, "foo"], b] = [[true, false],]; -/* @@@ label Error TypeError: Tuple type [boolean[]] of length 1 has no element at index 1. */ +/* @@@ label Error Semantic error ESE0000: Tuple type [boolean[]] of length 1 has no element at index 1. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts index a4e7dd1c270b89beff56705ac46d61d337728505..285678a08a331dd7e755fdf02da4297890548d13 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts @@ -16,4 +16,4 @@ var [a = [1, "foo"], b] = [[true, false], ["foo", "bar"]]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'boolean[] | (number | string)[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'boolean[] | (number | string)[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts index 1010f3edf0fceb205a31a8f11fd12b23dcf2d18d..5107daca22e9bc8568f9067e9a24cb5ef3c65aea 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts @@ -16,4 +16,4 @@ var [a, ...b] = [1]; /* @@ label */b = [1]; -/* @@@ label Error TypeError: Type '[1]' is not assignable to type '[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[1]' is not assignable to type '[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_1.ts b/ets2panda/test/ast/compiler/ts/array_1.ts index 4da4ca40a72672930a16e790d57b240c7b717852..f9d9574a18b0f66d58ba1c61083a4e2ebe697a8c 100644 --- a/ets2panda/test/ast/compiler/ts/array_1.ts +++ b/ets2panda/test/ast/compiler/ts/array_1.ts @@ -17,4 +17,4 @@ var a: string[]; a = ["foo",/* @@ label */5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_10.ts b/ets2panda/test/ast/compiler/ts/array_10.ts index 0080174960c783c8a5647a199fca7da0254b77d9..4224d423dc6fa58137fa2f016d7fb6d42062c2a5 100644 --- a/ets2panda/test/ast/compiler/ts/array_10.ts +++ b/ets2panda/test/ast/compiler/ts/array_10.ts @@ -17,4 +17,4 @@ var a: number[]; a = [/* @@ label */false,5]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_11.ts b/ets2panda/test/ast/compiler/ts/array_11.ts index f7c0ebd0775c3b140196b1a769d0806e31556015..2b5d4dc0715ad837cf34f9651575bffa8c33b12e 100644 --- a/ets2panda/test/ast/compiler/ts/array_11.ts +++ b/ets2panda/test/ast/compiler/ts/array_11.ts @@ -17,4 +17,4 @@ var a: number[]; a = [5,/* @@ label */5n]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_12.ts b/ets2panda/test/ast/compiler/ts/array_12.ts index 5b59a2c2b64efd8bd6ca7648b924ee12b9eeceb3..388e48cf59c969ededd7261de0a159a2eb36589d 100644 --- a/ets2panda/test/ast/compiler/ts/array_12.ts +++ b/ets2panda/test/ast/compiler/ts/array_12.ts @@ -17,4 +17,4 @@ var a: number[]; a = [/* @@ label */5n,5]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_13.ts b/ets2panda/test/ast/compiler/ts/array_13.ts index 1c45f58c9e9aede5178baa8555e5616e0bb09301..38c5a3d4c74aa5e1ddd8b39fccaa7c47cc01fbfb 100644 --- a/ets2panda/test/ast/compiler/ts/array_13.ts +++ b/ets2panda/test/ast/compiler/ts/array_13.ts @@ -17,4 +17,4 @@ var a: bigint[]; a = [5n,/* @@ label */"foo"]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_14.ts b/ets2panda/test/ast/compiler/ts/array_14.ts index 8c522efc7857dfd6abcca0a37e90dd6da05149ac..a93de3299e54bcbfbcbd4cfe69e9dfd4d17b89a1 100644 --- a/ets2panda/test/ast/compiler/ts/array_14.ts +++ b/ets2panda/test/ast/compiler/ts/array_14.ts @@ -17,4 +17,4 @@ var a: bigint[]; a = [/* @@ label */"foo",5n]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_15.ts b/ets2panda/test/ast/compiler/ts/array_15.ts index 204a8deeb60993bb43de3022cc60d890484e9db7..bcb7500e816c8f79ab5efdcf8ddefe888feaf613 100644 --- a/ets2panda/test/ast/compiler/ts/array_15.ts +++ b/ets2panda/test/ast/compiler/ts/array_15.ts @@ -17,4 +17,4 @@ var a: bigint[]; a = [5n,/* @@ label */5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_16.ts b/ets2panda/test/ast/compiler/ts/array_16.ts index fe73df66cebe89f76f16abed7d799cf754acd60d..f428d46053e635444ecf8b9955b5fd58af3193e1 100644 --- a/ets2panda/test/ast/compiler/ts/array_16.ts +++ b/ets2panda/test/ast/compiler/ts/array_16.ts @@ -17,4 +17,4 @@ var a: bigint[]; a = [/* @@ label */5,5n]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_17.ts b/ets2panda/test/ast/compiler/ts/array_17.ts index 4c65b581da53f399d6459cf3bb241976086c658a..9d9cf5ac2e940ff40678a6569acf7fef5ee31a48 100644 --- a/ets2panda/test/ast/compiler/ts/array_17.ts +++ b/ets2panda/test/ast/compiler/ts/array_17.ts @@ -17,4 +17,4 @@ var a: bigint[]; a = [5n,/* @@ label */false]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_18.ts b/ets2panda/test/ast/compiler/ts/array_18.ts index 78ccba6066ea2fa692be437dfa9c05cf345e4225..f4f4652be95752bde015a8c17f4cc264ee2324f0 100644 --- a/ets2panda/test/ast/compiler/ts/array_18.ts +++ b/ets2panda/test/ast/compiler/ts/array_18.ts @@ -17,4 +17,4 @@ var a: bigint[]; a = [/* @@ label */false,5n]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_19.ts b/ets2panda/test/ast/compiler/ts/array_19.ts index 16d04de9f7f1c582dc09c9f93861ba024083dfd9..95923c08aae21212731923d21b969bd5729e4ff7 100644 --- a/ets2panda/test/ast/compiler/ts/array_19.ts +++ b/ets2panda/test/ast/compiler/ts/array_19.ts @@ -17,4 +17,4 @@ var a: boolean[]; a = [false,/* @@ label */"foo"]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_2.ts b/ets2panda/test/ast/compiler/ts/array_2.ts index 3f4610f833bb4be943176a35acc955fe6c843e76..18640ee5f3e16e3ccaba894c2dced2ac8be4d6a4 100644 --- a/ets2panda/test/ast/compiler/ts/array_2.ts +++ b/ets2panda/test/ast/compiler/ts/array_2.ts @@ -17,4 +17,4 @@ var a: string[]; a = [/* @@ label */5,"foo"]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_20.ts b/ets2panda/test/ast/compiler/ts/array_20.ts index 54e950a1b0ffa1947d5fe579692f1d5c5e765d1b..d43e2abcd0a6fba65a32c91f25f997d3decbabfe 100644 --- a/ets2panda/test/ast/compiler/ts/array_20.ts +++ b/ets2panda/test/ast/compiler/ts/array_20.ts @@ -17,4 +17,4 @@ var a: boolean[]; a = [/* @@ label */"foo",false]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_21.ts b/ets2panda/test/ast/compiler/ts/array_21.ts index f5edbeae5f800e0a903c946d5cb614416b6a2340..ae0f5a109dc17f3747a02945d678d61cf726d831 100644 --- a/ets2panda/test/ast/compiler/ts/array_21.ts +++ b/ets2panda/test/ast/compiler/ts/array_21.ts @@ -17,4 +17,4 @@ var a: boolean[]; a = [false,/* @@ label */5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_22.ts b/ets2panda/test/ast/compiler/ts/array_22.ts index fd8140c0307fd0489dc89da43763b07237f8ce7a..2cee65e9b2d65cd6f553ed5309e4b3f71ea4c8b4 100644 --- a/ets2panda/test/ast/compiler/ts/array_22.ts +++ b/ets2panda/test/ast/compiler/ts/array_22.ts @@ -17,4 +17,4 @@ var a: boolean[]; a = [/* @@ label */5,false]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_23.ts b/ets2panda/test/ast/compiler/ts/array_23.ts index 6a857ce7ab3e9f737e1bd7bad56c0210bddff0f6..76d648312b29d3f3a2dc3bcbcafe2060289a43ea 100644 --- a/ets2panda/test/ast/compiler/ts/array_23.ts +++ b/ets2panda/test/ast/compiler/ts/array_23.ts @@ -17,4 +17,4 @@ var a: boolean[]; a = [false,/* @@ label */5n]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_24.ts b/ets2panda/test/ast/compiler/ts/array_24.ts index 9962bbabaa867c94da92fd2817d1f4fa45bfef81..f5a6785b6a2012841ffc30bddbd4b7042290d201 100644 --- a/ets2panda/test/ast/compiler/ts/array_24.ts +++ b/ets2panda/test/ast/compiler/ts/array_24.ts @@ -17,4 +17,4 @@ var a: boolean[]; a = [/* @@ label */5n,false]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_3.ts b/ets2panda/test/ast/compiler/ts/array_3.ts index 07e01e16433156ef4016875a8e53b8017918be40..fec24d7cf142ae6db863a9875be954b5473b6bae 100644 --- a/ets2panda/test/ast/compiler/ts/array_3.ts +++ b/ets2panda/test/ast/compiler/ts/array_3.ts @@ -17,4 +17,4 @@ var a: string[]; a = ["foo",/* @@ label */false]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_4.ts b/ets2panda/test/ast/compiler/ts/array_4.ts index 63f84b6fc7f9c73a47e65fbeb585fa1c416aa43f..ab006b29f67ddf599e28c7b6843d9e2c4f749ff4 100644 --- a/ets2panda/test/ast/compiler/ts/array_4.ts +++ b/ets2panda/test/ast/compiler/ts/array_4.ts @@ -17,4 +17,4 @@ var a: string[]; a = [/* @@ label */false,"foo"]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_5.ts b/ets2panda/test/ast/compiler/ts/array_5.ts index b503fe78f18cc81ea6596c22654d72ea3fa9415c..80d81507e8a5f5842687862c9073775ea09872d0 100644 --- a/ets2panda/test/ast/compiler/ts/array_5.ts +++ b/ets2panda/test/ast/compiler/ts/array_5.ts @@ -17,4 +17,4 @@ var a: string[]; a = ["foo",/* @@ label */5n]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_6.ts b/ets2panda/test/ast/compiler/ts/array_6.ts index 9088cac682122f72c1398e02a0d403ca9d703877..65d0e35dbd81aafc417bdeabe3ae6beb76024514 100644 --- a/ets2panda/test/ast/compiler/ts/array_6.ts +++ b/ets2panda/test/ast/compiler/ts/array_6.ts @@ -17,4 +17,4 @@ var a: string[]; a = [/* @@ label */5n,"foo"]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_7.ts b/ets2panda/test/ast/compiler/ts/array_7.ts index 3f85b981ade36631baad51443e9d5825e5829d18..f5ce25a34acd6679e81f17a0d89861724502f0a4 100644 --- a/ets2panda/test/ast/compiler/ts/array_7.ts +++ b/ets2panda/test/ast/compiler/ts/array_7.ts @@ -17,4 +17,4 @@ var a: number[]; a = [5,/* @@ label */"foo"]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_8.ts b/ets2panda/test/ast/compiler/ts/array_8.ts index e8a9d9ce19f8bef94d00c16886c97c8c4fd860b2..123a26ddbff88dc9970b18648fe2c250a7eac385 100644 --- a/ets2panda/test/ast/compiler/ts/array_8.ts +++ b/ets2panda/test/ast/compiler/ts/array_8.ts @@ -17,4 +17,4 @@ var a: number[]; a = [/* @@ label */"foo",5]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_9.ts b/ets2panda/test/ast/compiler/ts/array_9.ts index 980a84631ff1f2ff4338ca4dc57ee5542328616c..aa4a4f46ff6d846e9de85b504355c5e48cb8c33a 100644 --- a/ets2panda/test/ast/compiler/ts/array_9.ts +++ b/ets2panda/test/ast/compiler/ts/array_9.ts @@ -17,4 +17,4 @@ var a: number[]; a = [5,/* @@ label */false]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/array_expression_1.ts b/ets2panda/test/ast/compiler/ts/array_expression_1.ts index c32dd810c291fc49fb84e91bbe4ed9e5d5ca667b..47a7977c92640f5773536bda2628ebb04780e3ca 100644 --- a/ets2panda/test/ast/compiler/ts/array_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/array_expression_1.ts @@ -15,4 +15,4 @@ let a = [1, [1, 2]: /* @@ label */number[]]; -/* @@@ label Error SyntaxError: Unexpected token. */ +/* @@@ label Error Syntax error ESY0000: Unexpected token. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_1.ts b/ets2panda/test/ast/compiler/ts/as_expression_1.ts index 242c1a3e542d2e85918593f719c8f9d505132edf..de305c535479a5ba42a34f08d950c4f3abacbb54 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_1.ts @@ -16,4 +16,4 @@ var a = /* @@ label */"foo" as number; -/* @@@ label Error TypeError: Conversion of type 'string' to type 'number' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. */ +/* @@@ label Error Semantic error ESE0322: Conversion of type 'string' to type 'number' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_10.ts b/ets2panda/test/ast/compiler/ts/as_expression_10.ts index a69ac80516e06d16de8a5a5c482e97d57dd2aae9..928365f411caf4ea6990cd415ee3750f9bbef7a2 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_10.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_10.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a = 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'readonly [5, 5, 5, 5]'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'readonly [5, 5, 5, 5]'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_11.ts b/ets2panda/test/ast/compiler/ts/as_expression_11.ts index 83b01bcd0619cba6a0dff1ce84580fadf8b95ba4..c2d798e0f823af381d4cdecf9544ee60a6c6fa58 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_11.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_11.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a[0] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_12.ts b/ets2panda/test/ast/compiler/ts/as_expression_12.ts index 204228ed3a0084597108675dfb2684dda5daeba9..16be651f06498c9dd10791415362df9f8ee704a6 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_12.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_12.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a[1] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_13.ts b/ets2panda/test/ast/compiler/ts/as_expression_13.ts index eb28f472b7c5a9a98b67eb1bd86b4733d1d3e9dd..82d166f5fa281cfc70db4927ca849129480bddc2 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_13.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_13.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a[2] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_14.ts b/ets2panda/test/ast/compiler/ts/as_expression_14.ts index bfa5334853ebce5e66fd9afb8ba413c637f549a6..67cabc5b2422cd9bdb20dc4556efd00b981cd721 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_14.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_14.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a[3] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_15.ts b/ets2panda/test/ast/compiler/ts/as_expression_15.ts index 3f347808faef9c4cc1340bb81c677303d8e39174..0074e760e314d9f76b0a5ea9f95faba250c65c94 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_15.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_15.ts @@ -17,4 +17,4 @@ var a = [5, 5, 5, 5] as const; a[/* @@ label */4] = 5; -/* @@@ label Error TypeError: Property 4 does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property 4 does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_2.ts b/ets2panda/test/ast/compiler/ts/as_expression_2.ts index 9dd4da307a46176218c26a8de2b185b4cc919921..c258d73362074224ca9bd64224137374b85b2a4a 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_2.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_2.ts @@ -17,4 +17,4 @@ var a: any; /* @@ label */a as const; -/* @@@ label Error TypeError: A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals. */ +/* @@@ label Error Semantic error ESE0000: A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_3.ts b/ets2panda/test/ast/compiler/ts/as_expression_3.ts index c78b013f65b643e012d33d2b4e966eb3ff9231d6..8b4296887217c3a3c1e054de56e044633a0637c8 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_3.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_3.ts @@ -17,4 +17,4 @@ var a = [5, 5, 5, 5] as const; a = [5, 5, 5, /* @@ label */"bar"]; -/* @@@ label Error TypeError: Type '"bar"' is not assignable to type '5'. */ +/* @@@ label Error Semantic error ESE0000: Type '"bar"' is not assignable to type '5'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_4.ts b/ets2panda/test/ast/compiler/ts/as_expression_4.ts index 60c9fe4da8f3ae3987a6da4be77a6a4c8b8fd1ca..5c4f6d21904c36da763b8d2589560de405043f39 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_4.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_4.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; a = [5,/* @@ label */4,5,5]; -/* @@@ label Error TypeError: Type '4' is not assignable to type '5'. */ +/* @@@ label Error Semantic error ESE0000: Type '4' is not assignable to type '5'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_5.ts b/ets2panda/test/ast/compiler/ts/as_expression_5.ts index 8f82e3c230abaef5d29473bffd7effbe802c105a..535a642888e813871a0c05e81e8692667540fd89 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_5.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_5.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; a = [5,5,/* @@ label */4,5]; -/* @@@ label Error TypeError: Type '4' is not assignable to type '5'. */ +/* @@@ label Error Semantic error ESE0000: Type '4' is not assignable to type '5'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_6.ts b/ets2panda/test/ast/compiler/ts/as_expression_6.ts index a1796f4510ccc28358408157b33bde071de24bbd..328bbf77081c70c7b98adc9632056a8b9d2dcea3 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_6.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_6.ts @@ -17,4 +17,4 @@ var a = [5, 5, 5, 5] as const; a = [5, 5, 5, /* @@ label */4]; -/* @@@ label Error TypeError: Type '4' is not assignable to type '5'. */ +/* @@@ label Error Semantic error ESE0000: Type '4' is not assignable to type '5'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_7.ts b/ets2panda/test/ast/compiler/ts/as_expression_7.ts index 6d588ccd6d11ecb0f187e63726bf99564a074b8a..ea4b6bb5ce4609ecea7dabd92d0c9a5f4ac88e51 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_7.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_7.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a = [5,5,5,5,5]; -/* @@@ label Error TypeError: Type '[5, 5, 5, 5, 5]' is not assignable to type 'readonly [5, 5, 5, 5]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[5, 5, 5, 5, 5]' is not assignable to type 'readonly [5, 5, 5, 5]'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_8.ts b/ets2panda/test/ast/compiler/ts/as_expression_8.ts index 7ddec257947f3ffa3a67ad7e14eb1468183a132f..1b017115946cc09a7e1f32cadabe0b37f233eebf 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_8.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_8.ts @@ -17,4 +17,4 @@ var a = [5,5,5,5] as const; /* @@ label */a = [5,5,5]; -/* @@@ label Error TypeError: Type '[5, 5, 5]' is not assignable to type 'readonly [5, 5, 5, 5]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[5, 5, 5]' is not assignable to type 'readonly [5, 5, 5, 5]'. */ diff --git a/ets2panda/test/ast/compiler/ts/as_expression_9.ts b/ets2panda/test/ast/compiler/ts/as_expression_9.ts index 703cf597ad3ffb0d0f44fb38a9929c4c85738e5a..8f3d984c7e00620595240d2994383f4694e7097f 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_9.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_9.ts @@ -17,4 +17,4 @@ var a = [5, 5, 5, 5] as const; a = [/* @@ label */"foo", 5]; -/* @@@ label Error TypeError: Type '"foo"' is not assignable to type '5'. */ +/* @@@ label Error Semantic error ESE0000: Type '"foo"' is not assignable to type '5'. */ diff --git a/ets2panda/test/ast/compiler/ts/assignment_never.ts b/ets2panda/test/ast/compiler/ts/assignment_never.ts index 091bbc8bab6b62053de1ca82e1dc0689611f08bc..664373ff33ff4111d373ea4a61a4bb8100b13882 100644 --- a/ets2panda/test/ast/compiler/ts/assignment_never.ts +++ b/ets2panda/test/ast/compiler/ts/assignment_never.ts @@ -16,4 +16,4 @@ let /* @@ label */a: never = null; -/* @@@ label Error TypeError: Type 'null' is not assignable to type 'never'. */ +/* @@@ label Error Semantic error ESE0000: Type 'null' is not assignable to type 'never'. */ diff --git a/ets2panda/test/ast/compiler/ts/call_expression_1.ts b/ets2panda/test/ast/compiler/ts/call_expression_1.ts index 4ed34489fb8cc24573e87818d64d149e509ee5a3..9ba7ec93ba755e26bb7bcd223bc0685a7ee2f4ff 100644 --- a/ets2panda/test/ast/compiler/ts/call_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/call_expression_1.ts @@ -15,4 +15,4 @@ let a = /* @@ label */new 5; -/* @@@ label Error TypeError: This expression is not callable. */ +/* @@@ label Error Semantic error ESE0000: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts b/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts index 9ff07215e44d35eb7b1137a51136b286dd4a38f3..f713ab8c6f4745fe35fcd3f898fac8d87f35c0ef 100644 --- a/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts +++ b/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts @@ -17,4 +17,4 @@ const a = 5; /* @@ label */a = 5; -/* @@@ label Error TypeError: Cannot assign to a because it is a constant. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to a because it is a constant. */ diff --git a/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts b/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts index 4d1d22043bfac452314e4090820050bdd6e2c8da..ad789e02c4f5792848bf0c08722679313880e869 100644 --- a/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts +++ b/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts @@ -16,4 +16,4 @@ a + 2; const a = 6; -/* @@? 18:7 Error TypeError: Block-scoped variable 'a' used before its declaration */ +/* @@? 18:7 Error Semantic error ESE0000: Block-scoped variable 'a' used before its declaration */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_1.ts b/ets2panda/test/ast/compiler/ts/functionCall_1.ts index fa5c2fa5396c17bf899c6c75e252aa21d2cfa14f..22f765e6be30f4477b6e0ed6d9f7191b39007dcf 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_1.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_1.ts @@ -18,4 +18,4 @@ function func(a : number) : void { } func(/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_10.ts b/ets2panda/test/ast/compiler/ts/functionCall_10.ts index c36629caf78762e365768be663f73b93eb18d3b0..2e56c465b1e790c06aeb3d0e7398f4a6814ebb06 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_10.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_10.ts @@ -16,4 +16,4 @@ var func: { (a: number, b: string): number, (a: string, b?: number): string }; /* @@ label */func(); -/* @@@ label Error TypeError: Expected 1-2 arguments, but got 0 */ +/* @@@ label Error Semantic error ESE0000: Expected 1-2 arguments, but got 0 */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_11.ts b/ets2panda/test/ast/compiler/ts/functionCall_11.ts index 7e63899cb901994db31bea4c8a96d63938c9ee4d..5210394f934d9dbdd5704a7ed1f54b3262bb4aa8 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_11.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_11.ts @@ -16,4 +16,4 @@ var func: { (a: number, b: string): number, (a: string, b?: number): string }; func(/* @@ label */1); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_12.ts b/ets2panda/test/ast/compiler/ts/functionCall_12.ts index 761fbc0c622d096ce4cac44cf7af60aca32c1d46..2cf22f27a3018b48d33914062c4e88d7ffc6f8cb 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_12.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_12.ts @@ -16,4 +16,4 @@ var func: { (a: number, b: string): number, (a: string, b?: number): string }; var /* @@ label */a: string = func(1, "foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_13.ts b/ets2panda/test/ast/compiler/ts/functionCall_13.ts index 4bab17ad9fe3045760e67ef540bbe53b715420fe..5272d0f4a6e471990025a4833d8f4e1973e8c2a8 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_13.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_13.ts @@ -17,4 +17,4 @@ var func: { (a?: number, ...c): boolean, (a: any, b: string[], ...c: number[]): string, (a: number, b: boolean): number }; var /* @@ label */a: string = func(); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_14.ts b/ets2panda/test/ast/compiler/ts/functionCall_14.ts index c6d18f89c43b4b145883f78013a4fac6321d7f0a..1aae498cdcab88e4dc340262223a7d409a74fa9a 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_14.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_14.ts @@ -17,4 +17,4 @@ var func: { (a?: number, ...c): boolean, (a: any, b: string[], ...c: number[]): string, (a: number, b: boolean): number }; var /* @@ label */a: string = func(1); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_15.ts b/ets2panda/test/ast/compiler/ts/functionCall_15.ts index 3699080e8aed230a2077a43afaa7b5398949a8a4..1cfbe4d07a8134eeaa534eb3bed6afa4fc90857c 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_15.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_15.ts @@ -17,4 +17,4 @@ var func: { (a: number, ...c): boolean, (a: any, b: string[], ...c: number[]): string, (a: number, b: boolean): number }; /* @@ label */func(); -/* @@@ label Error TypeError: Expected at least 1 arguments, but got 0. */ +/* @@@ label Error Semantic error ESE0000: Expected at least 1 arguments, but got 0. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_2.ts b/ets2panda/test/ast/compiler/ts/functionCall_2.ts index b54016745fa2f93faf02f342387c6e221fe492b9..50f3ae0625bf26ee24bd0dcd06154c25c05e3e45 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_2.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_2.ts @@ -22,4 +22,4 @@ function func2(a : number) : string{ return "foo"; } func1(/* @@ label */func2(5)); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_3.ts b/ets2panda/test/ast/compiler/ts/functionCall_3.ts index 95965c5e2b3c3a594f3334b95db19bfcdf42e99b..7c9266744f958408ef785e09e25cab1d7f3203fa 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_3.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_3.ts @@ -16,4 +16,4 @@ function func(a : number) : void { } func(5, /* @@ label */5); -/* @@@ label Error TypeError: Expected 1 arguments, but got 2. */ +/* @@@ label Error Semantic error ESE0000: Expected 1 arguments, but got 2. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_4.ts b/ets2panda/test/ast/compiler/ts/functionCall_4.ts index ad430c9de1d4e672a8cf8d345fe9f30dc3e03b55..c7db0b75918fd63006203d70e586e6abd372d731 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_4.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_4.ts @@ -19,4 +19,4 @@ function func(a: number) : number { return a < 0 ? func(a) : a; } func(/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_5.ts b/ets2panda/test/ast/compiler/ts/functionCall_5.ts index 9e9a36b2b221691e84172860431434fefe7716de..6e8a6b3e51a26df75009931d02671794384bf40c 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_5.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_5.ts @@ -19,4 +19,4 @@ function func(a: number, b: string, ...c) { } /* @@ label */func() -/* @@@ label Error TypeError: Expected at least 2 arguments, but got 0. */ +/* @@@ label Error Semantic error ESE0000: Expected at least 2 arguments, but got 0. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_6.ts b/ets2panda/test/ast/compiler/ts/functionCall_6.ts index a10ea872813e2cbfe4bb5513dd85ab4f2836721d..cab018abd8f200d64976d7cafd0a3fb5490d5c93 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_6.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_6.ts @@ -17,4 +17,4 @@ function func(/* @@ label */...a: string) { return 6; } -/* @@@ label Error TypeError: A rest parameter must be of an array type */ +/* @@@ label Error Semantic error ESE0000: A rest parameter must be of an array type */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_7.ts b/ets2panda/test/ast/compiler/ts/functionCall_7.ts index 0f68125482305896834375e37e5b0e0ed5c11219..0e37e3194a4051ace0b89a062683bf5eb539afae 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_7.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_7.ts @@ -19,4 +19,4 @@ function func(...a: string[]) { } func(/* @@ label */2); -/* @@@ label Error TypeError: Argument of type 'number' is not assignable to parameter of type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Argument of type 'number' is not assignable to parameter of type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_8.ts b/ets2panda/test/ast/compiler/ts/functionCall_8.ts index 585a0034a4cd820d22298577d76910a87d1cda3a..5dc0dea6ab7f26b9cb1c0a6e0681644c2bdc2540 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_8.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_8.ts @@ -18,4 +18,4 @@ function func(a?: number, ...c: string[]) { } func(/* @@ label */"bar") -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionCall_9.ts b/ets2panda/test/ast/compiler/ts/functionCall_9.ts index ab372c59a98c128cdb7604da2edca8346a528549..0063a7319993f71ec9810360a0856c2520de387d 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_9.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_9.ts @@ -19,4 +19,4 @@ function func(a: number, b: string, c?: number[]) { } /* @@ label */func(1); -/* @@@ label Error TypeError: Expected 2-3 arguments, but got 1 */ +/* @@@ label Error Semantic error ESE0000: Expected 2-3 arguments, but got 1 */ diff --git a/ets2panda/test/ast/compiler/ts/functionOverload3.ts b/ets2panda/test/ast/compiler/ts/functionOverload3.ts index 5629257472db6819020e082cd0ff06329dd3faa4..ff5d1229f638540bf61e3fa7626c8f9a7436bfb2 100644 --- a/ets2panda/test/ast/compiler/ts/functionOverload3.ts +++ b/ets2panda/test/ast/compiler/ts/functionOverload3.ts @@ -19,4 +19,4 @@ function foo(a: string | number, b: string, c: number): number; function foo(a: string | number, b?: string, c?: number) { return "foo"; } -/* @@@ label Error TypeError: This overload signature is not compatible with its implementation signature */ +/* @@@ label Error Semantic error ESE0000: This overload signature is not compatible with its implementation signature */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts index 789085d752287ce4c50ca0ef115d1fdb3da8b149..357cabb68f90818d0a0a390d48753e4c5d03b7ca 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts @@ -19,4 +19,4 @@ function foo([{ x = 6 }, y = "foo", z] = [{ x: "foo" }, 2, 3]) { } /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types ([{ x }, y, z]?: [{ x: string; }, number, number]) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types ([{ x }, y, z]?: [{ x: string; }, number, number]) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts index a7c6eca2cb333cd4ca08eaa265451d05c551fb1d..631d3160d07c358b8b0c010a554bb842a725b857 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts @@ -20,4 +20,4 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: foo([3, { b: [true, []], /* @@ label */t: 5 }, 5n], {}); -/* @@@ label Error TypeError: Type 'number' is not assignable to type '{ a: number; b: { a: number; b: bigint; }; }'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '{ a: number; b: { a: number; b: bigint; }; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts index 9d0772086aa1979ac27e28c850d4e4e849c69dc9..74274bfbaafcd3312ca02e886ec87610d2907cf7 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts @@ -20,4 +20,4 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: foo([2, { b: [true, []], t: { a: 1, /* @@ label */z: "foo" } }, 5n], {}); -/* @@@ label Error TypeError: Object literal may only specify known properties, and "z" does not exist in type '{ a: number; b: { a: number; b: bigint; }; }'. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "z" does not exist in type '{ a: number; b: { a: number; b: bigint; }; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts index eea59d2b350a99b2a779037f38f1699e801d00d6..3b1acf3fb6f9cc16bcfdaadaa601eb27b5c82a28 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts @@ -20,4 +20,4 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: foo(["foo", {}, 5n], { r: [[/* @@ label */"foo"]] }); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts index 20b78adc61dd2ffbd7df1f6e42f3871c25012d43..4eeb6acd28e4f1a1be418c60548911b9475ad4ca 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts @@ -19,4 +19,4 @@ function foo({ x = 6, y = "foo" } = { x: "foo" }) { } /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types ({ x, y }?: { x?: string; y?: string; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types ({ x, y }?: { x?: string; y?: string; }) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern3.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern3.ts index 88e8ef801b214996456f06076bec48d97a284e22..dcf95a079a9820d1209831293d72988cd331e784 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern3.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern3.ts @@ -19,4 +19,4 @@ function foo({ x: { asd }, y: { t = 6, r = "foo" } = { t: "foo" } }) { } /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types ({ x: { asd }, y: { t, r } }: { x?: { asd: any; }; y?: { t: string; }; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types ({ x: { asd }, y: { t, r } }: { x?: { asd: any; }; y?: { t: string; }; }) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern4.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern4.ts index 2421b9b8a027a611f39e18042a6c3e4f89092d05..b69ffedd77c509fcef943a087f921996caba23a3 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern4.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern4.ts @@ -19,4 +19,4 @@ function foo({ a, b: { t = "foo" } = { t: 3 }, d: [e = {}, f = 6] = [3, ["foo", } /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types ({ a, b: { t }, d: [e, f] }?: { a: boolean; b?: { t: number; }; d?: [number, [string, string]]; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types ({ a, b: { t }, d: [e, f] }?: { a: boolean; b?: { t: number; }; d?: [number, [string, string]]; }) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts index b2d2f1e01c94fba728919baf382eadd737cd626a..b5984e777a0ab73f7fb46980be1a33fd24e5c290 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts @@ -19,4 +19,4 @@ function foo({ a, b: { t = "foo" } = { t: 3 }, d: [e = {}, f = 6] = [3, ["foo", } foo({ /* @@ label */a: 5 }); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts index f88b71f93cb85347fa34392c2a8634062f86bf37..0657b2d061065e9e34d96fb0ce6df29ffbcf106e 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts @@ -19,4 +19,4 @@ function foo({ a, b: { t = "foo" } = { t: 3 }, d: [e = {}, f = 6] = [3, ["foo", } foo({ a: false, b: { /* @@ label */r: "foo " } }); -/* @@@ label Error TypeError: Object literal may only specify known properties, and "r" does not exist in type '{ t: number; }'. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "r" does not exist in type '{ t: number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts index 618cb363d4ba674d88c4be8e30b4941a43c85a28..c2e2011780c4df7c69c3b3c62e97224a001d1942 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts @@ -20,4 +20,4 @@ function foo({ a, b: { t = "foo" } = { t: 3 }, d: [e = {}, f = 6] = [3, ["foo", foo({ a: false, b: { t: 7 }, d: [2, /* @@ label */5n] }); -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'string[]'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'string[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts index 5795cb9bf0c5edce27789bce92f49197b8920620..56332422b347af0729c2b65efdb1306be8e7879c 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts @@ -20,4 +20,4 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types ([a, { b: [c, d], t }]: [number, { b?: [boolean, (bigint | string)[]]; t?: { a: number; b: { a: number; b: bigint; }; }; }], { r: [[r, z]] }: { r?: [[number, string]]; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types ([a, { b: [c, d], t }]: [number, { b?: [boolean, (bigint | string)[]]; t?: { a: number; b: { a: number; b: bigint; }; }; }], { r: [[r, z]] }: { r?: [[number, string]]; }) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts index f3a8ce75d5f0166abf674641b23e317e1b9f2492..ac1eaa41ac0e42520436dd58d5ab90f7b2a340ec 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts @@ -20,4 +20,4 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: foo([1, { /* @@ label */b: [] }, 5n], {}); -/* @@@ label Error TypeError: Type '[]' is not assignable to type '[boolean, (bigint | string)[]]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[]' is not assignable to type '[boolean, (bigint | string)[]]'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_1.ts b/ets2panda/test/ast/compiler/ts/function_declaration_1.ts index 1ebfe5e5b5e58644e491bfb7f44275c4c2797d2b..87428652dc1483699dfc18fbf1bae5437cea5cf7 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_1.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_1.ts @@ -17,4 +17,4 @@ function foo(): /* @@ label */string { } -/* @@@ label Error TypeError: A function whose declared type is neither 'void' nor 'any' must return a value. */ +/* @@@ label Error Semantic error ESE0000: A function whose declared type is neither 'void' nor 'any' must return a value. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_10.ts b/ets2panda/test/ast/compiler/ts/function_declaration_10.ts index e8548497ab3bc9de4f9def87f118aff0e24787be..a974d1168ecd01779c92a4aa172f06ed938deb3e 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_10.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_10.ts @@ -18,4 +18,4 @@ function foo(): boolean { /* @@ label */return 5; } -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_11.ts b/ets2panda/test/ast/compiler/ts/function_declaration_11.ts index 21221e0f67bd6a2716dd161725996835a5b259a7..21297719273871d5474a83f0149bb0fb45a084a6 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_11.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_11.ts @@ -17,4 +17,4 @@ function foo(): /* @@ label */never { } -/* @@@ label Error TypeError: A function returning 'never' cannot have a reachable end point. */ +/* @@@ label Error Semantic error ESE0000: A function returning 'never' cannot have a reachable end point. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_2.ts b/ets2panda/test/ast/compiler/ts/function_declaration_2.ts index d5698855e17e29ca04b349b3b24ea7b3bff57e25..b3ae6f465cd37921cfb222576f64e1ab47eb6f2a 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_2.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_2.ts @@ -18,4 +18,4 @@ function foo(): string { /* @@ label */return 5; } -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_3.ts b/ets2panda/test/ast/compiler/ts/function_declaration_3.ts index 436a6e612675f703a72e0ab3d5327951da3d7cc4..39d44851f23203f1b147683df45ba76b3b9566e8 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_3.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_3.ts @@ -18,4 +18,4 @@ function foo(): string { /* @@ label */return false; } -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_4.ts b/ets2panda/test/ast/compiler/ts/function_declaration_4.ts index aabb94e87dce28c28874edd81553facdda992c38..0d858ffc4fc8076bf1b5344ddb4bfb724e107b5e 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_4.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_4.ts @@ -17,4 +17,4 @@ function foo(): number { } -/* @@? 17:17 Error TypeError: A function whose declared type is neither 'void' nor 'any' must return a value. */ +/* @@? 17:17 Error Semantic error ESE0000: A function whose declared type is neither 'void' nor 'any' must return a value. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_5.ts b/ets2panda/test/ast/compiler/ts/function_declaration_5.ts index f55b4ba2950d793b41a14f237451705601306db1..8e4b919486ff41dc12cf8c9a11258064f47e509b 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_5.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_5.ts @@ -18,4 +18,4 @@ function foo(): number { /* @@ label */return false; } -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_6.ts b/ets2panda/test/ast/compiler/ts/function_declaration_6.ts index 98c394ba3a19adb653912df75148dfdf7a59254c..f5ebb7e61f428dcafe5564db31dcde6bedfb821c 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_6.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_6.ts @@ -17,4 +17,4 @@ function foo(): /* @@ label */bigint { } -/* @@@ label Error TypeError: A function whose declared type is neither 'void' nor 'any' must return a value. */ +/* @@@ label Error Semantic error ESE0000: A function whose declared type is neither 'void' nor 'any' must return a value. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_7.ts b/ets2panda/test/ast/compiler/ts/function_declaration_7.ts index cd2aa5cb1a1d33421e48e69836617f52d3d3daf8..b5c02d6ba56ab3320461c03bf34bebb438ad9e95 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_7.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_7.ts @@ -18,4 +18,4 @@ function foo(): bigint { /* @@ label */return 5; } -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_8.ts b/ets2panda/test/ast/compiler/ts/function_declaration_8.ts index 1a8491554f371431776f9caa6acb7010c1d8f9a6..75dc913b2eb40493bbb7e077cf2a8a43e35b7e52 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_8.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_8.ts @@ -18,4 +18,4 @@ function foo(): bigint { /* @@ label */return false; } -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_9.ts b/ets2panda/test/ast/compiler/ts/function_declaration_9.ts index 7b97900d1c6cff5d897d60ebdb06d853097608e1..93dd9addda0ba1f9bb9d68f29643df55393ac11a 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_9.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_9.ts @@ -17,4 +17,4 @@ function foo(): /* @@ label */boolean { } -/* @@@ label Error TypeError: A function whose declared type is neither 'void' nor 'any' must return a value. */ +/* @@@ label Error Semantic error ESE0000: A function whose declared type is neither 'void' nor 'any' must return a value. */ diff --git a/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts b/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts index cf4fe2fd591301aad8431305b4c5609ec1ca631b..06a64abfa05548972a4a5c9285a7ecc4acd25091 100644 --- a/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts +++ b/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts @@ -19,4 +19,4 @@ var a: number; var b: typeof a; b = 12; /* @@ label */foo = 4; -/* @@@ label Error TypeError: Cannot find name foo */ +/* @@@ label Error Semantic error ESE0000: Cannot find name foo */ diff --git a/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts b/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts index 28e5943c2af7cb8edec096f5375b65cc0149e491..a944a801e45df77a32299283ae4943f9b94119df 100644 --- a/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts +++ b/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts @@ -18,4 +18,4 @@ let b = /* @@ label */(a?: number) -/* @@@ label Error SyntaxError: Unexpected token '?'. */ +/* @@@ label Error Syntax error ESY0000: Unexpected token '?'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_1.ts b/ets2panda/test/ast/compiler/ts/in_1.ts index 617029b45d51e3c851d4bdffb1420a2ec0b01547..5c3079b50868b62c09690646ef5ecdf403d80f86 100644 --- a/ets2panda/test/ast/compiler/ts/in_1.ts +++ b/ets2panda/test/ast/compiler/ts/in_1.ts @@ -18,4 +18,4 @@ var a: null; var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: Object is possibly 'null'. */ +/* @@@ label Error Semantic error ESE0000: Object is possibly 'null'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_10.ts b/ets2panda/test/ast/compiler/ts/in_10.ts index 85053a7f8c840f2c76d1f7c5308374a6604a7777..a80de7037f4f505f3d71ac9f320e98c51475db5a 100644 --- a/ets2panda/test/ast/compiler/ts/in_10.ts +++ b/ets2panda/test/ast/compiler/ts/in_10.ts @@ -18,4 +18,4 @@ var a: (string|number); var b: number; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_11.ts b/ets2panda/test/ast/compiler/ts/in_11.ts index 3614d6b8c845e51f6897349e8659f5aa4b9cd289..9d1e4e720c7ba85ff2c4aa03b047e5993b9d330c 100644 --- a/ets2panda/test/ast/compiler/ts/in_11.ts +++ b/ets2panda/test/ast/compiler/ts/in_11.ts @@ -18,4 +18,4 @@ var a: any; var b: string; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_12.ts b/ets2panda/test/ast/compiler/ts/in_12.ts index 96d24d9ef2c732d422ff71120a1b5ef5e6cfebcc..e705d293af91eb3042c890813359817ce17ab593 100644 --- a/ets2panda/test/ast/compiler/ts/in_12.ts +++ b/ets2panda/test/ast/compiler/ts/in_12.ts @@ -18,4 +18,4 @@ var a: any; var b: number; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_13.ts b/ets2panda/test/ast/compiler/ts/in_13.ts index 78c2a69b4eb0393405ee80cb6d859c289477b82a..dca1aacfc1a45b1a332e36cd922e1d6b16536f49 100644 --- a/ets2panda/test/ast/compiler/ts/in_13.ts +++ b/ets2panda/test/ast/compiler/ts/in_13.ts @@ -18,4 +18,4 @@ var a: any; var b: bigint; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_14.ts b/ets2panda/test/ast/compiler/ts/in_14.ts index 7a053849b9aef8732bc03c4f7973dc78f8939f78..a38ed0270cae8074c61e7c352137d6db3ef20d82 100644 --- a/ets2panda/test/ast/compiler/ts/in_14.ts +++ b/ets2panda/test/ast/compiler/ts/in_14.ts @@ -18,4 +18,4 @@ var a: any; var b: boolean; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_15.ts b/ets2panda/test/ast/compiler/ts/in_15.ts index a41c1faa581f3e53fad28bd6e789d2ecef2b3ee4..66d4212445c9c8e45c002965c5cdef42f3234d68 100644 --- a/ets2panda/test/ast/compiler/ts/in_15.ts +++ b/ets2panda/test/ast/compiler/ts/in_15.ts @@ -18,4 +18,4 @@ var a: any; var b: (string|number|bigint|boolean); a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_2.ts b/ets2panda/test/ast/compiler/ts/in_2.ts index 4389b8a40360eef160ae39bb25909652b4264774..1596a319d956b3681467a052394b9c2a4f64f824 100644 --- a/ets2panda/test/ast/compiler/ts/in_2.ts +++ b/ets2panda/test/ast/compiler/ts/in_2.ts @@ -18,4 +18,4 @@ var a: any; var b: null; a in /* @@ label */b; -/* @@@ label Error TypeError: Object is possibly 'null'. */ +/* @@@ label Error Semantic error ESE0000: Object is possibly 'null'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_3.ts b/ets2panda/test/ast/compiler/ts/in_3.ts index fda6da2f136ec3812c587f25b4542adebeefecb8..237089a164f0af92bc7acfc22bac5377d565bec5 100644 --- a/ets2panda/test/ast/compiler/ts/in_3.ts +++ b/ets2panda/test/ast/compiler/ts/in_3.ts @@ -18,4 +18,4 @@ var a: undefined; var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: Object is possibly 'undefined'. */ +/* @@@ label Error Semantic error ESE0000: Object is possibly 'undefined'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_4.ts b/ets2panda/test/ast/compiler/ts/in_4.ts index a72542ad4da77899fafb40612e6b7f915de8ea3d..85ddc8e9527b3856b01adbf4e8869038124e11d0 100644 --- a/ets2panda/test/ast/compiler/ts/in_4.ts +++ b/ets2panda/test/ast/compiler/ts/in_4.ts @@ -18,4 +18,4 @@ var a: any; var b: undefined; a in /* @@ label */b; -/* @@@ label Error TypeError: Object is possibly 'undefined'. */ +/* @@@ label Error Semantic error ESE0000: Object is possibly 'undefined'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_5.ts b/ets2panda/test/ast/compiler/ts/in_5.ts index 9d72f02200b0b75221bd20f9acbcdf055c860be3..30da08f972bea9d7256fd691ee87b00ea7e9f0e4 100644 --- a/ets2panda/test/ast/compiler/ts/in_5.ts +++ b/ets2panda/test/ast/compiler/ts/in_5.ts @@ -18,4 +18,4 @@ var a: bigint; var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_6.ts b/ets2panda/test/ast/compiler/ts/in_6.ts index 68ee2dcd2048a73e6ced89df25638aaf4cb1d958..7b7fb58e5dc6b73c1d5de52a9bd7893648207e0c 100644 --- a/ets2panda/test/ast/compiler/ts/in_6.ts +++ b/ets2panda/test/ast/compiler/ts/in_6.ts @@ -18,4 +18,4 @@ var a: boolean; var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_7.ts b/ets2panda/test/ast/compiler/ts/in_7.ts index e7a22a78a9538d6ba261d1d498deb735ea09318b..1d3e3d4e16fe3aa51d7bc50211b4a088e2ea2fd0 100644 --- a/ets2panda/test/ast/compiler/ts/in_7.ts +++ b/ets2panda/test/ast/compiler/ts/in_7.ts @@ -18,4 +18,4 @@ var a: (string|number|bigint|boolean); var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ diff --git a/ets2panda/test/ast/compiler/ts/in_8.ts b/ets2panda/test/ast/compiler/ts/in_8.ts index 94de51b0dea9fa7c99017eb1838f43111874d073..aeef3c7833e0d950872aa1e47b3c6464f9ac3583 100644 --- a/ets2panda/test/ast/compiler/ts/in_8.ts +++ b/ets2panda/test/ast/compiler/ts/in_8.ts @@ -18,4 +18,4 @@ var a: number; var b: number; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/in_9.ts b/ets2panda/test/ast/compiler/ts/in_9.ts index d9dd4f90de8fb1ab33c2ad0791fa75d354b2e797..e73c07bb5401a24e9712343bc9c287c986e55c3b 100644 --- a/ets2panda/test/ast/compiler/ts/in_9.ts +++ b/ets2panda/test/ast/compiler/ts/in_9.ts @@ -18,4 +18,4 @@ var a: string; var b: number; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_1.ts b/ets2panda/test/ast/compiler/ts/instanceof_1.ts index c46e0d84cdaa45f803ddacbed59b3a24e84e8140..e598ac9a3c2cae49c8b0b01be83b90a40c041692 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_1.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_1.ts @@ -18,4 +18,4 @@ var a: string; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_10.ts b/ets2panda/test/ast/compiler/ts/instanceof_10.ts index 6ca860b73eb1b11cdfdfb27aa06be38a1d7cfd24..93f099da8b122543b4c143ea5c869b1328df1e7c 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_10.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_10.ts @@ -18,4 +18,4 @@ var a: any; var b: string; a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_11.ts b/ets2panda/test/ast/compiler/ts/instanceof_11.ts index c43d215afb7d71fa0d857852eb4e76b74a609624..cacb462ca04c2bff58737cab23c4c1b338c8ead3 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_11.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_11.ts @@ -18,4 +18,4 @@ var a: any; var b: number; a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_12.ts b/ets2panda/test/ast/compiler/ts/instanceof_12.ts index e3bd9a3b1466eb844317fac7eceb439e502c5b88..dcf78325ad7b0a3c3e436a1557535f8f3addf049 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_12.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_12.ts @@ -18,4 +18,4 @@ var a: any; var b: bigint; a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_13.ts b/ets2panda/test/ast/compiler/ts/instanceof_13.ts index 3e53a6fe80e704a790f968c8f27fd01cceb75809..ea28a51d9609f5b23a54b671633faae63a7e4ca5 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_13.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_13.ts @@ -18,4 +18,4 @@ var a: any; var b: boolean; a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_14.ts b/ets2panda/test/ast/compiler/ts/instanceof_14.ts index fc376f5cbcca64002cc4a280d2a6253a8ee4d360..2d4c04db0973ef7c2231803e3c3f61ec02c7e0c4 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_14.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_14.ts @@ -18,4 +18,4 @@ var a: any; var b: (string|number|bigint|boolean); a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_2.ts b/ets2panda/test/ast/compiler/ts/instanceof_2.ts index 7ded04e5f363057ce1b28ccb50f4051c655246fe..1efa81c3787c9d844dc11dc6e733154fc874bf44 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_2.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_2.ts @@ -19,4 +19,4 @@ a = "foo"; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_3.ts b/ets2panda/test/ast/compiler/ts/instanceof_3.ts index 7fc54d01faeb21ccfde45a6e572cdfc456c1c839..02c8e0d24fc9374b789f2835bd593857aa6e2cc3 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_3.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_3.ts @@ -18,4 +18,4 @@ var a: number; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_4.ts b/ets2panda/test/ast/compiler/ts/instanceof_4.ts index 1bce045f7ee3993bf68e9559982324e531a2f0af..96c4d0d73771e41cffaf460ba6180aed6fd4f490 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_4.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_4.ts @@ -19,4 +19,4 @@ a = 5; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_5.ts b/ets2panda/test/ast/compiler/ts/instanceof_5.ts index d4bfafc5835190f9fcb904494cb2baf2822d3fd1..eccdf510c65f304c74e631a329a68cd0c9b6b112 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_5.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_5.ts @@ -18,4 +18,4 @@ var a: bigint; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_6.ts b/ets2panda/test/ast/compiler/ts/instanceof_6.ts index 9d06062aa1ccb005f1bcdfb0198fe929972d1260..b17b972194d4ce0b21d89cffbc5ecbf2d602d1c8 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_6.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_6.ts @@ -19,4 +19,4 @@ a = 5n; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_7.ts b/ets2panda/test/ast/compiler/ts/instanceof_7.ts index e812fc52a3abb74dba96a515fddb83cbb0736fe2..4abf76973f1683394d631d395dfdfb9904010520 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_7.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_7.ts @@ -18,4 +18,4 @@ var a: boolean; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_8.ts b/ets2panda/test/ast/compiler/ts/instanceof_8.ts index da918b1aa1fa697d9f86beaeff99bb0d55a28c4a..c8c38bb38b185aebba47ecc7bc708aa13ffdd91b 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_8.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_8.ts @@ -19,4 +19,4 @@ a = false; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/instanceof_9.ts b/ets2panda/test/ast/compiler/ts/instanceof_9.ts index dabe86c77a4947e76cb6c808da221c1439a7f36a..1c4fe3bb300c6f6b3d6e7426fed17f29f4143a67 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_9.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_9.ts @@ -18,4 +18,4 @@ var a: (string|number|bigint|boolean); var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts index 61def49250fa2851cb16c27a887d18952a590312..d85f4dd5c9eb4b9381a73b778cb4a668eca29436 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts @@ -24,4 +24,4 @@ interface A { b: string; } -/* @@@ label Error TypeError: Type '{ a: 5; }' is not assignable to type 'A'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: 5; }' is not assignable to type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts index 5c3c7f0aa98effd52262acc1e928fb0b8a7384c3..2c637cda20b1ceaabbe7b46516fb506a9fac2803 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts @@ -28,4 +28,4 @@ var a: A; var b: B; /* @@ label */a = b; -/* @@@ label Error TypeError: Type 'B' is not assignable to type 'A'. */ +/* @@@ label Error Semantic error ESE0000: Type 'B' is not assignable to type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts index 5233066ecca5047664020c7f5395cfca931e6ed6..b99bf094444fb31f044f7f6e6ba2abb03bf429ea 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts @@ -36,4 +36,4 @@ var a: A; a = d; /* @@ label */d = a; -/* @@@ label Error TypeError: Type 'A' is not assignable to type 'D'. */ +/* @@@ label Error Semantic error ESE0000: Type 'A' is not assignable to type 'D'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts index 2f1c49d495236168131d93367a66342657bb82a4..0d231831645b08fc90f62a59d000ebe90095495f 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts @@ -20,4 +20,4 @@ interface A { } var a: A = { a: 1, b: [true, "foo", /* @@ label */2] }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts index a574145848b4e2cab17262a4080fe0477f483d2f..eeac95ffdb69b09bce4d724cff75477ec7940c0d 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts @@ -27,4 +27,4 @@ interface C extends B, A, B { } var /* @@ label */c: C = { a: 2, c: "foo" }; -/* @@@ label Error TypeError: Type '{ a: 2; c: "foo"; }' is not assignable to type 'C'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: 2; c: "foo"; }' is not assignable to type 'C'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts index a5a6ab3c6be30e3aefb6634a4b8e7e24eb114faa..5c8442bfdd318603e9f692a4fb9e16d51ebf3030 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts @@ -21,4 +21,4 @@ interface A { var a: A = { /* @@ label */5: "foo" }; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts index 4074efbc893f7bdfab4f57b0cc108f0661b7555d..c437c97df0ba252df40d193faa5ff132e4e6c519 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts @@ -21,4 +21,4 @@ interface A { } var /* @@ label */a: A = { a: 5, b: "foo" }; -/* @@@ label Error TypeError: Type '{ a: 5; b: "foo"; }' is not assignable to type 'A'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: 5; b: "foo"; }' is not assignable to type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts index d7f49cc71b2bc0f100f8884b72b826543b965d4f..3c1aa98b60a438617a39a54deb2b6704a7a083c2 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts @@ -26,4 +26,4 @@ var a: A; var b: B; /* @@ label */a = b; -/* @@@ label Error TypeError: Type 'B' is not assignable to type 'A'. */ +/* @@@ label Error Semantic error ESE0000: Type 'B' is not assignable to type 'A'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts index 53075fd0bf78d4129b975cce8ef9fb24215b8ebf..c400a45c9cafdfc794657feed3d46e3f66dd2cec 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts @@ -25,4 +25,4 @@ interface B extends A { interface C extends B { } -/* @@@ label Error TypeError: Type A recursively references itself as a base type. */ +/* @@@ label Error Semantic error ESE0312: Type A recursively references itself as a base type. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts index fbf5cf39c7aeaeae55a3262afe32d389028430f5..dcefc6cabe1ae2511b5b6d1ea72800d031967b14 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts @@ -21,4 +21,4 @@ interface A { interface /* @@ label */B extends A { a: string; } -/* @@@ label Error TypeError: Interface 'B' incorrectly extends interface 'A' */ +/* @@@ label Error Semantic error ESE0320: Interface 'B' incorrectly extends interface 'A' */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts index 8be14c0002d1322000e4a2578415ae4b91ecf8de..8128d36d7352f6dec1d75cc3ba94583d6ee5fead 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts @@ -21,4 +21,4 @@ interface A { interface B extends A { /* @@ label */5: boolean; } -/* @@@ label Error TypeError: Property '5' of type 'boolean' is not assignable to numeric index type 'number'. */ +/* @@@ label Error Semantic error ESE0324: Property '5' of type 'boolean' is not assignable to numeric index type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts index 2b47dd814e9143c04ebcd2487d84c72a0b7d4029..6ac2e208caad7c266faa40c12a2dddfc31adebca 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts @@ -25,4 +25,4 @@ interface B { } interface /* @@ label */C extends A, B { } -/* @@@ label Error TypeError: Interface 'C' incorrectly extends interface 'B' */ +/* @@@ label Error Semantic error ESE0320: Interface 'C' incorrectly extends interface 'B' */ diff --git a/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts b/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts index cf2c2eee10385dee1186663055a202f2b97dc5df..fbdced5296ad4344051404ff82321c539368bb30 100644 --- a/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts +++ b/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts @@ -27,4 +27,4 @@ var foo: B; foo.a.b.b.a.c./* @@ label */r -/* @@@ label Error TypeError: Property r does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property r does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts b/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts index e66a8cfbcfcebcce3aacf3bc1dae600d037f02e8..bf1907f3509e14e6162ca93e16bd418935a27415 100644 --- a/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts +++ b/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts @@ -18,4 +18,4 @@ interface A { [x: string]: boolean, /* @@ label */a: string; } -/* @@@ label Error TypeError: Property 'a' of type 'string' is not assignable to string index type 'boolean'. */ +/* @@@ label Error Semantic error ESE0327: Property 'a' of type 'string' is not assignable to string index type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts b/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts index 9a2ea92c82e5ff6555668ae99579070b4f0ccfe6..f95aebb16e1aa0c4ef8faf1c0a51f24cce0fc8be 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts @@ -23,4 +23,4 @@ interface a { var b = /* @@ label */a; -/* @@@ label Error TypeError: a only refers to a type, but is being used as a value here. */ +/* @@@ label Error Semantic error ESE0000: a only refers to a type, but is being used as a value here. */ diff --git a/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts b/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts index e8fa9201617782ceabe2c11f13cf12d791b15e66..d46277a3b0ab3e0027069f284fc8fc7ab5bc48eb 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts @@ -19,4 +19,4 @@ interface A { [x: string]: number, } -/* @@@ label Error TypeError: Number index info type string is not assignable to string index info type number. */ +/* @@@ label Error Semantic error ESE0000: Number index info type string is not assignable to string index info type number. */ diff --git a/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts b/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts index e1f8a1835f9b9109965d2076082d7c2de36c014f..171b4260f041d48fbd135d7864263e2f86625a51 100644 --- a/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts +++ b/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts @@ -17,4 +17,4 @@ a = 2; let /* @@ label */a: number; -/* @@@ label Error TypeError: Block-scoped variable 'a' used before its declaration */ +/* @@@ label Error Semantic error ESE0000: Block-scoped variable 'a' used before its declaration */ diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts index f2236407f292dcba2ae0005589f26ce85f246046..08b86117b703d964e95c1791ff4ad4be197ebbed 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts @@ -21,4 +21,4 @@ var b: a; b.foo = 2; b.bar = "bar"; b./* @@ label */foobar = 2; -/* @@@ label Error TypeError: Property foobar does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property foobar does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts index eb8546f51e1f7d44d9d309774df1085d764a9dff..22bcaf35423f84ae2f8792da045365872d4de02f 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts @@ -26,4 +26,4 @@ var c: b; var d: a; c.foobar = d; c.foobar./* @@ label */foobar = b; -/* @@@ label Error TypeError: Property foobar does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property foobar does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts index 64e8caf0b6a7a9f9fe1bdd158ded49b23dcafa85..1ec64feddf78fdec128f8f2b1b8ab891821ea982 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts @@ -25,4 +25,4 @@ interface c { } var a5: c; /* @@ label */a5.bar.foo[0].a.bar = false; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string | number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string | number'. */ diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts index 8ddbc992404efe2d4cffe0ed516855ad9be74e5f..07634e0ce903e29fd7c9966d07fcfe1d954863f5 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts @@ -25,4 +25,4 @@ interface b extends a { var c: b; /* @@ label */c.a = "foo"; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts index d0ff77a08c885259714589ed5e729d60cac00a68..7930202d8b008f87e8f42e69583db6290ec1ad27 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts @@ -25,4 +25,4 @@ interface b extends a { var c: b; /* @@ label */c.d = "foo"; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts index b664a3e76f06f25697e71506eae7ae98ec5421b5..25b5a71ba268d690929bf29669dc0c7fb7ef8cd2 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts @@ -27,4 +27,4 @@ var a: A | B; a.a; a.b; a./* @@ label */d; -/* @@@ label Error TypeError: Property d does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property d does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_1.ts b/ets2panda/test/ast/compiler/ts/member_expression_1.ts index 31df7d91547ce9f42685aad45b3549f60bc4d091..7a0ee5b9073b0ca9450ac552ec84fb0e6984d3ff 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_1.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_10.ts b/ets2panda/test/ast/compiler/ts/member_expression_10.ts index 3c607912f94a956c0a81a8b18d1a372a5b09486a..9b7899e065979f8cef42db81c40fa97c2def9cca 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_10.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_10.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_11.ts b/ets2panda/test/ast/compiler/ts/member_expression_11.ts index ed5e4e49bcee0aad6a5c56627b8f9420103b0d59..1aa9572b9c074615e3a6657c02d00cf144803070 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_11.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_11.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_12.ts b/ets2panda/test/ast/compiler/ts/member_expression_12.ts index 01571e817a4291c8e684aad6912efae6deccf3cc..b6a336ede629a9578b9f6ee210c48ac46b1f5c47 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_12.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_12.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_13.ts b/ets2panda/test/ast/compiler/ts/member_expression_13.ts index 4afe3c085b2e498c8ae2f3f7b456f8d3db28fb5d..bb350f4fe69f3b4da917cfb9f1c80236a6e21ce0 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_13.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_13.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_14.ts b/ets2panda/test/ast/compiler/ts/member_expression_14.ts index 26b7835a51416657ccb22595cbb03cd0892dbcc8..fed4af435b6ad88c448dccf0ee4d32c5758c4731 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_14.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_14.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_15.ts b/ets2panda/test/ast/compiler/ts/member_expression_15.ts index 777156605053b57a227ebae06fbd3de21d0283b4..96d6338359c2da5a342702d7d53a1f8c935a540a 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_15.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_15.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_16.ts b/ets2panda/test/ast/compiler/ts/member_expression_16.ts index 18950f9947b41e75f2d1ec80ec63a80284bc13ca..9bd27e63aa1603ed59692add1e2fa7ff23bc008a 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_16.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_16.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_17.ts b/ets2panda/test/ast/compiler/ts/member_expression_17.ts index 6c839eeeca931ea3385ca6b471ef3347b063c571..1e6d6ac0985a238cf1147a13dd7b124eb6634353 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_17.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_17.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_18.ts b/ets2panda/test/ast/compiler/ts/member_expression_18.ts index 72b38476ba2c5618c823b0bba95716406bf06d1c..04a22c54b2e983bed2887d992ee8c0db2d8226e1 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_18.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_18.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_19.ts b/ets2panda/test/ast/compiler/ts/member_expression_19.ts index 13a98566eb6a179e29da8536154beddd289a45c7..284c39e25752a905c3632ca1b2382cdf54c786ae 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_19.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_19.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_2.ts b/ets2panda/test/ast/compiler/ts/member_expression_2.ts index 767ef0daf1045d92296b6fb310f4d00622776f85..f128efd51e41564745e1d6c5fe5dce0a3ab4cdfd 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_2.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_2.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_20.ts b/ets2panda/test/ast/compiler/ts/member_expression_20.ts index da6e0b15cfa477d3397d9bd115fbfc3d9500108e..3d0caf4453470021b1587058de8a1be68fd8b3f0 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_20.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_20.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_21.ts b/ets2panda/test/ast/compiler/ts/member_expression_21.ts index f605fe3ff06bc20283b23061c834092cc70e0f5d..499bb841446676695634b2ce31399a27d59b2d30 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_21.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_21.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_22.ts b/ets2panda/test/ast/compiler/ts/member_expression_22.ts index 4453ba225d7d63491307433a51e02992b49c074e..ee1741bab46e5c5500103674d0c4774ce94a49c4 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_22.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_22.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_23.ts b/ets2panda/test/ast/compiler/ts/member_expression_23.ts index 1e7714faf729c4b2cc5e09d641437dd1b522ef76..59e63af201e7aae58a8e2cde7142b49f83573839 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_23.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_23.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_24.ts b/ets2panda/test/ast/compiler/ts/member_expression_24.ts index 8a00ebfcf175d331d948029f16a4b91291e0403a..b5a65936440571499298030b0714760527a9bd6c 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_24.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_24.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_25.ts b/ets2panda/test/ast/compiler/ts/member_expression_25.ts index 1d4714c5808f97f13896cf0fdd844f2b5ad99982..1da104779c68c796e27ef571bfc6a6710a01f052 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_25.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_25.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_26.ts b/ets2panda/test/ast/compiler/ts/member_expression_26.ts index 4a0470b979245a3bd80261fdf14463842b185815..eaf4851ca19cdeb6de13b9476b48fc85fa3d8831 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_26.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_26.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_27.ts b/ets2panda/test/ast/compiler/ts/member_expression_27.ts index e24b7ea26647f495b6f1608fdc773d1278e9fe2c..441fdee9fc901d11fae448fbd46d5aa46bd63f62 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_27.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_27.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_28.ts b/ets2panda/test/ast/compiler/ts/member_expression_28.ts index 7a695a09c87c89d4dadb8fa921d4257fc74ce4b5..60a0e13403e72dabe7a4efe9735788dcddaf4e33 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_28.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_28.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_29.ts b/ets2panda/test/ast/compiler/ts/member_expression_29.ts index 10844536af4548014270548cab493f84b0d3f0a8..12f9f7d9880b6b9ac4480ca4c90d76c28f5d94ca 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_29.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_29.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_3.ts b/ets2panda/test/ast/compiler/ts/member_expression_3.ts index 189539ddb80973152cd3341b0edd31f739ca7c4a..97bb0dcaa571e4389ae950fa48a4deef98c6768f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_3.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_3.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_30.ts b/ets2panda/test/ast/compiler/ts/member_expression_30.ts index 2d7a034c7300bffa6f5568b7e6c89df4fb0eab7e..36f3c768f7c248cead16a6c10351426d6379f1a1 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_30.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_30.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_31.ts b/ets2panda/test/ast/compiler/ts/member_expression_31.ts index 1752550102689f1f17dd843141b4bb0c62ad6dfe..43d23bd44c07e638e7683dbf5ac3508882b5b55c 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_31.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_31.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_32.ts b/ets2panda/test/ast/compiler/ts/member_expression_32.ts index 977e4eee9611343ef51355571eb10ff706e9bc68..797a30a8d6f9b71faaab1ff3004d38f0947618a8 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_32.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_32.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_33.ts b/ets2panda/test/ast/compiler/ts/member_expression_33.ts index a210392c2554eeb98a3295928d0baabbaaf7baba..185503ec01223a50865ae162987d2a2080c0ceac 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_33.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_33.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_34.ts b/ets2panda/test/ast/compiler/ts/member_expression_34.ts index e0637a8a9f5287b72f28431f431510f6e13d662e..8142a0637e465e28c9f5e2a99e505baec610203f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_34.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_34.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_35.ts b/ets2panda/test/ast/compiler/ts/member_expression_35.ts index bb8f3f26ed7df7ef42ff66d0b99ea8b4cbab9010..9544b06b6445f3b07ce1fa37cc3643af2c6bac4d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_35.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_35.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_36.ts b/ets2panda/test/ast/compiler/ts/member_expression_36.ts index f49961d71e5a20cea76cc7cdd80d12ed3338499b..51e860217f524c7baf252a66be0545dec98c9dcb 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_36.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_36.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_37.ts b/ets2panda/test/ast/compiler/ts/member_expression_37.ts index c602fe652007a69481de1baf213e4be2b0bc4ce9..69765f4e5b8924943f01e3099fd61f0a4fe304aa 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_37.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_37.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_38.ts b/ets2panda/test/ast/compiler/ts/member_expression_38.ts index 3d286bebaa6b39e2889764cd1e9db047647eca25..cc0478d26b4f7641c9cedaef41f298ad95d840ae 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_38.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_38.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_39.ts b/ets2panda/test/ast/compiler/ts/member_expression_39.ts index 1e441b69b4a18f2466358e0c726a2f77bbdb5f76..d9534bd02366f43e90f487e6cf621b8818674f97 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_39.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_39.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_4.ts b/ets2panda/test/ast/compiler/ts/member_expression_4.ts index cba45ea6271624beaacbcb0c554e3017a88240ed..7e94505daee19467555d8c0aeb0e928c697765fa 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_4.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_4.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_40.ts b/ets2panda/test/ast/compiler/ts/member_expression_40.ts index dd225472e0bafc41dc43e561cee3032fb4283ff8..988dc69784f5090367c51b9357bbbbc08313845d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_40.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_40.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_41.ts b/ets2panda/test/ast/compiler/ts/member_expression_41.ts index cf0cef8ce73652c207272e75ad0cd5cf1e56fd80..f23d2e38e71d671437b05c84d8ebedc63b93dab8 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_41.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_41.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_42.ts b/ets2panda/test/ast/compiler/ts/member_expression_42.ts index a0f22260c6666a198f51ead33bda6468446f871c..23ad264acbb8d628a04b61251f5804a20cf9ae33 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_42.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_42.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_43.ts b/ets2panda/test/ast/compiler/ts/member_expression_43.ts index e9a3b0477b30c8e965d6825a28edf8c4e77d900c..dbec2e803dd5cbef1a58c992ae89a705375ced3d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_43.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_43.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_44.ts b/ets2panda/test/ast/compiler/ts/member_expression_44.ts index 366ae5551e37acf233d6405031f2f438f44ac231..9d58560d2bf0ffcd868179c947ba5b5ce8be1b35 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_44.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_44.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_45.ts b/ets2panda/test/ast/compiler/ts/member_expression_45.ts index f475269e2d6bda7440142d4cc235cc15efe10b04..761dbfa64617f1957a05c4e7391e9c5ad4c93352 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_45.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_45.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_46.ts b/ets2panda/test/ast/compiler/ts/member_expression_46.ts index ef9a49b20c233b04e2b46a80346a46970605755c..9f841801733213832ec8edd9fe945cf945684637 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_46.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_46.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: string; /* @@ label */b = a[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_47.ts b/ets2panda/test/ast/compiler/ts/member_expression_47.ts index 738f891a07b576231d8e00b08f2a5da1e588687b..5caa6c70b2130968da021a1bbe67cb7f6786ec8e 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_47.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_47.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: string; /* @@ label */b = a?.[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_48.ts b/ets2panda/test/ast/compiler/ts/member_expression_48.ts index 374745bfb9c784b91d27917177ff1652c578de55..b10c673117037d78c1769268b43fd94f372a0cb1 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_48.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_48.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: string; /* @@ label */b = a[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_49.ts b/ets2panda/test/ast/compiler/ts/member_expression_49.ts index 38ffda3e7c17080e715fc4f91eb661d5052657b8..988a059db3bbd32c934534f95d800772b2de5192 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_49.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_49.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: string; /* @@ label */b = a?.[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_5.ts b/ets2panda/test/ast/compiler/ts/member_expression_5.ts index 1b1abe48d8b8507711aed0ab9b2f2746378a9908..145f83f8e9905f11e0215f26357a44323f8649f3 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_5.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_5.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_50.ts b/ets2panda/test/ast/compiler/ts/member_expression_50.ts index e7c3135321515fe481f5afc3128e4b196559f008..7bb8b0e4200112ef49d68770a13e896e39eb0bfc 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_50.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_50.ts @@ -19,4 +19,4 @@ var b: string; var c: number; /* @@ label */b = a[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_51.ts b/ets2panda/test/ast/compiler/ts/member_expression_51.ts index cea2f248556b28989e631ac131ba46fc4409b85b..7781a4aa4bfeccd57979d5dc32e426bd7031738b 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_51.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_51.ts @@ -19,4 +19,4 @@ var b: string; var c: number; /* @@ label */b = a?.[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_52.ts b/ets2panda/test/ast/compiler/ts/member_expression_52.ts index 7439c0be46df0cc6ba02be2709d1d245e633d5ff..e766c93a447775607ea1412d8726e1a44b1c570c 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_52.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_52.ts @@ -19,4 +19,4 @@ var b: number; var c: string; b = a[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_53.ts b/ets2panda/test/ast/compiler/ts/member_expression_53.ts index 8474d1ab3b47712dc4d944e306c5ee0032777702..1663dc9f6bf6fbbd50db9d38a605ad8674ddac80 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_53.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_53.ts @@ -19,4 +19,4 @@ var b: number; var c: string; b = a?.[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_54.ts b/ets2panda/test/ast/compiler/ts/member_expression_54.ts index 4264f075baaa069db530b50344e4489c094cfd6d..233663978cbdfcbc6c64b10ae501138adb6cf85c 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_54.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_54.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: bigint; /* @@ label */b = a[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_55.ts b/ets2panda/test/ast/compiler/ts/member_expression_55.ts index d134a679f045c7129ec20e2b40c69c8b19bc405e..7948afca6bb6245a43ac7acd5acc5e8f6e2f9a92 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_55.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_55.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: bigint; /* @@ label */b = a?.[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_56.ts b/ets2panda/test/ast/compiler/ts/member_expression_56.ts index c2656dad9682fee54f3bacba6f133b94dd0826d7..9f2dc4549014bdcaab91f35823ce080e14e82538 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_56.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_56.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: bigint; /* @@ label */b = a[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_57.ts b/ets2panda/test/ast/compiler/ts/member_expression_57.ts index fc492796473e4d4f85b834cc0c1e26d1cb2f0afc..231ece1daaef9fa5ca34bfb3084b6847fde29f4e 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_57.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_57.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: bigint; /* @@ label */b = a?.[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_58.ts b/ets2panda/test/ast/compiler/ts/member_expression_58.ts index 168b4d4c219a13be50383a1b2277566bc315e338..5235ee54e6f45472b7c56d3be9ea78939bc22022 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_58.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_58.ts @@ -19,4 +19,4 @@ var b: bigint; var c: number; /* @@ label */b = a[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_59.ts b/ets2panda/test/ast/compiler/ts/member_expression_59.ts index 5a70c628cf64b6a353216bd6bb0d9fbe382d6ade..8d7a0209c1376b09505a0a3f08fa91d0d9293876 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_59.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_59.ts @@ -19,4 +19,4 @@ var b: bigint; var c: number; /* @@ label */b = a?.[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_6.ts b/ets2panda/test/ast/compiler/ts/member_expression_6.ts index 20d9bf6b0eb05a0434bbea10d732d914c068de40..ec5b1a9927463a4e8021d4b3036648defffeb156 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_6.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_6.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_60.ts b/ets2panda/test/ast/compiler/ts/member_expression_60.ts index eb96793a8249c25beaf22ecc98c8d7537aebff05..eb860b60ab99405096e681b7d052f6ac6039b885 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_60.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_60.ts @@ -19,4 +19,4 @@ var b: number; var c: bigint; b = a[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_61.ts b/ets2panda/test/ast/compiler/ts/member_expression_61.ts index ef08769f8bbc1901f7d10c414466e78432e437ed..7db41530b735c1b5d630d5339b20d35c45ddc20d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_61.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_61.ts @@ -19,4 +19,4 @@ var b: number; var c: bigint; b = a?.[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_62.ts b/ets2panda/test/ast/compiler/ts/member_expression_62.ts index ba76d90c909756d645a6c887bb4d0850b67224fa..300fd2b9f97d2b9a5b9df70ad5c69db86917ec14 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_62.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_62.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: boolean; /* @@ label */b = a[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_63.ts b/ets2panda/test/ast/compiler/ts/member_expression_63.ts index 855212e0cb61dfd1f89ebf8b92295ba298b4e15c..4efcd615b18cd64aa4ca5118ea36bd31078e4be5 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_63.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_63.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: boolean; /* @@ label */b = a?.[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_64.ts b/ets2panda/test/ast/compiler/ts/member_expression_64.ts index 5c78997ae37bceff87a76727272865bfb3d9c7f1..698b3c31457842d7faa06a46e6c48f48a6396956 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_64.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_64.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: boolean; /* @@ label */b = a[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_65.ts b/ets2panda/test/ast/compiler/ts/member_expression_65.ts index f73ecefc61cae3042076440da856e1d911f2df8a..4e94ae97ef5e7263652ab85b7bb07fc8478cf55e 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_65.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_65.ts @@ -18,4 +18,4 @@ var a = [0, 1, 2, 3, 4]; var b: boolean; /* @@ label */b = a?.[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_66.ts b/ets2panda/test/ast/compiler/ts/member_expression_66.ts index d90b765dc46c60b5124bdf8512c6ab41d63e6a1b..872969d02953004480f45eec3dde9e89c8a98e01 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_66.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_66.ts @@ -19,4 +19,4 @@ var b: boolean; var c: number; /* @@ label */b = a[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_67.ts b/ets2panda/test/ast/compiler/ts/member_expression_67.ts index 12a42f0d487e00dd4c7e2a5ecaf36f5117a1fc7a..478a35bf6c290545b5b4405a312b3dc84c411f2f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_67.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_67.ts @@ -19,4 +19,4 @@ var b: boolean; var c: number; /* @@ label */b = a?.[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_68.ts b/ets2panda/test/ast/compiler/ts/member_expression_68.ts index 6eda93b2cba7ac2bd7035d66b32f27edfcbd17eb..b1abad737fd61b085fe55d3446498f43af67bb14 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_68.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_68.ts @@ -19,4 +19,4 @@ var b: number; var c: boolean; b = a[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_69.ts b/ets2panda/test/ast/compiler/ts/member_expression_69.ts index 77158f413784060fe31734f0698d9ee7f4391db3..11fa97bd150d63eb8bda9738a66fb3a55398a988 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_69.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_69.ts @@ -19,4 +19,4 @@ var b: number; var c: boolean; b = a?.[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_7.ts b/ets2panda/test/ast/compiler/ts/member_expression_7.ts index 1c58011a554e2199f78a23cf3b8def8c1d78cb37..020f280cf306e7947e61cf3d365ff0af3e4055c9 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_7.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_7.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: number; b = a.foo.bar./* @@ label */bad; -/* @@@ label Error TypeError: Property bad does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property bad does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_70.ts b/ets2panda/test/ast/compiler/ts/member_expression_70.ts index 677d3a5f9a705bd5f0711187d00b8a13874de577..728e29dd3d162b57c74fcdc2fb388bbdb566f2bf 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_70.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_70.ts @@ -17,4 +17,4 @@ var a: {readonly [a:number]:number, [b:string]:number}; /* @@ label */a[5] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_71.ts b/ets2panda/test/ast/compiler/ts/member_expression_71.ts index 749774d7eda306a321ff6908682aa18135d46019..4aa5fd25227838e7e5024be16f3117fc23c99b7c 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_71.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_71.ts @@ -17,4 +17,4 @@ var a: {[a:number]:number, readonly [b:string]:number}; /* @@ label */a["foo"] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_72.ts b/ets2panda/test/ast/compiler/ts/member_expression_72.ts index a9680cc861a4b4a0ad8ddd62d048b1e236cca99f..eba31456f9b4e7f4d48db0ef341e5aa1694ebc05 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_72.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_72.ts @@ -20,4 +20,4 @@ interface foo {readonly [a:number]:number, var a: foo; /* @@ label */a[5] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_73.ts b/ets2panda/test/ast/compiler/ts/member_expression_73.ts index 8c7b4e7aeaf3fc9177b69e9e3cb8a11b6924df5e..731ef6cc38e41aad543a664ec2d79e3b9afac2a0 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_73.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_73.ts @@ -20,4 +20,4 @@ interface foo {[a:number]:number, var a: foo; /* @@ label */a["foo"] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_74.ts b/ets2panda/test/ast/compiler/ts/member_expression_74.ts index 6db696aaacdae76571e2b0343ac965e30bb0ef95..ea9e8d04cc4e3a05349229ddb808a13f9a48a1fc 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_74.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_74.ts @@ -17,4 +17,4 @@ var a: {readonly b: {readonly c: number}}; /* @@ label */a.b.c = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_75.ts b/ets2panda/test/ast/compiler/ts/member_expression_75.ts index 93d3e784ddacd9afe0aff199422b536af81ccc60..9473d7421a743ef920ce64db672136e0356583e6 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_75.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_75.ts @@ -21,4 +21,4 @@ interface foo { var a: {readonly b: foo}; /* @@ label */a.b.c = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_76.ts b/ets2panda/test/ast/compiler/ts/member_expression_76.ts index 60712db7473496e5f7a35eddbe1eea7405d4018c..cbbd339825055d2fc542816e492d7f2ca0876ef0 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_76.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_76.ts @@ -21,4 +21,4 @@ interface foo { var a: {b: foo}; /* @@ label */a.b.c = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_77.ts b/ets2panda/test/ast/compiler/ts/member_expression_77.ts index 9c52951c620f2811b910ef73297b5941b9b78408..ed907ba006324dd6f22f96c2e84212526dd373f7 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_77.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_77.ts @@ -17,4 +17,4 @@ var a: {b: {readonly c: number}}; /* @@ label */a.b.c = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_8.ts b/ets2panda/test/ast/compiler/ts/member_expression_8.ts index c20269a97d4aee64e704697a5326b566f076a630..4d740289b8aba857631d39551851e6a779e4c314 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_8.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_8.ts @@ -18,4 +18,4 @@ var a = {foo : {bar : {baz : 5}}}; var b: number; b = a?.foo?.bar?./* @@ label */bad; -/* @@@ label Error TypeError: Property bad does not exist on this type. */ +/* @@@ label Error Semantic error ESE0000: Property bad does not exist on this type. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_80.ts b/ets2panda/test/ast/compiler/ts/member_expression_80.ts index 855f43112c0087b96250640af75c5443183f9765..0c78b58a77697fba229ea3e00f6b9d095160acfb 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_80.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_80.ts @@ -17,4 +17,4 @@ var a = {[5 + 4]:3} as const; /* @@ label */a[5] = 3; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_81.ts b/ets2panda/test/ast/compiler/ts/member_expression_81.ts index 62fca284be4982a299cc9a6dc9231e75a9c1b86c..db8022616ac9730affadb697f946aa08c4ede519 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_81.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_81.ts @@ -17,4 +17,4 @@ var a = {["foo"+"bar"]:3} as const; /* @@ label */a.baz = 3; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/member_expression_82.ts b/ets2panda/test/ast/compiler/ts/member_expression_82.ts index 3f02e03f04cc5b50ad56a0babd4d6942acdb8440..f298ac38452325fa0f71c57018b4fb86281f3d19 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_82.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_82.ts @@ -17,4 +17,4 @@ var a = {["foo"+"bar"]:3} as const; /* @@ label */a["baz"] = 3; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_1.ts b/ets2panda/test/ast/compiler/ts/new_expression_1.ts index 8fdba6b7d2c422995b7c623a9305dd9b3f6bd74e..b06ce260b861976e9b40f1b62598ad731adbef91 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_1.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_10.ts b/ets2panda/test/ast/compiler/ts/new_expression_10.ts index e6a99f150eb943c98804eb35db99d2d34033f37b..7754701ccb02dcf579198eaeade5282256f5ccb7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_10.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_10.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: number): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_100.ts b/ets2panda/test/ast/compiler/ts/new_expression_100.ts index 59c66397c9ac87c4af8ad0df67baf99ad9927f1d..40f306315a0fdd423feb90998a9a0ecde6114e4c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_100.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_100.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = new foo("foo",/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_101.ts b/ets2panda/test/ast/compiler/ts/new_expression_101.ts index a6bd7c200b6c5ec9caf5374892a498a11bfdc7a5..ac0d5890b77bff8f3a345d97d21abe082e90037a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_101.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_101.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_102.ts b/ets2panda/test/ast/compiler/ts/new_expression_102.ts index a4751a2bf70174e72bb6f653c2ee22175b5f4f6d..60795024e7a81b3ee9f12e4317fbe6bd8994bc5e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_102.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_102.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_103.ts b/ets2panda/test/ast/compiler/ts/new_expression_103.ts index ac5190a1653abedc6084e0f11ea6d5c0ca3408c7..38713b898bcca05cae268e2e28007c949279675f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_103.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_103.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_104.ts b/ets2panda/test/ast/compiler/ts/new_expression_104.ts index e6c86f74602d749672fffc7c8e20fef7bea32d27..22dd2fcd93e0241077a62c3e2aab67f49ddd8cb3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_104.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_104.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_105.ts b/ets2panda/test/ast/compiler/ts/new_expression_105.ts index 28212180a5f9f27e83a22a4514a90092ea41d94c..70819a67841fdd0c8bd1bd886bf742e6638a7f74 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_105.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_105.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_106.ts b/ets2panda/test/ast/compiler/ts/new_expression_106.ts index 811aa0d2266eea13784fe6056b76c50fcceb06d7..92dfce1e78c2b725f419e62e054ef0a58f29721b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_106.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_106.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: number) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_107.ts b/ets2panda/test/ast/compiler/ts/new_expression_107.ts index 287073cbf7c4312c3469e0cdd8098cd61588630a..b1772560a7ba4d1faa5e090780d87db942107c7a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_107.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_107.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = new foo("foo",/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_108.ts b/ets2panda/test/ast/compiler/ts/new_expression_108.ts index 1489158256659a1ac1010cc0655fe1769f5bc7c0..02ccddc7429f634d65fe3b43a2aa8730ac7fe5fc 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_108.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_108.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_109.ts b/ets2panda/test/ast/compiler/ts/new_expression_109.ts index 016b9cae393534721ac1b62150994a408bb26020..37c5ba5fe7b23311535cdbe529f1e599d27fc0d5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_109.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_109.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_11.ts b/ets2panda/test/ast/compiler/ts/new_expression_11.ts index 75ba002425246cb0d037d95a240af3347760ef59..dac15e30a69462c7872929fa83be3969c7a09e21 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_11.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_11.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: number): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_110.ts b/ets2panda/test/ast/compiler/ts/new_expression_110.ts index 0775d070b49454463a5487083b157a140fa2611a..e10353c8f91f4721fd07d686c344878824ef79c6 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_110.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_110.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_111.ts b/ets2panda/test/ast/compiler/ts/new_expression_111.ts index fb44ef22c2921877b45260ad55195f4fb81ec0cd..00dc226e69891072dd5130e12b7afb266b8e84a4 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_111.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_111.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_112.ts b/ets2panda/test/ast/compiler/ts/new_expression_112.ts index d9df4bfad26209a90cd4df6f28903faf7e285637..ffdae7a277bd1cf845d60eecc985aed52ad63aa0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_112.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_112.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_113.ts b/ets2panda/test/ast/compiler/ts/new_expression_113.ts index 67b4fecadd40c84ca34bfc3b48de576f286e4a7b..85e14076622e452b148512bf439fe9fece5d7ca5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_113.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_113.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: boolean) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_114.ts b/ets2panda/test/ast/compiler/ts/new_expression_114.ts index 2be16cb1d772394d589b6bf0b3289986545914ec..2b040e410b2ddb409a5830aa040350cb041fe54b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_114.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_114.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_115.ts b/ets2panda/test/ast/compiler/ts/new_expression_115.ts index b44c30a26e7e76904ccf1cbdc8754e3d2ccb73ec..98391e270df9636b4fc4fd7f5cc2073e9ddbda0a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_115.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_115.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_116.ts b/ets2panda/test/ast/compiler/ts/new_expression_116.ts index 68e5f91f15e8f396187dbc5f8ce6e0682b9030b2..caee7c4f36585418dcfb6c6b340ed814be98c7cb 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_116.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_116.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_117.ts b/ets2panda/test/ast/compiler/ts/new_expression_117.ts index 33f5526a132e41cb6e4d2d57bc01757430081c81..13c755627e597a232e4ab479942b29c134211eec 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_117.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_117.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_118.ts b/ets2panda/test/ast/compiler/ts/new_expression_118.ts index fb8618d048b4dd1d9bfac7df3082cdc1c172266e..cccfea156ca77b214cc6d8c3f9996848b2ad1cf3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_118.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_118.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_119.ts b/ets2panda/test/ast/compiler/ts/new_expression_119.ts index a218f84cacab6aef8c9580c3631ac5ae79761745..d56a98e3a3039b31e37f8860becb6bb3143c2528 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_119.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_119.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_12.ts b/ets2panda/test/ast/compiler/ts/new_expression_12.ts index 23d72a436cd12eee7fd8d2d44afe06e599bf4e84..547410cbf5b80d290d2d615b49743ad13456afeb 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_12.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_12.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: number): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_120.ts b/ets2panda/test/ast/compiler/ts/new_expression_120.ts index e8878e1f382c0ab1c21976b9407516f4233ee8a4..313896731b9867b60804c864dd8bb47fba358277 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_120.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_120.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: string) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_121.ts b/ets2panda/test/ast/compiler/ts/new_expression_121.ts index efe1c57a3e7ec96c1ba7b738fad6427ae8620d9a..f5a80a825948122dc5779378115925a5b1640cdf 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_121.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_121.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_122.ts b/ets2panda/test/ast/compiler/ts/new_expression_122.ts index 75106e66c7fde6085708e7fc360fb9cff2aa52aa..24faf4835eb5f6c65419a3e09b33f5ca18040c8e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_122.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_122.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_123.ts b/ets2panda/test/ast/compiler/ts/new_expression_123.ts index 3715f2fb9e12616c513f9e7ea9a77ab0d782276e..bfaecd8dd50305b51750e360ff45c0a5191da22c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_123.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_123.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = new foo(5,/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_124.ts b/ets2panda/test/ast/compiler/ts/new_expression_124.ts index bb95db1f216742fd0c186f7da43b223b3b5502bd..5ba87d54e719f6861cf9c94269d9a8c3783091df 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_124.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_124.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_125.ts b/ets2panda/test/ast/compiler/ts/new_expression_125.ts index 5bdbcba54354f20b038a1417d7a52e2fbc7491c7..c02d8344ddbf6af973dfa5eb2ec3a58526dc4f79 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_125.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_125.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_126.ts b/ets2panda/test/ast/compiler/ts/new_expression_126.ts index 189d05b0e87e345b71e9f2490c754e3b9d0bb9e6..1cf9b20c9739deac132f084eac0f4a163d4d9dac 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_126.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_126.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_127.ts b/ets2panda/test/ast/compiler/ts/new_expression_127.ts index 0b7d5a8880867c883329271d85620e2ce67ef216..d5d2842cf5ab32277fcc5ee5390755a73ca0e568 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_127.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_127.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: number) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_128.ts b/ets2panda/test/ast/compiler/ts/new_expression_128.ts index a94735b912f2c65d26ef96158adc6e7bf9910fa7..f7e77552210ccf6a276583df173c3c2430fc5283 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_128.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_128.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_129.ts b/ets2panda/test/ast/compiler/ts/new_expression_129.ts index 8149ef007a05af7ec01a5aa00aff9b25e67d4dd3..ce89dd12d16f9b47053450269439d82f3ef05a77 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_129.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_129.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_13.ts b/ets2panda/test/ast/compiler/ts/new_expression_13.ts index a66f1036cbd25c9ebdfee6da066ef39e77c07a47..5e6a509fd1b6a9e7e80b16fe30782210be9d8682 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_13.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_13.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: number): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_130.ts b/ets2panda/test/ast/compiler/ts/new_expression_130.ts index e710a2c49d12b62c6a9d2f10bc2764fdfa9d97a6..f4a9d4dbaec7fad80f7417e257333b228cfbf1a3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_130.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_130.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = new foo(5,/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_131.ts b/ets2panda/test/ast/compiler/ts/new_expression_131.ts index 82046c672421c9a52740c7f902d0858088614179..d5faed5bcc54a661aede798bdaf6b5097213f883 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_131.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_131.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_132.ts b/ets2panda/test/ast/compiler/ts/new_expression_132.ts index 29e791a1a7c7300d4a011ae58a13ff0f93de34ab..2e786459332cbf45eedb30716f06df21c0b48197 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_132.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_132.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_133.ts b/ets2panda/test/ast/compiler/ts/new_expression_133.ts index ad769fcc84c66e8fe33ddb298a4351587120c88e..688feb0b98b96ac66116427aa59f1a4a1b14def0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_133.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_133.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_134.ts b/ets2panda/test/ast/compiler/ts/new_expression_134.ts index 0d9b3855b601a171d615717ea44c5f4d66fd382c..82c83db0b759975f86464e509fb7262f36965570 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_134.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_134.ts @@ -17,4 +17,4 @@ var foo: new (a: number, b: boolean) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_135.ts b/ets2panda/test/ast/compiler/ts/new_expression_135.ts index 21eb39d71dc09ec7a962904ef38a4fbced9fc777..3d145d445323baf225df4c0096c44347dda616ef 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_135.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_135.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_136.ts b/ets2panda/test/ast/compiler/ts/new_expression_136.ts index b298ca85327443ed0a03c00afe9afda81f73a37f..f56763d5a85018f353007796e8123835387b2f28 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_136.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_136.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_137.ts b/ets2panda/test/ast/compiler/ts/new_expression_137.ts index 945be287f034e9ecb0ff647565bbde727ae10f5f..71f401c13c0786fa87165e0a9223ab1026c23260 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_137.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_137.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_138.ts b/ets2panda/test/ast/compiler/ts/new_expression_138.ts index 914d23610b76a704828222264e9f494e44eff07c..a0ea68ff59f1cc37b79d80c53b06e59f35b30102 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_138.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_138.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_139.ts b/ets2panda/test/ast/compiler/ts/new_expression_139.ts index 89cde4a0ab8468c480d7f0ccebdd3f4b7c863378..4ea5f4b833ad1aed175edce4590e1e21cb50b188 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_139.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_139.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_14.ts b/ets2panda/test/ast/compiler/ts/new_expression_14.ts index 6a0eed6ba21a3185f3cb30eee599580c84ca1300..07984274fdf4d8b7cf35a759e06cb4dd97ed1340 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_14.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_14.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_140.ts b/ets2panda/test/ast/compiler/ts/new_expression_140.ts index 7c90df6d5b3a963cc99c941a3d7164286c60471c..37c5ada185dbfa405d578231632e1e5b8eee867a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_140.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_140.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_141.ts b/ets2panda/test/ast/compiler/ts/new_expression_141.ts index 55014588a399cab19ddd2bb244d33b5c209ddf2e..669150e1caf88541f786e065f0db9033dab504dc 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_141.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_141.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: string) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_142.ts b/ets2panda/test/ast/compiler/ts/new_expression_142.ts index f63d974ef440ed72973ea23541ae9b21df232bcf..8605d770f0b53d5d835223bad0d0216f760222f4 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_142.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_142.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_143.ts b/ets2panda/test/ast/compiler/ts/new_expression_143.ts index 36e5936a033c98359df65b6dab46b52c444aac11..fa38ed9d57f87ba532793ee5892cbcaa6acafb9c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_143.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_143.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_144.ts b/ets2panda/test/ast/compiler/ts/new_expression_144.ts index 4a6f9198acc1c37008e71f63f89ca084320018e2..0c94bbcb2b6702373b3752c46f375196ecb650be 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_144.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_144.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_145.ts b/ets2panda/test/ast/compiler/ts/new_expression_145.ts index 8447435fdd681700573d44b85150bf3eabeca033..20f8e6023115863d0c3402fbb31e046bef9bb55f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_145.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_145.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_146.ts b/ets2panda/test/ast/compiler/ts/new_expression_146.ts index 0218570b479d28354573d25b7114e312f77629b1..67b07ff26e34af0798dd41e8eb2ad60e4f1aede7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_146.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_146.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = new foo(false,/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_147.ts b/ets2panda/test/ast/compiler/ts/new_expression_147.ts index fea88b7b8aece652e35eb308c5e92ed34b56ed02..bf6ed6827271a6175086059cf52d288491cac4d2 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_147.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_147.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_148.ts b/ets2panda/test/ast/compiler/ts/new_expression_148.ts index 0f3358eca837ce4893d83875835b8ffe2102eaa2..05acd4f0e3e01c64e19e443a7b99fad598587231 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_148.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_148.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: number) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_149.ts b/ets2panda/test/ast/compiler/ts/new_expression_149.ts index aade0325dcc8b74c093b5afc994739cc2b796d23..699fcea0d20e5109e317997da05a2ac1a0939303 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_149.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_149.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_15.ts b/ets2panda/test/ast/compiler/ts/new_expression_15.ts index 406c4df6c401561f5d174eacbd28f8bbbf05a735..acb00c69fe64a927b837faf195b0c7a485e21438 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_15.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_15.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_150.ts b/ets2panda/test/ast/compiler/ts/new_expression_150.ts index a6caff5a9c9f108a8518f5fe0e7378b429fb172d..8a8551a9f3247ed0022ec1b788b7b289a6211f28 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_150.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_150.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_151.ts b/ets2panda/test/ast/compiler/ts/new_expression_151.ts index 3a771e6656d2ab5f32b1b026f595a1377c24e80b..13b89473d9a82450ce864fa15844f9bd00290875 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_151.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_151.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_152.ts b/ets2panda/test/ast/compiler/ts/new_expression_152.ts index a4102fc45b88b57990f153749dbbd74d29382a5f..fa23c5da18c094dbb7f092c09763c14a68592180 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_152.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_152.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_153.ts b/ets2panda/test/ast/compiler/ts/new_expression_153.ts index 95899dd47420b66f7a3d329432622a09f91cafc7..ee0eb7963ee1dc3ae9d4f85532c7befa51c6774d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_153.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_153.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = new foo(false,/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_154.ts b/ets2panda/test/ast/compiler/ts/new_expression_154.ts index 799985aa1d0b2b4baa055e133a57e7471d8673ec..102962a34d2f1a2726ba2b5fe6b5692c89ec7f4a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_154.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_154.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_155.ts b/ets2panda/test/ast/compiler/ts/new_expression_155.ts index 50d627400fe856846b56df52c9b2e85ca3e050d5..352a8488837751c9b37129b082e757619a45c669 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_155.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_155.ts @@ -17,4 +17,4 @@ var foo: new (a: boolean, b: boolean) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_156.ts b/ets2panda/test/ast/compiler/ts/new_expression_156.ts index 7a97bb5650fe736d2467b953c04a8531f732466a..f61128b0b0b36f9f04a07b5164199fd78d5c51b2 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_156.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_156.ts @@ -17,4 +17,4 @@ var foo: new (a: any, b: any) => any; var a = /* @@ label */new foo(); -/* @@@ label Error TypeError: Expected 2 arguments, but got 0. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 0. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_157.ts b/ets2panda/test/ast/compiler/ts/new_expression_157.ts index dee327f082932e4558c32d78c901ec797fee9498..f9ecd5384e3a3cc973f588b5ad1854f267cb2fdb 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_157.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_157.ts @@ -17,4 +17,4 @@ var foo: new (a: any, b: any) => any; var a = new foo("foo",5,/* @@ label */false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 3. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 3. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_158.ts b/ets2panda/test/ast/compiler/ts/new_expression_158.ts index 5e50d7f1f08036bdf5d935d61b7a71bbdd55d422..0d873b1a3f9209a0d7b30e265a635a13fce2f60c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_158.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_158.ts @@ -18,4 +18,4 @@ var foo: new () => string; var a = new foo(); /* @@ label */a = 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_159.ts b/ets2panda/test/ast/compiler/ts/new_expression_159.ts index 970aa4062863fc7aff05af6d003b4e1bf55c0410..3bcbb74ee66166904b8c3ba89a7f0fb56e7cf057 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_159.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_159.ts @@ -18,4 +18,4 @@ var foo: new () => string; var a = new foo(); /* @@ label */a = false; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_16.ts b/ets2panda/test/ast/compiler/ts/new_expression_16.ts index a551fa7515be08c43549723934cdecd7a45489dc..f63ea4b8e3a86cede6cf1786458333ac2f47df07 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_16.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_16.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_160.ts b/ets2panda/test/ast/compiler/ts/new_expression_160.ts index acebfc59e7fff146aada3610b084e024914481fc..11ef0fb57928e9f7a26509f912a60ef9966234eb 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_160.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_160.ts @@ -18,4 +18,4 @@ var foo: new () => number; var a = new foo(); /* @@ label */a = "foo"; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_161.ts b/ets2panda/test/ast/compiler/ts/new_expression_161.ts index af4c4a193205f8a246d7f5bc0c5e17bbb11b38b3..3ec1b6dbe9dc9963d8c4d4dea0ca47f276d7b971 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_161.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_161.ts @@ -18,4 +18,4 @@ var foo: new () => number; var a = new foo(); /* @@ label */a = false; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_162.ts b/ets2panda/test/ast/compiler/ts/new_expression_162.ts index 027ee653887ad5f20f3a2af3c36bbf14af8de8ba..d060d1b5574b2f5dce0eb394fd5b89d27017848e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_162.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_162.ts @@ -18,4 +18,4 @@ var foo: new () => boolean; var a = new foo(); /* @@ label */a = "foo"; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_163.ts b/ets2panda/test/ast/compiler/ts/new_expression_163.ts index 44a6a4148c9a5dc8088621a1dfdf16561af9ddf5..bbf2fbbb1fa9ed08bb5498ba93fe4415575ec3e0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_163.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_163.ts @@ -18,4 +18,4 @@ var foo: new () => boolean; var a = new foo(); /* @@ label */a = 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_164.ts b/ets2panda/test/ast/compiler/ts/new_expression_164.ts index 2cc6bdcd66f5b2475ef1c921c5e9c4790a43f1ea..1468e479f092f457c7771dcc7632c092e174c79f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_164.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_164.ts @@ -15,4 +15,4 @@ var a = /* @@ label */5(); -/* @@@ label Error TypeError: This expression is not callable. */ +/* @@@ label Error Semantic error ESE0000: This expression is not callable. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_17.ts b/ets2panda/test/ast/compiler/ts/new_expression_17.ts index 6a069211ed9027ff081070cc77b56021b02163ab..0fe9430d11bc940d57c97779b42e16b38ba79d7d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_17.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_17.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_18.ts b/ets2panda/test/ast/compiler/ts/new_expression_18.ts index ccb1eda259dc26fa77bdb359556c6a663831a443..494ef43cd5a2028f6bf0c7cf6c047cf7c726838a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_18.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_18.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_19.ts b/ets2panda/test/ast/compiler/ts/new_expression_19.ts index 1340a1ca7183c1b44f0d95636c3d1a5726b9c2bf..2a2f97568601e6c2c96be486ee2f23848efb3d24 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_19.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_19.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_2.ts b/ets2panda/test/ast/compiler/ts/new_expression_2.ts index c2febcd76cac33944400614138e64f10b32a4b55..af4e89b5ddc7bf50387335b8f7c784bcdde4db51 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_2.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_2.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_20.ts b/ets2panda/test/ast/compiler/ts/new_expression_20.ts index f2edca0e88bac3f01b915b0c604427e05a3e886c..9a169be52b791b6cc5545d36a09a3a90df5949d5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_20.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_20.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: bigint): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_21.ts b/ets2panda/test/ast/compiler/ts/new_expression_21.ts index 1dfdc0d13258c6ccffcacd95d2ec871647aa7497..b653738bae0980c879223f67c830f078c73f3c62 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_21.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_21.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: boolean): any ;}; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_22.ts b/ets2panda/test/ast/compiler/ts/new_expression_22.ts index 44c52bad4cc0676e696caa898f4a0df7680f397c..79706d808f82d7c0efe695816c7de62d1f73c11e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_22.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_22.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: boolean): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_23.ts b/ets2panda/test/ast/compiler/ts/new_expression_23.ts index a5f60e2881b57d44abdcee27f560c6f9d1ea3ce6..c4393ebf015c5769c4ef1ba6c8aa9bfa3e631eca 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_23.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_23.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: boolean): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_24.ts b/ets2panda/test/ast/compiler/ts/new_expression_24.ts index b45074f34d3bf8ebeefd92d7fdd80960c77a4a78..459e191761bfcf7b56945cd04815dc601e316ca3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_24.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_24.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: boolean): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_25.ts b/ets2panda/test/ast/compiler/ts/new_expression_25.ts index b3e13357e22b473081f922f559d4dc5bb29bdad0..e49873a2120d4a4f794f9c41bf5599093cd099b5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_25.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_25.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: boolean): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_26.ts b/ets2panda/test/ast/compiler/ts/new_expression_26.ts index 4d0b0e934531c87bf667c8a71a4967285b0b8c25..0e2c07d9070c31863380b258bdb595e49289fc85 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_26.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_26.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: boolean): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_27.ts b/ets2panda/test/ast/compiler/ts/new_expression_27.ts index da2ab5e1bbf44adb9b868785362fe3817088c32a..541b63ccb9991f4f572bbbb037507afc01c4e115 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_27.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_27.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: string): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_28.ts b/ets2panda/test/ast/compiler/ts/new_expression_28.ts index d4c0c5fc7d53c9683fbc8804a64f5b8279b0a840..f7392e9981a07cc5579c7aaeca53f305d7c10666 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_28.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_28.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: string): any ;}; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_29.ts b/ets2panda/test/ast/compiler/ts/new_expression_29.ts index 4cb1b605e198403705a0f46efac09814ab2c8fb3..f1c21fe88310343e13fc628e8103af891dc142ef 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_29.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_29.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: string): any ;}; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_3.ts b/ets2panda/test/ast/compiler/ts/new_expression_3.ts index 10facd0ba6715f04dcb6e808495d8b14bd80aace..34c0ac5d63d9b280bfaf00c6da7f0c27c9509597 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_3.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_3.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_30.ts b/ets2panda/test/ast/compiler/ts/new_expression_30.ts index 68a41f13785fc0b5b65b6c742cfe57b9ef1d7efa..208622cc6e5ba80de42953e5c71f2cb08c97bc95 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_30.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_30.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: string): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_31.ts b/ets2panda/test/ast/compiler/ts/new_expression_31.ts index b6fbeded1f6d47888f5f96584aae4436e79a33fa..a26c57d05facac65731e9d2e4f82f93bee8c0020 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_31.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_31.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: string): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_32.ts b/ets2panda/test/ast/compiler/ts/new_expression_32.ts index 9b27868bbb92d66b6ac327568be0c605b771e969..1b7dd993bcb32868805cd00b05db006c5bf23c0b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_32.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_32.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: string): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_33.ts b/ets2panda/test/ast/compiler/ts/new_expression_33.ts index 8e251f8b21a8e9a779457485991ddd12eac8b00c..011eb7e2d753711cf39c02afa3087efb33050f6c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_33.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_33.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: number): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_34.ts b/ets2panda/test/ast/compiler/ts/new_expression_34.ts index e035473daaf7a8e5585a9de050613afc16e0acc1..15ad0cb3bb5365c3fa8d3b011c61a4141bde854d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_34.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_34.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: number): any ;}; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_35.ts b/ets2panda/test/ast/compiler/ts/new_expression_35.ts index e604d799a2d82b001962e9d500270df04cccf152..0c483e31838d38189d6cb3a355eb96d70ec78596 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_35.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_35.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: number): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_36.ts b/ets2panda/test/ast/compiler/ts/new_expression_36.ts index 888d10fecfd24b4299def3ba454838547e7f95b9..01f9f35549e37bdd30654e004a53948165d79f51 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_36.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_36.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: number): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_37.ts b/ets2panda/test/ast/compiler/ts/new_expression_37.ts index 23257adf848a172799cabc7c403471122226e92e..ff2deaedbc7e30bd9744392273bd9b0b8f6a8122 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_37.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_37.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: number): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_38.ts b/ets2panda/test/ast/compiler/ts/new_expression_38.ts index d37984de2202dc3d001cde23b6f946f80fdbb370..a6957c60fdcc59a4fe2a2a21986e79349830d285 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_38.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_38.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: bigint): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_39.ts b/ets2panda/test/ast/compiler/ts/new_expression_39.ts index f7dc5ba2513b867c195b6fb0a028e29791b98d3d..8e5053329819b89a61d3a83daa58d124336c6168 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_39.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_39.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: bigint): any ;}; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_4.ts b/ets2panda/test/ast/compiler/ts/new_expression_4.ts index 57df6c92f34f4f948885011c337c349ab4df7066..b825b2b0ab58bba1f533d7110a10c95d084447cd 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_4.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_4.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_40.ts b/ets2panda/test/ast/compiler/ts/new_expression_40.ts index 557ea9be80ea1fc3e9cb18e16d7f3f833f92df7a..c58e7010610d6c4490cfc0277d3bfe70a68d44d0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_40.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_40.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: bigint): any ;}; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_41.ts b/ets2panda/test/ast/compiler/ts/new_expression_41.ts index 54c5983af5aeb43f9b9d8e3e7893eeff33aadef6..1972ccf787296a673a1a757511653596274a2552 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_41.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_41.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: bigint): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_42.ts b/ets2panda/test/ast/compiler/ts/new_expression_42.ts index ff72f61a28fc96507f9dafa61327de337343dff1..f2fc14eeeefee57fa21c6acd3e3e6794621870ab 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_42.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_42.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: bigint): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_43.ts b/ets2panda/test/ast/compiler/ts/new_expression_43.ts index 0ffc084761bce6bb3356d38df2a3be0b5a0a61dc..6e902a9ebc96e7a8a30b538e5d3ad3324e8e4a52 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_43.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_43.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: bigint): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_44.ts b/ets2panda/test/ast/compiler/ts/new_expression_44.ts index bdbee06b49850ffd233c5ce5b5bf48c069f9842a..e6345690fb87c81c24226e6332859a626b98d0e7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_44.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_44.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: boolean): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_45.ts b/ets2panda/test/ast/compiler/ts/new_expression_45.ts index 4005888e83c72669cb6b3e86260afea06c5ea458..ccf8be59fe8d69787d1f8a63be4087b6ea7829af 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_45.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_45.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: boolean): any ;}; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_46.ts b/ets2panda/test/ast/compiler/ts/new_expression_46.ts index 89a030f01a9780f3895543fd3c7f6e161e3d4b4a..b845534a23f1788553bbd9580acfba3432a049f8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_46.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_46.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: boolean): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_47.ts b/ets2panda/test/ast/compiler/ts/new_expression_47.ts index c0dcb28ed46293f117ecba60a2c47b69dadf87ba..f75bdb99634e278616a428a14824cf46fd4063d7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_47.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_47.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: boolean): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_48.ts b/ets2panda/test/ast/compiler/ts/new_expression_48.ts index b4ff92e06661637939cbbc8ffb8ded8ddfc4a26e..6520323e29cb308f84e5fa240087f4a00ae88db1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_48.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_48.ts @@ -17,4 +17,4 @@ var foo: { new(a: number, b: boolean): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_49.ts b/ets2panda/test/ast/compiler/ts/new_expression_49.ts index d18e64cb0774746a4bd17fd12b0709ab3fd402b0..4c331a4f6a481c84a4c864b14f9f34fbee022d9a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_49.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_49.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: string): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_5.ts b/ets2panda/test/ast/compiler/ts/new_expression_5.ts index b5b5ac8e3d9e23afd8ededf3cda73fd9d87473b2..5834ad94d69464cf548c24f77b8f6efdd3a82508 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_5.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_5.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_50.ts b/ets2panda/test/ast/compiler/ts/new_expression_50.ts index 9b29649315777c7021db96cc44a2e2ea202fc3de..02b14c3090449920e52810b88b0adb906606e983 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_50.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_50.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: string): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_51.ts b/ets2panda/test/ast/compiler/ts/new_expression_51.ts index 50e5473e6a44c264c8ee87caf0dbee531b05b171..54fc24f2b8979a7449a7313810a2060dae6e82cc 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_51.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_51.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: string): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_52.ts b/ets2panda/test/ast/compiler/ts/new_expression_52.ts index 078d511e1397a1c50aa6b218b795e37debf72417..47eabf484d917e4c8f4981c059861ad1e28817df 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_52.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_52.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: string): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_53.ts b/ets2panda/test/ast/compiler/ts/new_expression_53.ts index fbb1b13c71935ee42b3ce9cd76fdcf2514405220..5b823f464726324025a2c12f83c7464c91d9a12b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_53.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_53.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: string): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_54.ts b/ets2panda/test/ast/compiler/ts/new_expression_54.ts index d817d00fdd0294574285d7c16179e24711dd763f..d2a2eba9d376be10b5def30a9b33f7298723a0a1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_54.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_54.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: number): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_55.ts b/ets2panda/test/ast/compiler/ts/new_expression_55.ts index af7844d79af5a2912907d83997d1f48800d94b12..d4a29befb8f712ad78cc901a5454f798c6df6a0d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_55.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_55.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: number): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_56.ts b/ets2panda/test/ast/compiler/ts/new_expression_56.ts index 1c399adf2c556f6ecd8a28922f6aab96a97a821e..babfd93802b90f6d4bcc479b9bcdefc08d44f652 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_56.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_56.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: number): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_57.ts b/ets2panda/test/ast/compiler/ts/new_expression_57.ts index 921d770d50d321a80f04402c3929565335a95ae0..8dcd264f86bf7bccd6acdb7ca626971521acad53 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_57.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_57.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: number): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_58.ts b/ets2panda/test/ast/compiler/ts/new_expression_58.ts index 9ab673eac6e8e7fb721d8fcfebd603ce05e4a790..41588d4135eff27aa2c4ce3395ec05b889dbe2fa 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_58.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_58.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: number): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_59.ts b/ets2panda/test/ast/compiler/ts/new_expression_59.ts index 0851c18c1c8e00a1ee95f796ef96065f90ab9906..bd4615f2b0d85378ae9e6c4f6c99cb19180ec1d9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_59.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_59.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_6.ts b/ets2panda/test/ast/compiler/ts/new_expression_6.ts index d8cc546696e5022b272ca346af0adee9936dadd7..48a9b1973677e34ab164737d7de01eea35ba2990 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_6.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_6.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_60.ts b/ets2panda/test/ast/compiler/ts/new_expression_60.ts index 26b9daf08414fbc527737d51b2350a01bd5c9b7c..0d84d7b6a45c56df51e61aa384358cd1ee66eeab 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_60.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_60.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_61.ts b/ets2panda/test/ast/compiler/ts/new_expression_61.ts index 80ff521d130356f2d0e6e031398f990fab25401d..65c38de719243f988429eca8c5c6a0a92b47aea3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_61.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_61.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_62.ts b/ets2panda/test/ast/compiler/ts/new_expression_62.ts index 47733f1f6c746a779dc7f5d3367508b22e860f1c..e7356f48a47f758c6228d53e97beedc1c9b7eb9c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_62.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_62.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_63.ts b/ets2panda/test/ast/compiler/ts/new_expression_63.ts index f772b92e3a117ed4969b8061540d62dc8edcc6dc..aab46f0d69933cd9ed6f5f04b6db99306f75e5bf 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_63.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_63.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_64.ts b/ets2panda/test/ast/compiler/ts/new_expression_64.ts index 860be1f0f0162511fca363c99fb365ad8b2ba7df..dd8346398f7dbc5805a965f8685d4fdafcac2904 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_64.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_64.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_65.ts b/ets2panda/test/ast/compiler/ts/new_expression_65.ts index 456b55f4b8af050d7e2521e46f1d0c9880a932df..14b87ae6cb13fbd5e22cce4cd6bb289533752a88 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_65.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_65.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_66.ts b/ets2panda/test/ast/compiler/ts/new_expression_66.ts index c3be6c3f239c56c72718b0d7c6d7536847bf1be7..35abafc464138999020027efbda5b81f6e972192 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_66.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_66.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_67.ts b/ets2panda/test/ast/compiler/ts/new_expression_67.ts index 5a1d447819594bf05436a9f8beccb16ea78adbec..1290e91347f6d374f2c090bdb47ab355ae2d8005 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_67.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_67.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_68.ts b/ets2panda/test/ast/compiler/ts/new_expression_68.ts index aa9680d03418b71b52540de0f89ec66e19dca3af..679bf6374b4f99a1c64f173183a74fa19643a435 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_68.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_68.ts @@ -17,4 +17,4 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_69.ts b/ets2panda/test/ast/compiler/ts/new_expression_69.ts index beb24fe57acc49ed25df8e490ba86cdb1d77bd66..f0b35cb6b587e05d22d04d20a4ae7239d0e4d498 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_69.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_69.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: string): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_7.ts b/ets2panda/test/ast/compiler/ts/new_expression_7.ts index 69f2848f98cae23f397bd20f064c722f35cd08f1..96d690562df9c2b893317364c53e15bd6aff58af 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_7.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_7.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: string): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_70.ts b/ets2panda/test/ast/compiler/ts/new_expression_70.ts index 3ce895a4e3658edb94f8dc096f6ea16290dfa9ad..a5be19f5b7126b405ec5b23bd9b837c26d090430 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_70.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_70.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: string): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_71.ts b/ets2panda/test/ast/compiler/ts/new_expression_71.ts index 6d86679264d9eb4724b5da53d61d572c103a566b..fd9aedfa61f536d2bbf9ee9d388f8317957d7f5f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_71.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_71.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: string): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_72.ts b/ets2panda/test/ast/compiler/ts/new_expression_72.ts index b0d50c39804ad3590a30e427e2598f27e5ad9c4d..4fe5b580cf1e65671bd6380ae98a3d7c612fd2ee 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_72.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_72.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: string): any ;}; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_73.ts b/ets2panda/test/ast/compiler/ts/new_expression_73.ts index bcadd1d4b9ccbd279ef2636aa363265e25b59607..b74d45e741b66f6d04f4a4a616fc2d59edee76b9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_73.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_73.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: string): any ;}; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_74.ts b/ets2panda/test/ast/compiler/ts/new_expression_74.ts index e7fd217c578a1a19b71db005698bc24284a2a805..ee065d9cb57ef9d6a51a8755574db44628572035 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_74.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_74.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: string): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_75.ts b/ets2panda/test/ast/compiler/ts/new_expression_75.ts index 26a412110e01467f56f77629a99d8e0aeb8e65c4..c929eade602fa1d0f0c52e3b1477647abb60eeeb 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_75.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_75.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: number): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_76.ts b/ets2panda/test/ast/compiler/ts/new_expression_76.ts index ecced42caf92ca468fab83359b2af0574a60cf62..fd0a05bdb501b13e16ce1196fb7506e39d1e6946 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_76.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_76.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: number): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_77.ts b/ets2panda/test/ast/compiler/ts/new_expression_77.ts index a769aeac8d2b0eca511514668c329546600f5161..a5851e2b10ea9f26023cff157e3d1422f5f230a9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_77.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_77.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: number): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_78.ts b/ets2panda/test/ast/compiler/ts/new_expression_78.ts index ad6ccc12cfe4845ac76658a0e99b27af699ea3d6..20eb7b0c66b83af8f6575100b09bacafbb26e5f1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_78.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_78.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: number): any ;}; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_79.ts b/ets2panda/test/ast/compiler/ts/new_expression_79.ts index 945e0eb6b1803721f8b87f35680a51f87c145654..2d3d2a79546f06d431b97b9ba54bcbffe68f9adc 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_79.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_79.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: number): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_8.ts b/ets2panda/test/ast/compiler/ts/new_expression_8.ts index 31364c2733795a9863a77c1baa8c533ea73244c9..a86a31a2754c234613b665fc62014bd047d39f30 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_8.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_8.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: number): any ;}; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_80.ts b/ets2panda/test/ast/compiler/ts/new_expression_80.ts index b37fd46c351d99ffea42d7e432828c910e4bde36..4e1dc41941fd4cce68653cf334c0be00e7564364 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_80.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_80.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_81.ts b/ets2panda/test/ast/compiler/ts/new_expression_81.ts index 57d0ca9522d97ae478294febb93c704a3e694050..c40ccd25c085e6a93da6981bf36ab0fad7d4518c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_81.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_81.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_82.ts b/ets2panda/test/ast/compiler/ts/new_expression_82.ts index fe0ac12519c4cfc5afba5117a13a47a14327b921..46a184746e6d1266ac9a454ad08e3cdb7dc9e43f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_82.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_82.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_83.ts b/ets2panda/test/ast/compiler/ts/new_expression_83.ts index 270028dd2e2384a35576d405212fc2d6cb55462e..6ccf455353df9ba35e2a0ef65559e4761aad8e43 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_83.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_83.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_84.ts b/ets2panda/test/ast/compiler/ts/new_expression_84.ts index ee28242dd4f4a610511bb0d651237cbf825b0597..ca5b55109ae9996b149a000f0946332c712faba7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_84.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_84.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_85.ts b/ets2panda/test/ast/compiler/ts/new_expression_85.ts index c61f70531d10eda684b7096176cc75677861ecb2..0afbecb85abd998458eff0ea4b997395dd5c1082 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_85.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_85.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_86.ts b/ets2panda/test/ast/compiler/ts/new_expression_86.ts index 9df6494c4ac6fd904f38f44cc61131788967256a..10d59f556de0d940f4a5d273192a861f185381f1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_86.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_86.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_87.ts b/ets2panda/test/ast/compiler/ts/new_expression_87.ts index 6eee6c4c96d61e9ce1473f430d34500d6122eb48..c58cb1de94379388385d92a1da35639039f2f3b8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_87.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_87.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_88.ts b/ets2panda/test/ast/compiler/ts/new_expression_88.ts index 3f837eb289bf0f80d7a287fa811ca3711c6c1f19..07761386f8febe45e8bddfa32a4e487cd52e3649 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_88.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_88.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_89.ts b/ets2panda/test/ast/compiler/ts/new_expression_89.ts index 5680e00ba89501a3a288b3e2e6511dfadfcd2314..c98ff61749c4ca96cb2415992c44f6167842e760 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_89.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_89.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_9.ts b/ets2panda/test/ast/compiler/ts/new_expression_9.ts index cefe11d7f705317e04c0b191438943a920141f7b..488977bb661b300358e9c74a1ace3739a6b5ffb1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_9.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_9.ts @@ -17,4 +17,4 @@ var foo: { new(a: string, b: number): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_90.ts b/ets2panda/test/ast/compiler/ts/new_expression_90.ts index ca3caf7ddce932297b38e54dba9610b543b3c5fa..eadf0e505a33a4952c9fd0e3312282a17f413ee0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_90.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_90.ts @@ -17,4 +17,4 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_91.ts b/ets2panda/test/ast/compiler/ts/new_expression_91.ts index cb716a5b23e6f83ec3b1bb112182f9ab7083bc23..c5ad691d80ca8db6209ee993d7b9d294378b31c2 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_91.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_91.ts @@ -17,4 +17,4 @@ var foo: { new(a: any, b: any): any ;}; var a = /* @@ label */new foo(); -/* @@@ label Error TypeError: Expected 2 arguments, but got 0. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 0. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_92.ts b/ets2panda/test/ast/compiler/ts/new_expression_92.ts index 003571173bfea15780ef6367b9d2dd444653de70..e1fab5db8bc957f8ec4691828424c4a7e29d43f7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_92.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_92.ts @@ -17,4 +17,4 @@ var foo: { new(a: any, b: any): any ;}; var a = new foo("foo",5,/* @@ label */5n,false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 4. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 4. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_93.ts b/ets2panda/test/ast/compiler/ts/new_expression_93.ts index deb778fe52cd615ad5cb269d3c21c710950444ca..adfab75e0aa1025150a70b034bfdc4edebd0f371 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_93.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_93.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_94.ts b/ets2panda/test/ast/compiler/ts/new_expression_94.ts index 0e6487d24457f16e60ef8cc9036986b6df8255ec..cc238f4e65746ebe720313ea7c261943038f8d33 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_94.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_94.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_95.ts b/ets2panda/test/ast/compiler/ts/new_expression_95.ts index a94624d8e54f617ae2315507327481568a26db02..6286741a90af30dc280a2007d488dd78a8674151 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_95.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_95.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_96.ts b/ets2panda/test/ast/compiler/ts/new_expression_96.ts index 2957028a76c8bc4d9b08e34aa1e4953f7aab816a..0ffd51c07c70bdeca350f30f8e044ce3b0032158 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_96.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_96.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_97.ts b/ets2panda/test/ast/compiler/ts/new_expression_97.ts index 5062e026f34b21bb6addd4fa62fdfe9f3f673ca8..9fad2a0e1588ba24b31664479e40a473a468e3f3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_97.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_97.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_98.ts b/ets2panda/test/ast/compiler/ts/new_expression_98.ts index ab3606a22d66401e1d2f92a5f49f2ed17e78adbe..bccd00075bbfd57bd572e2227874670abceaa924 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_98.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_98.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/new_expression_99.ts b/ets2panda/test/ast/compiler/ts/new_expression_99.ts index 72fd545e88af04599220680cfebda6033bbfb7fc..5c72bff64e1189e4cbee58c1605750815fe7d2e9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_99.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_99.ts @@ -17,4 +17,4 @@ var foo: new (a: string, b: string) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts index 2c4d484c45d6def37e6fc2fb94e77b75848043aa..48daf867fc4e7655a9529d0c93fd7f93066f3b5f 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts @@ -15,4 +15,4 @@ var { a } = {}; -/* @@? 17:5 Error TypeError: Property a does not exist on type { }. */ +/* @@? 17:5 Error Semantic error ESE0000: Property a does not exist on type { }. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts index 7b1a3a31045d2435a1823c3b70188e65552c8e3f..55c0fe21b72c6a5dd419ebf2a84dcb9ea72136a1 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts @@ -15,4 +15,4 @@ var { a: /* @@ label */{ a, b } = { a: 1, b: true } } = { a: 5 } -/* @@@ label Error TypeError: Property a does not exist on type number | { a: number; b: boolean; }. */ +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type number | { a: number; b: boolean; }. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts index a59ae0a8c9c01bd71341d0d4b4d04e744838c154..9a29305baea60d71c081cf55bcaff72fdefee72b 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts @@ -15,4 +15,4 @@ var { a: /* @@ label */{ a, b } = { b: "foo" } } = { a: { b: true } }; -/* @@@ label Error TypeError: Property a does not exist on type { b: boolean; } | { b: string; }. */ +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type { b: boolean; } | { b: string; }. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts index 179795e57401c4b175b7fab71ebc6c1f72565c0e..b832ad8b1e878b8c45f4ffd9111bd5f42d2d97c7 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts @@ -16,4 +16,4 @@ var { a: { a = 5n, b } = { b: "foo" } } = { a: { a: 5, b: true } }; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'number | bigint'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'number | bigint'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts index a6348e0a5deb84915fb6bb0d65bb7216e303468d..e30a242b0949f73e5212365067de92c8a281b7aa 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts @@ -16,4 +16,4 @@ var { a, ...b } = { a: 5, b: 5n, c: { a: {}, b: true } }; /* @@ label */b = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '{ b: bigint; c: { a: { }; b: boolean; }; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '{ b: bigint; c: { a: { }; b: boolean; }; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts index dd8683ed13a6f1bb030b86ed2ee905c9a2fad80a..1545a9ccc3e7cb88e93d9abb23f0cd61f119bd85 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts @@ -17,4 +17,4 @@ var b: void; var { ...a } = {}; /* @@ label */a = b; -/* @@@ label Error TypeError: Type 'void' is not assignable to type '{ }'. */ +/* @@@ label Error Semantic error ESE0000: Type 'void' is not assignable to type '{ }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts index c7a21ab884481779b3cceec176048ff0d5694fab..472edd5f6a6212ba32384976b551a2bf37bb16b4 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts @@ -15,4 +15,4 @@ var { /* @@ label */a = "foo", b }: { a: number } = { a: 12 }; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts index ef0ad22f2d9afddee93f2d90221e84f6771db8fa..af80db6fd28e8c675b062776dbbe34dd426ed3dc 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts @@ -15,4 +15,4 @@ var /* @@ label */{ a = "foo", b }: { a: number | string, b: number } = { a: 12 }; -/* @@@ label Error TypeError: Type '{ a: 12; }' is not assignable to type '{ a: number | string; b: number; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: 12; }' is not assignable to type '{ a: number | string; b: number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts index 5d547a7a2da2ede882eedab71b59dad060c05e3c..e3f49b44bf92bb7056c4f1b757e3c6451e5b39d7 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts @@ -15,4 +15,4 @@ var { a = "foo", b }: { a: number | string, b: number } = { a: 12, /* @@ label */b: true }; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts index b85598c8e8db27f9be1561960786f1ab895eb0de..7cfb6a5f2ce3393d414ad9db317c23c4dd947e9b 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts @@ -15,4 +15,4 @@ var /* @@ label */{ a, b }: { a: number, b: string } | { a: string } = { a: "foo" }; -/* @@@ label Error TypeError: Property b does not exist on type { a: number; b: string; } | { a: string; }. */ +/* @@@ label Error Semantic error ESE0000: Property b does not exist on type { a: number; b: string; } | { a: string; }. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts index c6bc68e5e24c9e20937a7972d2d873eb4bd40a68..0b2446142893ecd46ff87d261522bc800034845c 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts @@ -15,4 +15,4 @@ var /* @@ label */{ a }: { a: number } | { a: number, b: string, c: { a: number, b: boolean } } | number = { a: 12 }; -/* @@@ label Error TypeError: Property a does not exist on type { a: number; } | { a: number; b: string; c: { a: number; b: boolean; }; } | number. */ +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type { a: number; } | { a: number; b: string; c: { a: number; b: boolean; }; } | number. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts index 930912f1c2e1eeb47fd0fba0d2794c406667343d..a239b4535c932f4dc64a4652c37a6285242f6351 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts @@ -15,4 +15,4 @@ var /* @@ label */{ a } = { a: "foo", b: 5 }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts index 7bcfb4cda2773439d8fd373f0107a920e39787ef..3775635d04c60e4d7e925f6fdbb00958d358579a 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts @@ -17,4 +17,4 @@ var c: void; var { a, ...b }: { a: number } | { a: number, b: string, c: { a: number, b: boolean } } | { a: number, r: boolean } = { a: 12 }; /* @@ label */b = c; -/* @@@ label Error TypeError: Type 'void' is not assignable to type '{ } | { b: string; c: { a: number; b: boolean; }; } | { r: boolean; }'. */ +/* @@@ label Error Semantic error ESE0000: Type 'void' is not assignable to type '{ } | { b: string; c: { a: number; b: boolean; }; } | { r: boolean; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts index 7dcaef653a1d17a3bf44afc7562926a1df5286fb..76974994038cb4a0d5d57ac3dac68bd9a6eb402a 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts @@ -17,4 +17,4 @@ var a: { b: number, c: string }; var { c } = a; /* @@ label */c = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts index 314933f5a088b563a110130ae1ecb91fe7be0630..ecc8f0de57ba8241da2fbb4ceecdf6621082ed03 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts @@ -16,4 +16,4 @@ var a: { a: { b: string, c: number } } | number; var /* @@ label */{ a: { b, c } } = a; -/* @@@ label Error TypeError: Property a does not exist on type { a: { b: string; c: number; }; } | number. */ +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type { a: { b: string; c: number; }; } | number. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts index 7ef9f4a56cf310a4c3f93740de811242ae0689a3..543a56df54c821569ec0da2ad30d3e13182deed1 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts @@ -16,4 +16,4 @@ var a: { b: { c: [number, number] } }; var { b: { c: [/* @@ label */a, b] } } = a; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ b: { c: [number, number]; }; }', but here has type 'number'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ b: { c: [number, number]; }; }', but here has type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts index 015c0ea1d4a02aca20d484312c338d00dbc00c11..dcf14f64660405c18b20bdad57c1b86607b63ec1 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts @@ -17,4 +17,4 @@ var a: { b: number, c: { t: [string | number, boolean[]] } }; var { b, c: { t: [d, e] } } = a; /* @@ label */d = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string | number'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string | number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts index 61864dbd65d3e38c8963331547531d50cb12d75f..d893687903d3507a557e488459d138ffafe5bedc 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts @@ -20,4 +20,4 @@ function a(a: number[]): { b: number, c: [number, string] } { var { b = "foo", c: [c, d] } = a([1, 2, 3]); /* @@ label */d = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts index fd3a3ca7907504940e636ddf6ae7cf36427dc655..417dc64f7b6eeab1d6237124656e31442ee85fa3 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts @@ -16,4 +16,4 @@ var /* @@ label */{ a: { b: [{ r, k } = { er: 5 }] = ["foo", true] } = { z: 5, b: [2, "foo"] } } = { a: { k: 2, b: [true, 2n] }, k: 5 }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'k' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'k' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts index 9bd382af4cad1e28a3ed6cb750b50ef4010c8463..3bc43ceba47c98b7e982ee49e4758e7daca02dbb 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts @@ -19,4 +19,4 @@ var /* @@ label */{ a: { b: [c = 2, d] = ["foo", true] } = { b: [2, "foo"] } } = -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 't' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 't' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts index ca27a55943300bd8cf47dbf8a1e9bd70cc24edc7..f4444830de6992143abc34eb22f924e92bed2676 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts @@ -19,4 +19,4 @@ var { a: { b: [c = u, d] = [1, true] } = { b: [2n] } } = { a: { k: 2, b: ["foo", /* @@ label */c = e; -/* @@@ label Error TypeError: Type 'void' is not assignable to type 'string | bigint | number | { a: number; b: string; }'. */ +/* @@@ label Error Semantic error ESE0000: Type 'void' is not assignable to type 'string | bigint | number | { a: number; b: string; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts index f68bff2a4d4b659da3886597b8f54f8cf2d983aa..9c75e23df04983e43cbfdfa302b63620fbc44697 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts @@ -17,4 +17,4 @@ var a: number; (/* @@ label */{a} = "foo") -/* @@@ label Error TypeError: Property a does not exist on type "foo". */ +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type "foo". */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts index f69b54429377069dc56bce484e59112705e9edaf..fc1aec45910cd3424e2f2cfadc9c85dcb589eaf0 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts @@ -15,4 +15,4 @@ var /* @@ label */{ a = 5, b: foo } = { foo: 5 }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'foo' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'foo' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts index 76adad539638fd2c9287ee0b3323c22fcc0b97f2..26df2b4afa8fb6707684727eba5fd56eaeea98ef 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts @@ -17,4 +17,4 @@ var a: number; ({/* @@ label */a} = {a : "foo"}) -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts index 66cb64efe7f807e2352d212b273361e3b90c63de..689884f4e99d7667ba3a6c55fdb15fc65a49d894 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts @@ -17,4 +17,4 @@ var a: number; ({/* @@ label */a = "foo"} = {a : 3}) -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts index c323c3b1c14c3673caf97dfe5fc17e2d7e89c4f5..a99ed27497f22986139e36b7f9315826b44fa1b8 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts @@ -16,4 +16,4 @@ ({/* @@ label */a} = {a : 3}) -/* @@@ label Error TypeError: Cannot find name 'a'. */ +/* @@@ label Error Semantic error ESE0000: Cannot find name 'a'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts index 93b6c42d662ba7cdfe737bc3054a7c55d3a39703..489198b7047dbfb2846edde680a3b75d470b6412 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts @@ -17,4 +17,4 @@ var a: number; (/* @@ label */{ a } = { a: 3, b: 4 }) -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts index 396d54e6ee07f27a9b13ede21e93697f25df2490..9eca757668ded8b655b4a5375d20a1b298116040 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts @@ -18,4 +18,4 @@ var b: string; (/* @@ label */{a} = b) -/* @@@ label Error TypeError: Property a does not exist on type string. */ +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type string. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts index 929158a70e60f2da72494c3978bfbfd044450f0e..90b0abee581bd51d520cae178066e49ba839748b 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts @@ -18,4 +18,4 @@ var b: string; ({/* @@ label */a} = {a : b}) -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts index 1a05ef62b55f320fb01c9d9580e302e80415e4e5..f1e8069412682ec4575b813df446cadd53ed9b5e 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts @@ -19,4 +19,4 @@ var c: string; ({a : /* @@ label */{c}} = {a : "foo"}) -/* @@@ label Error TypeError: Property c does not exist on type string. */ +/* @@@ label Error Semantic error ESE0000: Property c does not exist on type string. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts index 46fe6602d36dd88d780264d3cd621eeb1e44d83a..050a7a0956c41fada3eb79d16d01e653855c678e 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts @@ -18,4 +18,4 @@ var c: string; ({ a: { c } } = { a: { /* @@ label */b } }) -/* @@@ label Error TypeError: Cannot find name b */ +/* @@@ label Error Semantic error ESE0000: Cannot find name b */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts index 566f6c5b5e73be1645fcb15faf833bf181322b17..d8f733b3a8008120f12f87521426714dfe63f30d 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts @@ -19,4 +19,4 @@ var c: string; ({a : {/* @@ label */c}} = {a : {c : b}}) -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts index 60dbfb2f7e84aac8b0626765366b6c4084570e7e..56d17335d62abfb9d36425ab1bb683791615d869 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts @@ -18,4 +18,4 @@ var b: string; (/* @@ label */{a} = {a : 5, b : "foo"}) -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts index 2ea4e50067b61730e0f9c78d6c28161c9d5c957f..b32552a1e129e7d0f35cd1651379708edd00f8fc 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts @@ -15,4 +15,4 @@ var { a: /* @@ label */[b = 5, c] } = { a: 5 }; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts index 2ef0749a783b4cd36acd8294526a95a574460989..de9e5d3d65cfbe0c2cc63522eee6597f71ae9b53 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts @@ -18,4 +18,4 @@ var b: string; (/* @@ label */{a, b} = {a : 5}) -/* @@@ label Error TypeError: Property b does not exist on type { a: number; }. */ +/* @@@ label Error Semantic error ESE0000: Property b does not exist on type { a: number; }. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts index 9fa54d7bcc8f8945d07445ecfe88945418b381d9..2177e2c2337ac3f1485129a9a804bf469dd4b476 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts @@ -19,4 +19,4 @@ var b: string; var c = {}; ({c: /* @@ label */{b, a} = {a: "baz"}} = {c : {a: 10, b: "bar"}}); -/* @@@ label Error TypeError: Property b does not exist on type { a: number; b: string; } | { a: string; }. */ +/* @@@ label Error Semantic error ESE0000: Property b does not exist on type { a: number; b: string; } | { a: string; }. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts index 17fbc07038513217fd465cfc2ff6c4fa30f7b27e..7a25af4dacb471c1d8190e1ed010a455b47a289a 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts @@ -15,4 +15,4 @@ var /* @@ label */{ a: [b = "bar", c] } = { b: "foo" }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts index ecf37d1a57824b99b990da71c011f0ebbe82bc22..40cd0efb762041e417b1495a5c97e351b7357abb 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts @@ -16,4 +16,4 @@ var { a: foo } = { a: { a: 1, b: true } }; foo = { /* @@ label */a: "foo", b: false }; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts index 9ab31738521a06754f7b01d6f143fd98ee1d3c52..574b7b7d1be3db77f7e1179f41510b4493b70314 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts @@ -16,4 +16,4 @@ var { a = { a: 5, b: true } } = { a: 3n }; a = { a: 1, b: false, /* @@ label */c: 6 }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and "c" does not exist in type 'bigint | { a: number; b: boolean; }'. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "c" does not exist in type 'bigint | { a: number; b: boolean; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts index 6268c200e88a21e0e3dea3e639794842482ed068..f9f4e7a2e439be9794b7b6983cf9845ae14fd458 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts @@ -16,4 +16,4 @@ var { a: /* @@ label */{ a = "bar", b } = { a: 1, b: true, c: {} } } = { a: { a: 5n, b: "foo" } } -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'c' does not exist in the pattern. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'c' does not exist in the pattern. */ diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts index 9ed18474f4b00dbf715f5bbb308697267dd797fb..e5b0f9ba52c624de5c2413d5e256455f6b40ac24 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts @@ -16,4 +16,4 @@ var { a: { a, b } = { a: 1, b: true } } = {} /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts index ac7c82ae1ca601ea8a4a33d45efd786aa8b85096..f838d3e592fa02db8285e3310e2fb56dce7e2d92 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts @@ -15,4 +15,4 @@ var a: { a: number, b: string } = { /* @@ label */a: "foo", b: "bar" }; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts index ed9ad24e52648d7d7baf12b8ef5e95b6089707b3..f0f1b8a6fb40fc61e4bc4a37a0906c4347b8da11 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts @@ -15,4 +15,4 @@ var a: { a: { a: number, b: string } } = { a: { a: 5, /* @@ label */b: 6 } }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts index 082d672d6d63f08d2ab6a5d9f367b0430bf13c9b..1e0082132e8d13ac326597495ba7d25e71beb028 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts @@ -15,4 +15,4 @@ var a: { a: { a: number, b: string[] } } | { a: { a: number[], b: number } } = { /* @@ label */a: 5 } -/* @@@ label Error TypeError: Type 'number' is not assignable to type '{ a: number; b: string[]; } | { a: number[]; b: number; }'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '{ a: number; b: string[]; } | { a: number[]; b: number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts index ff4edb8c534d07a96f2dd54479575aeb591cf55c..734df14fd4704c389fa06069078bf00bdd411a7b 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts @@ -15,4 +15,4 @@ var a: { a: { a: number, b: string[] } } | { a: { a: number[], b: number } } = { a: { a: [1, 2, 3, /* @@ label */"foo"] } } -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts index 1bc216fb14bb9b0998740904416e930226668b5a..30910c3a7fec03192c5fa41d20b2c1edcc0ec522 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts @@ -15,4 +15,4 @@ var a: { a: { a: number, b: string[] } } | { a: { a: number[], b: number } } = { a: { a: [1, 2, 3, 4], /* @@ label */b: true } } -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts index de5c2e8be81d0f1037e1cfe554e8ee27d058759c..b479dc6e47be8afd9fe313c4e42975943ad2a0ed 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts @@ -15,4 +15,4 @@ var a: { a: { a: number, b: string[] } } | { a: { a: number[], b: number } } = { a: { a: [1, 2, 3, 4], b: 5, /* @@ label */c: "foo" } } -/* @@@ label Error TypeError: Object literal may only specify known properties, and "c" does not exist in type '{ a: number; b: string[]; } | { a: number[]; b: number; }'. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "c" does not exist in type '{ a: number; b: string[]; } | { a: number[]; b: number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts index 947515df849e5db2653d9e1718988f4c039f42a9..8f38cd2ada64ae46a102dce6d0f4bc3b98c9d8b3 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts @@ -25,4 +25,4 @@ interface b extends a { } var a: b = { /* @@ label */a: 5 }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts index 0a97ff9bc7ae79871ac14f3df0ba9ab9c1779336..19c550f07dd99b0dfb73099d1f61fdc10c097b5b 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts @@ -34,4 +34,4 @@ interface d extends a, b, c { } var /* @@ label */a: d = { a: 5, b: "foo", c: true }; -/* @@@ label Error TypeError: Type '{ a: 5; b: "foo"; c: true; }' is not assignable to type 'd'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: 5; b: "foo"; c: true; }' is not assignable to type 'd'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts index d1e85baf4b144c5b922c7e02769b209926e86b2e..bf3c995ff61f2b21102f81bc72acf6cfbca5cc46 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts @@ -17,4 +17,4 @@ var a: { a: number, b: string }; var b: { a: typeof a, b: string }; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '{ a: { a: number; b: string; }; b: string; }' is not assignable to type '{ a: number; b: string; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: { a: number; b: string; }; b: string; }' is not assignable to type '{ a: number; b: string; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts index e62397927a70b33938f37d3a32379bb829f7ae3c..ec7d92d7e0f49a364b6cdf7687e6a3d52485231c 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts @@ -19,4 +19,4 @@ function func(a: { a: number, b: string }, b: number): { a: number[], b: boolean } var /* @@ label */a: { a: string[], b: boolean } = func({ a: 5, b: "foo" }, 6); -/* @@@ label Error TypeError: Type '{ a: number[]; b: boolean; }' is not assignable to type '{ a: string[]; b: boolean; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: number[]; b: boolean; }' is not assignable to type '{ a: string[]; b: boolean; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts index 66544161d5bf087c830f3b978e5bddee95dd9051..66c2402e2c091987c9a919dbbbd175571de6c448 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts @@ -17,4 +17,4 @@ var a: { a: number, b: { a: number, b: string }, c: { b: boolean, a: null, } }; var b: { a: number | string, b: { a: number, b: number }, c: { a: { a: number, b: string }, d: boolean } }; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '{ a: number | string; b: { a: number; b: number; }; c: { a: { a: number; b: string; }; d: boolean; }; }' is not assignable to type '{ a: number; b: { a: number; b: string; }; c: { b: boolean; a: null; }; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ a: number | string; b: { a: number; b: number; }; c: { a: { a: number; b: string; }; d: boolean; }; }' is not assignable to type '{ a: number; b: { a: number; b: string; }; c: { b: boolean; a: null; }; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts index cf65b9ae80e3ca21358f4e76b8ab7567a575dced..ac1030045b610cd46258435c589e8156e4589032 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts @@ -15,4 +15,4 @@ var a: { a: number } = { a: 5, b: "foo" }; -/* @@? 17:32 Error TypeError: Object literal may only specify known properties, and "b" does not exist in type '{ a: number; }'. */ +/* @@? 17:32 Error Semantic error ESE0000: Object literal may only specify known properties, and "b" does not exist in type '{ a: number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts index c3bf663f86044f065e3860b8c02a5f7d7669c52b..df2d9e708c01fecca4deb9f4838ffa9e16a449b0 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts @@ -18,4 +18,4 @@ var a: { new(a: number, b: string): number, (a: number, b: string): string }; var b: { new(a: number, b: string): number, (a: string, b: string): string } /* @@ label */a = b; -/* @@@ label Error TypeError: Type '{ (a: string, b: string): string; new (a: number, b: string): number; }' is not assignable to type '{ (a: number, b: string): string; new (a: number, b: string): number; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ (a: string, b: string): string; new (a: number, b: string): number; }' is not assignable to type '{ (a: number, b: string): string; new (a: number, b: string): number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts index 1972f5e7618a3118f6fb6f529be34464a99acf62..83c5f4038a158c50f61740c7c8ce3d5b5f2c3c98 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts @@ -15,4 +15,4 @@ var a: { a: number } | { b: string } = { /* @@ label */c: true }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and "c" does not exist in type '{ a: number; } | { b: string; }'. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "c" does not exist in type '{ a: number; } | { b: string; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts index d522d80de2405ab7706543f6dba86678c062628e..064a0e0c9ba9d840efff9a4f42c143aa24a6cdee 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts @@ -16,4 +16,4 @@ var a: { b: number } = { /* @@ label */b: function (): string { return "foo" } } -/* @@@ label Error TypeError: Type '() => string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type '() => string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts index c2e4a46fa1eeaf1b62e2417b1cada85e0979445c..1bff549f5aa715afbca362f2c5cc44a84e0cbaa0 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts @@ -16,4 +16,4 @@ var a = { a: 5, b: "foo" }; var b: { a: number, b: string, c: number, d: boolean | string } = { ...a, c: 5, /* @@ label */d: 6 }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts index f2656e18a92a72336a272ae93898a99be6d32446..e576b6aa908c55dc9a8c41ec6d9d7147b5895c67 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts @@ -15,4 +15,4 @@ var a: { a: number, b: string } | { a: string, b: number } = { /* @@ label */a: true }; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts index 1efe13e73916f317571e7969fe4b484773369461..215573d321acdeb6a97add5155bdf80449934447 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts @@ -15,4 +15,4 @@ var a: { a: number } | { a: string } | { a: boolean } = { /* @@ label */b: "foo" }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and "b" does not exist in type '{ a: number; } | { a: string; } | { a: boolean; }'. */ +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "b" does not exist in type '{ a: number; } | { a: string; } | { a: boolean; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts index 92c3073b81dd15e0927790f18705d9fb3218c719..1df827ca94ca3d3863f612de1504d88dc6191954 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts @@ -15,4 +15,4 @@ var a: { b: number, a: number } | { b: string, a: string } | { b: boolean, a: boolean } = { b: "foo", /* @@ label */a: 5n }; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts index c4c89c830c18d452b25d715337584154f4923633..47cf009a820cc6e0e16a48bd67954662763824dd 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts @@ -15,4 +15,4 @@ var a: { a: { a: number, b: string } } = { /* @@ label */a: 5 }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type '{ a: number; b: string; }'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '{ a: number; b: string; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/object_expression_1.ts b/ets2panda/test/ast/compiler/ts/object_expression_1.ts index 73183c0a5a5aa7a9a449cfde511b3ba525c0c631..5f6d2073f3fc5dfb6ee8692de73cd50d448ebd6f 100644 --- a/ets2panda/test/ast/compiler/ts/object_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/object_expression_1.ts @@ -19,4 +19,4 @@ class Person { } let a = [1, { a: 1, b: 2 } : /* @@ label */Person]; -/* @@@ label Error SyntaxError: Unexpected token. */ +/* @@@ label Error Syntax error ESY0000: Unexpected token. */ diff --git a/ets2panda/test/ast/compiler/ts/recursiveFunction.ts b/ets2panda/test/ast/compiler/ts/recursiveFunction.ts index 6e1c09154858ff3afe2febe3934c3c3960fc6797..13e7f8797db308fc0bcf9d47b2b45cc1d9e30cef 100644 --- a/ets2panda/test/ast/compiler/ts/recursiveFunction.ts +++ b/ets2panda/test/ast/compiler/ts/recursiveFunction.ts @@ -23,4 +23,4 @@ function /* @@ label */foo(a: number, b: string) { var b: any; var b = foo(2, "bar"); -/* @@@ label Error TypeError: foo implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. */ +/* @@@ label Error Semantic error ESE0000: foo implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. */ diff --git a/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts b/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts index c4d21c7af77ca56d65ed9ac3ce52a821e11c14a3..a81f4d48142c3f2bde04111835458eede78b1c9f 100644 --- a/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts +++ b/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts @@ -28,4 +28,4 @@ var o: { } }; -/* @@@ label Error TypeError: 'c' is referenced directly or indirectly in its own initializer ot type annotation. */ +/* @@@ label Error Semantic error ESE0314: 'c' is referenced directly or indirectly in its own initializer ot type annotation. */ diff --git a/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts b/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts index 5a3ece49620ea829e62fa9f35ace63450fc06ee9..c72bc12bf3da5c494d03c2845ff587e73c88cd4e 100644 --- a/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts +++ b/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts @@ -23,4 +23,4 @@ case /* @@ label */'1': break; } -/* @@@ label Error TypeError: Type string is not comparable to type number */ +/* @@@ label Error Semantic error ESE0000: Type string is not comparable to type number */ diff --git a/ets2panda/test/ast/compiler/ts/test-interface4.ts b/ets2panda/test/ast/compiler/ts/test-interface4.ts index b738da85d18db16189b3d32f03d0721573995915..910258a63ac0ab81a55785596a1c62355c08fed1 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface4.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface4.ts @@ -15,4 +15,4 @@ interface A { [a: number] /* @@ label */?: number } -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ +/* @@@ label Error Syntax error ESY0000: An index signature must have a type annotation. */ diff --git a/ets2panda/test/ast/compiler/ts/test-interface5.ts b/ets2panda/test/ast/compiler/ts/test-interface5.ts index b5b547dc485e4ba255660d369c5b6ab2288de0ad..ed30b07431d75afc463b546a0574df5c9a81a4cf 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface5.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface5.ts @@ -15,4 +15,4 @@ interface A { readonly /* @@ label */new(a: number): string }; -/* @@@ label Error SyntaxError: Unexpected token in property key */ +/* @@@ label Error Syntax error ESY0000: Unexpected token in property key */ diff --git a/ets2panda/test/ast/compiler/ts/test-interface6.ts b/ets2panda/test/ast/compiler/ts/test-interface6.ts index 0bf321e80cb6dbb9ef4080e54e509174e442f8bd..5f74958d1bbdf13ac2054b838f804f97b336dd26 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface6.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface6.ts @@ -15,4 +15,4 @@ interface A { /* @@ label */readonly a(a: number): string }; -/* @@@ label Error SyntaxError: 'readonly' modifier can only appear on a property declaration or index signature. */ +/* @@@ label Error Syntax error ESY0000: 'readonly' modifier can only appear on a property declaration or index signature. */ diff --git a/ets2panda/test/ast/compiler/ts/test-interface7.ts b/ets2panda/test/ast/compiler/ts/test-interface7.ts index 7a5e63a3654d81a9d996bd61d628891b24e6dcd6..70106818cec4bebc9799b5c59ff20a17b207b718 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface7.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface7.ts @@ -15,4 +15,4 @@ interface A { [a: number] /* @@ label */}; -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ +/* @@@ label Error Syntax error ESY0000: An index signature must have a type annotation. */ diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal4.ts b/ets2panda/test/ast/compiler/ts/test-type-literal4.ts index 00ec738437fbeeef455260cba7f718a726e26338..a32585bf1630db5fd905346e99c43c6e5f0fad10 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal4.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal4.ts @@ -15,4 +15,4 @@ var a: { [a:number] /* @@ label */?: number } -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ +/* @@@ label Error Syntax error ESY0000: An index signature must have a type annotation. */ diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal5.ts b/ets2panda/test/ast/compiler/ts/test-type-literal5.ts index 4eeeccc157677798cc70d37474381dc73bf61541..545eb378723b1bfc5c075fe4322e737a2a88f263 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal5.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal5.ts @@ -15,4 +15,4 @@ var a: { readonly /* @@ label */new (a:number):string }; -/* @@@ label Error SyntaxError: Unexpected token in property key */ +/* @@@ label Error Syntax error ESY0000: Unexpected token in property key */ diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal6.ts b/ets2panda/test/ast/compiler/ts/test-type-literal6.ts index 1ce4e9ec122b41233dde5dbe491e60315c2240a2..d13ba6bbdeff7c2669aa007ca97048453edf354e 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal6.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal6.ts @@ -15,4 +15,4 @@ var a: { /* @@ label */readonly a(a:number):string }; -/* @@@ label Error SyntaxError: 'readonly' modifier can only appear on a property declaration or index signature. */ +/* @@@ label Error Syntax error ESY0000: 'readonly' modifier can only appear on a property declaration or index signature. */ diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal7.ts b/ets2panda/test/ast/compiler/ts/test-type-literal7.ts index bf1f2e1920ad4de624662fd254a206b8222396a2..e0b8e9c408eb44328626ac7a0e92db77027a687e 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal7.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal7.ts @@ -15,4 +15,4 @@ var a: { [a:number] /* @@ label */}; -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ +/* @@@ label Error Syntax error ESY0000: An index signature must have a type annotation. */ diff --git a/ets2panda/test/ast/compiler/ts/test_variable_declaration_null.ts b/ets2panda/test/ast/compiler/ts/test_variable_declaration_null.ts index e814ed3003ebb65f82bd4dbbe539ee4bea10f045..0418e07b91470d36823b5b90a21321d57cd4c05e 100644 --- a/ets2panda/test/ast/compiler/ts/test_variable_declaration_null.ts +++ b/ets2panda/test/ast/compiler/ts/test_variable_declaration_null.ts @@ -15,4 +15,4 @@ const z = null -/* @@? 16:7 Error TypeError: Cannot infer type for variable 'z'. */ +/* @@? 16:7 Error Semantic error ESE0000: Cannot infer type for variable 'z'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts index ce8e49751eec8c85052555490f21f6dfe713f824..a049b46b6557c939c802b2e3e440686c840aa103 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts @@ -15,4 +15,4 @@ var /* @@ label */a: [] = [1]; -/* @@@ label Error TypeError: Type '[1]' is not assignable to type '[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[1]' is not assignable to type '[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts index 782f2da32d65d8903635a7605e43b6f5c7a590d9..0bb2d62d442cf8b6891d6766819b4634f8a899c1 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts @@ -18,4 +18,4 @@ function a(): [string, number] { return ["foo", /* @@ label */"bar"]; } -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts index a7a9083a883089e7ca4b547ac2b42a1bf613f8a2..f972af927faedb0006924ac1ebcbaf9f72eb7e6b 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts @@ -17,4 +17,4 @@ var a: []; var b: [[]]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '[[]]' is not assignable to type '[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[[]]' is not assignable to type '[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts index 12c40921ba79fb333ad1443ec60336f0b3e8963d..aaf385f15d3cb286829d10485800d26f0d72eee2 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts @@ -17,4 +17,4 @@ var a: [a: number, b: string, c?: number]; var b: [a: number, b: string, c: number, d: number]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '[a: number, b: string, c: number, d: number]' is not assignable to type '[a: number, b: string, c?: number]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[a: number, b: string, c: number, d: number]' is not assignable to type '[a: number, b: string, c?: number]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts index 885290a2499f7a27ce126d330101cb73d3e1a547..ec6fbff1680725f869edcdbf5b6899a63001e965 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts @@ -21,4 +21,4 @@ function b(c: typeof a) { } b([1, 2, /* @@ label */3]); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts index c0ff48578357237a4daa50738ecf091bc158ea9b..983ac715a47de89fd745291b8a8f2903a01362ea 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts @@ -15,4 +15,4 @@ var /* @@ label */a: [] = 6; -/* @@@ label Error TypeError: Type 'number' is not assignable to type '[]'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts index 6917dc986737c942900b96f5cf310cddfc8816ad..d6868432a4e24f2798014e46f84b5b6cedeb362d 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts @@ -17,4 +17,4 @@ var a: [number, number, number]; var b: number[]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type 'number[]' is not assignable to type '[number, number, number]'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number[]' is not assignable to type '[number, number, number]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts index 8b258ea66fb66e433f3773787c99dc4525cab1ac..756c597f8fdb4926e6bf0224218667259e0fdcec 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts @@ -15,4 +15,4 @@ var a: [number[], string[]] = [[/* @@ label */"foo"], ["bar"]]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts index 0837b076e743a9e62e6163ebbb5a4a8d0c024d30..882562bd101ee3900046d8522a6d5972cfdbb856 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts @@ -17,4 +17,4 @@ var a: [number, string]; var b = a; /* @@ label */b = [1, 2, 3] as [number, number, number]; -/* @@@ label Error TypeError: Type '[number, number, number]' is not assignable to type '[number, string]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[number, number, number]' is not assignable to type '[number, string]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts index 7e4b8fb7231b891a81b62f0970041682873e2687..03659ed7d408c0728c83fd43c36f22d016172911 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts @@ -19,4 +19,4 @@ var b: [[[number]]]; function func(c: number, d: string): [number] { return [1]; } -/* @@@ label Error TypeError: Type 'number' is not assignable to type '[number]'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '[number]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts index 27950f7e14a1f60bf1f0ef52cd10b87ff49f3e46..82197b615523cfc110827f27b8660e8cce8937b8 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts @@ -15,4 +15,4 @@ var a: [number] | [string] = [/* @@ label */true]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts index c95133478786dd9cbc99e9fd97f1a02386d3bf24..85a00520fd4707d43f9f1e1516e59c332e6c8ec6 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts @@ -15,4 +15,4 @@ var /* @@ label */a: [number, string] = [5, "foo", 6]; -/* @@@ label Error TypeError: Type '[5, "foo", 6]' is not assignable to type '[number, string]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[5, "foo", 6]' is not assignable to type '[number, string]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts index 9ec77ec04a92fbc38e5f646a3a6acd12aa14e932..ead660ac673698454137d0b3df528af79a83db6b 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts @@ -15,4 +15,4 @@ var a: number[] | [string, number] = [/* @@ label */true, 5]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts index 7605186b36a5661723e8ae97de6cbcd180e18048..0cf0ba121ce710c12de37741ed24aacff829564b 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts @@ -15,4 +15,4 @@ var /* @@ label */a: [number, number] | [number, number, number] = [1]; -/* @@@ label Error TypeError: Type '[1]' is not assignable to type '[number, number] | [number, number, number]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[1]' is not assignable to type '[number, number] | [number, number, number]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts index b71a05d00ae082dfea64af1ee46632ea85a18a49..f30db13782bcbb6c762b1a4aef2d3767671f49ee 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts @@ -15,4 +15,4 @@ var /* @@ label */a: [number, number] | string = 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type '[number, number] | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '[number, number] | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts index 1b006df38f5c4023d13f2d74861ce0cee793209c..620e96ad79e2700b2688612fbb8f45227c868c71 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts @@ -15,4 +15,4 @@ var a: [[number, string], [number, string]] = [[1, "foo"], [2, /* @@ label */3]]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts index 6372c84d168ea777ab2e13d8e9e8ba801a3643b4..cd3b8afe8580abe21d65fcdf6fc50578e79ee375 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts @@ -17,4 +17,4 @@ var a: [number, number, number] | number[]; var b: [number, number, number, number] | string[]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '[number, number, number, number] | string[]' is not assignable to type '[number, number, number] | number[]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[number, number, number, number] | string[]' is not assignable to type '[number, number, number] | number[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts index 25c9a35cc30fdeef0b377f8ffde0d6f08322d15f..1bbae1536303532e36fecee2d13d975ee27676bf 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts @@ -15,4 +15,4 @@ var /* @@ label */a: [number, number, number] = [1, 2]; -/* @@@ label Error TypeError: Type '[1, 2]' is not assignable to type '[number, number, number]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[1, 2]' is not assignable to type '[number, number, number]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts index 6cb593a4bb3eeee89e65af10b89a6679f801e681..ba17c1c4871e261431403ba42b880919dbcd32fb 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts @@ -17,4 +17,4 @@ var a: [number, string]; var b: [string, number]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '[string, number]' is not assignable to type '[number, string]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[string, number]' is not assignable to type '[number, string]'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts index c14de107672cee988d568869bf126a6c4bf2a5ef..e7f8ab8cb85272eb642f99d27233613b701cfd9e 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts @@ -15,4 +15,4 @@ var a: [number, string] = [5, /* @@ label */6]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts index d21a1504a1e8dd49338a8122b9b9f55f192247a6..4840bfd9a1ce6af14a3b1445b9f052e092f69d08 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts @@ -15,4 +15,4 @@ var a: [[a: number, b?: string], [boolean | string, number[]]] = [[1], ["foo", [1, 2, /* @@ label */"foo"]]]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts index 3151802c59e9c7c8fcdf66530d751741ef6fe5b7..c1e04aa0e709088d4b7d7150551dcb03d2905784 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts @@ -15,4 +15,4 @@ var a: [[a: number, b?: string], [boolean | string, number[]]] = [[1], [/* @@ label */2, [3, 4]]]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean | string'. */ +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts index 7b37bb33b1ebf16e7e94546e334d79bb15a9a0a6..789c9e520555cd735f2b697c28da854d79e98146 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts @@ -16,4 +16,4 @@ var a: [number, string, boolean, number, string] = [1, "foo", true, 5, 6] -/* @@? 17:72 Error TypeError: Type 'number' is not assignable to type 'string'. */ +/* @@? 17:72 Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts index ecca78f5e874f396bc9f8012946c8b80eef771f2..54d52d2757e44f51aa9864287dd1e0f55df61c11 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts @@ -21,4 +21,4 @@ function b(): [string, number] { } /* @@ label */a = b(); -/* @@@ label Error TypeError: Type '[string, number]' is not assignable to type '[number, string]'. */ +/* @@@ label Error Semantic error ESE0000: Type '[string, number]' is not assignable to type '[number, string]'. */ diff --git a/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts b/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts index 167eb1294c02fd822f74f8baf583064e23c5e45a..0a6ac7a82b7aee86888052d188d76c93461af86b 100644 --- a/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts +++ b/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts @@ -18,4 +18,4 @@ type a = { a: number, b?: string } | number | [string, string, string]; var b: a; /* @@ label */a += 2; -/* @@@ label Error TypeError: a only refers to a type, but is being used as a value here. */ +/* @@@ label Error Semantic error ESE0000: a only refers to a type, but is being used as a value here. */ diff --git a/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts b/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts index ced03056b46db22d293c778e25460691c620ba5d..10a4833a39823601444b88e5b61f9bbd285cbd8d 100644 --- a/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts +++ b/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts @@ -20,4 +20,4 @@ function foo (undefined: string = "bar"): number { foo(); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts index 517bc68d5c41905b735596354ae12ca50437d1a4..0781542e75a5bb64fc6e13a9e3b8c510cd8b1bc2 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts @@ -17,4 +17,4 @@ var a: any; var /* @@ label */a: number; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'any', but here has type 'number'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'any', but here has type 'number'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts index 954811af4175780bd296404d3e3cb3da2a91f219..433626af18c9834d3135bc324e5899613558ca76 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts @@ -20,4 +20,4 @@ var a: {} var a: { a?: number } */ /* @@ label */a; -/* @@@ label Error TypeError: Cannot find name a */ +/* @@@ label Error Semantic error ESE0000: Cannot find name a */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts index 6b06e8234e58d3a32ab128d22ca70ea14257d140..9c420a1d8d8b08d398413640ac4adda48ec7d84f 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts @@ -16,4 +16,4 @@ var a: {} | { a: number, b: string } | number; var /* @@ label */a: { a: number, b: string } | string | {}; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ } | { a: number; b: string; } | number', but here has type '{ a: number; b: string; } | string | { }'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ } | { a: number; b: string; } | number', but here has type '{ a: number; b: string; } | string | { }'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts index ff9fd5b0f7507ed8bfa4c0d32611889670f8f675..5258d83f59b48989ef0ea7fcfe329e2621749ac9 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts @@ -25,4 +25,4 @@ interface b { var c: a; var /* @@ label */c: b; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'c' must be of type 'a', but here has type 'b'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'c' must be of type 'a', but here has type 'b'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts index 43b2a83edeb5561bbe4fe87ea0d58dc820c0d292..7ead736e74c3e7ef56347bccbf467aa81808e6d9 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts @@ -34,4 +34,4 @@ interface d { var a: d; var /* @@ label */a: c; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'd', but here has type 'c'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'd', but here has type 'c'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts index 63a30aa5d9cc1bfc9d0880f54378abc95139e4f5..86596213f5dbd2b91cd4c187dd40d10964149315 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts @@ -29,4 +29,4 @@ interface c { var a: c; var /* @@ label */a: b; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'c', but here has type 'b'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'c', but here has type 'b'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts index b15007fb25c4f6ae3efc99ede28e0b053dc906be..8d9a32afd43a46b97bf48c274e9a8fea1dffee4c 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts @@ -16,4 +16,4 @@ var a: { a: number, b: string }; var /* @@ label */a: typeof a | 5; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ a: number; b: string; }', but here has type '{ a: number; b: string; } | 5'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ a: number; b: string; }', but here has type '{ a: number; b: string; } | 5'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts index b946050d9db53403de5cd216c77b3ba7db70c6d3..1c0d6bee1fe54385988961fc861ac60eee7339c6 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts @@ -16,4 +16,4 @@ var a: number; var /* @@ label */a: 5; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type '5'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type '5'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts index f457a83a86b427ff098c41ec1c791f49df37fc8e..a36e454e52aba6aa0d95c5bfe51852969526358b 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts @@ -16,4 +16,4 @@ var a: number; var /* @@ label */a: number | string; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type 'number | string'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type 'number | string'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts index 29c75591e2b8be0cc94240f2f02061edea849106..ed70b76bd4df1462f23032471d71ac42bd1e2bb6 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts @@ -16,4 +16,4 @@ var a: number[] var /* @@ label */a: string[] -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number[]', but here has type 'string[]'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number[]', but here has type 'string[]'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts index 1fae255cbba51f916470dafbf9c54670b9acd5ca..7f70c3cf041e48b12cc57cce0cc66a43a451d9cd 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts @@ -20,4 +20,4 @@ var a: { a: number, b: string }; var a: { a: string, b: number }; */ /* @@ label */a; -/* @@@ label Error TypeError: Cannot find name a */ +/* @@@ label Error Semantic error ESE0000: Cannot find name a */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts index 2a9efa2fbc2168751df877472755dfae5ec81798..e7d514b290099f845d10a41e2401c5419b4fb4de 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts @@ -16,4 +16,4 @@ var a: [number, string, number]; var /* @@ label */a: [a: number, b: string, c?: number]; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '[number, string, number]', but here has type '[a: number, b: string, c?: number]'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '[number, string, number]', but here has type '[a: number, b: string, c?: number]'. */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts index 0da87519325eca0f58f51f6c9e2a67d881445bec..785ea860fc36b3bf6a992f340ad26067e404e235 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts @@ -20,4 +20,4 @@ var a: { a: number, b?: string }; var a: { a: number, b: string }; */ /* @@ label */a; -/* @@@ label Error TypeError: Cannot find name a */ +/* @@@ label Error Semantic error ESE0000: Cannot find name a */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts index 545c7aca0feb6b064fd1ada3924c63c9b0a844a8..a23833dfa09e78c02287d030c2427460c6819269 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts @@ -22,4 +22,4 @@ var a = { a: "foo", ...obj }; var a: { a: number, 5: string }; */ /* @@ label */a; -/* @@@ label Error TypeError: Cannot find name a */ +/* @@@ label Error Semantic error ESE0000: Cannot find name a */ diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts index f513c5e59f4aac9c7f32e71202602ad57ccd2653..df985801e8541792d8174d88bfacabb50b06ce73 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts @@ -16,4 +16,4 @@ var a: (a: number, b?: number) => number; var /* @@ label */a: (a: number, b: number) => number; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '(a: number, b?: number) => number', but here has type '(a: number, b: number) => number'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '(a: number, b?: number) => number', but here has type '(a: number, b: number) => number'. */ diff --git a/ets2panda/test/ast/parser/as/test_declare_method.ts b/ets2panda/test/ast/parser/as/test_declare_method.ts index 44924f19b30723027be1273ed1d2e4aa0886766d..c5b6fccefe92b20fe78e7b132fc762507d181d87 100644 --- a/ets2panda/test/ast/parser/as/test_declare_method.ts +++ b/ets2panda/test/ast/parser/as/test_declare_method.ts @@ -18,4 +18,4 @@ class A { declare foo/* @@ label */(a: i32): i32 { } } -/* @@@ label Error SyntaxError: 'declare' modifier cannot appear on class elements of this kind */ +/* @@@ label Error Syntax error ESY0000: Class method can not be declare nor readonly */ diff --git a/ets2panda/test/ast/parser/as/test_decorator.ts b/ets2panda/test/ast/parser/as/test_decorator.ts index 7e1ef048500c8d63c1815cf0592046d34f5023a0..4eeabe48f214747c715ed860c33e59f5a37c643d 100644 --- a/ets2panda/test/ast/parser/as/test_decorator.ts +++ b/ets2panda/test/ast/parser/as/test_decorator.ts @@ -18,5 +18,5 @@ function a(): void { /* @@ label2 */@a /* @@ label */} -/* @@@ label Error SyntaxError: Unexpected token '}'. */ -/* @@@ label2 Error SyntaxError: Decorators are not valid here */ +/* @@@ label2 Error Syntax error ESY0000: Decorators are not valid here */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/as/test_decorators2.ts b/ets2panda/test/ast/parser/as/test_decorators2.ts index 7f584d3f2977bdb0df8503f68fbfbdd78ca59820..a9739b6ba34c0db5670d9a3c21973ba3d8aec5e1 100644 --- a/ets2panda/test/ast/parser/as/test_decorators2.ts +++ b/ets2panda/test/ast/parser/as/test_decorators2.ts @@ -16,4 +16,4 @@ function foo(/* @@ label */@a a: i32): void { } -/* @@@ label Error SyntaxError: Identifier expected */ +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ diff --git a/ets2panda/test/ast/parser/as/test_decorators3.ts b/ets2panda/test/ast/parser/as/test_decorators3.ts index 678dc47ba51fd29ccd11911c7f7839895b354120..1d1afef4cd864fe5fc7612f9f4fe76d4f6d9365f 100644 --- a/ets2panda/test/ast/parser/as/test_decorators3.ts +++ b/ets2panda/test/ast/parser/as/test_decorators3.ts @@ -18,4 +18,5 @@ class A { constructor(/* @@ label */@a a: i32) { } } -/* @@@ label Error SyntaxError: Identifier expected */ +/* @@? 18:32 Error Semantic error ESE0371: Cannot find type 'a'. */ +/* @@? 18:37 Error Semantic error ESE0371: Cannot find type 'i32'. */ diff --git a/ets2panda/test/ast/parser/as/test_interface1.ts b/ets2panda/test/ast/parser/as/test_interface1.ts index 71b0ec7f296c5570472170991b8157b70be39222..6e3f5fd91670ac93e450d1333ac7498567e41b0e 100644 --- a/ets2panda/test/ast/parser/as/test_interface1.ts +++ b/ets2panda/test/ast/parser/as/test_interface1.ts @@ -18,4 +18,4 @@ interface foo { a(b?: i32) /* @@ label */} -/* @@@ label Error SyntaxError: Type expected. */ +/* @@? 18:11 Error Semantic error ESE0000: Cannot find name i32 */ diff --git a/ets2panda/test/ast/parser/as/test_interface2.ts b/ets2panda/test/ast/parser/as/test_interface2.ts index a3b4c82d13effb6342bec3d4573954a83727148e..1817fe8d12dd7c0fa6aacc1e2653d84ef82b51e5 100644 --- a/ets2panda/test/ast/parser/as/test_interface2.ts +++ b/ets2panda/test/ast/parser/as/test_interface2.ts @@ -18,4 +18,4 @@ interface foo { [/* @@ label */a: i8]: v128 } -/* @@@ label Error SyntaxError: 'key' expected. */ +/* @@? 18:25 Error Syntax error ESY0000: An index signature parameter type must be either 'string' or 'number' */ diff --git a/ets2panda/test/ast/parser/as/test_interface3.ts b/ets2panda/test/ast/parser/as/test_interface3.ts index 71b0ec7f296c5570472170991b8157b70be39222..6e3f5fd91670ac93e450d1333ac7498567e41b0e 100644 --- a/ets2panda/test/ast/parser/as/test_interface3.ts +++ b/ets2panda/test/ast/parser/as/test_interface3.ts @@ -18,4 +18,4 @@ interface foo { a(b?: i32) /* @@ label */} -/* @@@ label Error SyntaxError: Type expected. */ +/* @@? 18:11 Error Semantic error ESE0000: Cannot find name i32 */ diff --git a/ets2panda/test/ast/parser/as/test_interface4.ts b/ets2panda/test/ast/parser/as/test_interface4.ts index 384bfe9f237a2591a1df751130cf19b2edcc62b7..8a5b53660ea8d49740700f8e7ce956e0a5bcd258 100644 --- a/ets2panda/test/ast/parser/as/test_interface4.ts +++ b/ets2panda/test/ast/parser/as/test_interface4.ts @@ -18,4 +18,4 @@ interface foo { [key/* @@ label */]: externref } -/* @@@ label Error SyntaxError: ':' expected. */ +/* @@? 18:26 Error Semantic error ESE0000: Cannot find name externref */ diff --git a/ets2panda/test/ast/parser/as/test_interface5.ts b/ets2panda/test/ast/parser/as/test_interface5.ts index 641b7795f3621a1715960a98df4e153f5e012895..1609ff27c15afd5d54c8c84742ef8f9f9a91c392 100644 --- a/ets2panda/test/ast/parser/as/test_interface5.ts +++ b/ets2panda/test/ast/parser/as/test_interface5.ts @@ -18,4 +18,16 @@ interface foo { [/* @@ label */5]: void } -/* @@@ label Error SyntaxError: Identifier expected. */ +/* @@? 18:5 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@@ label Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:21 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:21 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:22 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:22 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:22 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:24 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:24 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:24 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 19:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/as/test_object_literal1.ts b/ets2panda/test/ast/parser/as/test_object_literal1.ts index b54bf51c8d1e048b1c7d1817812c57e4b2c68f87..e2ae248d2de0982dcd9a7d9d51d4dcfaa68fb924 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal1.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal1.ts @@ -16,4 +16,6 @@ let a = { /* @@ label */[5 + 6] } -/* @@@ label Error SyntaxError: Identifier expected */ +/* @@? 17:33 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 24:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 24:1 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/as/test_object_literal2.ts b/ets2panda/test/ast/parser/as/test_object_literal2.ts index ee3c93ead45b7a9ee1f17afc100e6fc5d6c4c261..5d52a93d3c6ef3a92c1ffdc22766eaba7532ac84 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal2.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal2.ts @@ -16,4 +16,6 @@ let a = { "foo" /* @@ label */} -/* @@@ label Error SyntaxError: ':' expected */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 23:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 23:1 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/as/test_object_literal3.ts b/ets2panda/test/ast/parser/as/test_object_literal3.ts index f500d92a7194cde6aaf0d7e0252fcbfed5ef206a..2680b809b73678d5e0bbc39587bbf1001714ed59 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal3.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal3.ts @@ -16,4 +16,5 @@ let a = { b , a /* @@ label */n ) -/* @@@ label Error SyntaxError: Unexpected token. */ +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:34 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/as/test_object_literal4.ts b/ets2panda/test/ast/parser/as/test_object_literal4.ts index 9a60c0609f103835e2f5738f94debf74c5ab0918..585b1929676aeea6fe251024166d166d9e93303d 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal4.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal4.ts @@ -16,4 +16,4 @@ let a = { /* @@ label */...k } -/* @@@ label Error SyntaxError: Identifier expected */ +/* @@? 17:28 Error Semantic error ESE0000: Cannot find name k */ diff --git a/ets2panda/test/ast/parser/as/test_type_annotation1.ts b/ets2panda/test/ast/parser/as/test_type_annotation1.ts index 28921726e07922a057f12b17e103f53bfc9dca5f..fad33ce37a2690dbcfa8cbc294ab7f2640e724df 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation1.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation1.ts @@ -16,5 +16,4 @@ let a: i32 | -/* @@@ label Error SyntaxError: 'null' expected */ -/* @@ label */ \ No newline at end of file +/* @@? 21:1 Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/as/test_type_annotation2.ts b/ets2panda/test/ast/parser/as/test_type_annotation2.ts index 7bf7f993c79227052341dcfd08b7641bc19ca547..b0641a3c38365ec37db26cff7c032110d4614bf8 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation2.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation2.ts @@ -16,5 +16,4 @@ let a: i32[ -/* @@@ label Error SyntaxError: ']' expected */ -/* @@ label */ \ No newline at end of file +/* @@? 21:1 Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/as/test_type_annotation3.ts b/ets2panda/test/ast/parser/as/test_type_annotation3.ts index ac54ea313b4e8d78ecd1e5179121c85d0c16a083..5002426e9bd5317f423499d08968e402ba4b8d7b 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation3.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation3.ts @@ -16,4 +16,4 @@ let a: (a: i32, b/* @@ label */) => void -/* @@@ label Error SyntaxError: ':' expected */ +/* @@? 17:17 Error Semantic error ESE0000: Parameter b implicitly has any type. */ diff --git a/ets2panda/test/ast/parser/as/test_type_annotation4.ts b/ets2panda/test/ast/parser/as/test_type_annotation4.ts index e07712001d88802c78c05c04dff814512724e713..7bd97fa0e044d9b1e97b6c16f44f3d7ff269a470 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation4.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation4.ts @@ -16,5 +16,4 @@ let a: (a: i32, b: u8) => -/* @@@ label Error SyntaxError: Type expected */ -/* @@ label */ \ No newline at end of file +/* @@? 22:1 Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/as/test_type_annotation5.ts b/ets2panda/test/ast/parser/as/test_type_annotation5.ts index a31c6614bec123e5069bc998a153ef2391693b67..de9d5b320e1d62198f91294a8e7220bc0538a427 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation5.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation5.ts @@ -16,4 +16,4 @@ let a: (a: i32, b: u8) /* @@ label */u8 -/* @@@ label Error SyntaxError: '=>' expected */ +/* @@@ label Error Syntax error ESY0000: '=>' expected */ diff --git a/ets2panda/test/ast/parser/as/test_type_annotation6.ts b/ets2panda/test/ast/parser/as/test_type_annotation6.ts index 246090651f47a79515c96d3d8fad035548a88130..5af321a1b8861fbdccb372af05a1ead76c4453b1 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation6.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation6.ts @@ -16,5 +16,4 @@ let b: ((a: i32, b?: void, c: u8) => i32) | -/* @@@ label Error SyntaxError: 'null' expected */ -/* @@ label */ \ No newline at end of file +/* @@? 17:33 Error Syntax error ESY0000: A required parameter cannot follow an optional parameter */ diff --git a/ets2panda/test/ast/parser/ets/AllowSequence.ets b/ets2panda/test/ast/parser/ets/AllowSequence.ets index 54699864e1235d2fe6fba812836e27f499bcd4f4..597a7cd005715031248d560fa5049bfe46b3d27c 100644 --- a/ets2panda/test/ast/parser/ets/AllowSequence.ets +++ b/ets2panda/test/ast/parser/ets/AllowSequence.ets @@ -21,4 +21,4 @@ function main(): void { } } -/* @@? 19:17 Error SyntaxError: Comma operator is supported only in 'for' loops. */ +/* @@? 19:17 Error Syntax error ESY133681: Comma operator is supported only in 'for' loops. */ diff --git a/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets b/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets index f7ba6eb82c867054f00c3fc387fffdcfec8a5cb7..47b6b5843622e6df4318e46e41eb89797fec65c4 100644 --- a/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets +++ b/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets @@ -15,5 +15,4 @@ declare async function foo(): Promise -/* @@@ label Error SyntaxError: The modifier async cannot be used in an ambient context. */ -/* @@ label */ \ No newline at end of file +/* @@? 19:1 Error Syntax error ESY0106: The modifier async cannot be used in an ambient context. */ diff --git a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets index d2e65d59b7e3de646ca36653ed250f978c5d6f17..6392fe53a27777ddf6018ce6728dadf0f0db9563 100644 --- a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets +++ b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets @@ -20,4 +20,4 @@ function main(){ let b = $$a; } -/* @@? 20:10 Error TypeError: Unresolved reference $$a */ +/* @@? 20:10 Error Semantic error ESE0143: Unresolved reference $$a */ diff --git a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets index 478ef10f026592328b21b761f75c21dcc6950d3f..c2ea9a0e6dcc0ee73e00b6bd17628ac5ee6e9bb6 100644 --- a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets +++ b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets @@ -19,6 +19,6 @@ function main(){ let c = $$1; } -/* @@? 17:11 Error TypeError: Unresolved reference $$true */ -/* @@? 18:11 Error TypeError: Unresolved reference $$false */ -/* @@? 19:11 Error TypeError: Unresolved reference $$1 */ \ No newline at end of file +/* @@? 17:11 Error Semantic error ESE0143: Unresolved reference $$true */ +/* @@? 18:11 Error Semantic error ESE0143: Unresolved reference $$false */ +/* @@? 19:11 Error Semantic error ESE0143: Unresolved reference $$1 */ diff --git a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets index dece3f1eb2a782ee226e89c7e517c9270d38dc15..c293b1ee1fe5cdd032f417b8b4edfe95cd11e44a 100644 --- a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets +++ b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets @@ -23,4 +23,4 @@ class A { } } -/* @@? 22:28 Error TypeError: Unresolved reference $$this */ +/* @@? 22:28 Error Semantic error ESE0143: Unresolved reference $$this */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets b/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets index 8a366c6af3d6d0c024d56523d22573abc69418b2..6fb8b79215eac1872701924088b36d8dc909be64 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets @@ -19,4 +19,4 @@ function main(){ ] } -/* @@? 17:48 Error TypeError: Type 'Array<() => Int>' cannot be assigned to type '() => FixedArray' */ +/* @@@ label Error Semantic error ESE0318: Type 'Array<() => Int>' cannot be assigned to type '() => FixedArray' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets b/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets index 8315e7889cadc4361658f04f9981d79dca780dad..1566430f5ac694e67585eb6664ebbfdb4130eabf 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets @@ -41,21 +41,21 @@ function foo() { for (let i = 1 in [0, 1, 2]) {} -/* @@? 19:1 Error SyntaxError: Expected '{', got '}'. */ -/* @@? 22:5 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 23:11 Error SyntaxError: Expected '{', got '('. */ -/* @@? 23:11 Error TypeError: Unresolved reference x */ -/* @@? 27:7 Error SyntaxError: Expected '(', got '{'. */ -/* @@? 27:7 Error TypeError: need to specify target type for class composite */ -/* @@? 29:1 Error SyntaxError: Expected ')', got 'while'. */ -/* @@? 29:7 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@? 29:13 Error SyntaxError: Expected ')', got '{'. */ -/* @@? 31:9 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 31:13 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 34:5 Error SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. */ -/* @@? 38:5 Error SyntaxError: Annotation declaration can not have access modifier. */ -/* @@? 38:5 Error SyntaxError: Unexpected token 'private'. */ -/* @@? 38:13 Error SyntaxError: Unexpected token '@'. */ -/* @@? 38:14 Error TypeError: Cannot find type 'annotate'. */ -/* @@? 42:16 Error SyntaxError: for-in loop variable declaration may not have an initializer. */ -/* @@? 42:16 Error SyntaxError: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays and iterable objects. */ +/* @@? 19:1 Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 22:5 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 23:11 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@? 23:11 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 27:7 Error Syntax error ESY0230: Expected '(', got '{'. */ +/* @@? 27:7 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 29:1 Error Syntax error ESY0230: Expected ')', got 'while'. */ +/* @@? 29:7 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@? 29:13 Error Syntax error ESY0230: Expected ')', got '{'. */ +/* @@? 31:9 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 31:13 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 34:5 Error Syntax error ESY0199: Illegal 'use strict' directive in function with non-simple parameter list. */ +/* @@? 38:5 Error Syntax error ESY0210: Annotation declaration can not have access modifier. */ +/* @@? 38:5 Error Syntax error ESY0227: Unexpected token 'private'. */ +/* @@? 38:13 Error Syntax error ESY0227: Unexpected token '@'. */ +/* @@? 38:14 Error Semantic error ESE0371: Cannot find type 'annotate'. */ +/* @@? 42:16 Error Syntax error ESY0164: for-in loop variable declaration may not have an initializer. */ +/* @@? 42:16 Error Syntax error ESY6987: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays and iterable objects. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets b/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets index b39957d8dcf9a387d61fa32a4b90b8c543f034e9..4f5106a654805d9aaa16d5c73e103ed4ec5c701e 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets @@ -166,129 +166,129 @@ function main(): void { f(); } -/* @@? 18:14 Error SyntaxError: Optional variable is not allowed in for of statements. */ -/* @@? 28:29 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 34:14 Error SyntaxError: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ -/* @@? 37:33 Error SyntaxError: Unexpected token 'rethrows'. */ -/* @@? 37:33 Error TypeError: Unresolved reference rethrows */ -/* @@? 39:14 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 39:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 39:14 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 39:24 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 39:27 Error SyntaxError: Unexpected token ')'. */ -/* @@? 39:29 Error SyntaxError: Unexpected token '{'. */ -/* @@? 39:31 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 39:38 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 41:1 Error TypeError: Unresolved reference type */ -/* @@? 41:6 Error SyntaxError: Unexpected token '123'. */ -/* @@? 41:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 41:10 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 41:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 43:6 Error SyntaxError: Unexpected token 'null'. */ -/* @@? 43:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 43:11 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 43:13 Error SyntaxError: Unexpected token 'byte'. */ -/* @@? 45:6 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 45:6 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 45:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 45:11 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 47:8 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 47:8 Error TypeError: Missing initializer in const declaration */ -/* @@? 49:13 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 51:35 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 51:37 Error SyntaxError: Unexpected token '...'. */ -/* @@? 51:40 Error SyntaxError: Unexpected token 'p'. */ -/* @@? 51:43 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 51:43 Error TypeError: Unresolved reference FixedArray */ -/* @@? 51:58 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 51:59 Error SyntaxError: Unexpected token ':'. */ -/* @@? 51:61 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 51:61 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 51:61 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 51:65 Error SyntaxError: Unexpected token '{'. */ -/* @@? 52:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 52:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 52:12 Error TypeError: Unresolved reference q */ -/* @@? 52:23 Error TypeError: Unresolved reference p */ -/* @@? 55:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 59:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 63:22 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 63:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 67:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 67:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 68:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 73:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 73:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 74:11 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 77:20 Error TypeError: Interface expected here. */ -/* @@? 77:22 Error TypeError: 'I' type does not exist. */ -/* @@? 78:22 Error TypeError: Method fee(): Int in B not overriding any method */ -/* @@? 83:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 83:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 84:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 92:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 92:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 93:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 103:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 104:21 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 115:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 115:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 115:26 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 115:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 115:30 Error SyntaxError: Unexpected token ':'. */ -/* @@? 115:32 Error SyntaxError: Unexpected token 'U'. */ -/* @@? 115:32 Error TypeError: Unresolved reference U */ -/* @@? 115:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 115:34 Error SyntaxError: Unexpected token ':'. */ -/* @@? 115:36 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 115:36 Error TypeError: Unresolved reference T */ -/* @@? 115:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 116:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 116:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 119:1 Error TypeError: Function foo with this assembly signature already declared. */ -/* @@? 119:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 119:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 119:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 119:26 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 119:30 Error SyntaxError: Unexpected token ':'. */ -/* @@? 119:32 Error SyntaxError: Unexpected token 'U'. */ -/* @@? 119:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 119:34 Error SyntaxError: Unexpected token ':'. */ -/* @@? 119:36 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 119:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 120:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 120:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 123:5 Error SyntaxError: Identifier expected, got ','. */ -/* @@? 123:6 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 123:6 Error SyntaxError: Unexpected token 'abc'. */ -/* @@? 123:6 Error TypeError: Unresolved reference abc */ -/* @@? 125:1 Error TypeError: Method declaration `foo` must all ambient or non-ambient */ -/* @@? 127:1 Error SyntaxError: The modifier async cannot be used in an ambient context. */ -/* @@? 132:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 137:16 Error SyntaxError: Unexpected token '='. */ -/* @@? 137:16 Error SyntaxError: Expected '{', got '='. */ -/* @@? 137:16 Error SyntaxError: Expected ')', got '='. */ -/* @@? 137:16 Error SyntaxError: Catch clause variable cannot have an initializer. */ -/* @@? 137:18 Error SyntaxError: Unexpected token '0'. */ -/* @@? 137:19 Error SyntaxError: Unexpected token ')'. */ -/* @@? 137:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 141:24 Error TypeError: This expression is not callable. */ -/* @@? 145:18 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 146:28 Error TypeError: Property 'getInner' does not exist on type 'A' */ -/* @@? 148:25 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 149:24 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 151:20 Error TypeError: Cannot find type 'D0'. */ -/* @@? 151:29 Error TypeError: Cannot find type 'D0'. */ -/* @@? 157:16 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 158:26 Error TypeError: Property 'getInner' does not exist on type 'A' */ -/* @@? 161:9 Error SyntaxError: Identifier expected, got 'let'. */ -/* @@? 161:9 Error SyntaxError: Hard keyword 'let' cannot be used as identifier */ -/* @@? 162:9 Error SyntaxError: Hard keyword 'const' cannot be used as identifier */ -/* @@? 162:9 Error SyntaxError: Identifier expected, got 'const'. */ -/* @@? 163:9 Error SyntaxError: Hard keyword 'new' cannot be used as identifier */ -/* @@? 163:9 Error SyntaxError: Identifier expected, got 'new'. */ -/* @@? 164:5 Error TypeError: This expression is not callable. */ -/* @@? 165:5 Error TypeError: This expression is not callable. */ -/* @@? 166:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 166:5 Error TypeError: No matching call signature */ -/* @@? 295:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 18:14 Error Syntax error ESY0096: Optional variable is not allowed in for of statements. */ +/* @@? 28:29 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 34:14 Error Syntax error ESY0201: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ +/* @@? 37:33 Error Syntax error ESY0227: Unexpected token 'rethrows'. */ +/* @@? 37:33 Error Semantic error ESE0143: Unresolved reference rethrows */ +/* @@? 39:14 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 39:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 39:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 39:24 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 39:27 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 39:29 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 39:31 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 39:38 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 41:1 Error Semantic error ESE0143: Unresolved reference type */ +/* @@? 41:6 Error Syntax error ESY0227: Unexpected token '123'. */ +/* @@? 41:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 41:10 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 41:12 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 43:6 Error Syntax error ESY0227: Unexpected token 'null'. */ +/* @@? 43:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 43:11 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 43:13 Error Syntax error ESY0227: Unexpected token 'byte'. */ +/* @@? 45:6 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 45:6 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 45:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 45:11 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 47:8 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 47:8 Error Semantic error ESE0363: Missing initializer in const declaration */ +/* @@? 49:13 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 51:35 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 51:37 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 51:40 Error Syntax error ESY0227: Unexpected token 'p'. */ +/* @@? 51:43 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 51:43 Error Semantic error ESE0143: Unresolved reference FixedArray */ +/* @@? 51:58 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 51:59 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 51:61 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 51:61 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 51:61 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 51:65 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 52:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 52:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 52:12 Error Semantic error ESE0143: Unresolved reference q */ +/* @@? 52:23 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 55:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 59:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 63:22 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 63:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 67:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 67:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 68:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 73:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 73:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 74:11 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 77:20 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 77:22 Error Semantic error ESE0070: 'I' type does not exist. */ +/* @@? 78:22 Error Semantic error ESE0136: Method fee(): Int in B not overriding any method */ +/* @@? 83:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 83:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 84:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 92:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 92:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 93:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 103:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 104:21 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 115:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 115:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 115:26 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 115:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 115:30 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 115:32 Error Syntax error ESY0227: Unexpected token 'U'. */ +/* @@? 115:32 Error Semantic error ESE0143: Unresolved reference U */ +/* @@? 115:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 115:34 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 115:36 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 115:36 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 115:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 116:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 116:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 119:1 Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ +/* @@? 119:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 119:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 119:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 119:26 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 119:30 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 119:32 Error Syntax error ESY0227: Unexpected token 'U'. */ +/* @@? 119:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 119:34 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 119:36 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 119:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 120:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 120:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 123:5 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 123:6 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 123:6 Error Syntax error ESY0227: Unexpected token 'abc'. */ +/* @@? 123:6 Error Semantic error ESE0143: Unresolved reference abc */ +/* @@? 125:1 Error Semantic error ESE0399: Method declaration `foo` must all ambient or non-ambient */ +/* @@? 127:1 Error Syntax error ESY0106: The modifier async cannot be used in an ambient context. */ +/* @@? 132:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 137:16 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected '{', got '='. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected ')', got '='. */ +/* @@? 137:16 Error Syntax error ESY0101: Catch clause variable cannot have an initializer. */ +/* @@? 137:18 Error Syntax error ESY0227: Unexpected token '0'. */ +/* @@? 137:19 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 137:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 141:24 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 145:18 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 146:28 Error Semantic error ESE0087: Property 'getInner' does not exist on type 'A' */ +/* @@? 148:25 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 149:24 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 151:20 Error Semantic error ESE0371: Cannot find type 'D0'. */ +/* @@? 151:29 Error Semantic error ESE0371: Cannot find type 'D0'. */ +/* @@? 157:16 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 158:26 Error Semantic error ESE0087: Property 'getInner' does not exist on type 'A' */ +/* @@? 161:9 Error Syntax error ESY0224: Identifier expected, got 'let'. */ +/* @@? 161:9 Error Syntax error ESY0316: Hard keyword 'let' cannot be used as identifier */ +/* @@? 162:9 Error Syntax error ESY0316: Hard keyword 'const' cannot be used as identifier */ +/* @@? 162:9 Error Syntax error ESY0224: Identifier expected, got 'const'. */ +/* @@? 163:9 Error Syntax error ESY0316: Hard keyword 'new' cannot be used as identifier */ +/* @@? 163:9 Error Syntax error ESY0224: Identifier expected, got 'new'. */ +/* @@? 164:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 165:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 166:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 166:5 Error Semantic error ESE0128: No matching call signature */ +/* @@? 295:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets b/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets index 3cc0fa0bcdae7f707deb82b25dd7f52c6b53d12e..5f6c162a87f55d407356469848c957559fc1e0ef 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets @@ -122,57 +122,57 @@ function main(): void { a.run(); } -/* @@? 18:18 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 18:46 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 19:22 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 19:50 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 21:9 Error TypeError: Unresolved reference IUB */ -/* @@? 22:9 Error TypeError: Unresolved reference IUB */ -/* @@? 23:9 Error TypeError: Unresolved reference IUB */ -/* @@? 24:9 Error TypeError: Unresolved reference IUB */ -/* @@? 25:9 Error TypeError: Unresolved reference IUB */ -/* @@? 26:9 Error TypeError: Unresolved reference IUB */ -/* @@? 27:9 Error TypeError: Unresolved reference IUB */ -/* @@? 28:9 Error TypeError: Unresolved reference IUB */ -/* @@? 29:9 Error TypeError: Unresolved reference IUB */ -/* @@? 30:9 Error TypeError: Unresolved reference IUB */ -/* @@? 31:9 Error TypeError: Unresolved reference IUB */ -/* @@? 32:9 Error TypeError: Unresolved reference IUB */ -/* @@? 33:9 Error TypeError: Unresolved reference IUB */ -/* @@? 34:9 Error TypeError: Unresolved reference IUB */ -/* @@? 35:9 Error TypeError: Unresolved reference IUB */ -/* @@? 36:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 37:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 38:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 39:9 Error TypeError: Unresolved reference HomoSap */ -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 47:13 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 47:21 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 47:28 Error TypeError: Static property 'A' must be accessed through it's class 'Random' */ -/* @@? 47:32 Error TypeError: Static property 'C' must be accessed through it's class 'Random' */ -/* @@? 47:37 Error TypeError: Static property 'M' must be accessed through it's class 'Random' */ -/* @@? 48:26 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 48:33 Error TypeError: Static property 'M' must be accessed through it's class 'Random' */ -/* @@? 52:35 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 53:27 Error TypeError: Type 'null' cannot be assigned to type 'Char' */ -/* @@? 54:26 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 54:57 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 71:33 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 72:24 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 77:33 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 78:24 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 84:41 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 86:9 Error TypeError: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ -/* @@? 94:34 Error TypeError: Static property 'Random' must be accessed through it's class 'StringFasta' */ -/* @@? 95:34 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 95:65 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 103:20 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 112:16 Error TypeError: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ -/* @@? 112:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 113:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ -/* @@? 113:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 113:46 Error TypeError: Unresolved reference IUB */ -/* @@? 114:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ -/* @@? 114:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 114:46 Error TypeError: Unresolved reference HomoSap */ -/* @@? 116:36 Error TypeError: 'expected' is a static property of 'StringFasta' */ +/* @@? 18:18 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 18:46 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 19:22 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 19:50 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 21:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 22:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 23:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 24:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 25:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 26:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 27:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 28:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 29:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 30:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 31:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 32:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 33:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 34:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 35:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 36:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 37:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 38:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 39:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 47:13 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 47:21 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 47:28 Error Semantic error ESE0173: Static property 'A' must be accessed through it's class 'Random' */ +/* @@? 47:32 Error Semantic error ESE0173: Static property 'C' must be accessed through it's class 'Random' */ +/* @@? 47:37 Error Semantic error ESE0173: Static property 'M' must be accessed through it's class 'Random' */ +/* @@? 48:26 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 48:33 Error Semantic error ESE0173: Static property 'M' must be accessed through it's class 'Random' */ +/* @@? 52:35 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 53:27 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Char' */ +/* @@? 54:26 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 54:57 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ +/* @@? 71:33 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 72:24 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 77:33 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 78:24 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 84:41 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 86:9 Error Semantic error ESE0173: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ +/* @@? 94:34 Error Semantic error ESE0173: Static property 'Random' must be accessed through it's class 'StringFasta' */ +/* @@? 95:34 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 95:65 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ +/* @@? 103:20 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 112:16 Error Semantic error ESE0173: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ +/* @@? 112:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 113:16 Error Semantic error ESE0173: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ +/* @@? 113:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 113:46 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 114:16 Error Semantic error ESE0173: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ +/* @@? 114:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 114:46 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 116:36 Error Semantic error ESE0207: 'expected' is a static property of 'StringFasta' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets b/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets index 4001142bd14ed4aef7788fdf0c2925ba790e279e..3e5bfabea0b473cb1faf6b2059145e1007ace144 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets @@ -15,7 +15,7 @@ let c: FixedArray = [0.33 /* @@ label */0.66 0.99] -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@@ label Error SyntaxError: Unexpected token '0.66'. */ -/* @@? 16:54 Error SyntaxError: Unexpected token '0.99'. */ -/* @@? 16:58 Error SyntaxError: Unexpected token ']'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '0.66'. */ +/* @@? 16:54 Error Syntax error ESY0227: Unexpected token '0.99'. */ +/* @@? 16:58 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/array_missing_element.ets b/ets2panda/test/ast/parser/ets/FixedArray/array_missing_element.ets index e61d897a805f82ff6f47969324a282bb00025261..a1ba7ccd76b2c62475896446245a6b70ae09071b 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/array_missing_element.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/array_missing_element.ets @@ -17,8 +17,8 @@ function foo(): void { let b: FixedArray = [ 1, 2, 3, , 4, ] } -/* @@? 17:53 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:55 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:55 Error SyntaxError: Unexpected token '4'. */ -/* @@? 17:56 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:58 Error SyntaxError: Unexpected token ']'. */ +/* @@? 17:53 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:55 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:55 Error Syntax error ESY0227: Unexpected token '4'. */ +/* @@? 17:56 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:58 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets b/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets index e2021d154bfe14f8fe495ff5c3ec5f61ffc42718..a33eeaf869bad1ccaf0b9d21e06e5df946fb0417 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets @@ -24,7 +24,7 @@ class array_type { } } -/* @@@ label Error TypeError: Property 'a' might not have been initialized. */ -/* @@@ label1 Error TypeError: Property 'f' might not have been initialized. */ -/* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0280: Property 'a' might not have been initialized. */ +/* @@@ label1 Error Semantic error ESE0280: Property 'f' might not have been initialized. */ +/* @@@ label2 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label3 Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets b/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets index 44f291da40da477a7b0108f54aa3a5b88ac41c43..5e2ee735ce5e47b539c9cd9f0f8917c02699c227 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets @@ -23,6 +23,6 @@ function main(): void { let ordinalFail: int = /* @@ label */Color as int; } -/* @@@ label Error TypeError: Enum name 'Color' used in the wrong context */ -/* @@? 21:22 Warning Warning: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ -/* @@? 22:13 Warning Warning: Enum cast is deprecated. Cast support from 'Int' to 'Color' will be removed. */ +/* @@? 21:22 Error Warning W0030: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ +/* @@? 22:13 Error Warning W0030: Enum cast is deprecated. Cast support from 'Int' to 'Color' will be removed. */ +/* @@@ label Error Semantic error ESE0144: Enum name 'Color' used in the wrong context */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/ets_never_type_without_affect_other.ets b/ets2panda/test/ast/parser/ets/FixedArray/ets_never_type_without_affect_other.ets index c5987fed62c60c698810c9d5e0f901e341ac7b91..d6c5eaee293c2844dfbc6262613fbc8bd9533e37 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/ets_never_type_without_affect_other.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/ets_never_type_without_affect_other.ets @@ -26,5 +26,5 @@ function foo(): number { return n! } -/* @@? 23:17 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 26:12 Error Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ +/* @@? 23:17 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 26:12 Error Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets index 1261d3366d8d4e674a9f1501da90c146b3363af3..3b9c283fd0ac486f4f7dd54e1642e6bd43f06a69 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets @@ -49,6 +49,6 @@ function main(): void { arktest.assertEQ(res, "abc"); } -/* @@? 48:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 48:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 48:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 48:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets index 2c650b8cc120f30adbdfc5bf2e5b36135e8bbb5d..82cca0f6b7d24ef11325619e019a98f2097c2213 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets @@ -47,6 +47,6 @@ function main(): void { arktest.assertEQ(res, "abc"); } -/* @@? 46:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 46:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 46:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 46:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/for_of_02.ets b/ets2panda/test/ast/parser/ets/FixedArray/for_of_02.ets index 8e6155210fa7272fb23c82e699bd9168ac942d4f..fd4e1b446a37a55073f181eef5179d37aa48a55e 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/for_of_02.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/for_of_02.ets @@ -32,4 +32,4 @@ function main(): void { } } -/* @@@ label Error TypeError: Source element type 'Double' is not assignable to the loop iterator type 'Float'. */ +/* @@@ label Error Semantic error ESE0069: Source element type 'Double' is not assignable to the loop iterator type 'Float'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/for_of_03.ets b/ets2panda/test/ast/parser/ets/FixedArray/for_of_03.ets index 14bfbd47f0ba6493642f13e864e8af3b7c4d8820..288510d2bbe093723a5d5697875bfaeea6617115 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/for_of_03.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/for_of_03.ets @@ -23,5 +23,5 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Invalid left-hand side in 'for' statement: must have a single binding. */ -/* @@@ label1 Error SyntaxError: Expected ')', got '{'. */ +/* @@@ label Error Syntax error ESY0211: Invalid left-hand side in 'for' statement: must have a single binding. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '{'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets b/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets index 3c8a14a8176d96137d9ed63cfa37fdb31bdff8a6..55a65fd839979b35f4d4b1ab0c97173f5e2ae869 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets @@ -23,19 +23,19 @@ declare class Environment { static foo7(props1: {key:string, value:int}[], props2: FixedArray): void; } -/* @@? 17:23 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 18:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 19:25 Error SyntaxError: Invalid Type. */ -/* @@? 21:16 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 21:20 Error SyntaxError: Invalid Type. */ -/* @@? 21:28 Error SyntaxError: Invalid Type. */ -/* @@? 21:37 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 21:39 Error SyntaxError: Unexpected token '--'. */ -/* @@? 21:41 Error SyntaxError: Unexpected token '-'. */ -/* @@? 21:42 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:43 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:44 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:45 Error SyntaxError: void is a predefined type, cannot be used as an identifier */ -/* @@? 22:20 Error SyntaxError: Invalid Type. */ -/* @@? 23:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 23:36 Error SyntaxError: Unexpected token ','. */ +/* @@? 17:23 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 18:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 19:25 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:16 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 21:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:28 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:37 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 21:39 Error Syntax error ESY0227: Unexpected token '--'. */ +/* @@? 21:41 Error Syntax error ESY0227: Unexpected token '-'. */ +/* @@? 21:42 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:43 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:44 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:45 Error Syntax error ESY0295: void is a predefined type, cannot be used as an identifier */ +/* @@? 22:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 23:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 23:36 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets b/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets index 7c1ccaa0ee30e698e672f47843ba00664f51dd60..e852b44ab1b93b50eefc4016d3a7d9c964c9ab74 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets @@ -14,4 +14,4 @@ */ function /* @@ label */foo(a: int, b: float, ...c: FixedArray): boolean {} -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets b/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets index 5e4dcd90af1268a7da5c3d5f0265b4db417bfdfb..cbbbfffda43db8c6c9b1ef3a42060100baffbe2c 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets @@ -37,49 +37,49 @@ class Class2 { let var6: [a0: , a1: ]; -/* @@? 18:23 Error SyntaxError: Type annotation isn't allowed for constructor. */ -/* @@? 24:12 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 24:23 Error SyntaxError: Invalid Type. */ -/* @@? 24:23 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 24:23 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 24:23 Error SyntaxError: Unexpected token '>'. */ -/* @@? 24:26 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 24:26 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 24:33 Error SyntaxError: Unexpected token ','. */ -/* @@? 24:35 Error SyntaxError: Unexpected token 'FixedArray'. */ -/* @@? 24:35 Error TypeError: Unresolved reference FixedArray */ -/* @@? 24:46 Error SyntaxError: Unexpected token '...'. */ -/* @@? 24:49 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 24:49 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 24:56 Error SyntaxError: Unexpected token ']'. */ -/* @@? 26:12 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 26:23 Error SyntaxError: Invalid Type. */ -/* @@? 26:23 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 26:23 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 26:23 Error SyntaxError: Unexpected token '>'. */ -/* @@? 26:26 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 26:26 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 26:33 Error SyntaxError: Unexpected token ','. */ -/* @@? 26:35 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 26:35 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 26:41 Error SyntaxError: Unexpected token ']'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token '?'. */ -/* @@? 28:19 Error SyntaxError: Unexpected token ']'. */ -/* @@? 30:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 30:18 Error SyntaxError: Unexpected token ':'. */ -/* @@? 30:20 Error SyntaxError: Unexpected token '...'. */ -/* @@? 30:23 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 30:26 Error SyntaxError: Unexpected token ']'. */ -/* @@? 32:19 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 32:19 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 32:19 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 32:25 Error SyntaxError: Unexpected token ']'. */ -/* @@? 35:21 Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 38:12 Error TypeError: Cannot find type 'a0'. */ -/* @@? 38:14 Error SyntaxError: Unexpected token ':'. */ -/* @@? 38:14 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 38:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 38:18 Error SyntaxError: Unexpected token 'a1'. */ -/* @@? 38:22 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 38:22 Error SyntaxError: Unexpected token ']'. */ +/* @@? 18:23 Error Syntax error ESY0140: Type annotation isn't allowed for constructor. */ +/* @@? 24:12 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 24:23 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 24:23 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 24:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 24:26 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 24:26 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 24:33 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 24:35 Error Syntax error ESY0227: Unexpected token 'FixedArray'. */ +/* @@? 24:35 Error Semantic error ESE0143: Unresolved reference FixedArray */ +/* @@? 24:46 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 24:49 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 24:49 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 24:56 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 26:12 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 26:23 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 26:23 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 26:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 26:23 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 26:26 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 26:26 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 26:33 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 26:35 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 26:35 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 26:41 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 28:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 28:18 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 28:19 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 30:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 30:18 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 30:20 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 30:23 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 30:26 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 32:19 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 32:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 32:19 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 32:25 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 35:21 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 38:12 Error Semantic error ESE0371: Cannot find type 'a0'. */ +/* @@? 38:14 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 38:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 38:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 38:18 Error Syntax error ESY0227: Unexpected token 'a1'. */ +/* @@? 38:22 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 38:22 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_3.ets b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_3.ets index 333c113df0a429d9d7606eb372f34b4c2ee5b024..33ea3182b3b9df13f21f96df45511408de482229 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_3.ets @@ -17,4 +17,4 @@ function main(/* @@ label */i : FixedArray): void { return; } -/* @@? 16:29 Error TypeError: Only 'FixedArray' type argument is allowed. */ +/* @@@ label Error Semantic error ESE0135: Only 'FixedArray' type argument is allowed. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_4.ets b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_4.ets index f3af9d3186283f758ff97ac46b8ccb8c4275c86a..f3f57f5945a1db070afbdb393f2a7bbbd35da9a9 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_4.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_4.ets @@ -17,4 +17,4 @@ function main(i : FixedArray, ii : int): void { return; } -/* @@? 16:10 Error TypeError: 0 or 1 argument are allowed */ +/* @@? 16:10 Error Semantic error ESE0133: 0 or 1 argument are allowed */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_5.ets b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_5.ets index 5f99a78e6e69f171586c4fe049463eb7309fb001..089a40cb11db0cbd210811c011ae83bad7d9cc96 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_5.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_5.ets @@ -21,4 +21,4 @@ function /* @@ label */main(i : FixedArray): void { return; } -/* @@@ label Error TypeError: Main overload is not enabled */ +/* @@@ label Error Semantic error ESE0373: Main overload is not enabled */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets b/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets index 9efe83953a688afbdfa0cd69beeac4765cb88e62..25009cbe1d0cff559e3d7a0189a5c006bd8a7aaf 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets @@ -30,8 +30,8 @@ abstract class method_full { private native foo_native(): int ; } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label1 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label4 Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label1 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label2 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label3 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label4 Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets b/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets index 3bf1015d7a8c86fcd55daca16a8fb31d0f4cc634..f8828ed1b28b5d9c1291d942207b73a193d37161 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets @@ -18,5 +18,5 @@ function main(): void { let d: FixedArray = /* @@ label1 */null; } -/* @@? 17:48 Error TypeError: Type 'null' cannot be assigned to type 'FixedArray' */ -/* @@? 18:46 Error TypeError: Type 'null' cannot be assigned to type 'FixedArray' */ +/* @@@ label Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'FixedArray' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'FixedArray' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets b/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets index 7f0a390e842243a0ddf2dee23729b7c65a284c2d..57a4861ea8de66446909b643ce48517b5d9124bc 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets @@ -19,4 +19,4 @@ export class Test { } } -/* @@@ label Error TypeError: Type 'Double' cannot be used as an index type. Only primitive or unboxable integral types can be used as index. */ +/* @@@ label Error Semantic error ESE0236: Type 'Double' cannot be used as an index type. Only primitive or unboxable integral types can be used as index. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/predefined_non_primitive_types.ets b/ets2panda/test/ast/parser/ets/FixedArray/predefined_non_primitive_types.ets index e096d5945f662dcffe7e5732a142e313c2f2c66a..f0b098aaada8df3ce89210182ac8e5fb03929c09 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/predefined_non_primitive_types.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/predefined_non_primitive_types.ets @@ -35,7 +35,7 @@ let s: String = "abc"; // see 3.2.2 Array types let a: FixedArray = new int[5]; -/* @@@ label Error TypeError: Variable 'non_prim_b' has already been declared. */ -/* @@? 23:25 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@? 27:31 Error TypeError: Cannot find type 'Bool'. */ -/* @@? 27:38 Error TypeError: Type 'Boolean' cannot be assigned to type 'Byte' */ +/* @@? 23:25 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ label Error Semantic error ESE0351: Variable 'non_prim_b' has already been declared. */ +/* @@? 27:31 Error Semantic error ESE0371: Cannot find type 'Bool'. */ +/* @@? 27:38 Error Semantic error ESE0318: Type 'Boolean' cannot be assigned to type 'Byte' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test1.ets b/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test1.ets index 76821f2070cf19e0b4617b8ae47be6ce5d0c93ea..13d52f9d9933adac386ef9bc819c88ff8aaefbef 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test1.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test1.ets @@ -19,5 +19,5 @@ function foo (p: FixedArray) { let x: Readonly> = [] /* @@ label */foo(/* @@ label1 */x) -/* @@? 20:15 Error TypeError: No matching call signature for foo(readonly FixedArray) */ -/* @@? 20:34 Error TypeError: Type 'readonly FixedArray' is not compatible with type 'FixedArray' at index 1 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly FixedArray) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly FixedArray' is not compatible with type 'FixedArray' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test4.ets b/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test4.ets index 516d11b4d23167c75db764dd596470bc71b98d7e..2f5b4d98b24d0a925fe79d6cba4b74c7156ec3d5 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test4.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test4.ets @@ -18,4 +18,4 @@ function foo (x: Readonly>) { let x1 : FixedArray x1 = /* @@ label */x } -/* @@? 19:24 Error TypeError: Type 'readonly FixedArray' cannot be assigned to type 'FixedArray' */ +/* @@@ label Error Semantic error ESE0318: Type 'readonly FixedArray' cannot be assigned to type 'FixedArray' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets b/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets index a7f6f9a173972513e20c6d9b1bcadaa4000ab3ce..e3d1f91afa120ec820d348b7ebab668bf98b8946 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets @@ -57,7 +57,7 @@ function main(){ "Mary":["20", "30"] }; } -/* @@@ label Error TypeError: Type '"10"' is not compatible with type 'Double' at property 'age' */ -/* @@@ label1 Error TypeError: Type '"100"' is not compatible with type 'Double' at property 'salary' */ -/* @@@ label2 Error TypeError: type PersonInfoInterface has no property named agee */ -/* @@@ label3 Error TypeError: type PersonInfoInterface has no property named other */ +/* @@@ label Error Semantic error ESE0319: Type '"10"' is not compatible with type 'Double' at property 'age' */ +/* @@@ label1 Error Semantic error ESE0319: Type '"100"' is not compatible with type 'Double' at property 'salary' */ +/* @@@ label2 Error Semantic error ESE0065: type PersonInfoInterface has no property named agee */ +/* @@@ label3 Error Semantic error ESE0065: type PersonInfoInterface has no property named other */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/rest_parameter_04.ets b/ets2panda/test/ast/parser/ets/FixedArray/rest_parameter_04.ets index 6d283778e6ae84845907e4991fad635243dae781..b64b68b1776db2cc9a507f9a3d1a577c923ed8ac 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/rest_parameter_04.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/rest_parameter_04.ets @@ -17,7 +17,7 @@ function hehe(...items: FixedArray/* @@ label */: void /* @@ label1 */{ console.log("aaaaaaaa") } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@@ label Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:59 Error SyntaxError: Unexpected token 'void'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '{'. */ +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@@ label Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:59 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets b/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets index b663614e7a9ab639b15eb5038e0c0e358497b8c1..543a68485b1d75f3f758908d9ebc145f99e90e05 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets @@ -20,7 +20,7 @@ function main() { let y2: [boolean, int, string] = /* @@ label2 */[true, /* @@ label3 */...x2] } -/* @@? 18:43 Error TypeError: Initializer has 1 elements, but tuple requires 2 */ -/* @@? 18:59 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 20:53 Error TypeError: Initializer has 2 elements, but tuple requires 3 */ -/* @@? 20:75 Error TypeError: 'Array' cannot be spread in tuple. */ +/* @@@ label Error Semantic error ESE0231: Initializer has 1 elements, but tuple requires 2 */ +/* @@@ label1 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label2 Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 3 */ +/* @@@ label3 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg01.ets b/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg01.ets index 7eef9e9c85e61c440dcd6661ba7e7a5e12fc73a2..34a42c61b2ee99e8df236cfbf15c6daf001bdaec 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg01.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg01.ets @@ -26,12 +26,12 @@ function main() { let a2 = new A(...nums); } -/* @@? 18:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:41 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 18:49 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:51 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:9 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 19:13 Error SyntaxError: Unexpected token '.'. */ -/* @@? 19:14 Error TypeError: Variable 'fld' has already been declared. */ -/* @@? 19:20 Error TypeError: Unresolved reference p */ -/* @@? 21:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 18:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:41 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 18:49 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:51 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:9 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 19:13 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 19:14 Error Semantic error ESE0351: Variable 'fld' has already been declared. */ +/* @@? 19:20 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg02.ets b/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg02.ets index a56359fbb15446447bd5f0745ae1cf9a9866724e..6d968ecd425f517512f6acb989a7462fcce53827 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg02.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg02.ets @@ -26,4 +26,4 @@ function main() { let a2 = new A(1, 1.0, ...nums); } -/* @@@ label Error SyntaxError: Both optional and rest parameters are not allowed in function's parameter list. */ +/* @@@ label Error Syntax error ESY0015: Both optional and rest parameters are not allowed in function's parameter list. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/static_field_3.ets b/ets2panda/test/ast/parser/ets/FixedArray/static_field_3.ets index 7bc50a28aeed80712d2f81b0c1fb52f457e12e85..eafe6ec849e1f0419810e47ec9338f25c0501bd3 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/static_field_3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/static_field_3.ets @@ -22,4 +22,4 @@ function main() { arr[0]./* @@ label */foo; } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/static_func_call_8.ets b/ets2panda/test/ast/parser/ets/FixedArray/static_func_call_8.ets index ed842108dff21658233a5f14b7642911434c4deb..5ca9d2ed4a152b060434872c9119cd3e7ad057b8 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/static_func_call_8.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/static_func_call_8.ets @@ -22,4 +22,4 @@ function main() { arr[0]./* @@ label */foo(); } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets b/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets index cd7cb9cd0ec039d824c527c5438c83095118f661..feef8ea6a3288b4c886e18db25f412f887edc017 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets @@ -44,4 +44,4 @@ function foo(arg : A) { return arg; } -/* @@@ label Error TypeError: Using super is not allowed in constructor */ +/* @@@ label Error Semantic error ESE0235: Using super is not allowed in constructor */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/trailing_comma_1.ets b/ets2panda/test/ast/parser/ets/FixedArray/trailing_comma_1.ets index 0a9abed75eba10b27082aa120249b6941158b3da..b6df134e070d06bde6af68a375703de32dbecda2 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/trailing_comma_1.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/trailing_comma_1.ets @@ -35,35 +35,35 @@ foo(,a[0]) foo(a[0] a[1]) foo(,) -/* @@? 16:40 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 24:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:15 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 28:12 Error SyntaxError: Unexpected token ','. */ -/* @@? 28:14 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 28:14 Error SyntaxError: Unexpected token '2'. */ -/* @@? 28:15 Error SyntaxError: Unexpected token ','. */ -/* @@? 28:16 Error SyntaxError: Unexpected token ']'. */ -/* @@? 30:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:1 Error TypeError: No matching call signature for foo(a[0], a[1], ...a) */ -/* @@? 31:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:11 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:17 Error TypeError: Spread argument for the rest parameter can be only one. */ -/* @@? 32:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 32:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 32:11 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 32:11 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 32:11 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 32:15 Error SyntaxError: Unexpected token ')'. */ -/* @@? 33:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 33:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 34:5 Error SyntaxError: Unexpected token ','. */ -/* @@? 34:6 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 34:6 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 34:6 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 34:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 35:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 35:10 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 35:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 35:10 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 35:14 Error SyntaxError: Unexpected token ')'. */ -/* @@? 36:5 Error SyntaxError: Unexpected token ','. */ +/* @@? 16:40 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 24:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:15 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 28:12 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 28:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 28:14 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 28:15 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 28:16 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 30:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:1 Error Semantic error ESE0127: No matching call signature for foo(a[0], a[1], ...a) */ +/* @@? 31:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:11 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:17 Error Semantic error ESE0123: Spread argument for the rest parameter can be only one. */ +/* @@? 32:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 32:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 32:11 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 32:11 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 32:11 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 32:15 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 33:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 33:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 34:5 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 34:6 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 34:6 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 34:6 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 34:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 35:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 35:10 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 35:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 35:10 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 35:14 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 36:5 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/tuple_type_2_neg.ets b/ets2panda/test/ast/parser/ets/FixedArray/tuple_type_2_neg.ets index a0436293f73260cd5f0d6aff01eb0c9edead3b46..9481f26c7f148f8c613037aa232065c7fde427a5 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/tuple_type_2_neg.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/tuple_type_2_neg.ets @@ -16,14 +16,14 @@ let a: [number, FixedArray<...number>, number] = [1, 2, 3]; -/* @@? 17:17 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 17:28 Error SyntaxError: Invalid Type. */ -/* @@? 17:28 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 17:28 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:28 Error SyntaxError: Unexpected token '>'. */ -/* @@? 17:31 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:31 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:38 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:40 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:40 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:46 Error SyntaxError: Unexpected token ']'. */ +/* @@? 17:17 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 17:28 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:28 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 17:28 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 17:31 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:31 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:38 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:40 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:40 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:46 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/type_argument_conversion.ets b/ets2panda/test/ast/parser/ets/FixedArray/type_argument_conversion.ets index 28ab42744129648f800023dd0aac170f54a5e4e6..b5efd46b5979da56bef5df89e6d77007568e4e48 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/type_argument_conversion.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/type_argument_conversion.ets @@ -30,8 +30,8 @@ function main(): int { return 0; } -/* @@? 29:34 Error TypeError: No matching construct signature for type_argument_conversion.A(Array>) */ -/* @@? 29:58 Error TypeError: No Matching Parameterless Constructor, parameter count 1 */ -/* @@? 29:58 Error TypeError: No matching parameterless constructor */ -/* @@? 29:58 Error TypeError: Signature is not available here. */ -/* @@? 29:58 Error TypeError: Type 'Array>' is not compatible with type 'FixedArray>' at index 1 */ +/* @@? 29:34 Error Semantic error ESE0127: No matching construct signature for type_argument_conversion.A(Array>) */ +/* @@? 29:58 Error Semantic error ESE0270: No Matching Parameterless Constructor, parameter count 1 */ +/* @@? 29:58 Error Semantic error ESE0125: No matching parameterless constructor */ +/* @@? 29:58 Error Semantic error ESE0137: Signature is not available here. */ +/* @@? 29:58 Error Semantic error ESE0046: Type 'Array>' is not compatible with type 'FixedArray>' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets b/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets index c67ef9ef12e25480ad7399cbe6b40b12f0eb54e8..f1930dae5a36b1778c5519e107f8a6d46da9c5d2 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets @@ -24,7 +24,7 @@ function main(): int { /* @@ label3 */continue return 0; } -/* @@@ label Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label1 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label2 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label3 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label1 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label2 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label3 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_26.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_26.ets index 4796f4bad0f2e9fa26a6dc10134b2570dd268326..57aed78207b72d436655fdbb6ca6d70bd4e60e16 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_26.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_26.ets @@ -16,4 +16,4 @@ let x: FixedArray = [1,2,3] let y: int = x [0 -/* @@? 20:1 Error SyntaxError: Unexpected token, expected ']'. */ +/* @@? 20:1 Error Syntax error ESY0228: Unexpected token, expected ']'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_31.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_31.ets index 819027052860a275579fa24def9d9746fc56d482..7b64902c2ab9655198f7feb878942452efb12eb0 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_31.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_31.ets @@ -17,16 +17,16 @@ function foo(...^number: FixedArray): int { return number[0] } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 16:17 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:18 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:18 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:41 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:42 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:44 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 16:48 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 17:12 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:12 Error TypeError: Object type doesn't have proper index access method. */ -/* @@? 17:12 Error TypeError: All return statements in the function should be empty or have a value. */ +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 16:17 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:18 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:18 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:41 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:42 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:44 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 16:48 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 17:12 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:12 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@? 17:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_36.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_36.ets index 556218db5c599a6582a3ba6226c8036a8e0391f1..1f84d7dd79c642db5ecb36d54df2dffab6d16ee0 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_36.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_36.ets @@ -31,12 +31,12 @@ export class AccessNSieve { } } } -/* @@? 29:10 Error TypeError: Unresolved reference le */ -/* @@? 29:13 Error SyntaxError: Expected ';', got 'identification literal'. */ -/* @@? 29:13 Error TypeError: Unresolved reference i */ -/* @@? 29:14 Error SyntaxError: Expected ';', got ':'. */ -/* @@? 29:14 Error SyntaxError: Unexpected token ':'. */ -/* @@? 29:16 Error SyntaxError: Expected ')', got 'int'. */ -/* @@? 29:16 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 29:36 Error SyntaxError: Unexpected token ')'. */ -/* @@? 29:38 Error SyntaxError: Unexpected token '{'. */ +/* @@? 29:10 Error Semantic error ESE0143: Unresolved reference le */ +/* @@? 29:13 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@? 29:13 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 29:14 Error Syntax error ESY0230: Expected ';', got ':'. */ +/* @@? 29:14 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 29:16 Error Syntax error ESY0230: Expected ')', got 'int'. */ +/* @@? 29:16 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 29:36 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 29:38 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_38.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_38.ets index 311e9b269334ace1bfb51c801d559aebe42d6ec4..22fbe37669fdf6ca663d712f7edc9a0b7c885ad1 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_38.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_38.ets @@ -23,10 +23,10 @@ let func3: (f: (a: number, b: string) => FixedArray): FixedArray // let func3: (f: (a: number, b: string) => FixedArray): FixedArray) => (a: number, b: boolean) => true; -/* @@? 19:8 Error TypeError: 'void' used as type annotation. */ -/* @@? 22:61 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 22:61 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 22:63 Error SyntaxError: Unexpected token 'FixedArray'. */ -/* @@? 22:63 Error TypeError: Unresolved reference FixedArray */ -/* @@? 22:82 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 22:116 Error SyntaxError: Unexpected token, expected ',' or ')'. */ +/* @@? 19:8 Error Semantic error ESE0232: 'void' used as type annotation. */ +/* @@? 22:61 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 22:61 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 22:63 Error Syntax error ESY0227: Unexpected token 'FixedArray'. */ +/* @@? 22:63 Error Semantic error ESE0143: Unresolved reference FixedArray */ +/* @@? 22:82 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 22:116 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_39.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_39.ets index 1b9561b4d596fc183fcc049715c1f05a158df303..a5da88c6437879eda8be89900b7c5e59fe240caa 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_39.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_39.ets @@ -15,4 +15,4 @@ let r: (FixedArray<((number))>/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected ')'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ')'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_42.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_42.ets index 9e88ba3b09ecd686b4a1aebfda7d32b4d45cdcf8..f344b13b1c295994b3135ba7ead122d405713acc 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_42.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_42.ets @@ -15,5 +15,5 @@ // Int[1,2,3,4,5] let a: number = new Int[1 -/* @@? 16:17 Error TypeError: Type 'Array' cannot be assigned to type 'Double' */ -/* @@? 20:1 Error SyntaxError: Expected ']', got 'end of stream'. */ +/* @@? 16:17 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'Double' */ +/* @@? 20:1 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_47.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_47.ets index e6bb326eef0026db69e30812e6dfc2bc3cd6e1db..63c03bf3a7a304c877e2998e2727f120846870b0 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_47.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_47.ets @@ -15,7 +15,7 @@ let isPrime: FixedArray = new int[[]][[] -/* @@? 16:32 Error TypeError: Type 'FixedArray>' cannot be assigned to type 'FixedArray' */ -/* @@? 16:40 Error TypeError: Can't resolve array type */ -/* @@? 16:44 Error TypeError: Can't resolve array type */ -/* @@? 22:1 Error SyntaxError: Expected ']', got 'end of stream'. */ +/* @@? 16:32 Error Semantic error ESE0318: Type 'FixedArray>' cannot be assigned to type 'FixedArray' */ +/* @@? 16:40 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 16:44 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 22:1 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/FixedArray/wrong-union-array-assignment.ets b/ets2panda/test/ast/parser/ets/FixedArray/wrong-union-array-assignment.ets index 287b7a65a58659fd02a510b1fb55677a071ceba4..bf4e8174b14417b74f23acf8e6ac94208eac87b3 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/wrong-union-array-assignment.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/wrong-union-array-assignment.ets @@ -24,4 +24,4 @@ function main() array = /* @@ label */new Bad(); } -/* @@? 24:27 Error TypeError: Type 'Bad' cannot be assigned to type 'Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'Bad' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets b/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets index d31642e769b87be22eb93ac64b491232cfce12f0..9d9ec2db4fc78b59f4f82da8da907940b9d5a33a 100644 --- a/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets +++ b/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets @@ -19,4 +19,4 @@ function main(){ ] } -/* @@? 17:38 Error TypeError: Type 'Array<() => Int>' cannot be assigned to type '() => Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'Array<() => Int>' cannot be assigned to type '() => Array' */ diff --git a/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets b/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets index 42a51a43a820e9bf4dc5f2e6af4cc21bb4ff18fa..ef79a816257239536b3870842f12614901b21cdf 100644 --- a/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets +++ b/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets @@ -26,5 +26,5 @@ function main(): void { foo() } -/* @@@ label Error TypeError: Variable 'u' is used before being assigned. */ -/* @@@ label1 Error TypeError: Variable 'v' is used before being assigned. */ +/* @@@ label Error Semantic error ESE0375: Variable 'u' is used before being assigned. */ +/* @@@ label1 Error Semantic error ESE0375: Variable 'v' is used before being assigned. */ diff --git a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets index 1082b7ab7a577e7c3d043b8416a00901eb533320..18990a6e70d5d15f6ea9524a9c24df9e4f3a5cbb 100644 --- a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets +++ b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets @@ -23,4 +23,4 @@ function main() { c.foo(); } -/* @@@ label Error TypeError: Method 'foo' is declared in I1 and IBase interfaces. */ +/* @@@ label Error Semantic error ESE0187: Method 'foo' is declared in I1 and IBase interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets index 351a1bab9fb616dbb08a9786339c8b6ce1277877..695895edf2e13bd405599ed73b3b6f046a63c3ce 100644 --- a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets +++ b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets @@ -23,4 +23,4 @@ function main() { c.foo(); } -/* @@@ label Error TypeError: Method 'foo' is declared in I1 and I2 interfaces. */ +/* @@@ label Error Semantic error ESE0187: Method 'foo' is declared in I1 and I2 interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets b/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets index 4c21f812ecce7b883849b5fd16c3e4ef622e42d2..787b6834da248041c75765bbc57e32c520ca9aa3 100644 --- a/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets +++ b/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets @@ -18,7 +18,7 @@ interface A{ gensym%%_4:string; } -/* @@? 18:11 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 18:12 Error SyntaxError: Invalid Type. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:11 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 18:12 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:12 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:12 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidClasses.ets b/ets2panda/test/ast/parser/ets/InvalidClasses.ets index ce65f5f10f7c01ebd05f386a92f9e14d81dd993e..d4902a0b30c2179176e6d05050ab274d2f61cefa 100644 --- a/ets2panda/test/ast/parser/ets/InvalidClasses.ets +++ b/ets2panda/test/ast/parser/ets/InvalidClasses.ets @@ -78,56 +78,56 @@ interface I1 { x: number = } -/* @@? 16:9 Error TypeError: A is not abstract and does not override abstract method f5(): Promise in A */ -/* @@? 17:12 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 17:20 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:12 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 18:30 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 19:21 Error TypeError: Static property 'f' must be accessed through it's class 'A' */ -/* @@? 22:12 Error SyntaxError: Access modifier must precede field and method modifiers. */ -/* @@? 22:20 Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@? 22:46 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 26:18 Error SyntaxError: Native method cannot be async. */ -/* @@? 27:5 Error TypeError: Non abstract class has abstract method. */ -/* @@? 27:20 Error SyntaxError: Abstract method cannot be async. */ -/* @@? 35:5 Error SyntaxError: Only one static block is allowed in one namespace or class. */ -/* @@? 38:10 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 41:5 Error SyntaxError: The special predefined method '$_get' should have exactly one required parameter. */ -/* @@? 41:5 Error SyntaxError: The special predefined method '$_get' cannot be asynchronous. */ -/* @@? 41:16 Error TypeError: Return type of async function must be 'Promise'. */ -/* @@? 45:5 Error SyntaxError: The special predefined method '$_set' should have exactly two required parameter. */ -/* @@? 45:5 Error SyntaxError: The special predefined method '$_set' cannot be asynchronous. */ -/* @@? 45:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 47:5 Error SyntaxError: The special predefined method '$_iterator' cannot be asynchronous. */ -/* @@? 47:5 Error SyntaxError: The special predefined method '$_iterator' should not have parameters. */ -/* @@? 47:21 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ -/* @@? 47:21 Error TypeError: Return type of async function must be 'Promise'. */ -/* @@? 54:21 Error TypeError: Initializers are not allowed in ambient contexts: x */ -/* @@? 54:23 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 58:1 Error TypeError: Unresolved reference declare */ -/* @@? 58:9 Error SyntaxError: Unexpected token 'native'. */ -/* @@? 58:16 Error SyntaxError: 'native' flags must be used for functions only at top-level. */ -/* @@? 58:22 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 58:24 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 58:25 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 58:25 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 58:25 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 58:25 Error SyntaxError: Unexpected token '}'. */ -/* @@? 61:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 62:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ -/* @@? 65:5 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 66:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ -/* @@? 66:18 Error SyntaxError: Private interface methods must have body. */ -/* @@? 67:9 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 67:16 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 67:16 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 67:16 Error SyntaxError: Identifier expected. */ -/* @@? 67:24 Error SyntaxError: Private interface methods must have body. */ -/* @@? 72:5 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 72:13 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 72:14 Error SyntaxError: Invalid Type. */ -/* @@? 74:5 Error SyntaxError: Extension Getter can only have 1 parameter. */ -/* @@? 74:25 Error SyntaxError: Extension Accessor must have a receiver. */ -/* @@? 78:8 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 78:8 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 79:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 16:9 Error Semantic error ESE0190: A is not abstract and does not override abstract method f5(): Promise in A */ +/* @@? 17:12 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 17:20 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:12 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 18:30 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 19:21 Error Semantic error ESE0173: Static property 'f' must be accessed through it's class 'A' */ +/* @@? 22:12 Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ +/* @@? 22:20 Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@? 22:46 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 26:18 Error Syntax error ESY0116: Native method cannot be async. */ +/* @@? 27:5 Error Semantic error ESE0019: Non abstract class has abstract method. */ +/* @@? 27:20 Error Syntax error ESY0118: Abstract method cannot be async. */ +/* @@? 35:5 Error Syntax error ESY0034: Only one static block is allowed in one namespace or class. */ +/* @@? 38:10 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 41:5 Error Syntax error ESY0221: The special predefined method '$_get' should have exactly one required parameter. */ +/* @@? 41:5 Error Syntax error ESY0220: The special predefined method '$_get' cannot be asynchronous. */ +/* @@? 41:16 Error Semantic error ESE0001: Return type of async function must be 'Promise'. */ +/* @@? 45:5 Error Syntax error ESY0222: The special predefined method '$_set' should have exactly two required parameter. */ +/* @@? 45:5 Error Syntax error ESY0220: The special predefined method '$_set' cannot be asynchronous. */ +/* @@? 45:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 47:5 Error Syntax error ESY0220: The special predefined method '$_iterator' cannot be asynchronous. */ +/* @@? 47:5 Error Syntax error ESY0223: The special predefined method '$_iterator' should not have parameters. */ +/* @@? 47:21 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 47:21 Error Semantic error ESE0001: Return type of async function must be 'Promise'. */ +/* @@? 54:21 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x */ +/* @@? 54:23 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ +/* @@? 58:1 Error Semantic error ESE0143: Unresolved reference declare */ +/* @@? 58:9 Error Syntax error ESY0227: Unexpected token 'native'. */ +/* @@? 58:16 Error Syntax error ESY0203: 'native' flags must be used for functions only at top-level. */ +/* @@? 58:22 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 58:24 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 58:25 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 58:25 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 58:25 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 58:25 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 61:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 62:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ +/* @@? 65:5 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 66:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ +/* @@? 66:18 Error Syntax error ESY0032: Private interface methods must have body. */ +/* @@? 67:9 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 67:16 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 67:16 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 67:16 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 67:24 Error Syntax error ESY0032: Private interface methods must have body. */ +/* @@? 72:5 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 72:13 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 72:14 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 74:5 Error Syntax error ESY0022: Extension Getter can only have 1 parameter. */ +/* @@? 74:25 Error Syntax error ESY0146: Extension Accessor must have a receiver. */ +/* @@? 78:8 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 78:8 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 79:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidExpressions.ets b/ets2panda/test/ast/parser/ets/InvalidExpressions.ets index 4a96a1fe0bef86b137e37cc7ba6366f84e05f169..8490b78b55b63bf42dbc7dee986acef055c6cbb6 100644 --- a/ets2panda/test/ast/parser/ets/InvalidExpressions.ets +++ b/ets2panda/test/ast/parser/ets/InvalidExpressions.ets @@ -71,7 +71,7 @@ function f7(a: (b: int = 0) => int): void { /* @@? 18:36 Error SyntaxError: Unexpected token ';'. */ /* @@? 18:36 Error SyntaxError: Unexpected token, expected ')'. */ /* @@? 19:12 Error TypeError: Bad operand type, the types of the operands must be same type. */ -/* @@? 19:25 Error Warning: Type parameter is erased from type 'A' when used in instanceof expression. */ +/* @@? 19:25 Warning Warning: Type parameter is erased from type 'A' when used in instanceof expression. */ /* @@? 22:23 Error SyntaxError: Not enable default value with default undefined. */ /* @@? 24:10 Error TypeError: Only abstract or native methods can't have body. */ /* @@? 24:22 Error SyntaxError: You didn't set the value. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets b/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets index 12d43efaec8076c8234019e630853a390a535443..27141ca74b75c167b8beea8096816b55340eb3ee 100644 --- a/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets +++ b/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets @@ -36,45 +36,45 @@ function f(x: int): void { a?.[1+2); let a = [1, 2, 3); -/* @@? 16:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 16:18 Error SyntaxError: Unexpected token '2'. */ -/* @@? 16:19 Error SyntaxError: Unexpected token ']'. */ -/* @@? 18:3 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:3 Error SyntaxError: Unexpected token '...'. */ -/* @@? 18:6 Error SyntaxError: Unexpected token ','. */ -/* @@? 18:8 Error SyntaxError: Unexpected token '55'. */ -/* @@? 18:10 Error SyntaxError: Unexpected token ']'. */ -/* @@? 20:5 Error TypeError: Unresolved reference x */ -/* @@? 20:6 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 20:6 Error SyntaxError: Unexpected token '...'. */ -/* @@? 20:9 Error SyntaxError: Unexpected token ','. */ -/* @@? 20:11 Error SyntaxError: Unexpected token '78'. */ -/* @@? 20:13 Error SyntaxError: Unexpected token ']'. */ -/* @@? 22:11 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 22:11 Error SyntaxError: Unexpected token. */ -/* @@? 24:5 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 24:18 Error TypeError: The type of parameter 'y' cannot be inferred */ -/* @@? 24:19 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 24:19 Error SyntaxError: Expected '=>', got '...'. */ -/* @@? 24:19 Error SyntaxError: Unexpected token '...'. */ -/* @@? 24:24 Error SyntaxError: Identifier expected, got ')'. */ -/* @@? 24:32 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 24:35 Error SyntaxError: Unexpected token '{'. */ -/* @@? 26:7 Error SyntaxError: Unexpected token '||='. */ -/* @@? 28:5 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 28:20 Error SyntaxError: Expected '}', got ')'. */ -/* @@? 30:5 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 30:13 Error SyntaxError: Unexpected token 'import'. */ -/* @@? 30:13 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ -/* @@? 30:13 Error SyntaxError: Invalid Type. */ -/* @@? 32:10 Error TypeError: Variable 'f' has already been declared. */ -/* @@? 33:5 Error TypeError: Call to 'super' must be first statement in constructor */ -/* @@? 33:5 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 33:5 Error TypeError: No matching call signature for std.core.Object(Int) */ -/* @@? 33:10 Error SyntaxError: Unexpected super keyword. */ -/* @@? 36:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 36:8 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 38:5 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 38:17 Error SyntaxError: Unexpected token ')'. */ -/* @@? 38:17 Error SyntaxError: Unexpected token, expected ',' or ']'. */ +/* @@? 16:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 16:18 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 16:19 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 18:3 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:3 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 18:6 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 18:8 Error Syntax error ESY0227: Unexpected token '55'. */ +/* @@? 18:10 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 20:5 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 20:6 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 20:6 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 20:9 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 20:11 Error Syntax error ESY0227: Unexpected token '78'. */ +/* @@? 20:13 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 22:11 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 22:11 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 24:5 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 24:18 Error Semantic error ESE0132: The type of parameter 'y' cannot be inferred */ +/* @@? 24:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 24:19 Error Syntax error ESY0230: Expected '=>', got '...'. */ +/* @@? 24:19 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 24:24 Error Syntax error ESY0224: Identifier expected, got ')'. */ +/* @@? 24:32 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 24:35 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 26:7 Error Syntax error ESY0227: Unexpected token '||='. */ +/* @@? 28:5 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 28:20 Error Syntax error ESY0230: Expected '}', got ')'. */ +/* @@? 30:5 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 30:13 Error Syntax error ESY0227: Unexpected token 'import'. */ +/* @@? 30:13 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 30:13 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 32:10 Error Semantic error ESE0351: Variable 'f' has already been declared. */ +/* @@? 33:5 Error Semantic error ESE0201: Call to 'super' must be first statement in constructor */ +/* @@? 33:5 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 33:5 Error Semantic error ESE0127: No matching call signature for std.core.Object(Int) */ +/* @@? 33:10 Error Syntax error ESY0061: Unexpected super keyword. */ +/* @@? 36:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 36:8 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 38:5 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 38:17 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 38:17 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets b/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets index 899de53972fe0f73745efbef8c0b7f314b523183..b9be4c25596f4430522d6db254b1dd196742004e 100644 --- a/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets +++ b/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets @@ -22,7 +22,5 @@ function fun(this: A) {} class int {} -/* @@? 17:12 Error TypeError: Getter must return a value */ -/* @@? 18:5 Error SyntaxError: Getter must not have formal parameters. */ -/* @@? 19:1 Error SyntaxError: Setter must have exactly one formal parameter. */ -/* @@? 23:7 Error SyntaxError: int is a predefined type, cannot be used as an identifier */ +/* @@? 18:5 Error Syntax error ESY0058: Getter must not have formal parameters. */ +/* @@? 19:1 Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidStatements1.ets b/ets2panda/test/ast/parser/ets/InvalidStatements1.ets index 07c11ed802bb88da3e3f60fc25813ed724ceb06f..dfe533ea2423f6c85ac4f8a4576b261d9b5c27f7 100644 --- a/ets2panda/test/ast/parser/ets/InvalidStatements1.ets +++ b/ets2panda/test/ast/parser/ets/InvalidStatements1.ets @@ -51,21 +51,21 @@ class A { throw "abc" // there were more errors -/* @@? 22:1 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:5 Error TypeError: Variable 'x' has already been declared. */ -/* @@? 25:5 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 28:1 Error TypeError: Function f is already declared. */ -/* @@? 29:5 Error SyntaxError: Illegal start of STRUCT expression. */ -/* @@? 30:9 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 32:5 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 36:5 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 40:1 Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ -/* @@? 40:5 Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@? 40:8 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 42:1 Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ -/* @@? 43:5 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 45:9 Error SyntaxError: Unexpected token '{'. */ -/* @@? 47:1 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 48:5 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 52:1 Error SyntaxError: Illegal newline after throw. */ -/* @@? 72:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 22:1 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:5 Error Semantic error ESE0351: Variable 'x' has already been declared. */ +/* @@? 25:5 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 28:1 Error Semantic error ESE0130: Function f is already declared. */ +/* @@? 29:5 Error Syntax error ESY0040: Illegal start of STRUCT expression. */ +/* @@? 30:9 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 32:5 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 36:5 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 40:1 Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ +/* @@? 40:5 Error Syntax error ESY0230: Expected '{', got 'identification literal'. */ +/* @@? 40:8 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 42:1 Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ +/* @@? 43:5 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 45:9 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 47:1 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 48:5 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 52:1 Error Syntax error ESY0172: Illegal newline after throw. */ +/* @@? 72:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidStatements2.ets b/ets2panda/test/ast/parser/ets/InvalidStatements2.ets index c3d305e4249c2ac2c82749f9db262728a249e0e3..066e6ca2cdd1629b9602947ed096b300427b04ef 100644 --- a/ets2panda/test/ast/parser/ets/InvalidStatements2.ets +++ b/ets2panda/test/ast/parser/ets/InvalidStatements2.ets @@ -50,15 +50,15 @@ function g(x: int): int { } -/* @@? 16:10 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:10 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:27 Error TypeError: struct B is not extensible. */ -/* @@? 30:17 Error SyntaxError: Label already declared. */ -/* @@? 40:1 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 40:8 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 43:12 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@? 44:9 Error SyntaxError: Expected ')', got 'case'. */ -/* @@? 44:9 Error SyntaxError: Expected '{', got 'case'. */ -/* @@? 46:15 Error SyntaxError: Unexpected token ':'. */ -/* @@? 46:17 Error SyntaxError: Unexpected token 'return'. */ -/* @@? 48:9 Error SyntaxError: Multiple default clauses. */ +/* @@? 16:10 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:10 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:27 Error Semantic error ESE0177: struct B is not extensible. */ +/* @@? 30:17 Error Syntax error ESY0214: Label already declared. */ +/* @@? 40:1 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 40:8 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 43:12 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@? 44:9 Error Syntax error ESY0230: Expected ')', got 'case'. */ +/* @@? 44:9 Error Syntax error ESY0230: Expected '{', got 'case'. */ +/* @@? 46:15 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 46:17 Error Syntax error ESY0227: Unexpected token 'return'. */ +/* @@? 48:9 Error Syntax error ESY0171: Multiple default clauses. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidStatements3.ets b/ets2panda/test/ast/parser/ets/InvalidStatements3.ets index df0218f8dafa9504cbc6beb0294d82b00ef53995..cbc8e3357bcf09997c986cd6378d44c1f0df7c45 100644 --- a/ets2panda/test/ast/parser/ets/InvalidStatements3.ets +++ b/ets2panda/test/ast/parser/ets/InvalidStatements3.ets @@ -41,21 +41,21 @@ function foo() { for (let i = 1 in [0, 1, 2]) {} -/* @@? 19:1 Error SyntaxError: Expected '{', got '}'. */ -/* @@? 22:5 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 23:11 Error SyntaxError: Expected '{', got '('. */ -/* @@? 23:11 Error TypeError: Unresolved reference x */ -/* @@? 27:7 Error SyntaxError: Expected '(', got '{'. */ -/* @@? 27:7 Error TypeError: need to specify target type for class composite */ -/* @@? 29:1 Error SyntaxError: Expected ')', got 'while'. */ -/* @@? 29:7 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@? 29:13 Error SyntaxError: Expected ')', got '{'. */ -/* @@? 31:9 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 31:13 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 34:5 Error SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. */ -/* @@? 38:5 Error SyntaxError: Annotation declaration can not have access modifier. */ -/* @@? 38:5 Error SyntaxError: Unexpected token 'private'. */ -/* @@? 38:13 Error SyntaxError: Unexpected token '@'. */ -/* @@? 38:14 Error TypeError: Cannot find type 'annotate'. */ -/* @@? 42:16 Error SyntaxError: for-in loop variable declaration may not have an initializer. */ -/* @@? 42:16 Error SyntaxError: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays and iterable objects. */ +/* @@? 19:1 Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 22:5 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 23:11 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@? 23:11 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 27:7 Error Syntax error ESY0230: Expected '(', got '{'. */ +/* @@? 27:7 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 29:1 Error Syntax error ESY0230: Expected ')', got 'while'. */ +/* @@? 29:7 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@? 29:13 Error Syntax error ESY0230: Expected ')', got '{'. */ +/* @@? 31:9 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 31:13 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 34:5 Error Syntax error ESY0199: Illegal 'use strict' directive in function with non-simple parameter list. */ +/* @@? 38:5 Error Syntax error ESY0210: Annotation declaration can not have access modifier. */ +/* @@? 38:5 Error Syntax error ESY0227: Unexpected token 'private'. */ +/* @@? 38:13 Error Syntax error ESY0227: Unexpected token '@'. */ +/* @@? 38:14 Error Semantic error ESE0371: Cannot find type 'annotate'. */ +/* @@? 42:16 Error Syntax error ESY0164: for-in loop variable declaration may not have an initializer. */ +/* @@? 42:16 Error Syntax error ESY6987: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays and iterable objects. */ diff --git a/ets2panda/test/ast/parser/ets/InvalidTyped.ets b/ets2panda/test/ast/parser/ets/InvalidTyped.ets index c194bd8831123932fdc3792308b26288e5ad64c2..8ad7213a06c6f2d786dba1f4d111e1c7f84246f1 100644 --- a/ets2panda/test/ast/parser/ets/InvalidTyped.ets +++ b/ets2panda/test/ast/parser/ets/InvalidTyped.ets @@ -30,26 +30,26 @@ interface I { // This should be the last test to show the absent of the '}'. -/* @@? 16:21 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 16:21 Error SyntaxError: Identifier expected. */ -/* @@? 16:21 Error TypeError: Interface expected here. */ -/* @@? 16:23 Error SyntaxError: Identifier expected. */ -/* @@? 16:23 Error TypeError: Interface expected here. */ -/* @@? 18:1 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 18:1 Error TypeError: Variable 'C' has already been declared. */ -/* @@? 18:23 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:25 Error SyntaxError: Identifier expected. */ -/* @@? 20:1 Error TypeError: Variable 'C' has already been declared. */ -/* @@? 20:1 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 20:21 Error SyntaxError: Identifier expected. */ -/* @@? 22:20 Error SyntaxError: Implements clause can not be empty. */ -/* @@? 24:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 24:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 24:21 Error SyntaxError: Expected '{', got ','. */ -/* @@? 24:21 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 24:23 Error SyntaxError: Unexpected token '{'. */ -/* @@? 26:13 Error SyntaxError: Interface declaration cannot have 'implements' clause. */ -/* @@? 28:1 Error TypeError: Variable 'I' has already been declared. */ -/* @@? 28:1 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 29:5 Error SyntaxError: 'override' modifier cannot appear in interfaces. */ -/* @@? 56:1 Error SyntaxError: Unexpected token, expected '}'. */ +/* @@? 16:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 16:21 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:21 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 16:23 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:23 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 18:1 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 18:1 Error Semantic error ESE0351: Variable 'C' has already been declared. */ +/* @@? 18:23 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:25 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 20:1 Error Semantic error ESE0351: Variable 'C' has already been declared. */ +/* @@? 20:1 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 20:21 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 22:20 Error Syntax error ESY0185: Implements clause can not be empty. */ +/* @@? 24:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 24:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 24:21 Error Syntax error ESY0230: Expected '{', got ','. */ +/* @@? 24:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 26:13 Error Syntax error ESY0177: Interface declaration cannot have 'implements' clause. */ +/* @@? 28:1 Error Semantic error ESE0351: Variable 'I' has already been declared. */ +/* @@? 28:1 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 29:5 Error Syntax error ESY0189: 'override' modifier cannot appear in interfaces. */ +/* @@? 56:1 Error Syntax error ESY0228: Unexpected token, expected '}'. */ diff --git a/ets2panda/test/ast/parser/ets/Multiline_string_escape_char.ets b/ets2panda/test/ast/parser/ets/Multiline_string_escape_char.ets index 335d3e99b434b70dbed0aff375a541e248a81102..82aa2acd39d334154ce58eabb3d07ea6e249d6c6 100644 --- a/ets2panda/test/ast/parser/ets/Multiline_string_escape_char.ets +++ b/ets2panda/test/ast/parser/ets/Multiline_string_escape_char.ets @@ -18,6 +18,6 @@ function main(){ Test escape characters` | "X"; } -/* @@? 17:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 17:15 Error SyntaxError: Invalid character escape sequence. */ -/* @@? 17:15 Error SyntaxError: Invalid Unicode escape. */ +/* @@? 17:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 17:15 Error Syntax error ESY0258: Invalid character escape sequence. */ +/* @@? 17:15 Error Syntax error ESY0091: Invalid Unicode escape. */ diff --git a/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets b/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets index 2eca08c7dc33c5f4079a4225bb99c53eb59c3b70..c4f780bd1ab2855f7f0c188147a38e9fdac8f6a5 100644 --- a/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets +++ b/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets @@ -29,12 +29,12 @@ class /* @@ label3 */77 {} class /* @@ label4 */{/* @@ label5 */} -/* @@? 17:19 Error SyntaxError: Unexpected token 'function'. */ -/* @@? 21:20 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 22:20 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 24:17 Error TypeError: Type '"abc"' cannot be assigned to type 'Double' */ -/* @@? 28:22 Error SyntaxError: Number, string or computed value property name '77' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 28:22 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 30:22 Error SyntaxError: Identifier expected, got '{'. */ -/* @@? 30:38 Error SyntaxError: Expected '{', got '}'. */ -/* @@? 41:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'function'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 24:17 Error Semantic error ESE0318: Type '"abc"' cannot be assigned to type 'Double' */ +/* @@@ label3 Error Syntax error ESY0315: Number, string or computed value property name '77' is not allowed, use classes to access data by property names that are identifiers */ +/* @@@ label3 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@@ label4 Error Syntax error ESY0224: Identifier expected, got '{'. */ +/* @@@ label5 Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 41:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets b/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets index 5db33dcca04e3611534c95b28b872d732fbd7ca9..73af6fedcb2c18015652032ed69b3386cd772bd6 100644 --- a/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets +++ b/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets @@ -20,8 +20,8 @@ function /* @@ label1 */(): /* @@ label2 */{ /* @@ label3 */return /* @@ label4 */77; } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label2 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label3 Error SyntaxError: Unexpected token 'return'. */ -/* @@@ label4 Error SyntaxError: Unexpected token '77'. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label2 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token 'return'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token '77'. */ diff --git a/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets b/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets index f4c6092e3d34d9fca0a79dc3ada6e6adb7b6c5ab..6a1c2c94875d9e7834ef7d79aeaac955128574ae 100644 --- a/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets +++ b/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets @@ -166,126 +166,126 @@ function main(): void { f(); } -/* @@? 18:14 Error SyntaxError: Optional variable is not allowed in for of statements. */ -/* @@? 28:29 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 34:14 Error SyntaxError: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ -/* @@? 37:33 Error SyntaxError: Unexpected token 'rethrows'. */ -/* @@? 37:33 Error TypeError: Unresolved reference rethrows */ -/* @@? 39:14 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 39:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 39:14 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 39:24 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 39:27 Error SyntaxError: Unexpected token ')'. */ -/* @@? 39:29 Error SyntaxError: Unexpected token '{'. */ -/* @@? 39:31 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 39:38 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 41:1 Error TypeError: Unresolved reference type */ -/* @@? 41:6 Error SyntaxError: Unexpected token '123'. */ -/* @@? 41:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 41:10 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 41:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 43:6 Error SyntaxError: Unexpected token 'null'. */ -/* @@? 43:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 43:11 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 43:13 Error SyntaxError: Unexpected token 'byte'. */ -/* @@? 45:6 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 45:6 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 45:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 45:11 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 47:8 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 47:8 Error TypeError: Missing initializer in const declaration */ -/* @@? 49:13 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 51:25 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 51:27 Error SyntaxError: Unexpected token '...'. */ -/* @@? 51:30 Error SyntaxError: Unexpected token 'p'. */ -/* @@? 51:33 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 51:38 Error SyntaxError: Unexpected token ')'. */ -/* @@? 51:39 Error SyntaxError: Unexpected token ':'. */ -/* @@? 51:41 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 51:45 Error SyntaxError: Unexpected token '{'. */ -/* @@? 52:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 52:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 52:12 Error TypeError: Unresolved reference q */ -/* @@? 52:23 Error TypeError: Unresolved reference p */ -/* @@? 55:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 59:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 63:22 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 63:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 67:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 67:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 68:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 73:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 73:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 74:11 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 77:20 Error TypeError: Interface expected here. */ -/* @@? 77:22 Error TypeError: 'I' type does not exist. */ -/* @@? 78:22 Error TypeError: Method fee(): Int in B not overriding any method */ -/* @@? 83:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 83:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 84:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 92:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 92:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 93:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 103:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 104:21 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 115:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 115:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 115:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 115:26 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 115:30 Error SyntaxError: Unexpected token ':'. */ -/* @@? 115:32 Error SyntaxError: Unexpected token 'U'. */ -/* @@? 115:32 Error TypeError: Unresolved reference U */ -/* @@? 115:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 115:34 Error SyntaxError: Unexpected token ':'. */ -/* @@? 115:36 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 115:36 Error TypeError: Unresolved reference T */ -/* @@? 115:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 116:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 116:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 119:1 Error TypeError: Function foo with this assembly signature already declared. */ -/* @@? 119:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 119:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 119:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 119:26 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 119:30 Error SyntaxError: Unexpected token ':'. */ -/* @@? 119:32 Error SyntaxError: Unexpected token 'U'. */ -/* @@? 119:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 119:34 Error SyntaxError: Unexpected token ':'. */ -/* @@? 119:36 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 119:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 120:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 120:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 123:5 Error SyntaxError: Identifier expected, got ','. */ -/* @@? 123:6 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 123:6 Error SyntaxError: Unexpected token 'abc'. */ -/* @@? 123:6 Error TypeError: Unresolved reference abc */ -/* @@? 125:1 Error TypeError: Method declaration `foo` must all ambient or non-ambient */ -/* @@? 127:1 Error SyntaxError: The modifier async cannot be used in an ambient context. */ -/* @@? 132:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 137:16 Error SyntaxError: Unexpected token '='. */ -/* @@? 137:16 Error SyntaxError: Expected '{', got '='. */ -/* @@? 137:16 Error SyntaxError: Expected ')', got '='. */ -/* @@? 137:16 Error SyntaxError: Catch clause variable cannot have an initializer. */ -/* @@? 137:18 Error SyntaxError: Unexpected token '0'. */ -/* @@? 137:19 Error SyntaxError: Unexpected token ')'. */ -/* @@? 137:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 141:24 Error TypeError: This expression is not callable. */ -/* @@? 145:18 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 146:28 Error TypeError: Property 'getInner' does not exist on type 'A' */ -/* @@? 148:25 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 149:24 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 151:20 Error TypeError: Cannot find type 'D0'. */ -/* @@? 151:29 Error TypeError: Cannot find type 'D0'. */ -/* @@? 157:16 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 158:26 Error TypeError: Property 'getInner' does not exist on type 'A' */ -/* @@? 161:9 Error SyntaxError: Identifier expected, got 'let'. */ -/* @@? 161:9 Error SyntaxError: Hard keyword 'let' cannot be used as identifier */ -/* @@? 162:9 Error SyntaxError: Hard keyword 'const' cannot be used as identifier */ -/* @@? 162:9 Error SyntaxError: Identifier expected, got 'const'. */ -/* @@? 163:9 Error SyntaxError: Hard keyword 'new' cannot be used as identifier */ -/* @@? 163:9 Error SyntaxError: Identifier expected, got 'new'. */ -/* @@? 164:5 Error TypeError: This expression is not callable. */ -/* @@? 165:5 Error TypeError: This expression is not callable. */ -/* @@? 166:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 166:5 Error TypeError: No matching call signature */ -/* @@? 292:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 18:14 Error Syntax error ESY0096: Optional variable is not allowed in for of statements. */ +/* @@? 28:29 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 34:14 Error Syntax error ESY0201: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ +/* @@? 37:33 Error Syntax error ESY0227: Unexpected token 'rethrows'. */ +/* @@? 37:33 Error Semantic error ESE0143: Unresolved reference rethrows */ +/* @@? 39:14 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 39:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 39:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 39:24 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 39:27 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 39:29 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 39:31 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 39:38 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 41:1 Error Semantic error ESE0143: Unresolved reference type */ +/* @@? 41:6 Error Syntax error ESY0227: Unexpected token '123'. */ +/* @@? 41:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 41:10 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 41:12 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 43:6 Error Syntax error ESY0227: Unexpected token 'null'. */ +/* @@? 43:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 43:11 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 43:13 Error Syntax error ESY0227: Unexpected token 'byte'. */ +/* @@? 45:6 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 45:6 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 45:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 45:11 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 47:8 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 47:8 Error Semantic error ESE0363: Missing initializer in const declaration */ +/* @@? 49:13 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 51:25 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 51:27 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 51:30 Error Syntax error ESY0227: Unexpected token 'p'. */ +/* @@? 51:33 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 51:38 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 51:39 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 51:41 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 51:45 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 52:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 52:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 52:12 Error Semantic error ESE0143: Unresolved reference q */ +/* @@? 52:23 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 55:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 59:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 63:22 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 63:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 67:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 67:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 68:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 73:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 73:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 74:11 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 77:20 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 77:22 Error Semantic error ESE0070: 'I' type does not exist. */ +/* @@? 78:22 Error Semantic error ESE0136: Method fee(): Int in B not overriding any method */ +/* @@? 83:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 83:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 84:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 92:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 92:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 93:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 103:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 104:21 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 115:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 115:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 115:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 115:26 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 115:30 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 115:32 Error Syntax error ESY0227: Unexpected token 'U'. */ +/* @@? 115:32 Error Semantic error ESE0143: Unresolved reference U */ +/* @@? 115:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 115:34 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 115:36 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 115:36 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 115:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 116:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 116:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 119:1 Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ +/* @@? 119:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 119:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 119:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 119:26 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 119:30 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 119:32 Error Syntax error ESY0227: Unexpected token 'U'. */ +/* @@? 119:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 119:34 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 119:36 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 119:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 120:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 120:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 123:5 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 123:6 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 123:6 Error Syntax error ESY0227: Unexpected token 'abc'. */ +/* @@? 123:6 Error Semantic error ESE0143: Unresolved reference abc */ +/* @@? 125:1 Error Semantic error ESE0399: Method declaration `foo` must all ambient or non-ambient */ +/* @@? 127:1 Error Syntax error ESY0106: The modifier async cannot be used in an ambient context. */ +/* @@? 132:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 137:16 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected '{', got '='. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected ')', got '='. */ +/* @@? 137:16 Error Syntax error ESY0101: Catch clause variable cannot have an initializer. */ +/* @@? 137:18 Error Syntax error ESY0227: Unexpected token '0'. */ +/* @@? 137:19 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 137:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 141:24 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 145:18 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 146:28 Error Semantic error ESE0087: Property 'getInner' does not exist on type 'A' */ +/* @@? 148:25 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 149:24 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 151:20 Error Semantic error ESE0371: Cannot find type 'D0'. */ +/* @@? 151:29 Error Semantic error ESE0371: Cannot find type 'D0'. */ +/* @@? 157:16 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 158:26 Error Semantic error ESE0087: Property 'getInner' does not exist on type 'A' */ +/* @@? 161:9 Error Syntax error ESY0224: Identifier expected, got 'let'. */ +/* @@? 161:9 Error Syntax error ESY0316: Hard keyword 'let' cannot be used as identifier */ +/* @@? 162:9 Error Syntax error ESY0316: Hard keyword 'const' cannot be used as identifier */ +/* @@? 162:9 Error Syntax error ESY0224: Identifier expected, got 'const'. */ +/* @@? 163:9 Error Syntax error ESY0316: Hard keyword 'new' cannot be used as identifier */ +/* @@? 163:9 Error Syntax error ESY0224: Identifier expected, got 'new'. */ +/* @@? 164:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 165:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 166:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 166:5 Error Semantic error ESE0128: No matching call signature */ +/* @@? 292:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/SmartCast_3.ets b/ets2panda/test/ast/parser/ets/SmartCast_3.ets index d65b202e6a6b4be713f17263f98fe379fa4ee92e..08144650f21d5717f3426822ecddf091ed1ce4e6 100644 --- a/ets2panda/test/ast/parser/ets/SmartCast_3.ets +++ b/ets2panda/test/ast/parser/ets/SmartCast_3.ets @@ -23,4 +23,4 @@ function main() { /* @@ label */resolve("abc"); // no smart cast! } -/* @@@ label Error TypeError: This expression is not callable. */ +/* @@@ label Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/parser/ets/SmartCast_4.ets b/ets2panda/test/ast/parser/ets/SmartCast_4.ets index 68cd1d342b6ee0da47935340c2a4d1e9939f1896..09fd6b45c5f96e51f65e3cb764c3ecc02fb80c12 100644 --- a/ets2panda/test/ast/parser/ets/SmartCast_4.ets +++ b/ets2panda/test/ast/parser/ets/SmartCast_4.ets @@ -25,4 +25,4 @@ function main() { } } -/* @@@ label Error TypeError: Type 'Double|String|undefined' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type 'Double|String|undefined' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/parser/ets/StringFasta.ets b/ets2panda/test/ast/parser/ets/StringFasta.ets index 758d82839fe141ae9f02ef51ac4447f179cc3d6d..21bb79868fd182969c7aeea582152e27a42f15e9 100644 --- a/ets2panda/test/ast/parser/ets/StringFasta.ets +++ b/ets2panda/test/ast/parser/ets/StringFasta.ets @@ -122,57 +122,57 @@ function main(): void { a.run(); } -/* @@? 18:18 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 18:46 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 19:22 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 19:50 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 21:9 Error TypeError: Unresolved reference IUB */ -/* @@? 22:9 Error TypeError: Unresolved reference IUB */ -/* @@? 23:9 Error TypeError: Unresolved reference IUB */ -/* @@? 24:9 Error TypeError: Unresolved reference IUB */ -/* @@? 25:9 Error TypeError: Unresolved reference IUB */ -/* @@? 26:9 Error TypeError: Unresolved reference IUB */ -/* @@? 27:9 Error TypeError: Unresolved reference IUB */ -/* @@? 28:9 Error TypeError: Unresolved reference IUB */ -/* @@? 29:9 Error TypeError: Unresolved reference IUB */ -/* @@? 30:9 Error TypeError: Unresolved reference IUB */ -/* @@? 31:9 Error TypeError: Unresolved reference IUB */ -/* @@? 32:9 Error TypeError: Unresolved reference IUB */ -/* @@? 33:9 Error TypeError: Unresolved reference IUB */ -/* @@? 34:9 Error TypeError: Unresolved reference IUB */ -/* @@? 35:9 Error TypeError: Unresolved reference IUB */ -/* @@? 36:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 37:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 38:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 39:9 Error TypeError: Unresolved reference HomoSap */ -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 47:13 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 47:21 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 47:28 Error TypeError: Static property 'A' must be accessed through it's class 'Random' */ -/* @@? 47:32 Error TypeError: Static property 'C' must be accessed through it's class 'Random' */ -/* @@? 47:37 Error TypeError: Static property 'M' must be accessed through it's class 'Random' */ -/* @@? 48:26 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 48:33 Error TypeError: Static property 'M' must be accessed through it's class 'Random' */ -/* @@? 52:35 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 53:27 Error TypeError: Type 'null' cannot be assigned to type 'Char' */ -/* @@? 54:26 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 54:57 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 71:33 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 72:24 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 77:33 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 78:24 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 84:41 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 86:9 Error TypeError: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ -/* @@? 94:34 Error TypeError: Static property 'Random' must be accessed through it's class 'StringFasta' */ -/* @@? 95:34 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 95:65 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 103:20 Error TypeError: Type 'Double' has no call signatures. */ -/* @@? 112:16 Error TypeError: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ -/* @@? 112:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 113:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ -/* @@? 113:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 113:46 Error TypeError: Unresolved reference IUB */ -/* @@? 114:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ -/* @@? 114:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 114:46 Error TypeError: Unresolved reference HomoSap */ -/* @@? 116:36 Error TypeError: 'expected' is a static property of 'StringFasta' */ +/* @@? 18:18 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 18:46 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 19:22 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 19:50 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 21:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 22:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 23:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 24:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 25:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 26:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 27:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 28:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 29:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 30:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 31:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 32:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 33:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 34:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 35:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 36:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 37:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 38:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 39:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 47:13 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 47:21 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 47:28 Error Semantic error ESE0173: Static property 'A' must be accessed through it's class 'Random' */ +/* @@? 47:32 Error Semantic error ESE0173: Static property 'C' must be accessed through it's class 'Random' */ +/* @@? 47:37 Error Semantic error ESE0173: Static property 'M' must be accessed through it's class 'Random' */ +/* @@? 48:26 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 48:33 Error Semantic error ESE0173: Static property 'M' must be accessed through it's class 'Random' */ +/* @@? 52:35 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 53:27 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Char' */ +/* @@? 54:26 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 54:57 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ +/* @@? 71:33 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 72:24 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 77:33 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 78:24 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 84:41 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 86:9 Error Semantic error ESE0173: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ +/* @@? 94:34 Error Semantic error ESE0173: Static property 'Random' must be accessed through it's class 'StringFasta' */ +/* @@? 95:34 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 95:65 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ +/* @@? 103:20 Error Semantic error ESE0002: Type 'Double' has no call signatures. */ +/* @@? 112:16 Error Semantic error ESE0173: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ +/* @@? 112:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 113:16 Error Semantic error ESE0173: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ +/* @@? 113:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 113:46 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 114:16 Error Semantic error ESE0173: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ +/* @@? 114:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 114:46 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 116:36 Error Semantic error ESE0207: 'expected' is a static property of 'StringFasta' */ diff --git a/ets2panda/test/ast/parser/ets/StructTest1.ets b/ets2panda/test/ast/parser/ets/StructTest1.ets index e6ffe7bc439265c2103e24e8de0f68b546ff6d84..9e7717fc1874f7e6d66e2f4c27e0db86cfa4526d 100644 --- a/ets2panda/test/ast/parser/ets/StructTest1.ets +++ b/ets2panda/test/ast/parser/ets/StructTest1.ets @@ -20,4 +20,4 @@ struct CE { function main(): void { let a: CE = new CE; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/StructTest2.ets b/ets2panda/test/ast/parser/ets/StructTest2.ets index e660ecd89ab79bd1e076ae25aa30aad86190c9fc..6a05f974bbb32ec22bde07294adaac1602ceb1ef 100644 --- a/ets2panda/test/ast/parser/ets/StructTest2.ets +++ b/ets2panda/test/ast/parser/ets/StructTest2.ets @@ -21,4 +21,4 @@ function main(): void { let a: CE = new CE(); } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/StructTest3.ets b/ets2panda/test/ast/parser/ets/StructTest3.ets index 309547f41af2ee4fcccced5f503cd4a37387f4ee..ffd431d4bb255577788aadc72a9ac80994f74a02 100644 --- a/ets2panda/test/ast/parser/ets/StructTest3.ets +++ b/ets2panda/test/ast/parser/ets/StructTest3.ets @@ -16,4 +16,4 @@ struct MyStruct { } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/UnexpectedToken.ets b/ets2panda/test/ast/parser/ets/UnexpectedToken.ets index 7e6119a0261f6b405434189a12bb3c00daabb979..4407c2ff879bd79f44458111b38ca66d6daef00f 100644 --- a/ets2panda/test/ast/parser/ets/UnexpectedToken.ets +++ b/ets2panda/test/ast/parser/ets/UnexpectedToken.ets @@ -20,14 +20,14 @@ function main(): void { } } -/* @@? 18:19 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 18:25 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 18:29 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 18:38 Error TypeError: Cannot find type 'A'. */ -/* @@? 18:68 Error TypeError: Cannot find type 'A'. */ -/* @@? 18:72 Error TypeError: Unresolved reference f */ -/* @@? 18:78 Error TypeError: Cannot find type 'A'. */ -/* @@? 18:82 Error SyntaxError: Expected ')', got ';'. */ -/* @@? 19:4 Error TypeError: Unresolved reference i */ -/* @@? 19:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:12 Error SyntaxError: Unexpected token '{'. */ +/* @@? 18:19 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 18:25 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 18:29 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 18:38 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 18:68 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 18:72 Error Semantic error ESE0143: Unresolved reference f */ +/* @@? 18:78 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 18:82 Error Syntax error ESY0230: Expected ')', got ';'. */ +/* @@? 19:4 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 19:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:12 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets b/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets index e498973b8d0e8264654d604fde40d4aef9ee294a..92ea1cfa5a0b7aeda29d7b13e116b4d62aed7667 100644 --- a/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets +++ b/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets @@ -17,4 +17,4 @@ abstract class A{ abstract /* @@ label */constructor(val: int); }; -/* @@@ label Error SyntaxError: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ +/* @@@ label Error Syntax error ESY0201: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/access_modifier_1.ets b/ets2panda/test/ast/parser/ets/access_modifier_1.ets index 0ef12a8a6e7196f22efea6ba1a7522caa7964099..65abd430261772a9a3a67ded1f27a22bc5c3f547 100644 --- a/ets2panda/test/ast/parser/ets/access_modifier_1.ets +++ b/ets2panda/test/ast/parser/ets/access_modifier_1.ets @@ -17,4 +17,4 @@ class A { final /* @@ label */public foo(): void {} } -/* @@@ label Error SyntaxError: Access modifier must precede field and method modifiers. */ +/* @@@ label Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/access_modifier_4.ets b/ets2panda/test/ast/parser/ets/access_modifier_4.ets index 2a88b634aebfecf037c640728538f6b20cef0740..f1524afb41c428c74aee4040c89516135be8553d 100644 --- a/ets2panda/test/ast/parser/ets/access_modifier_4.ets +++ b/ets2panda/test/ast/parser/ets/access_modifier_4.ets @@ -17,4 +17,4 @@ class A { static /* @@ label */public n: int; } -/* @@@ label Error SyntaxError: Access modifier must precede field and method modifiers. */ +/* @@@ label Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/accessor_call.ets b/ets2panda/test/ast/parser/ets/accessor_call.ets index 918aaffe3935735b4bb87a0232011df893697547..82feb3faf3e58e918d3bc64edbd7770a66b003a9 100644 --- a/ets2panda/test/ast/parser/ets/accessor_call.ets +++ b/ets2panda/test/ast/parser/ets/accessor_call.ets @@ -21,4 +21,4 @@ function main(): void { /* @@ label */new A().x(); } -/* @@@ label Error TypeError: Type 'Int' has no call signatures. */ +/* @@@ label Error Semantic error ESE0002: Type 'Int' has no call signatures. */ diff --git a/ets2panda/test/ast/parser/ets/accessor_void.ets b/ets2panda/test/ast/parser/ets/accessor_void.ets index 966e7b1f3fbab700adf4e00c218ed136d57f81f5..d54183238b6eecaad15b4c41484332bffa6b6c95 100644 --- a/ets2panda/test/ast/parser/ets/accessor_void.ets +++ b/ets2panda/test/ast/parser/ets/accessor_void.ets @@ -17,4 +17,4 @@ class A { get x/* @@ label */(): void { } } -/* @@@ label Error TypeError: Getter must return a value */ +/* @@@ label Error Semantic error ESE0086: Getter must return a value */ diff --git a/ets2panda/test/ast/parser/ets/accessor_with_this_param.ets b/ets2panda/test/ast/parser/ets/accessor_with_this_param.ets index df3867b378c21e7eb27a763149e8ed9db1d8b33e..7a16558a3978aebb199a145cc94d63e973d114b7 100644 --- a/ets2panda/test/ast/parser/ets/accessor_with_this_param.ets +++ b/ets2panda/test/ast/parser/ets/accessor_with_this_param.ets @@ -33,8 +33,8 @@ class B { } } -/* @@? 18:11 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ -/* @@? 21:5 Error SyntaxError: Getter must not have formal parameters. */ -/* @@? 21:11 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ -/* @@? 24:1 Error SyntaxError: Setter must have exactly one formal parameter. */ -/* @@? 31:11 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 18:11 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 21:5 Error Syntax error ESY0058: Getter must not have formal parameters. */ +/* @@? 21:11 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 24:1 Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ +/* @@? 31:11 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_class_missing_body.ets b/ets2panda/test/ast/parser/ets/ambient_class_missing_body.ets index 1428f6e5baa5676ce2ee84722bc810a2c6463a62..d79f6dfd6d3c36211442fe8e3377f3463e09e51b 100644 --- a/ets2panda/test/ast/parser/ets/ambient_class_missing_body.ets +++ b/ets2panda/test/ast/parser/ets/ambient_class_missing_body.ets @@ -16,4 +16,4 @@ declare class B -/* @@? 20:1 Error SyntaxError: Ambient class declarations must have a body. */ +/* @@? 20:1 Error Syntax error ESY0004: Ambient class declarations must have a body. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_declaration.ets b/ets2panda/test/ast/parser/ets/ambient_declaration.ets index ee8515f1165a059d526145237fd3c025eb1347b2..0ea6e5cef70602f7adbc85ae12eaeb3d89ec3a56 100644 --- a/ets2panda/test/ast/parser/ets/ambient_declaration.ets +++ b/ets2panda/test/ast/parser/ets/ambient_declaration.ets @@ -15,7 +15,7 @@ declare /* @@ label1 */module /* @@ label2 */"someModule" /* @@ label3 */{} -/* @@@ label1 Error SyntaxError: Ambient module declaration is not supported! */ -/* @@@ label1 Error TypeError: Unresolved reference module */ -/* @@@ label2 Error SyntaxError: Unexpected token 'someModule'. */ -/* @@@ label3 Error SyntaxError: Unexpected token '{'. */ +/* @@@ label1 Error Syntax error ESY0308: Ambient module declaration is not supported! */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference module */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'someModule'. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets index 6089b2b4463dd14697fea0260bc15d1c68a1f96f..54ab9b14c759a3587773b5fac3d90d497ca067fa 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets @@ -19,4 +19,4 @@ declare class ClassWithSymbols { } -/* @@@ label1 Error SyntaxError: Only one index signature can exist in a class */ +/* @@@ label1 Error Syntax error ESY0326: Only one index signature can exist in a class */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets index d1c5273f0c247d8fe5770b7b5d1c50c9ca0d7117..af488484a8869bec5434a0e4b2174f472fa3c9e1 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets @@ -21,4 +21,4 @@ function main() { let a : A = new A(); } -/* @@? 17:6 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ \ No newline at end of file +/* @@? 17:6 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets index 4f06b3693e3fbd2a9b19aac40a6f7a13b882b374..5dd331782b29dd41af02f920a2a4cfac555684ee 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets @@ -21,12 +21,4 @@ function main() { let a : A = new A(); } -/* @@? 17:14 Error SyntaxError: Index type must be number in index signature. */ -/* @@? 17:14 Error SyntaxError: ] expected in index signature. */ -/* @@? 17:20 Error SyntaxError: An index signature must have a type annotation. */ -/* @@? 17:20 Error SyntaxError: Expected ':', got ']'. */ -/* @@? 17:20 Error SyntaxError: Invalid Type. */ -/* @@? 17:20 Error SyntaxError: Return type of index signature from exported class or interface need to be identifier. */ -/* @@? 17:20 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:24 Error SyntaxError: string is a predefined type, cannot be used as an identifier */ +/* @@? 17:24 Error Syntax error ESY0000: An index signature must have a type annotation */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets index 33e4fff0d11dc57e84ca295c89f2d1d1d37bbc0e..7b77f6f74ea680f0c69e6457b9a60e29cbb48e71 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets @@ -21,7 +21,7 @@ declare class A { let a : A = new A(); } -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ -/* @@@ label Error SyntaxError: Expected ':', got '}'. */ -/* @@@ label Error SyntaxError: Invalid Type. */ -/* @@@ label Error SyntaxError: Return type of index signature from exported class or interface need to be identifier. */ +/* @@@ label Error Syntax error ESY0020: An index signature must have a type annotation. */ +/* @@@ label Error Syntax error ESY0230: Expected ':', got '}'. */ +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ +/* @@@ label Error Syntax error ESY0021: Return type of index signature from exported class or interface need to be identifier. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets index 7ea0d48dd447a6d9c576e9427a2d7b8cfbdc799d..44c88f0bdd8122234895991a921a77e767219a01 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets @@ -21,6 +21,6 @@ function main() { let a : A = new A(); } -/* @@@ label Error SyntaxError: Invalid Type. */ -/* @@@ label Error SyntaxError: Return type of index signature from exported class or interface need to be identifier. */ -/* @@@ label Error SyntaxError: Unexpected token '?'. */ +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ +/* @@@ label Error Syntax error ESY0021: Return type of index signature from exported class or interface need to be identifier. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '?'. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets index c9e6ef112ef706cb157758f8bb5c491a2c321b09..ea8377647cdce6c1bbc1b3a5959556cf87e7462f 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets @@ -21,6 +21,6 @@ function main() { let a : A = new A(); } -/* @@@ label Error SyntaxError: ] expected in index signature. */ -/* @@@ label1 Error SyntaxError: An index signature must have a type annotation. */ -/* @@@ label1 Error SyntaxError: Expected ':', got 'identification literal'. */ +/* @@@ label Error Syntax error ESY0019: ] expected in index signature. */ +/* @@@ label1 Error Syntax error ESY0020: An index signature must have a type annotation. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ':', got 'identification literal'. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets index 62e5623e90ffa388b98664a0f462b1a359771abe..ef5a18a4fb69aa215df0b21a14817e1472688a30 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets @@ -21,8 +21,8 @@ function main() { let a : A = new A(); } -/* @@@ label Error SyntaxError: Index type expected in index signature. */ -/* @@@ label1 Error SyntaxError: Index type must be number in index signature. */ -/* @@@ label1 Error SyntaxError: ] expected in index signature. */ -/* @@@ label2 Error SyntaxError: An index signature must have a type annotation. */ -/* @@@ label2 Error SyntaxError: Expected ':', got 'identification literal'. */ +/* @@@ label Error Syntax error ESY0017: Index type expected in index signature. */ +/* @@@ label1 Error Syntax error ESY0018: Index type must be number in index signature. */ +/* @@@ label1 Error Syntax error ESY0019: ] expected in index signature. */ +/* @@@ label2 Error Syntax error ESY0020: An index signature must have a type annotation. */ +/* @@@ label2 Error Syntax error ESY0230: Expected ':', got 'identification literal'. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets index 8d48e6cdbb09036438645f6213687b9b5b1e042e..fe2b55a642b6bee965147f07afd196466a36aaf0 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets @@ -21,4 +21,4 @@ function main() { let a : A = new A(); } -/* @@@ label Error SyntaxError: Unexpected token '&'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '&'. */ diff --git a/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets b/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets index 749b248c233fe60916526efb13661fe7f6a34cb7..c9b93dc8fb9bf29419687d73c94cda4c8700c252 100644 --- a/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets +++ b/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets @@ -18,4 +18,4 @@ declare class C { [Symbol.iterator]/* @@ label */(): A; } -/* @@@ label Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@@ label Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ diff --git a/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets b/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets index e16e6af524ee46b783bb6009626a844ae903713c..4a575a6c55f13fbd75f71a3a0cc789671d23c249 100644 --- a/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets +++ b/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets @@ -23,4 +23,4 @@ function main (): void { /* @@ label */goo (new X()) } -/* @@@ label Error TypeError: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(p1: I1): void` and `goo(p2: I2): void` */ +/* @@@ label Error Semantic error ESE0142: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(p1: I1): void` and `goo(p2: I2): void` */ diff --git a/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets b/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets index 4d3d2c85391c59df3df421d2ec171879cb82d670..d8bd3859a708aea6fd2415743c74e562495a8f2e 100644 --- a/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets +++ b/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets @@ -27,5 +27,5 @@ function main (): void { goo (0, new X(), "ambiguous") } -/* @@? 27:5 Error TypeError: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(i: Int, p1: I1, s: String): void` and `goo(i: Int, p2: I5, s: String): void` */ -/* @@? 27:5 Error TypeError: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(i: Int, p1: I1, s: String): void` and `goo(i: Int, p2: I2, s: String): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(i: Int, p1: I1, s: String): void` and `goo(i: Int, p2: I5, s: String): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(i: Int, p1: I1, s: String): void` and `goo(i: Int, p2: I2, s: String): void` */ diff --git a/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets b/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets index 9b9498171dc39f5fa495714f101b8f2e9c7d9333..95b98bf67df80dc4026212826d349092f56e2489 100644 --- a/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets +++ b/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets @@ -23,4 +23,4 @@ function main (): void { /* @@ label */goo (new X()) } -/* @@@ label Error TypeError: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(p2: B): void` and `goo(p1: I1): void` */ +/* @@@ label Error Semantic error ESE0142: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(p2: B): void` and `goo(p1: I1): void` */ diff --git a/ets2panda/test/ast/parser/ets/anno_interface_invalid_error.ets b/ets2panda/test/ast/parser/ets/anno_interface_invalid_error.ets index f3fefe0e9d7faba4363d6e128cd0cede10d40f6b..42fb0b7633d1349c95aec4a1bf2a1cad483330be 100644 --- a/ets2panda/test/ast/parser/ets/anno_interface_invalid_error.ets +++ b/ets2panda/test/ast/parser/ets/anno_interface_invalid_error.ets @@ -45,6 +45,6 @@ class C{ public foo() {} } -/* @@? 29:4 Error SyntaxError: Missing type annotation for property 'b'. */ -/* @@? 42:11 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 44:16 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ +/* @@? 29:4 Error Syntax error ESY0001: Missing type annotation for property 'b'. */ +/* @@? 42:11 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 44:16 Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer01.ets index 1c44ded6935e22953442f74a0911854b7eed7949..75112fb9bfbb895b441f46191d7f4c356841ef07 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer01.ets @@ -20,6 +20,6 @@ class A{} } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer02.ets index 8c6f67789b34b95c4a953f3db5428fc49fa7bd09..747d0028cf3647bcab62023ad10fe893eba885f2 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer02.ets @@ -18,5 +18,5 @@ } -/* @@@ label Error TypeError: Unresolved reference a */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer06.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer06.ets index 8ede82f797615d800106dd7336fa08ef929f63d7..fda9731589e5eafa17ebe2ad2600107c67f7fc76 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer06.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer06.ets @@ -19,4 +19,4 @@ class A{} testProperty1: string = /* @@ label */(a:int)=>{} } -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_classDecl_conflict.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_classDecl_conflict.ets index 9a1ce8d5b94a01523f3c686265f93b76f89210e3..9727504e284ef856c94f5021cb568aafa3492eef 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_classDecl_conflict.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_classDecl_conflict.ets @@ -16,5 +16,5 @@ @interface MyAnno {} class /* @@ label */MyAnno {} -/* @@@ label Error TypeError: Variable 'MyAnno' has already been declared. */ -/* @@@ label Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@@ label Error Semantic error ESE0351: Variable 'MyAnno' has already been declared. */ +/* @@@ label Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_enum_conflict.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_enum_conflict.ets index 9fc03e15610ed500776b3fb652d1a5513764f201..98aeca99999de0deb8afb99d08ffe3a3823276c6 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_enum_conflict.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_enum_conflict.ets @@ -16,4 +16,4 @@ interface MyAnno {} enum /* @@ label */MyAnno {one, two, three} -/* @@@ label Error TypeError: Variable 'MyAnno' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'MyAnno' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers01.ets index 902ec6220dc55c5702e78d61b0212d5a00aff6ce..c5f80d635038e0cb2e99b6ed50dff906c642538a 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers01.ets @@ -18,4 +18,4 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers02.ets index 996f31f8ad8c1afe6042f6d45466217455e13920..f0e0bc45daa1a9e99147dca18ef0a4d56f81ec9f 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers02.ets @@ -18,4 +18,4 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers03.ets index 662e92b92597dd9c84bcea99bc1c7ab44abd82d3..0fa660b910a1ab8bc5910bab27bddbea53ac9621 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers03.ets @@ -18,4 +18,4 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers04.ets index 91db8071ef6546588b1d2b35eaf1dd9f55f48fad..8f083321d844f993ccae22d4fabe1c05f7b496ee 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers04.ets @@ -18,5 +18,4 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ - +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_interface_conflict.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_interface_conflict.ets index 12d9c22c9d9e34ce3df656a39c2159ab36dfbf63..18023b8304143120e16203b0d7f32db5dedaa5fa 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_interface_conflict.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_interface_conflict.ets @@ -16,5 +16,5 @@ @interface MyAnno {} /* @@ label */interface MyAnno {} -/* @@@ label Error TypeError: Variable 'MyAnno' has already been declared. */ -/* @@@ label Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@@ label Error Semantic error ESE0351: Variable 'MyAnno' has already been declared. */ +/* @@@ label Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_locally.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_locally.ets index 17b793bf6c962c4e5255abd915067cbd451c9bce..72e7234b084daecadaf4655cced04d73a40944b9 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_locally.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_locally.ets @@ -17,5 +17,5 @@ class A{ } -/* @@? 16:6 Error SyntaxError: Annotations can only be declared at the top level. */ -/* @@? 16:6 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 16:6 Error Syntax error ESY0114: Annotations can only be declared at the top level. */ +/* @@? 16:6 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation01.ets index 364f83c4d585ae15e27c1b9fb3fe64e9835a96e1..e3173c84201c8827d3bd30a86b6842eb70f3baf2 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation01.ets @@ -19,4 +19,4 @@ class A{} testProperty1 /* @@ label */= 1 } -/* @@@ label Error SyntaxError: Missing type annotation for property 'testProperty1'. */ +/* @@@ label Error Syntax error ESY0001: Missing type annotation for property 'testProperty1'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation02.ets index be4d572baa66825eb3ef65da127d193b1e83910e..41d8c0766d610418e1bab2887c869e6d0a225967 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation02.ets @@ -19,4 +19,4 @@ class A{} testProperty1 /* @@ label */} -/* @@@ label Error SyntaxError: Missing type annotation for property 'testProperty1'. */ +/* @@@ label Error Syntax error ESY0001: Missing type annotation for property 'testProperty1'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation03.ets index 14e1b15227ed1f8790579e3b18e9342e96a9ac19..fbae092c7f9a0e4aa9c934b4e2e45f55cd4d88b8 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation03.ets @@ -17,4 +17,4 @@ a: @Anno } -/* @@? 18:1 Error SyntaxError: Invalid Type. */ +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token01.ets index 5e372819756b0f24b3e3b85f1e63b70b2e83822d..39ba4f0b6644a2e13dafbe99accd49cb6728ad91 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token01.ets @@ -17,4 +17,4 @@ testProperty2: number } -/* @@@ label Error SyntaxError: Identifier expected, got ','. */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got ','. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token02.ets index 837d0ff78785f46c096efd0cea1e638c4ef0ead7..5aeb294e4876fd6b007a1f4a289865195a591828 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token02.ets @@ -18,8 +18,8 @@ testProperty2: number } -/* @@? 18:18 Error SyntaxError: Identifier expected, got ':'. */ -/* @@? 18:20 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 19:1 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 18:5 Error TypeError: Unresolved reference testProperty2 */ -/* @@? 18:5 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@? 18:5 Error Semantic error ESE0143: Unresolved reference testProperty2 */ +/* @@? 18:5 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 18:18 Error Syntax error ESY0224: Identifier expected, got ':'. */ +/* @@? 18:20 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 19:1 Error Syntax error ESY0224: Identifier expected, got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token03.ets index 59e11cb6caf990ea7a4c24658883d9ed8e38779d..3712fc0ba308baaa75d76850d766594a484f5320 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token03.ets @@ -17,8 +17,8 @@ testProperty2/* @@ label1 */: number } -/* @@@ label1 Error SyntaxError: Identifier expected, got ':'. */ -/* @@? 17:35 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 18:1 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 17:5 Error TypeError: Unresolved reference testProperty2 */ -/* @@? 17:5 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference testProperty2 */ +/* @@? 17:5 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label1 Error Syntax error ESY0224: Identifier expected, got ':'. */ +/* @@? 17:35 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 18:1 Error Syntax error ESY0224: Identifier expected, got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token04.ets index 88cfdb4017c6ae03aa5e3c0e1528447d239f0ba0..b284768d36e97445a6f037c7837f611ea8d8f7ba 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token04.ets @@ -19,7 +19,7 @@ import * as Src from "./annotation_export" Src.MyAnno class /* @@ label */A/* @@ label1 */{} -/* @@? 19:1 Error TypeError: Class literal is not yet supported. */ -/* @@? 20:21 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 20:21 Error TypeError: Unresolved reference A */ -/* @@? 20:37 Error SyntaxError: Unexpected token '{'. */ +/* @@? 19:1 Error Semantic error ESE0020: Class literal is not yet supported. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference A */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token05.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token05.ets index 5648eba09f5026058368c85d7c067fbcc59f697c..098de508c5df7b5aa22531331927daa92c02ed8e 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token05.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token05.ets @@ -19,4 +19,4 @@ import * as Src from "./annotation_export" /* @@ label */Src.MyAnno() class A{} -/* @@@ label Error TypeError: MyAnno is an annotation therefore cannot be instantiated. */ +/* @@@ label Error Semantic error ESE0396: MyAnno is an annotation therefore cannot be instantiated. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token06.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token06.ets index e7a3b43456de674098f7c8c4a8afbf446c0ca821..ed21dabae65e939487d3b96cc992f27cdc0e094e 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token06.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token06.ets @@ -19,7 +19,7 @@ import * as Src from "./annotation_export" Src.@MyAnno() class A{} -/* @@? 19:5 Error SyntaxError: Identifier expected. */ -/* @@? 19:5 Error SyntaxError: Identifier expected, got '@'. */ -/* @@? 19:6 Error SyntaxError: Unexpected token 'MyAnno'. */ -/* @@? 19:6 Error TypeError: Unresolved reference MyAnno */ +/* @@? 19:5 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 19:5 Error Syntax error ESY0224: Identifier expected, got '@'. */ +/* @@? 19:6 Error Syntax error ESY0227: Unexpected token 'MyAnno'. */ +/* @@? 19:6 Error Semantic error ESE0143: Unresolved reference MyAnno */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token07.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token07.ets index 9912bc89a8dd3a8c570efc278be917af06487d53..fb0ca8bc38d84e863a8b588f5546304ca3596893 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token07.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token07.ets @@ -18,5 +18,5 @@ } -/* @@? 15:1 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 15:3 Error SyntaxError: Unexpected token 'interface'. */ +/* @@? 15:1 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@? 15:3 Error Syntax error ESY0227: Unexpected token 'interface'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_redefined.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_redefined.ets index 4cb6fd937bd653e2ee115725df9bf04e5a967bd3..16ccb0db4c48740cfcbe13672a985ab912660ebf 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_redefined.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_redefined.ets @@ -27,4 +27,4 @@ testProperty4: number } -/* @@@ label Error TypeError: Variable 'MyAnno' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'MyAnno' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier01.ets index 00384aaf2365eda385865d6547482185b57fd7d4..695d069db41905c39b443a1698b8a056c5e2b6be 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier01.ets @@ -16,6 +16,6 @@ public @interface MyAnno { testProperty1: string } -/* @@? 15:1 Error SyntaxError: Annotation declaration can not have access modifier. */ -/* @@? 15:1 Error SyntaxError: Unexpected token 'public'. */ -/* @@? 15:8 Error SyntaxError: Unexpected token '@'. */ +/* @@? 15:1 Error Syntax error ESY0210: Annotation declaration can not have access modifier. */ +/* @@? 15:1 Error Syntax error ESY0227: Unexpected token 'public'. */ +/* @@? 15:8 Error Syntax error ESY0227: Unexpected token '@'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier02.ets index 4e855e39f4c46cc5a1a0c3c4ae8403db031d732c..c9c2a58bda4cfd47fe4e08c16885e8041ef888da 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier02.ets @@ -16,6 +16,6 @@ private @interface MyAnno { testProperty1: string } -/* @@? 15:1 Error SyntaxError: Annotation declaration can not have access modifier. */ -/* @@? 15:1 Error SyntaxError: Unexpected token 'private'. */ -/* @@? 15:9 Error SyntaxError: Unexpected token '@'. */ +/* @@? 15:1 Error Syntax error ESY0210: Annotation declaration can not have access modifier. */ +/* @@? 15:1 Error Syntax error ESY0227: Unexpected token 'private'. */ +/* @@? 15:9 Error Syntax error ESY0227: Unexpected token '@'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier03.ets index 9128014805bfc66074dbdc7af9dc93730a329dc0..87cad4b4684b240b35f6f2c5cc50b910285feec4 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier03.ets @@ -17,5 +17,5 @@ } -/* @@@ label Error SyntaxError: Unexpected token 'static'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '@'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'static'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '@'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_innerclass.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_innerclass.ets index 02ed066c23bdfeb9d4be5ee5db49ca8d92d3b83f..a1bc7c3fd12f46b7994e200400a9a4f266f3777c 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_innerclass.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_innerclass.ets @@ -17,9 +17,9 @@ class A{} } -/* @@? 17:5 Error SyntaxError: Hard keyword 'class' cannot be used as identifier */ -/* @@? 17:5 Error SyntaxError: Identifier expected, got 'class'. */ -/* @@? 17:12 Error SyntaxError: Missing type annotation for property 'A'. */ -/* @@? 17:12 Error SyntaxError: Identifier expected, got '{'. */ -/* @@? 17:13 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:5 Error Syntax error ESY0316: Hard keyword 'class' cannot be used as identifier */ +/* @@? 17:5 Error Syntax error ESY0224: Identifier expected, got 'class'. */ +/* @@? 17:12 Error Syntax error ESY0001: Missing type annotation for property 'A'. */ +/* @@? 17:12 Error Syntax error ESY0224: Identifier expected, got '{'. */ +/* @@? 17:13 Error Syntax error ESY0224: Identifier expected, got '}'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_method.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_method.ets index 328a7d5feade1a5c4508dc5092a965246db75937..b1a15480bba6169e3444b0560b40ff63f0a392fe 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_method.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_method.ets @@ -18,10 +18,10 @@ } -/* @@? 17:8 Error SyntaxError: Annotation can not have method as property. */ -/* @@? 17:8 Error SyntaxError: Missing type annotation for property 'foo'. */ -/* @@? 17:8 Error SyntaxError: Identifier expected, got '('. */ -/* @@? 17:9 Error SyntaxError: Identifier expected, got ')'. */ -/* @@? 17:10 Error SyntaxError: Identifier expected, got '{'. */ -/* @@? 17:11 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:8 Error Syntax error ESY0025: Annotation can not have method as property. */ +/* @@? 17:8 Error Syntax error ESY0001: Missing type annotation for property 'foo'. */ +/* @@? 17:8 Error Syntax error ESY0224: Identifier expected, got '('. */ +/* @@? 17:9 Error Syntax error ESY0224: Identifier expected, got ')'. */ +/* @@? 17:10 Error Syntax error ESY0224: Identifier expected, got '{'. */ +/* @@? 17:11 Error Syntax error ESY0224: Identifier expected, got '}'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param01.ets index 2fb3feaa785b30cd97c365acd222dcee03a80d01..fcae260b2efdeb0fe8e71ef39ef0b9a35e37cb6e 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param01.ets @@ -23,6 +23,6 @@ class A{} class B{} -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param02.ets index 4b52a661a36ab459713ce26f6f16e2ae3702fa83..03a0ec36fb00369ddb11c2cb29a1a82b80dbea88 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param02.ets @@ -22,6 +22,6 @@ class A{} @MyAnno(/* @@ label */new A()) class B{} -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 22:23 Error TypeError: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param03.ets index 0c71b47706834ad39d01cfa306731f724b22a93e..e3acd04335e673f535dad0f199583c4da0c27cfe 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param03.ets @@ -21,5 +21,5 @@ class B{} -/* @@@ label Error TypeError: Unresolved reference a */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param04.ets index 578d3567c669a8cf51100074e9df5ec96711cc76..dd6cc44d50467b29fbaf4953b78502de3ad1c0d4 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param04.ets @@ -21,5 +21,5 @@ @MyAnno({testProperty1: "1", testProperty2: [1, 2, a]}) class B{} -/* @@? 21:45 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 21:52 Error TypeError: Unresolved reference a */ +/* @@? 21:45 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 21:52 Error Semantic error ESE0143: Unresolved reference a */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param05.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param05.ets index 587d3a3031f78346ca9b74188601993a842f4154..11adb1430b6f51c4684beaf3aedb2c0fd0ad96e4 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param05.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param05.ets @@ -21,4 +21,4 @@ @MyAnno({testProperty1: /* @@ label */{s: A}, testProperty2: 1}) class B{} -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param06.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param06.ets index 785dbfea7efe31217615a5b7f4a637f2d4b70a0d..b21f7ab220c0269a437f467402cdd17f7b9452bf 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param06.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param06.ets @@ -20,6 +20,6 @@ @MyAnno(/* @@ label */(a: int) => {}) class B{} -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 20:23 Error TypeError: Type '(a: Int) => void' cannot be assigned to type 'String' */ -/* @@? 20:23 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0318: Type '(a: Int) => void' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param07.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param07.ets index d5077544840f5baec9e408280c5c401c4a4c1374..8f813c56862fa55e22f9c2f17febbd46fc857586 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param07.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param07.ets @@ -20,6 +20,6 @@ function foo(@MyAnno ...a){} -/* @@? 22:15 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 22:22 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 22:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ +/* @@? 22:15 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:22 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 22:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_classproperty.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_classproperty.ets index 389af848c79f2620d8032f0262f11c897692c21a..2366d069cbd681e10309819014056e866c34ac53 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_classproperty.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_classproperty.ets @@ -28,9 +28,9 @@ class B{ } -/* @@@ label1 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label1 Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label1 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label2 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label2 Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label2 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label1 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label1 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label2 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label2 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label2 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_function_param.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_function_param.ets index cf347df6c7611ddf4a4c5bcee21246e4c4e21a2f..b1404c53b98018a783d83c7ea867c760b1ba5cfe 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_function_param.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_function_param.ets @@ -23,6 +23,6 @@ class A{} function foo(@MyAnno({testProperty1: /* @@ label */A}) x: int) { } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_global_variable_decl.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_global_variable_decl.ets index 535b365f32749b2966664b57af09b1d91fa69913..40e7d073319484f712a05a38860393a74abf1ca7 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_global_variable_decl.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_global_variable_decl.ets @@ -24,6 +24,6 @@ class A{} let x = "abc" -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interface.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interface.ets index d544f882f733615ca8a40d5147dca8378cbd237b..e8d9f036f088dff1c0e83013081caa37f3e3ac05 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interface.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interface.ets @@ -25,6 +25,6 @@ interface itf { foo() : string } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfacemethod.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfacemethod.ets index ae609bf8f8e979ea73aa697849a7690cbb5ea1d7..f2bed7dc2bcdf2c9960911d5ee9eb284437ce98e 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfacemethod.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfacemethod.ets @@ -25,6 +25,6 @@ interface itf { } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfaceproperty.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfaceproperty.ets index 4ce655dabf0b46248667309f22d432a25226c175..22058337f3811ca42a7f9d33fe42bc9aa9cec02e 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfaceproperty.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfaceproperty.ets @@ -25,6 +25,8 @@ interface itf { } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_lambda.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_lambda.ets index 7a6cad9d4105ab08e2cd11b594955afccc046d1a..9f8c7171d9ec8a64a7f8060c4847e60dd463afc5 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_lambda.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_lambda.ets @@ -19,5 +19,5 @@ @ClassAuthor (x: 1) => x * 2; -/* @@? 20:2 Error TypeError: Cannot find type 'ClassAuthor'. */ -/* @@? 20:18 Error SyntaxError: Invalid Type. */ \ No newline at end of file +/* @@? 20:2 Error Semantic error ESE0371: Cannot find type 'ClassAuthor'. */ +/* @@? 20:18 Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_local_variable_decl.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_local_variable_decl.ets index 9c65ff8922fa6cfa80a0326c5990a7912e1a0b45..714891d828378624e271b8acc52af7d9374c9f09 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_local_variable_decl.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_local_variable_decl.ets @@ -26,6 +26,6 @@ function main():void { } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_type_alias.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_type_alias.ets index d066379ae2a7cd455245297dce539fde638108b0..91abf2c1e93c36754123f819c78c59b7392d4df7 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_type_alias.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_type_alias.ets @@ -29,8 +29,8 @@ function main(): void { } -/* @@@ label1 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label1 Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label1 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label2 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label2 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@@ label1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label1 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label1 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label2 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label2 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_for_invalid_expr.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_for_invalid_expr.ets index 2bab477ef17897f5f1a6fb82e704e0e3997ef824..dcb347521f157d92f3d6d4069539c7c53c6d23f4 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_for_invalid_expr.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_for_invalid_expr.ets @@ -22,5 +22,5 @@ const invalidUsage2 = @AddMetadata("array") [1, 2, 3]; -/* @@? 20:45 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 21:45 Error SyntaxError: Annotations are not allowed on this type of declaration. */ +/* @@? 20:45 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 21:45 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_classproperty.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_classproperty.ets index d49d7dd9fed850f46a269e1b570ab5989b5361f7..0e226c7da4f1d4780864b1d68213b4491dc72de6 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_classproperty.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_classproperty.ets @@ -21,8 +21,8 @@ class A{ x : int } -/* @@? 20:12 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 20:12 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 20:12 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 20:28 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 20:31 Error SyntaxError: Unexpected token ')'. */ +/* @@? 20:12 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 20:12 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 20:12 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 20:28 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 20:31 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_function_param.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_function_param.ets index 96304af4406e85870489c188070c4065893f4f47..3d90681a477f52cbbf471858e4c8a7ada8056c39 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_function_param.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_function_param.ets @@ -25,44 +25,44 @@ function foo(MyAnno({testProperty1: ""}) x: int, MyAnno({testProperty1: ""}) y: function foo(MyAnno({testProperty1: ""}) x: int, MyAnno({testProperty1: ""}) y: string) { } -/* @@? 19:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 19:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:20 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 19:20 Error TypeError: need to specify target type for class composite */ -/* @@? 19:42 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 19:45 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 19:45 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 19:48 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:50 Error SyntaxError: Unexpected token '{'. */ -/* @@? 22:1 Error TypeError: Function foo is already declared. */ -/* @@? 22:20 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 22:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 22:20 Error TypeError: need to specify target type for class composite */ -/* @@? 22:42 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 22:45 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:45 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 22:48 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:50 Error SyntaxError: Unexpected token 'MyAnno'. */ -/* @@? 22:50 Error TypeError: This expression is not callable. */ -/* @@? 22:50 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 22:78 Error SyntaxError: Unexpected token 'y'. */ -/* @@? 22:81 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:81 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 22:87 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:89 Error SyntaxError: Unexpected token '{'. */ -/* @@? 25:1 Error TypeError: Function foo is already declared. */ -/* @@? 25:20 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 25:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 25:20 Error TypeError: need to specify target type for class composite */ -/* @@? 25:42 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 25:45 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 25:45 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 25:48 Error SyntaxError: Unexpected token ','. */ -/* @@? 25:50 Error SyntaxError: Unexpected token 'MyAnno'. */ -/* @@? 25:50 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 25:50 Error TypeError: This expression is not callable. */ -/* @@? 25:78 Error SyntaxError: Unexpected token 'y'. */ -/* @@? 25:81 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 25:81 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 25:87 Error SyntaxError: Unexpected token ')'. */ -/* @@? 25:89 Error SyntaxError: Unexpected token '{'. */ \ No newline at end of file +/* @@? 19:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 19:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:20 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 19:20 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 19:42 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 19:45 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 19:45 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 19:48 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:50 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 22:1 Error Semantic error ESE0130: Function foo is already declared. */ +/* @@? 22:20 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 22:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 22:20 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 22:42 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 22:45 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:45 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 22:48 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:50 Error Syntax error ESY0227: Unexpected token 'MyAnno'. */ +/* @@? 22:50 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 22:50 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 22:78 Error Syntax error ESY0227: Unexpected token 'y'. */ +/* @@? 22:81 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:81 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 22:87 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 22:89 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 25:1 Error Semantic error ESE0130: Function foo is already declared. */ +/* @@? 25:20 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 25:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 25:20 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 25:42 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 25:45 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 25:45 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 25:48 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 25:50 Error Syntax error ESY0227: Unexpected token 'MyAnno'. */ +/* @@? 25:50 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 25:50 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 25:78 Error Syntax error ESY0227: Unexpected token 'y'. */ +/* @@? 25:81 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 25:81 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 25:87 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 25:89 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_initializer01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_initializer01.ets index a1c6ed41b6788f4aba700457a84e544190b7e564..6c390ea1e1c1fc11df220ebfa3e053aa8d36ad6a 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_initializer01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_initializer01.ets @@ -20,4 +20,4 @@ @MyAnno({testProperty1: "123", testProperty2/* @@ label */}) class A{} -/* @@@ label Error SyntaxError: Invalid argument passed to 'testProperty2'. */ +/* @@@ label Error Syntax error ESY0026: Invalid argument passed to 'testProperty2'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_on_annotationDecl.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_on_annotationDecl.ets index fabbeb1021c404741379f63aa06d291aa6e33232..38af67794985fe4caac13ca53ad95bae82d4c60b 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_on_annotationDecl.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_on_annotationDecl.ets @@ -25,4 +25,4 @@ testProperty2: number } -/* @@? 22:2 Error TypeError: Only standard annotations are allowed to be applied on annotations. */ +/* @@? 22:2 Error Semantic error ESE0006: Only standard annotations are allowed to be applied on annotations. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token01.ets index f7664657d2ef16b3580a5be9d1f08dfefd261fc3..06534fe58d29756b0b5deb0108b69efb1e42aa01 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token01.ets @@ -19,8 +19,8 @@ @MyAnno("123"/* @@ label */, "1"/* @@ label1 */) class A{} -/* @@@ label Error SyntaxError: Expected ')', got ','. */ -/* @@@ label Error SyntaxError: Unexpected token ','. */ -/* @@@ label Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 19:30 Error SyntaxError: Unexpected token '1'. */ -/* @@@ label1 Error SyntaxError: Unexpected token ')'. */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got ','. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ','. */ +/* @@@ label Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 19:30 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token02.ets index 4fc4472c2e3dfa54764ee8ebef54d7a13daeca3d..cdcfc2c700d53f70760ac9e0e6adbfbb48a0a452 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token02.ets @@ -20,5 +20,5 @@ @MyAnno({testProperty1: "123"/* @@ label */; /* @@ label1 */testProperty2: 123}) class A{} -/* @@? 20:44 Error SyntaxError: Expected ',', got ';'. */ -/* @@? 20:44 Error SyntaxError: Identifier expected, got ';'. */ +/* @@@ label Error Syntax error ESY0230: Expected ',', got ';'. */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got ';'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token03.ets index 6ed09ff5329e85b2ada04060795afa4a0a6e4dd0..209171d51e029e50c29ac60682986f4773385630 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token03.ets @@ -20,7 +20,7 @@ @MyAnno({testProperty1: "123", testProperty2: 123/* @@ label */;/* @@ label1 */}) class A{} -/* @@? 20:2 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 20:64 Error SyntaxError: Expected ',', got ';'. */ -/* @@? 20:64 Error SyntaxError: Identifier expected, got ';'. */ -/* @@? 20:80 Error SyntaxError: Identifier expected, got '}'. */ +/* @@? 20:2 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label Error Syntax error ESY0230: Expected ',', got ';'. */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got ';'. */ +/* @@@ label1 Error Syntax error ESY0224: Identifier expected, got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token04.ets index 44730b44be644f563c713caf76cf382396764f2b..7933f1771270aea93392df3b92dc587215fe9f59 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token04.ets @@ -18,7 +18,7 @@ const invalidUsage1 = @Log("value")) ()=>{} -/* @@? 19:24 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 19:36 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:40 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 19:40 Error SyntaxError: Unexpected token. */ +/* @@? 19:24 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 19:36 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:40 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 19:40 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token05.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token05.ets index 8fefd099851bdb02cfc41fceac94460fad0e1925..9074143a0c1908ddeee3d18ea914df5b7702c8fe 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token05.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token05.ets @@ -18,7 +18,7 @@ const invalidUsage1 = @@Log("value") ()=>{} -/* @@? 19:23 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 19:25 Error SyntaxError: Unexpected token 'Log'. */ -/* @@? 19:40 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 19:40 Error SyntaxError: Unexpected token. */ +/* @@? 19:23 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@? 19:25 Error Syntax error ESY0227: Unexpected token 'Log'. */ +/* @@? 19:40 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 19:40 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_tmp.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_tmp.ets index 7173d03c9b6bd42d7bd5f63767fa6e99bb266ed0..03a0ec36fb00369ddb11c2cb29a1a82b80dbea88 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_tmp.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_tmp.ets @@ -22,6 +22,6 @@ class A{} @MyAnno(/* @@ label */new A()) class B{} -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_default_export.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_default_export.ets index c3dd9704f6909c8231cfec76d8a033e02b391966..b3853d2388ad06045be167f1211daae81d3af059 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_default_export.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_default_export.ets @@ -15,4 +15,4 @@ export default @/* @@ label */interface MyAnno {} -/* @@@ label Error SyntaxError: Can not export annotation default. */ +/* @@@ label Error Syntax error ESY0042: Can not export annotation default. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_export.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_export.ets index 7daa6f364a1dcc24e7ff4e3ead13da43443c85e4..a01d9daf138f23110cee8add3c881323cb41b6d0 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_export.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_export.ets @@ -17,4 +17,4 @@ export {MyAnno as /* @@ label */NA} @interface MyAnno{} -/* @@@ label Error SyntaxError: Can not rename annotation 'MyAnno' in export or import statements. */ +/* @@@ label Error Syntax error ESY0280: Can not rename annotation 'MyAnno' in export or import statements. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_import.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_import.ets index 06ee35b51dbf10b8d4d43373d351ef4024c44ff9..e15f55d267472dc6c431bf7ebe76ab98027dea9f 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_import.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_import.ets @@ -15,4 +15,4 @@ import {MyAnno as NA} from /* @@ label */"./annotation_export" -/* @@@ label Error TypeError: Can not rename annotation 'MyAnno' in export or import statements. */ +/* @@@ label Error Semantic error ESE0357: Can not rename annotation 'MyAnno' in export or import statements. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_usage_wrong_ref.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_usage_wrong_ref.ets index 6aa297c6185a40b8efca0fe980376453fc46353f..52d6058ec79ca7186318c258b60c50dabdcf3447 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_usage_wrong_ref.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_usage_wrong_ref.ets @@ -18,4 +18,4 @@ function foo() {} @/* @@ label */foo @interface anno {} -/* @@@ label Error TypeError: Cannot find type 'foo'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0371: Cannot find type 'foo'. */ diff --git a/ets2panda/test/ast/parser/ets/anonymous_class.ets b/ets2panda/test/ast/parser/ets/anonymous_class.ets index f277596205f0f49c2233922f4943759322652f76..48610206da1ea4e2969f2b98e132e679227ad840 100644 --- a/ets2panda/test/ast/parser/ets/anonymous_class.ets +++ b/ets2panda/test/ast/parser/ets/anonymous_class.ets @@ -20,5 +20,5 @@ class A { }; } -/* @@? 17:35 Error SyntaxError: Unexpected token '{'. */ -/* @@? 21:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:35 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/array_2.ets b/ets2panda/test/ast/parser/ets/array_2.ets index f949a62c20d12ba66be8e74514326f168709c2ba..4c54fdd6348fed081c6a0bb0c7403c21ee462676 100644 --- a/ets2panda/test/ast/parser/ets/array_2.ets +++ b/ets2panda/test/ast/parser/ets/array_2.ets @@ -15,7 +15,7 @@ let c: Double[] = [0.33 /* @@ label */0.66 0.99] -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@@ label Error SyntaxError: Unexpected token '0.66'. */ -/* @@? 16:44 Error SyntaxError: Unexpected token '0.99'. */ -/* @@? 16:48 Error SyntaxError: Unexpected token ']'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '0.66'. */ +/* @@? 16:44 Error Syntax error ESY0227: Unexpected token '0.99'. */ +/* @@? 16:48 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/array_literal_inference.ets b/ets2panda/test/ast/parser/ets/array_literal_inference.ets index 9ab410b887fe3c48ecaffd2c36e4e14e6b9dff44..36f40f0fd24693caf3cc518c2a4e3f6d52481693 100644 --- a/ets2panda/test/ast/parser/ets/array_literal_inference.ets +++ b/ets2panda/test/ast/parser/ets/array_literal_inference.ets @@ -17,4 +17,4 @@ function foo(): void { let b: [] = /* @@ label */[ 1 ] } -/* @@@ label Error TypeError: Initializer has 1 elements, but tuple requires 0 */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0231: Initializer has 1 elements, but tuple requires 0 */ diff --git a/ets2panda/test/ast/parser/ets/array_missing_element.ets b/ets2panda/test/ast/parser/ets/array_missing_element.ets index 0c7d5208318709383dda61f601a1d2b4b588fb0e..7ad07da7e201acef52b889b22ffc5ef1d8547178 100644 --- a/ets2panda/test/ast/parser/ets/array_missing_element.ets +++ b/ets2panda/test/ast/parser/ets/array_missing_element.ets @@ -17,8 +17,8 @@ function foo(): void { let b: (number|undefined)[] = [ 1, 2, 3, , 4, ] } -/* @@? 17:45 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:47 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:47 Error SyntaxError: Unexpected token '4'. */ -/* @@? 17:48 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:50 Error SyntaxError: Unexpected token ']'. */ +/* @@? 17:45 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:47 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:47 Error Syntax error ESY0227: Unexpected token '4'. */ +/* @@? 17:48 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:50 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/array_new_failed.ets b/ets2panda/test/ast/parser/ets/array_new_failed.ets index d851e069feab737eb87fdf747204f4aa8c194688..edf85b1b217c5725c65796cb5d378565156e4d60 100644 --- a/ets2panda/test/ast/parser/ets/array_new_failed.ets +++ b/ets2panda/test/ast/parser/ets/array_new_failed.ets @@ -17,4 +17,4 @@ function foo(): void { let a = new int[/* @@ label */5.1] } -/* @@@ label Error TypeError: Index fractional part should be zero. */ +/* @@@ label Error Semantic error ESE0197: Index fractional part should be zero. */ diff --git a/ets2panda/test/ast/parser/ets/array_type.ets b/ets2panda/test/ast/parser/ets/array_type.ets index 44f57bdbc23a0c4c5468ac982357460d98196ec0..788ad3f16cfd5da3124b13f4b9109ba97e89e781 100644 --- a/ets2panda/test/ast/parser/ets/array_type.ets +++ b/ets2panda/test/ast/parser/ets/array_type.ets @@ -24,7 +24,7 @@ class array_type { } } -/* @@@ label Error TypeError: Property 'a' might not have been initialized. */ -/* @@@ label1 Error TypeError: Property 'f' might not have been initialized. */ -/* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0280: Property 'a' might not have been initialized. */ +/* @@@ label1 Error Semantic error ESE0280: Property 'f' might not have been initialized. */ +/* @@@ label2 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label3 Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/array_union_type_not_contains_nullish_type.ets b/ets2panda/test/ast/parser/ets/array_union_type_not_contains_nullish_type.ets index 760389c8da6478c5f1cf1f2a0eef71f88b60fd63..05c02b516d4928a48177be4786f73e6f239865dd 100644 --- a/ets2panda/test/ast/parser/ets/array_union_type_not_contains_nullish_type.ets +++ b/ets2panda/test/ast/parser/ets/array_union_type_not_contains_nullish_type.ets @@ -21,4 +21,4 @@ class cls { } } -/* @@@ label Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@@ label Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ diff --git a/ets2panda/test/ast/parser/ets/arrow_1.ets b/ets2panda/test/ast/parser/ets/arrow_1.ets index dfb34413aa93a1793a89eebeb7228c7764c911d9..4feddfd1b4b0917813a7cf192de171ec8d90d8a3 100644 --- a/ets2panda/test/ast/parser/ets/arrow_1.ets +++ b/ets2panda/test/ast/parser/ets/arrow_1.ets @@ -27,4 +27,4 @@ let a: A = { } } -/* @@? 22:12 Error SyntaxError: Expected '=>', got ','. */ +/* @@? 22:12 Error Syntax error ESY0230: Expected '=>', got ','. */ diff --git a/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_1.ets b/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_1.ets index 83c44d1cf3d992c8ecd541a105992e7833f725c6..870bb192b48036e7d683e161211bf20ec9670387 100644 --- a/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_1.ets +++ b/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_1.ets @@ -17,5 +17,5 @@ function main(): void { /* @@ label1 */arktest.assertTrue(/* @@ label2 */"true") } -/* @@@ label1 Error TypeError: No matching call signature for assertTrue("true") */ -/* @@@ label2 Error TypeError: Type '"true"' is not compatible with type 'Boolean' at index 1 */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for assertTrue("true") */ +/* @@@ label2 Error Semantic error ESE0046: Type '"true"' is not compatible with type 'Boolean' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_2.ets b/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_2.ets index 30a3f6b53d887387e9767382e54efdda8d0c4d4c..4105654601a5862fd59982e7a717ae6250133f26 100644 --- a/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_2.ets +++ b/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_2.ets @@ -17,5 +17,5 @@ function main(): void { /* @@ label1 */arktest.assertTrue(/* @@ label2 */1) } -/* @@@ label1 Error TypeError: No matching call signature for assertTrue(Int) */ -/* @@@ label2 Error TypeError: Type 'Int' is not compatible with type 'Boolean' at index 1 */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for assertTrue(Int) */ +/* @@@ label2 Error Semantic error ESE0046: Type 'Int' is not compatible with type 'Boolean' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/assign-func-iface.ets b/ets2panda/test/ast/parser/ets/assign-func-iface.ets index b79b795449011a44e1e1431ae3845d1f0bc463c8..26f7a4d29cf7053cd61a8dfadb64f3e2db810180 100644 --- a/ets2panda/test/ast/parser/ets/assign-func-iface.ets +++ b/ets2panda/test/ast/parser/ets/assign-func-iface.ets @@ -17,5 +17,5 @@ interface Foo { /* @@ label */async foo/* @@ label1 */(): Promise; } -/* @@@ label Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@@ label1 Error SyntaxError: Private interface methods must have body. */ +/* @@@ label Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@@ label1 Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/assign_bad.ets b/ets2panda/test/ast/parser/ets/assign_bad.ets index 11de990c99fcf4f8600b370c2a5ed09c363cd88d..4a387ee80a7ed64c18a4bc8e4cc2d828724dd006 100644 --- a/ets2panda/test/ast/parser/ets/assign_bad.ets +++ b/ets2panda/test/ast/parser/ets/assign_bad.ets @@ -20,9 +20,9 @@ function main(): void { a := b; } -/* @@? 16:1 Error TypeError: Unresolved reference dim */ -/* @@? 16:5 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 16:5 Error TypeError: Unresolved reference a */ -/* @@? 20:6 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 20:6 Error SyntaxError: Unexpected token '='. */ -/* @@? 20:8 Error SyntaxError: Unexpected token 'b'. */ +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference dim */ +/* @@? 16:5 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 16:5 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 20:6 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 20:6 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 20:8 Error Syntax error ESY0227: Unexpected token 'b'. */ diff --git a/ets2panda/test/ast/parser/ets/assignment_non-functional_variable_to_functional_type.ets b/ets2panda/test/ast/parser/ets/assignment_non-functional_variable_to_functional_type.ets index 5886f5d01a8dca929aa8ee754fd565a0bc4f9969..a81e44373ef3d55f65c52fd3a6e627eab25f56b1 100644 --- a/ets2panda/test/ast/parser/ets/assignment_non-functional_variable_to_functional_type.ets +++ b/ets2panda/test/ast/parser/ets/assignment_non-functional_variable_to_functional_type.ets @@ -25,4 +25,4 @@ class Observable { } -/* @@@ label Error TypeError: Type 'Observable|undefined' cannot be assigned to type '() => Observable|undefined' */ +/* @@@ label Error Semantic error ESE0318: Type 'Observable|undefined' cannot be assigned to type '() => Observable|undefined' */ diff --git a/ets2panda/test/ast/parser/ets/assignment_non-functional_variable_to_functional_type_1.ets b/ets2panda/test/ast/parser/ets/assignment_non-functional_variable_to_functional_type_1.ets index 2d9c1d6732e590dfd41211ae8ce4749bedaf29ff..de3e3e1bb1dc84e80a95d5c37b767b547e4ce617 100644 --- a/ets2panda/test/ast/parser/ets/assignment_non-functional_variable_to_functional_type_1.ets +++ b/ets2panda/test/ast/parser/ets/assignment_non-functional_variable_to_functional_type_1.ets @@ -20,4 +20,4 @@ function main() a = /* @@ label */b } -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type '() => Int' */ +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type '() => Int' */ diff --git a/ets2panda/test/ast/parser/ets/assignment_with_wrong_type.ets b/ets2panda/test/ast/parser/ets/assignment_with_wrong_type.ets index 3f1ff3d168aa63ae5b5597cec64d4617b2807ed8..98d28a4d18d1c32e9665f1802cdb0291c721929a 100644 --- a/ets2panda/test/ast/parser/ets/assignment_with_wrong_type.ets +++ b/ets2panda/test/ast/parser/ets/assignment_with_wrong_type.ets @@ -26,4 +26,4 @@ function main() let b: B = /* @@ label */a } -/* @@@ label Error TypeError: Type '() => void' cannot be assigned to type 'B' */ +/* @@@ label Error Semantic error ESE0318: Type '() => void' cannot be assigned to type 'B' */ diff --git a/ets2panda/test/ast/parser/ets/asteriks_in_selective_binding.ets b/ets2panda/test/ast/parser/ets/asteriks_in_selective_binding.ets index 367d9d3f2bd41687028bb20349d7a4dc9d1db6f7..48fb3fb42bac7981db3fe4a9d5632ee68d7ec559 100644 --- a/ets2panda/test/ast/parser/ets/asteriks_in_selective_binding.ets +++ b/ets2panda/test/ast/parser/ets/asteriks_in_selective_binding.ets @@ -15,7 +15,7 @@ import { * } from './module'; -/* @@? 16:10 Error SyntaxError: The '*' token is not allowed as a selective binding (between braces). */ -/* @@? 16:10 Error SyntaxError: Unexpected token '*'. */ -/* @@? 16:14 Error TypeError: Unresolved reference from */ -/* @@? 16:19 Error SyntaxError: Unexpected token './module'. */ +/* @@? 16:10 Error Syntax error ESY0102: The '*' token is not allowed as a selective binding (between braces). */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token '*'. */ +/* @@? 16:14 Error Semantic error ESE0143: Unresolved reference from */ +/* @@? 16:19 Error Syntax error ESY0227: Unexpected token './module'. */ diff --git a/ets2panda/test/ast/parser/ets/async_abstract_bad.ets b/ets2panda/test/ast/parser/ets/async_abstract_bad.ets index e36a9069422536ac24e0f829044b166951b2ba2d..18db2cb7546d347067b6b70493a313e5206fa58b 100644 --- a/ets2panda/test/ast/parser/ets/async_abstract_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_abstract_bad.ets @@ -17,4 +17,4 @@ abstract class Foo { abstract async /* @@ label */foo(): Promise; } -/* @@@ label Error SyntaxError: Abstract method cannot be async. */ +/* @@@ label Error Syntax error ESY0118: Abstract method cannot be async. */ diff --git a/ets2panda/test/ast/parser/ets/async_ctor.ets b/ets2panda/test/ast/parser/ets/async_ctor.ets index 1ddb4cc81d471e3f3c6bd14357651efb45a6bf8b..479d86652220ce6fd0fa0c732f6be5f93e87469b 100644 --- a/ets2panda/test/ast/parser/ets/async_ctor.ets +++ b/ets2panda/test/ast/parser/ets/async_ctor.ets @@ -17,4 +17,4 @@ class Test { async /* @@ label */constructor() {} } -/* @@@ label Error SyntaxError: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ +/* @@@ label Error Syntax error ESY0201: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ diff --git a/ets2panda/test/ast/parser/ets/async_func_return_type_bad.ets b/ets2panda/test/ast/parser/ets/async_func_return_type_bad.ets index 9533580615a7152f06c5f3196ea18d545b2bd179..0c094a70439fd87bd4b084d2475a043f9474f6ec 100644 --- a/ets2panda/test/ast/parser/ets/async_func_return_type_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_func_return_type_bad.ets @@ -17,4 +17,4 @@ async function foo(): Promise { return /* @@ label */"abc"; } -/* @@@ label Error TypeError: Type '"abc"' is not compatible with the enclosing method's return type 'Promise | Int' */ +/* @@@ label Error Semantic error ESE0091: Type '"abc"' is not compatible with the enclosing method's return type 'Promise | Int' */ diff --git a/ets2panda/test/ast/parser/ets/async_function_bad.ets b/ets2panda/test/ast/parser/ets/async_function_bad.ets index d7c4a852b25b8e90f91677213358c186e36d53bd..8f1bc5bda4145e9e03b36d68d989c8ff8931c08c 100644 --- a/ets2panda/test/ast/parser/ets/async_function_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_function_bad.ets @@ -15,13 +15,13 @@ async native function foo(): Promise; -/* @@? 16:7 Error SyntaxError: 'async' flags must be used for functions only at top-level. */ -/* @@? 16:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:14 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 16:14 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:27 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:28 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 16:30 Error SyntaxError: Unexpected token 'Promise'. */ -/* @@? 16:30 Error SyntaxError: Class cannot be used as object. */ +/* @@? 16:7 Error Syntax error ESY0202: 'async' flags must be used for functions only at top-level. */ +/* @@? 16:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:14 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 16:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:27 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:28 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 16:30 Error Syntax error ESY0227: Unexpected token 'Promise'. */ +/* @@? 16:30 Error Syntax error ESY0318: Class cannot be used as object. */ diff --git a/ets2panda/test/ast/parser/ets/async_lambda_bad.ets b/ets2panda/test/ast/parser/ets/async_lambda_bad.ets index 702a26d0ced70fc76c75c67ee2f13ba02061e935..a94335ef44fe21d722394df16f3011defea39638 100644 --- a/ets2panda/test/ast/parser/ets/async_lambda_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_lambda_bad.ets @@ -15,4 +15,4 @@ let lambda: () => int = async /* @@ label */(): int => { return 1; } -/* @@@ label Error TypeError: Return type of async lambda must be 'Promise' */ +/* @@@ label Error Semantic error ESE0023: Return type of async lambda must be 'Promise' */ diff --git a/ets2panda/test/ast/parser/ets/async_method_bad.ets b/ets2panda/test/ast/parser/ets/async_method_bad.ets index 3e84247af818b2686db51ec994e8ca19f1b89dd1..e991569e09d91891a121e3ff2f4c330ec71c19f8 100644 --- a/ets2panda/test/ast/parser/ets/async_method_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_method_bad.ets @@ -17,6 +17,6 @@ class Test { public async native /* @@ label */bar(): Promise; } -/* @@@ label Error SyntaxError: Native method cannot be async. */ -/* @@? 17:46 Error TypeError: Type 'Promise' is generic but type argument were not provided. */ -/* @@? 17:42 Error TypeError: Return type of async function must be 'Promise'. */ +/* @@@ label Error Syntax error ESY0116: Native method cannot be async. */ +/* @@? 17:42 Error Semantic error ESE0001: Return type of async function must be 'Promise'. */ +/* @@? 17:46 Error Semantic error ESE0170: Type 'Promise' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/parser/ets/await_argument_null.ets b/ets2panda/test/ast/parser/ets/await_argument_null.ets index 9b7a14c21a652b69bb7b6964519a143d756cd44d..033a6e5b305c669c24fe34f1e74a0fc7ae698a62 100644 --- a/ets2panda/test/ast/parser/ets/await_argument_null.ets +++ b/ets2panda/test/ast/parser/ets/await_argument_null.ets @@ -18,5 +18,5 @@ async function foo(): Promise { return /* @@ label1 */null; } -/* @@@ label Error TypeError: 'await' expressions require Promise object as argument. */ -/* @@@ label1 Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ +/* @@@ label Error Semantic error ESE0303: 'await' expressions require Promise object as argument. */ +/* @@@ label1 Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ diff --git a/ets2panda/test/ast/parser/ets/await_object_bad.ets b/ets2panda/test/ast/parser/ets/await_object_bad.ets index 0b3bf805beece237b9a7d06af2d055d4cec640b1..648f657cdf07c218d0f78d5a7c2909ad2875abd2 100644 --- a/ets2panda/test/ast/parser/ets/await_object_bad.ets +++ b/ets2panda/test/ast/parser/ets/await_object_bad.ets @@ -18,5 +18,5 @@ async function foo(): Promise { return /* @@ label1 */null; } -/* @@@ label Error TypeError: 'await' expressions require Promise object as argument. */ -/* @@@ label1 Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ +/* @@@ label Error Semantic error ESE0303: 'await' expressions require Promise object as argument. */ +/* @@@ label1 Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ diff --git a/ets2panda/test/ast/parser/ets/await_promise_bad.ets b/ets2panda/test/ast/parser/ets/await_promise_bad.ets index d0ee72abbd50899c18e50cd7ebc25219c3dfe023..70a86c56b3494c68b7f60075808f16e534c4f4e9 100644 --- a/ets2panda/test/ast/parser/ets/await_promise_bad.ets +++ b/ets2panda/test/ast/parser/ets/await_promise_bad.ets @@ -18,5 +18,5 @@ async function foo(): Promise { return /* @@ label1 */null; } -/* @@@ label Error TypeError: 'await' expressions require Promise object as argument. */ -/* @@@ label1 Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ +/* @@@ label Error Semantic error ESE0303: 'await' expressions require Promise object as argument. */ +/* @@@ label1 Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ diff --git a/ets2panda/test/ast/parser/ets/call_expression_for_non_functional_type.ets b/ets2panda/test/ast/parser/ets/call_expression_for_non_functional_type.ets index fca951695d795059af2144eaf118d1360da68648..ad645c528fa35167114cf7634be3ab02d2d8a28a 100644 --- a/ets2panda/test/ast/parser/ets/call_expression_for_non_functional_type.ets +++ b/ets2panda/test/ast/parser/ets/call_expression_for_non_functional_type.ets @@ -27,5 +27,5 @@ function main() /* @@ label */b(1, 2) } -/* @@@ label Error TypeError: No static $_invoke method and static $_instantiate method in b. b() is not allowed. */ -/* @@@ label Error TypeError: Type 'Int' has no call signatures. */ +/* @@@ label Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in b. b() is not allowed. */ +/* @@@ label Error Semantic error ESE0002: Type 'Int' has no call signatures. */ diff --git a/ets2panda/test/ast/parser/ets/calls.ets b/ets2panda/test/ast/parser/ets/calls.ets index 13ed2d7b93d00f57cb7a5670632e256a28af807a..d48b6f75a4d466ccaa754d354179677a50aa12c4 100644 --- a/ets2panda/test/ast/parser/ets/calls.ets +++ b/ets2panda/test/ast/parser/ets/calls.ets @@ -26,4 +26,4 @@ function main(): void { foo(11); } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/cast_expressions10.ets b/ets2panda/test/ast/parser/ets/cast_expressions10.ets index 8ac8ebd670fa49383494ee20d84df9610dc2ad99..43de9eff071fc330b484eb5e9c1431438e94df2f 100644 --- a/ets2panda/test/ast/parser/ets/cast_expressions10.ets +++ b/ets2panda/test/ast/parser/ets/cast_expressions10.ets @@ -25,6 +25,6 @@ function main(): void { let Long_a: Long[][] = Int_a as Long[][]; } -/* @@? 19:30 Error TypeError: Cannot cast type 'Array>' to 'Array>' */ -/* @@? 20:25 Error TypeError: Cannot cast type 'Array>' to 'Array>' */ -/* @@? 25:26 Error TypeError: Cannot cast type 'Array>' to 'Array>' */ \ No newline at end of file +/* @@? 19:30 Error Semantic error ESE0326: Cannot cast type 'Array>' to 'Array>' */ +/* @@? 20:25 Error Semantic error ESE0326: Cannot cast type 'Array>' to 'Array>' */ +/* @@? 25:26 Error Semantic error ESE0326: Cannot cast type 'Array>' to 'Array>' */ diff --git a/ets2panda/test/ast/parser/ets/cast_expressions2.ets b/ets2panda/test/ast/parser/ets/cast_expressions2.ets index c624f52ae738db71dfb44d8a220c2636fae2be22..446b81f08ec501561cd1f32775a8dccd2b83d086 100644 --- a/ets2panda/test/ast/parser/ets/cast_expressions2.ets +++ b/ets2panda/test/ast/parser/ets/cast_expressions2.ets @@ -20,4 +20,4 @@ function narrowing_reference_test(): void { let A_ = new A(); let B_ = /* @@ label */A_ as B; } -/* @@@ label Error TypeError: Cannot cast type 'A' to 'B' */ +/* @@@ label Error Semantic error ESE0326: Cannot cast type 'A' to 'B' */ diff --git a/ets2panda/test/ast/parser/ets/cast_expressions7.ets b/ets2panda/test/ast/parser/ets/cast_expressions7.ets index 7247dfdf88ee5b60713d5c8811b88bf925291ace..19000b7fcb33c174cb2a479c4bb72e6ad3aedf87 100644 --- a/ets2panda/test/ast/parser/ets/cast_expressions7.ets +++ b/ets2panda/test/ast/parser/ets/cast_expressions7.ets @@ -27,6 +27,6 @@ function main(): void { let long_a: long[] = int_a as long[]; } -/* @@? 21:16 Error TypeError: Cannot cast type 'Array' to 'Array' */ -/* @@? 22:17 Error TypeError: Cannot cast type 'Array' to 'Array' */ -/* @@? 27:24 Error TypeError: Cannot cast type 'Array' to 'Array' */ \ No newline at end of file +/* @@? 21:16 Error Semantic error ESE0326: Cannot cast type 'Array' to 'Array' */ +/* @@? 22:17 Error Semantic error ESE0326: Cannot cast type 'Array' to 'Array' */ +/* @@? 27:24 Error Semantic error ESE0326: Cannot cast type 'Array' to 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/cast_expressions9.ets b/ets2panda/test/ast/parser/ets/cast_expressions9.ets index 02e25d9248dc7c65d461c79ccee78286e2c69a4f..fe00a1a6d76d06d6840bffe0cf3e60a87ecfacad 100644 --- a/ets2panda/test/ast/parser/ets/cast_expressions9.ets +++ b/ets2panda/test/ast/parser/ets/cast_expressions9.ets @@ -19,4 +19,4 @@ function main(): void { let long_a: long[][] = int_a as long[][]; } -/* @@? 19:26 Error TypeError: Cannot cast type 'Array>' to 'Array>' */ \ No newline at end of file +/* @@? 19:26 Error Semantic error ESE0326: Cannot cast type 'Array>' to 'Array>' */ diff --git a/ets2panda/test/ast/parser/ets/circular_class_extends.ets b/ets2panda/test/ast/parser/ets/circular_class_extends.ets index 4cac2e3719f03516fa733c496a5644d10b11e338..2aa16dbe0e71916694a5f9fbaccfb9812ccdf9b7 100644 --- a/ets2panda/test/ast/parser/ets/circular_class_extends.ets +++ b/ets2panda/test/ast/parser/ets/circular_class_extends.ets @@ -24,4 +24,4 @@ export { m }; // If you want to re-export the class from the namespace: export class c extends m.c {} -/* @@? 25:28 Error TypeError: Class's super type is itself */ +/* @@? 25:28 Error Semantic error ESE0380: Class's super type is itself */ diff --git a/ets2panda/test/ast/parser/ets/circular_in_class_functions.ets b/ets2panda/test/ast/parser/ets/circular_in_class_functions.ets index d128f8bccee0a32e9b22da38a5be5a09aa1c7e0b..4de063d3ff17985a56c4744e4b96ba35e0f2fe13 100644 --- a/ets2panda/test/ast/parser/ets/circular_in_class_functions.ets +++ b/ets2panda/test/ast/parser/ets/circular_in_class_functions.ets @@ -26,8 +26,8 @@ class Test { baz(a: Test, k: keyof Test) {} } -/* @@? 20:9 Error TypeError: No matching call signature for baz(Test, "*1*") */ -/* @@? 20:24 Error TypeError: Type '"*1*"' is not compatible with type '"foo"|"bar"|"baz"' at index 2 */ -/* @@? 23:9 Error TypeError: No matching call signature for baz(Test, "*2*") */ -/* @@? 23:21 Error TypeError: Type '"*2*"' is not compatible with type '"foo"|"bar"|"baz"' at index 2 */ -/* @@? 26:31 Error TypeError: Circular type of reference */ +/* @@? 20:9 Error Semantic error ESE0127: No matching call signature for baz(Test, "*1*") */ +/* @@? 20:24 Error Semantic error ESE0046: Type '"*1*"' is not compatible with type '"foo"|"bar"|"baz"' at index 2 */ +/* @@? 23:9 Error Semantic error ESE0127: No matching call signature for baz(Test, "*2*") */ +/* @@? 23:21 Error Semantic error ESE0046: Type '"*2*"' is not compatible with type '"foo"|"bar"|"baz"' at index 2 */ +/* @@? 26:31 Error Semantic error ESE0379: Circular type of reference */ diff --git a/ets2panda/test/ast/parser/ets/circular_type_in_alias.ets b/ets2panda/test/ast/parser/ets/circular_type_in_alias.ets index 09a0912afdb078b51efeb8e558a248d3b9c6d2fc..d664f95c6a268da4becde42fb3562ef7d993a615 100644 --- a/ets2panda/test/ast/parser/ets/circular_type_in_alias.ets +++ b/ets2panda/test/ast/parser/ets/circular_type_in_alias.ets @@ -17,20 +17,20 @@ type Loop> = { [P in keyof T]: U[P] extends boolean ? number : string; }; -/* @@? 16:24 Error TypeError: Circular type alias reference */ -/* @@? 16:38 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 17:6 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 17:10 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:16 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:18 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:18 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:19 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:22 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:23 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 17:24 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:26 Error SyntaxError: Unexpected token 'extends'. */ -/* @@? 17:34 Error SyntaxError: boolean is a predefined type, cannot be used as an identifier */ -/* @@? 17:42 Error SyntaxError: Unexpected token '?'. */ -/* @@? 17:44 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 17:51 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:53 Error SyntaxError: string is a predefined type, cannot be used as an identifier */ +/* @@? 16:24 Error Semantic error ESE0311: Circular type alias reference */ +/* @@? 16:38 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 17:6 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 17:10 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:16 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:18 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:22 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:23 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 17:24 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:26 Error Syntax error ESY0227: Unexpected token 'extends'. */ +/* @@? 17:34 Error Syntax error ESY0295: boolean is a predefined type, cannot be used as an identifier */ +/* @@? 17:42 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 17:44 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 17:51 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:53 Error Syntax error ESY0295: string is a predefined type, cannot be used as an identifier */ diff --git a/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets b/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets index f3b7579fd51a1e26cbc82f17157a013b409e6609..4ba9ad7f56c8dbdb1730065bc97d037ed3404d92 100644 --- a/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets +++ b/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets @@ -21,4 +21,4 @@ interface C extends B {} interface D extends C {} -/* @@? 16:11 Error TypeError: Cyclic inheritance involving A. */ +/* @@? 16:11 Error Semantic error ESE0310: Cyclic inheritance involving A. */ diff --git a/ets2panda/test/ast/parser/ets/class-instance-field-redeclaration.ets b/ets2panda/test/ast/parser/ets/class-instance-field-redeclaration.ets index 5724caccac56b6e47b75648daeaaed243d5b1a28..5fc7bcc06936051c48480684693ac7eea6bcf821 100644 --- a/ets2panda/test/ast/parser/ets/class-instance-field-redeclaration.ets +++ b/ets2panda/test/ast/parser/ets/class-instance-field-redeclaration.ets @@ -18,4 +18,4 @@ class C { /* @@ label */foo: int = 20; } -/* @@@ label Error TypeError: Variable 'foo' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'foo' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/class-static-field-redeclaration.ets b/ets2panda/test/ast/parser/ets/class-static-field-redeclaration.ets index 7951f410c99a0826dd9d00f62d92d5022f853a9c..1ab57edc32d875ae274e400d4111cd7adabeef9d 100644 --- a/ets2panda/test/ast/parser/ets/class-static-field-redeclaration.ets +++ b/ets2panda/test/ast/parser/ets/class-static-field-redeclaration.ets @@ -18,4 +18,4 @@ class C { static /* @@ label */foo: int = 20; } -/* @@@ label Error TypeError: Variable 'foo' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'foo' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets b/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets index d7118829e0c1ffd7227a1dfff28021bbac38b6c7..3577f98e7c243095de6368648910099d00b4a658 100644 --- a/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets +++ b/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets @@ -23,6 +23,6 @@ function main(): void { alma(C); } -/* @@? 23:10 Error TypeError: Class or interface 'C' cannot be used as object */ -/* @@? 23:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 23:5 Error TypeError: No matching call signature for alma(C) */ +/* @@? 23:5 Error Semantic error ESE0127: No matching call signature for alma(C) */ +/* @@? 23:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 23:10 Error Semantic error ESE0294: Class or interface 'C' cannot be used as object */ diff --git a/ets2panda/test/ast/parser/ets/class_as_object_1.ets b/ets2panda/test/ast/parser/ets/class_as_object_1.ets index e9d0cfa6ea03dee3f006ba2f56dda00e68c5e0e9..9fcc8ec8d296a2a64700eba1d828de9aa5c5bf5a 100644 --- a/ets2panda/test/ast/parser/ets/class_as_object_1.ets +++ b/ets2panda/test/ast/parser/ets/class_as_object_1.ets @@ -15,5 +15,6 @@ console.log(Object) -/* @@? 16:13 Error TypeError: Class or interface 'Object' cannot be used as object */ -/* @@? 16:13 Error TypeError: Class name can't be the argument of function or method. */ +/* @@? 16:13 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 16:13 Error Semantic error ESE0294: Class or interface 'Object' cannot be used as object */ +/* @@? 16:13 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ diff --git a/ets2panda/test/ast/parser/ets/class_composite_1.ets b/ets2panda/test/ast/parser/ets/class_composite_1.ets index c3a6a4f585f36b4ebb6dfb48f41520af39690457..73213ee1035ab98e258fd469b163ac25bea2df35 100644 --- a/ets2panda/test/ast/parser/ets/class_composite_1.ets +++ b/ets2panda/test/ast/parser/ets/class_composite_1.ets @@ -17,5 +17,5 @@ function main() : void { let x : boolean = {y: false}.y } -/* @@? 17:9 Error TypeError: Class composite must be constructed separately before referring their members. */ -/* @@? 17:23 Error TypeError: need to specify target type for class composite */ +/* @@? 17:9 Error Semantic error ESE0151: Class composite must be constructed separately before referring their members. */ +/* @@? 17:23 Error Semantic error ESE0062: need to specify target type for class composite */ diff --git a/ets2panda/test/ast/parser/ets/class_composite_invalid_target.ets b/ets2panda/test/ast/parser/ets/class_composite_invalid_target.ets index dcf98bfb30aa553154b813838ef5df2056894836..566b95253606171e8295a50353567f49ac85fd97 100644 --- a/ets2panda/test/ast/parser/ets/class_composite_invalid_target.ets +++ b/ets2panda/test/ast/parser/ets/class_composite_invalid_target.ets @@ -19,4 +19,4 @@ let obj: A = { x: 123 }; -/* @@? 18:14 Error TypeError: Target type for class composite needs to be an object type, found 'Double|Boolean' */ +/* @@? 18:14 Error Semantic error ESE0063: Target type for class composite needs to be an object type, found 'Double|Boolean' */ diff --git a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_1.ets b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_1.ets index 58848afbb6d896fced89ae8019f36584e52123c1..401f0700893d201f455ab0cc78a38162206492fb 100644 --- a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_1.ets +++ b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_1.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_2.ets b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_2.ets index f0052c09b0157dc0a0dfe53b6a6a98f42b59d75e..ea8180d7d462740becd57d62f4af8a6f7c8cf5d1 100644 --- a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_2.ets +++ b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_2.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_3.ets b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_3.ets index 837f0da4f068eb6d16afb8215294a601329c3a6e..90920bbbdf446b0429ed7b95cd76b700e53f1117 100644 --- a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_3.ets +++ b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_3.ets @@ -17,4 +17,4 @@ class A { /* @@ label */enum Color { Red, Green, Blue } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/class_keyword.ets b/ets2panda/test/ast/parser/ets/class_keyword.ets index f34d001a8c3e3270a960406e2c941dfabda5c726..e2a3b07ec6b667241c4d91a99d9a86f12ddc249c 100644 --- a/ets2panda/test/ast/parser/ets/class_keyword.ets +++ b/ets2panda/test/ast/parser/ets/class_keyword.ets @@ -17,9 +17,9 @@ final /* @@ label */kngkgj class /* @@ label1 */B /* @@ label2 */{ } -/* @@@ label Error SyntaxError: Unexpected token 'kngkgj'. */ -/* @@? 16:21 Error TypeError: Cannot find type 'kngkgj'. */ -/* @@? 16:21 Error TypeError: Class literal is not yet supported. */ -/* @@@ label1 Error SyntaxError: Unexpected token 'B'. */ -/* @@? 16:49 Error TypeError: Unresolved reference B */ -/* @@@ label2 Error SyntaxError: Unexpected token '{'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'kngkgj'. */ +/* @@@ label Error Semantic error ESE0371: Cannot find type 'kngkgj'. */ +/* @@@ label Error Semantic error ESE0020: Class literal is not yet supported. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'B'. */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference B */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_conflict_modifier.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_conflict_modifier.ets index f6d963475fc44e697b7b9d1ff935724d1161deb5..88816f558a6ec9050d1fcf7a1683f530f4d840c9 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_conflict_modifier.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_conflict_modifier.ets @@ -18,7 +18,7 @@ class A { f2!?:number } -/* @@? 17:7 Error SyntaxError: Conflicting modifiers '!' and '?' on field. */ -/* @@? 17:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 18:7 Error SyntaxError: Conflicting modifiers '!' and '?' on field. */ -/* @@? 18:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 17:7 Error Syntax error ESY0127: Conflicting modifiers '!' and '?' on field. */ +/* @@? 17:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 18:7 Error Syntax error ESY0127: Conflicting modifiers '!' and '?' on field. */ +/* @@? 18:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_01.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_01.ets index 7f42ec5dc782c39877807cf5e95eef0a2594d655..de340286c07944de43ddd8521c5de8fc65e4b6db 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_01.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_01.ets @@ -16,4 +16,4 @@ class A { f!: string = "abc" } -/* @@? 17:6 Error SyntaxError: Late-initialized field cannot have default value. */ +/* @@? 17:6 Error Syntax error ESY0304: Late-initialized field cannot have default value. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_02.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_02.ets index 14556b9e588b823a5ad84def4bdd177f9995f407..4a7720e259dad1955aaa2eb8b819213ced1621f2 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_02.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_02.ets @@ -17,7 +17,7 @@ interface A { f!: string = "abc" } -/* @@? 17:16 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ +/* @@? 17:16 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 17:18 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:18 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_03.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_03.ets index 5e773322d49f9279a92568f07921f9e750df5965..38b7579e0843dd6fed777e2bafd8c802ecd993b0 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_03.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_03.ets @@ -18,5 +18,5 @@ class B { f!: A = undefined; }; -/* @@? 18:6 Error SyntaxError: Late-initialized field cannot have default value. */ -/* @@? 18:9 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 18:6 Error Syntax error ESY0304: Late-initialized field cannot have default value. */ +/* @@? 18:9 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_01.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_01.ets index fc9d3639e59c44a1b3691072005f80a1c1cb85ee..65a640bc4302748919758cdfeb152b2b7fc3c67a 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_01.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_01.ets @@ -20,7 +20,7 @@ class A { f4!: number | null } -/* @@? 17:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 18:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 19:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 20:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ \ No newline at end of file +/* @@? 17:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 18:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 19:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 20:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_02.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_02.ets index 080bad8136ffec17c47c958f3a6d2393ca0d78b6..c2094e7021d57e2d1779bd958654508ed9ac5672 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_02.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_02.ets @@ -25,8 +25,8 @@ class B { f3!: T | null // cte } -/* @@? 17:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 18:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 19:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 24:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 25:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ \ No newline at end of file +/* @@? 17:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 18:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 19:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 24:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 25:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_03.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_03.ets index 59ae5937555ac3ca8d98d80e724be3f11176ebba..2bb5f28a57b49cb849a07439d109d398434ba82c 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_03.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_03.ets @@ -33,5 +33,5 @@ class E extends A{ f1!: T // cte } -/* @@? 17:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 33:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 17:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 33:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_04.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_04.ets index 876ca3f3af1b4b292e6f6fe7f22e7f438b470553..37daceb5ce781c1c515e8ea39b84dcdd731597c3 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_04.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_04.ets @@ -34,4 +34,4 @@ class E implements A{ } -/* @@? 33:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 33:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ diff --git a/ets2panda/test/ast/parser/ets/class_optional_property.ets b/ets2panda/test/ast/parser/ets/class_optional_property.ets index a0c0ea28577b0444f7d3f5e04c35130c480b6d4e..3ac70e808d57278ed0dbd6c6042a6138007ccfe6 100644 --- a/ets2panda/test/ast/parser/ets/class_optional_property.ets +++ b/ets2panda/test/ast/parser/ets/class_optional_property.ets @@ -17,4 +17,4 @@ class A { applyNormalAttribute ?: () => void = /* @@ label */1 } -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type '() => void|undefined' */ +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type '() => void|undefined' */ diff --git a/ets2panda/test/ast/parser/ets/class_property_access.ets b/ets2panda/test/ast/parser/ets/class_property_access.ets index a233467157ee54969803843fc8c2596c5be34f56..37be58c9ce15aa1ef47548422a6fc7ccc3aa8397 100644 --- a/ets2panda/test/ast/parser/ets/class_property_access.ets +++ b/ets2panda/test/ast/parser/ets/class_property_access.ets @@ -25,4 +25,4 @@ class outer { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/class_static_late_initialization_assignment_error.ets b/ets2panda/test/ast/parser/ets/class_static_late_initialization_assignment_error.ets index 2dd6dec533f97610e1990cbf7bd84c3311b761a6..3febbd62d9a92c001bbe29ce47a7570c17f27628 100644 --- a/ets2panda/test/ast/parser/ets/class_static_late_initialization_assignment_error.ets +++ b/ets2panda/test/ast/parser/ets/class_static_late_initialization_assignment_error.ets @@ -17,4 +17,4 @@ class A{ static f!:string } -/* @@? 17:13 Error SyntaxError: Late-initialized field cannot be defined as static. */ +/* @@? 17:13 Error Syntax error ESY0303: Late-initialized field cannot be defined as static. */ diff --git a/ets2panda/test/ast/parser/ets/class_variable_empty.ets b/ets2panda/test/ast/parser/ets/class_variable_empty.ets index cb91389b8db3d6d4c1d3554615ab4cf364381efa..b3a82dd8b8487c38942e1f272435185ff4ea36fa 100644 --- a/ets2panda/test/ast/parser/ets/class_variable_empty.ets +++ b/ets2panda/test/ast/parser/ets/class_variable_empty.ets @@ -21,7 +21,7 @@ function main(): void { } arktest.assertTrue(a != null) } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ -/* @@? 22:22 Error TypeError: Unresolved reference a */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 22:22 Error Semantic error ESE0143: Unresolved reference a */ diff --git a/ets2panda/test/ast/parser/ets/comma_only_in_for.ets b/ets2panda/test/ast/parser/ets/comma_only_in_for.ets index 049e5d2b5670040165073ca76becc3c44cc2502a..6167219db9ca85288d3a1047640e8dfd9d68fcb1 100644 --- a/ets2panda/test/ast/parser/ets/comma_only_in_for.ets +++ b/ets2panda/test/ast/parser/ets/comma_only_in_for.ets @@ -16,4 +16,4 @@ let x = 0 x = (++x/* @@ label */, x++) -/* @@@ label Error SyntaxError: Comma operator is supported only in 'for' loops. */ +/* @@@ label Error Syntax error ESY133681: Comma operator is supported only in 'for' loops. */ diff --git a/ets2panda/test/ast/parser/ets/comma_only_in_for_2.ets b/ets2panda/test/ast/parser/ets/comma_only_in_for_2.ets index 4b39ce75341e138ad75365c91d09828ac6f915ba..e7e44669ec6958fecb7658e0c57987603eedecab 100644 --- a/ets2panda/test/ast/parser/ets/comma_only_in_for_2.ets +++ b/ets2panda/test/ast/parser/ets/comma_only_in_for_2.ets @@ -16,4 +16,4 @@ let x = 10 let y = (x++/* @@ label */, 2, 44, x+10) -/* @@@ label Error SyntaxError: Comma operator is supported only in 'for' loops. */ +/* @@@ label Error Syntax error ESY133681: Comma operator is supported only in 'for' loops. */ diff --git a/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets b/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets index 9b252bca1823743b16df1aea7bd63f8fad26182c..f652cf45a80964cdeafe7a3a99be66bdc7c3ea0c 100644 --- a/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets +++ b/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets @@ -31,5 +31,5 @@ function main(): void { } } -/* @@@ label1 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Int' */ -/* @@? 25:33 Error TypeError: Switch case type 'double' is not comparable to discriminant type 'int' */ +/* @@@ label1 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int' */ +/* @@? 25:33 Error Semantic error ESE0262: Switch case type 'double' is not comparable to discriminant type 'int' */ diff --git a/ets2panda/test/ast/parser/ets/constant_expression_divide_zero.ets b/ets2panda/test/ast/parser/ets/constant_expression_divide_zero.ets index 56d7728f427cc0275cd0fb1f19d53fc1e40b6134..efb7e7164bf46fb177d3f05753512522fc9c38dc 100644 --- a/ets2panda/test/ast/parser/ets/constant_expression_divide_zero.ets +++ b/ets2panda/test/ast/parser/ets/constant_expression_divide_zero.ets @@ -25,5 +25,5 @@ enum Color { } -/* @@? 20:14 Error SyntaxError: Division by zero is not allowed. */ -/* @@? 24:11 Error SyntaxError: Division by zero is not allowed. */ +/* @@? 20:14 Error Syntax error ESY0273: Division by zero is not allowed. */ +/* @@? 24:11 Error Syntax error ESY0273: Division by zero is not allowed. */ diff --git a/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets b/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets index b5087a482b4b6bc37b878d3be1d44f53cddc0e35..e38955d9b09914eea1ff1ce7ce16ac662019d96f 100644 --- a/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets +++ b/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets @@ -18,4 +18,4 @@ class Person { } type PersonCtor = new (name: string, age: number) => Person -/* @@? 19:1 Error SyntaxError: Constructor function types are not supported. */ +/* @@? 19:1 Error Syntax error ESY93489: Constructor function types are not supported. */ diff --git a/ets2panda/test/ast/parser/ets/constructor_default_super.ets b/ets2panda/test/ast/parser/ets/constructor_default_super.ets index cc891353b46039ce1eabf52734ff36a98c72991b..494d03daa1691630cb735e8cc03fe7f4f6a7ea59 100644 --- a/ets2panda/test/ast/parser/ets/constructor_default_super.ets +++ b/ets2panda/test/ast/parser/ets/constructor_default_super.ets @@ -20,4 +20,4 @@ class Base { class Derived extends Base { } // Discussion about change that phrase #23218 -/* @@? 20:29 Error TypeError: Must call super constructor */ +/* @@? 20:29 Error Semantic error ESE0192: Must call super constructor */ diff --git a/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets b/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets index 394fe76b37fdec51866c7b2f685169df55b9892a..943ef167c9163a33b5da457cbef2b6d1cfd5823d 100644 --- a/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets +++ b/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets @@ -17,4 +17,4 @@ class A { constructor() } -/* @@? 17:14 Error TypeError: Only abstract or native methods can't have body. */ +/* @@? 17:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ diff --git a/ets2panda/test/ast/parser/ets/constructor_super_call2.ets b/ets2panda/test/ast/parser/ets/constructor_super_call2.ets index d97df6e49e418120b7fb6150fce0d6dc87e43536..f23e3e12dbe00a7905db09e646fd4c0ecf74a9cb 100644 --- a/ets2panda/test/ast/parser/ets/constructor_super_call2.ets +++ b/ets2panda/test/ast/parser/ets/constructor_super_call2.ets @@ -23,4 +23,4 @@ class B extends A { } } -/* @@@ label Error TypeError: Must call super constructor */ +/* @@@ label Error Semantic error ESE0192: Must call super constructor */ diff --git a/ets2panda/test/ast/parser/ets/constructor_type_inference_crash.ets b/ets2panda/test/ast/parser/ets/constructor_type_inference_crash.ets index d31d7c3e7a9b63085039b91a46b9988c1aaa4024..dc93ddc95ebaa95a5b0e87591c6205fb3e2d163c 100644 --- a/ets2panda/test/ast/parser/ets/constructor_type_inference_crash.ets +++ b/ets2panda/test/ast/parser/ets/constructor_type_inference_crash.ets @@ -20,8 +20,7 @@ class C { } let c = new C(10, 'foo'); -/* @@? 17:14 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 19:3 Error TypeError: No matching call signature for constructor */ -/* @@? 19:19 Error TypeError: Cannot find type 'any'. */ -/* @@? 19:28 Error TypeError: Cannot find type 'any'. */ - +/* @@? 17:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 19:3 Error Semantic error ESE0204: No matching call signature for constructor */ +/* @@? 19:19 Error Semantic error ESE0371: Cannot find type 'any'. */ +/* @@? 19:28 Error Semantic error ESE0371: Cannot find type 'any'. */ diff --git a/ets2panda/test/ast/parser/ets/constructor_with_return_1.ets b/ets2panda/test/ast/parser/ets/constructor_with_return_1.ets index c394db03094bcf8bd8813ccc22d1640fc9297829..243808f0d223afe74a84043baee99fcc8587ebcc 100644 --- a/ets2panda/test/ast/parser/ets/constructor_with_return_1.ets +++ b/ets2panda/test/ast/parser/ets/constructor_with_return_1.ets @@ -22,4 +22,4 @@ class A { } } -/* @@@ label Error TypeError: Return statement with expression isn't allowed in constructor. */ +/* @@@ label Error Semantic error ESE0033: Return statement with expression isn't allowed in constructor. */ diff --git a/ets2panda/test/ast/parser/ets/constructor_with_return_3.ets b/ets2panda/test/ast/parser/ets/constructor_with_return_3.ets index c0275b2ad59e14d1084250b778ab3598d258cfb2..1fdb45fb47c23992b64d6796d9ebd2e93b5a34c7 100644 --- a/ets2panda/test/ast/parser/ets/constructor_with_return_3.ets +++ b/ets2panda/test/ast/parser/ets/constructor_with_return_3.ets @@ -22,4 +22,4 @@ class A { } } -/* @@@ label Error SyntaxError: Type annotation isn't allowed for constructor. */ +/* @@@ label Error Syntax error ESY0140: Type annotation isn't allowed for constructor. */ diff --git a/ets2panda/test/ast/parser/ets/constructors.ets b/ets2panda/test/ast/parser/ets/constructors.ets index 7a9155c4706e5c26221d1897cfdb1ec6242a32d4..cbb135822a943846102bb54a57d61fc67c02e129 100644 --- a/ets2panda/test/ast/parser/ets/constructors.ets +++ b/ets2panda/test/ast/parser/ets/constructors.ets @@ -34,4 +34,4 @@ class I1 extends /* @@ label */I { } } -/* @@@ label Error TypeError: Cannot inherit with 'final' modifier. */ +/* @@@ label Error Semantic error ESE0178: Cannot inherit with 'final' modifier. */ diff --git a/ets2panda/test/ast/parser/ets/cycle_constructor.ets b/ets2panda/test/ast/parser/ets/cycle_constructor.ets index 39de52dd4507d888caeffb117e4955f3b9161270..26a13e3ef36e9d3854f3955a87c9fd0fc7cd4cef 100644 --- a/ets2panda/test/ast/parser/ets/cycle_constructor.ets +++ b/ets2panda/test/ast/parser/ets/cycle_constructor.ets @@ -29,7 +29,7 @@ class B extends A { } } -/* @@? 28:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 28:9 Error TypeError: No matching call signature for cycle_constructor.B(Int) */ -/* @@? 28:9 Error TypeError: No matching call signature for constructor */ -/* @@? 28:14 Error TypeError: Using super is not allowed in constructor */ \ No newline at end of file +/* @@? 28:9 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 28:9 Error Semantic error ESE0127: No matching call signature for cycle_constructor.B(Int) */ +/* @@? 28:9 Error Semantic error ESE0204: No matching call signature for constructor */ +/* @@? 28:14 Error Semantic error ESE0235: Using super is not allowed in constructor */ diff --git a/ets2panda/test/ast/parser/ets/decl_in_param.ets b/ets2panda/test/ast/parser/ets/decl_in_param.ets index 39e7ac9b8f22cb6f5796d6ff0e57cd8a085c4823..9490d35972b3e0250df40874256daeb9773a9897 100644 --- a/ets2panda/test/ast/parser/ets/decl_in_param.ets +++ b/ets2panda/test/ast/parser/ets/decl_in_param.ets @@ -19,6 +19,6 @@ class C{ constructor(public m:number) {} m(public x:number) {} } -/* @@? 16:12 Error SyntaxError: Declaring fields in parameter list is not supported */ -/* @@? 19:17 Error SyntaxError: Declaring fields in parameter list is not supported */ -/* @@? 20:7 Error SyntaxError: Declaring fields in parameter list is not supported */ +/* @@? 16:12 Error Syntax error ESY0319: Declaring fields in parameter list is not supported */ +/* @@? 19:17 Error Syntax error ESY0319: Declaring fields in parameter list is not supported */ +/* @@? 20:7 Error Syntax error ESY0319: Declaring fields in parameter list is not supported */ diff --git a/ets2panda/test/ast/parser/ets/declare_ambient_context.ets b/ets2panda/test/ast/parser/ets/declare_ambient_context.ets index f7284c2aee5079dbf8a3aca94887a2e31a0dfd61..126f79154ca0b71463e195b114c3b57679230b86 100644 --- a/ets2panda/test/ast/parser/ets/declare_ambient_context.ets +++ b/ets2panda/test/ast/parser/ets/declare_ambient_context.ets @@ -17,4 +17,4 @@ declare namespace A{ declare function foo(): void } -/* @@? 17:5 Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ +/* @@? 17:5 Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ diff --git a/ets2panda/test/ast/parser/ets/declare_annotation.ets b/ets2panda/test/ast/parser/ets/declare_annotation.ets index ba73fcc9baeb39b9f037ef4395bdaca852d3a71b..0470cdfd3361f790a3713bcb4982f604f1a23d62 100644 --- a/ets2panda/test/ast/parser/ets/declare_annotation.ets +++ b/ets2panda/test/ast/parser/ets/declare_annotation.ets @@ -27,12 +27,12 @@ class A{ @ClassAuthor({authorName: "22"}) foo3() -/* @@? 17:7 Error SyntaxError: Missing type annotation for property 'au'. */ -/* @@? 17:7 Error SyntaxError: Identifier expected, got '`'. */ -/* @@? 21:6 Error TypeError: The required field 'au' must be specified. Fields without default values cannot be omitted. */ -/* @@? 24:6 Error TypeError: Annotation 'ClassAuthor' requires multiple fields to be specified. */ -/* @@? 24:18 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ -/* @@? 27:6 Error TypeError: The required field 'au' must be specified. Fields without default values cannot be omitted. */ -/* @@? 27:19 Error TypeError: The parameter 'authorName' does not match any declared property in the annotation 'ClassAuthor'. */ -/* @@? 28:9 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 39:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 17:7 Error Syntax error ESY0001: Missing type annotation for property 'au'. */ +/* @@? 17:7 Error Syntax error ESY0224: Identifier expected, got '`'. */ +/* @@? 21:6 Error Semantic error ESE0044: The required field 'au' must be specified. Fields without default values cannot be omitted. */ +/* @@? 24:6 Error Semantic error ESE0043: Annotation 'ClassAuthor' requires multiple fields to be specified. */ +/* @@? 24:18 Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ +/* @@? 27:6 Error Semantic error ESE0044: The required field 'au' must be specified. Fields without default values cannot be omitted. */ +/* @@? 27:19 Error Semantic error ESE0045: The parameter 'authorName' does not match any declared property in the annotation 'ClassAuthor'. */ +/* @@? 28:9 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 39:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_1.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_1.ets index 29c95eb7e73edeec0489647523271cf63834cc9b..19b18119d5625fa61575d03a819acbf2d45f3986 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_1.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_1.ets @@ -18,6 +18,6 @@ declare class A { /* @@ label */foo(p: string): double; } -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 17:18 Error TypeError: Initializers are not allowed in ambient contexts: f1 */ -/* @@? 17:18 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 17:18 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: f1 */ +/* @@? 17:18 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_2.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_2.ets index 43605d1ef97d6263967ee1b7b33d3b5db4d94aac..d9bb1e190a7323ce19d3996d87a768d60320f705 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_2.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_2.ets @@ -18,4 +18,4 @@ declare class A { foo(p: string): void /* @@ label */{} } -/* @@@ label Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_3.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_3.ets index d826e1d2056cd8c841cffd2ee8f069977b7ca548..e58a24fbf7d0fb52029186bef3fa6fb12d031856 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_3.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_3.ets @@ -18,6 +18,6 @@ declare class A { /* @@ label */static foo(p: string): double; } -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 17:25 Error TypeError: Initializers are not allowed in ambient contexts: f1 */ -/* @@? 17:25 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 17:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: f1 */ +/* @@? 17:25 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_4.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_4.ets index 6169ced07bc6854caca039b21ccfe1a5620d38ad..1917ab827055d6f6dcde6b13378fab13166f84f5 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_4.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_4.ets @@ -18,4 +18,4 @@ declare class A { static foo(p: string): void /* @@ label */{} } -/* @@@ label Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_5.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_5.ets index 00ddb7fdf773c11ce5a5d45b69280faee3adc777..3b9c3857ee541a2f7e1ab342e09f08fdbe5a90b3 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_5.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_5.ets @@ -50,15 +50,15 @@ declare class E { internal [index: number]: number } -/* @@? 17:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 18:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 19:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 20:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 21:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 22:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 23:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 24:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 38:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 42:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 46:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 50:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ \ No newline at end of file +/* @@? 17:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 18:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 19:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 20:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 21:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 22:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 23:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 24:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 38:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 42:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 46:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 50:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ diff --git a/ets2panda/test/ast/parser/ets/declare_class_neg.ets b/ets2panda/test/ast/parser/ets/declare_class_neg.ets index 9426627656abb696ad89feccf9518d102251c1c2..ed2c0eda3df311883ea71ab6ea365838638c388b 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_neg.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_neg.ets @@ -19,6 +19,6 @@ declare class A { class B { declare/* @@ label1 */ constructor() } -/* @@? 17:10 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:10 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:37 Error TypeError: Only abstract or native methods can't have body. */ +/* @@? 17:10 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:10 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:37 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ diff --git a/ets2panda/test/ast/parser/ets/declare_func_bad.ets b/ets2panda/test/ast/parser/ets/declare_func_bad.ets index e237b1dc8bebfb3371251b00dc23fbe6f1bcf802..6448cc3ca81ab190e2bd90955d5b2b9ad77946d8 100644 --- a/ets2panda/test/ast/parser/ets/declare_func_bad.ets +++ b/ets2panda/test/ast/parser/ets/declare_func_bad.ets @@ -15,4 +15,4 @@ declare function foo(p: string): void /* @@ label */{} -/* @@@ label Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/declare_namespace_5.ets b/ets2panda/test/ast/parser/ets/declare_namespace_5.ets index 0b586d7dafcea2a6f641907604702a9f9197c101..2b9367dea1d33c07efa627f680c09d4372884c9b 100644 --- a/ets2panda/test/ast/parser/ets/declare_namespace_5.ets +++ b/ets2panda/test/ast/parser/ets/declare_namespace_5.ets @@ -48,12 +48,12 @@ class B { } } -/* @@? 17:5 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 18:9 Error TypeError: Unresolved reference dfdfsfdf */ -/* @@? 20:5 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 23:20 Error TypeError: Unresolved reference foo */ -/* @@? 27:11 Error TypeError: Property 'getInstance' does not exist on type 'B' */ -/* @@? 36:5 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 38:13 Error SyntaxError: Field type annotation expected. */ -/* @@? 39:20 Error TypeError: This expression is not callable. */ -/* @@? 43:11 Error TypeError: Property 'getInstance' does not exist on type 'B' */ +/* @@? 17:5 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 18:9 Error Semantic error ESE0143: Unresolved reference dfdfsfdf */ +/* @@? 20:5 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 23:20 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 27:11 Error Semantic error ESE0087: Property 'getInstance' does not exist on type 'B' */ +/* @@? 36:5 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 38:13 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 39:20 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 43:11 Error Semantic error ESE0087: Property 'getInstance' does not exist on type 'B' */ diff --git a/ets2panda/test/ast/parser/ets/default_parameter2.ets b/ets2panda/test/ast/parser/ets/default_parameter2.ets index be81d6ef8449081a84985e1bb611a482fc3de737..d1c9e2323c526018304fb1fab515a489663f6825 100644 --- a/ets2panda/test/ast/parser/ets/default_parameter2.ets +++ b/ets2panda/test/ast/parser/ets/default_parameter2.ets @@ -28,5 +28,5 @@ function foo(a : int) : int return a; } -/* @@@ label Error TypeError: Expected 1 arguments, got 0. */ -/* @@@ label Error TypeError: No matching call signature */ +/* @@@ label Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/default_parameter3.ets b/ets2panda/test/ast/parser/ets/default_parameter3.ets index 80c76508f8a0a8e3b18f3bd1bc9ff341ff6df977..ee78a9b90f304724e06d340b2ec680919e51503a 100644 --- a/ets2panda/test/ast/parser/ets/default_parameter3.ets +++ b/ets2panda/test/ast/parser/ets/default_parameter3.ets @@ -18,4 +18,4 @@ function foo(a : int = 10, /* @@ label */b : int, c : int = 15) : int return a + b; } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter. */ +/* @@@ label Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ diff --git a/ets2panda/test/ast/parser/ets/differentTypeCompare.ets b/ets2panda/test/ast/parser/ets/differentTypeCompare.ets index 445b9063bde45cb0ae806160c22c423986ba8cd7..41dd14bccdc30ab1110367c26455547c68835c91 100644 --- a/ets2panda/test/ast/parser/ets/differentTypeCompare.ets +++ b/ets2panda/test/ast/parser/ets/differentTypeCompare.ets @@ -23,4 +23,4 @@ function main(): void { foo(/* @@ label */a == b); } -/* @@@ label Error TypeError: Operator '==' cannot be applied to types '"alma"' and 'Int'. */ +/* @@@ label Error Semantic error ESE0105: Operator '==' cannot be applied to types '"alma"' and 'Int'. */ diff --git a/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets b/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets index c8ac00947b7ac426aeed4d561b90ed2f78b657c3..3cb0f0f45ccf558d26249fe5a160082459043106 100644 --- a/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets +++ b/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets @@ -17,4 +17,4 @@ const PI314 = 3.14 function /* @@ label */PI314(): double { return 3.14 } -/* @@@ label Error TypeError: Variable 'PI314' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'PI314' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/do_while.ets b/ets2panda/test/ast/parser/ets/do_while.ets index a0256a02dc90595b88b4f306486badc062f2360b..7c9e2a69b848c83ca97cc1ebf554bfe17270cbea 100644 --- a/ets2panda/test/ast/parser/ets/do_while.ets +++ b/ets2panda/test/ast/parser/ets/do_while.ets @@ -15,9 +15,9 @@ do a -/* @@? 16:4 Error TypeError: Unresolved reference a */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected 'while'. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 24:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 24:1 Error SyntaxError: Missing condition in do while statement */ -/* @@? 24:1 Error SyntaxError: Expected ')', got 'end of stream'. */ +/* @@? 16:4 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 24:1 Error Syntax error ESY0228: Unexpected token, expected 'while'. */ +/* @@? 24:1 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 24:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 24:1 Error Syntax error ESY0301: Missing condition in do while statement */ +/* @@? 24:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/do_while_with_empty_body.ets b/ets2panda/test/ast/parser/ets/do_while_with_empty_body.ets index 9edf5999e6b1b07060ae2678c603e7fedcbea118..c259139fc2e3b2a9b4852d5486a8dadc94182087 100644 --- a/ets2panda/test/ast/parser/ets/do_while_with_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/do_while_with_empty_body.ets @@ -16,11 +16,11 @@ do export Boolean [1] = delete while(true) -/* @@? 16:4 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 16:4 Error SyntaxError: Missing body in do while statement */ -/* @@? 16:4 Error SyntaxError: Unexpected token, expected 'while'. */ -/* @@? 16:12 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 16:20 Error SyntaxError: Invalid left-hand side in array destructuring pattern. */ -/* @@? 16:20 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 17:4 Error SyntaxError: Expected ')', got 'while'. */ -/* @@? 27:1 Error SyntaxError: Unexpected token 'end of stream'. */ +/* @@? 16:4 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 16:4 Error Syntax error ESY0300: Missing body in do while statement */ +/* @@? 16:4 Error Syntax error ESY0228: Unexpected token, expected 'while'. */ +/* @@? 16:12 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 16:20 Error Syntax error ESY0204: Invalid left-hand side in array destructuring pattern. */ +/* @@? 16:20 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 17:4 Error Syntax error ESY0230: Expected ')', got 'while'. */ +/* @@? 27:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/do_while_with_empty_condition.ets b/ets2panda/test/ast/parser/ets/do_while_with_empty_condition.ets index afaa9713f487bc5088e27f613bb2fb79a0974bec..eb85c1087a43e077dc24820b25372bacf9135b8b 100644 --- a/ets2panda/test/ast/parser/ets/do_while_with_empty_condition.ets +++ b/ets2panda/test/ast/parser/ets/do_while_with_empty_condition.ets @@ -16,6 +16,6 @@ do {} while() -/* @@? 17:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:1 Error SyntaxError: Missing condition in do while statement */ -/* @@? 22:1 Error SyntaxError: Expected ')', got 'end of stream'. */ +/* @@? 17:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 22:1 Error Syntax error ESY0301: Missing condition in do while statement */ +/* @@? 22:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_setter_supposed_to_fail.ets b/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_setter_supposed_to_fail.ets index 9ed1927382bd160f75a208d7e0a37425268e8812..6b83a58b26696eae7f0bc2b95ba9e99e642e7c31 100644 --- a/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_setter_supposed_to_fail.ets +++ b/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_setter_supposed_to_fail.ets @@ -17,10 +17,10 @@ interface Test { set color(s: string)() } -/* @@? 17:25 Error SyntaxError: Unexpected token '('. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:26 Error SyntaxError: Identifier expected. */ -/* @@? 17:26 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:26 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token '('. */ +/* @@? 17:25 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:25 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:26 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:26 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:26 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_supposed_to_fail.ets b/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_supposed_to_fail.ets index db487af18710dae48c4d47bd7e2344022f6913c0..1aa9247117648585d18ae1d0d2bf190a09741215 100644 --- a/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_supposed_to_fail.ets +++ b/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_supposed_to_fail.ets @@ -18,11 +18,11 @@ interface Test { proc()() // throws SyntaxError } -/* @@? 18:5 Error TypeError: Function proc is already declared. */ -/* @@? 18:11 Error SyntaxError: Unexpected token '('. */ -/* @@? 18:11 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:11 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:12 Error SyntaxError: Identifier expected. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 19:1 Error SyntaxError: Identifier expected. */ +/* @@? 18:5 Error Semantic error ESE0130: Function proc is already declared. */ +/* @@? 18:11 Error Syntax error ESY0227: Unexpected token '('. */ +/* @@? 18:11 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:11 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:12 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:12 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:12 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 19:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/duplicated_identifier.ets b/ets2panda/test/ast/parser/ets/duplicated_identifier.ets index b36f9db2dfe8b309828223807620c75b323ab72e..b378b676d0ec005def5cbcfcbffa930798b523fc 100644 --- a/ets2panda/test/ast/parser/ets/duplicated_identifier.ets +++ b/ets2panda/test/ast/parser/ets/duplicated_identifier.ets @@ -20,4 +20,4 @@ export class testGC{ } } -/* @@? 16:23 Error TypeError: Identifier 'testGC' has already been declared. */ +/* @@? 16:23 Error Semantic error ESE0369: Identifier 'testGC' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_ctor_decl_import_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_ctor_decl_import_bad.ets index 15a984dc8f63a08467238342facaa8ad9dd54f3c..646b7af720d9b4eda2a26f3975121af49ec9e1ea 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_ctor_decl_import_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_ctor_decl_import_bad.ets @@ -23,6 +23,6 @@ function main(): void { let x = new A("abc", 10) } -/* @@? 23:13 Error TypeError: Expected 0 arguments, got 2. */ -/* @@? 23:13 Error TypeError: No matching construct signature for module.A("abc", Int) */ -/* @@? 23:19 Error TypeError: Type '"abc"' is not compatible with type 'Double' at index 1 */ +/* @@? 23:13 Error Semantic error ESE0124: Expected 0 arguments, got 2. */ +/* @@? 23:13 Error Semantic error ESE0127: No matching construct signature for module.A("abc", Int) */ +/* @@? 23:19 Error Semantic error ESE0046: Type '"abc"' is not compatible with type 'Double' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_1.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_1.ets index c2356b47e29135ca013137b2a7e4a1803f6b1d18..2f2566b411b711600e36f165eb42cdd9e51de499 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_1.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_1.ets @@ -22,4 +22,4 @@ import { A } from "dynamic_import_tests/modules/module" function foo(p: A): void { p.f1 = /* @@ label */10 } -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_2.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_2.ets index 20edcbd465566ba1555e892fa1d18f18b061b658..9b98ca9697d160fea194e84ae417a7c5ec9d8197 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_2.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_2.ets @@ -22,4 +22,4 @@ import { A } from "dynamic_import_tests/modules/module" function foo(): void { let x: string = /* @@ label */A.f2 } -/* @@@ label Error TypeError: Type 'Double' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_interface.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_interface.ets index fba26f324210f8a335408b5830bcad53e11d1a26..e1ac53fd20d4a75e2058637b068fecce58b0b440 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_interface.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_interface.ets @@ -55,11 +55,11 @@ function foo(i: I) { i./* @@ label7 */f3() // cte } -/* @@@ label Error TypeError: Animal is abstract therefore cannot be instantiated. */ -/* @@@ label1 Error TypeError: class Bird can not extends class Animal which is from dynamic declaration file. */ -/* @@@ label2 Error TypeError: class C can not extends class A which is from dynamic declaration file. */ -/* @@@ label3 Error TypeError: Property 'f3' does not exist on type 'C' */ -/* @@@ label4 Error TypeError: Property 'foa' does not exist on type 'C' */ -/* @@@ label5 Error TypeError: class C1 can not implements interface I which is from dynamic declaration file. */ -/* @@@ label6 Error TypeError: Property 'n' does not exist on type 'I' */ -/* @@@ label7 Error TypeError: Property 'f3' does not exist on type 'I' */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0052: Animal is abstract therefore cannot be instantiated. */ +/* @@@ label1 Error Semantic error ESE24143: class Bird can not extends class Animal which is from dynamic declaration file. */ +/* @@@ label2 Error Semantic error ESE24143: class C can not extends class A which is from dynamic declaration file. */ +/* @@@ label3 Error Semantic error ESE0087: Property 'f3' does not exist on type 'C' */ +/* @@@ label4 Error Semantic error ESE0087: Property 'foa' does not exist on type 'C' */ +/* @@@ label5 Error Semantic error ESE24143: class C1 can not implements interface I which is from dynamic declaration file. */ +/* @@@ label6 Error Semantic error ESE0087: Property 'n' does not exist on type 'I' */ +/* @@@ label7 Error Semantic error ESE0087: Property 'f3' does not exist on type 'I' */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_1.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_1.ets index db83b85465026483c39f0d5a06e2b3960ca3f955..e1a315f1d24b72c0c6bdc7a62c8504c5fd5dfd90 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_1.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_1.ets @@ -22,5 +22,5 @@ import { A } from "dynamic_import_tests/modules/module" function foo(p: A): void { /* @@ label */p.foo(/* @@ label1 */"abc") } -/* @@@ label1 Error TypeError: Type '"abc"' is not compatible with type 'Double' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo("abc") */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo("abc") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"abc"' is not compatible with type 'Double' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_2.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_2.ets index bb4b9e0c59ed936887cb351fbd4cd8b1c6402097..0acc5a345e03551acca0d280870f2471d2f3d463 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_2.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_2.ets @@ -22,4 +22,4 @@ import { A } from "dynamic_import_tests/modules/module" function foo(): void { let x: string = /* @@ label */A.bar() } -/* @@@ label Error TypeError: Type 'Double' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_func_decl_import_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_func_decl_import_bad.ets index ddca569f9af95fff42b1aff480288db4810f6859..b540f265cdd554f093f95ad1bc1828f3ca40e1fd 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_func_decl_import_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_func_decl_import_bad.ets @@ -22,5 +22,5 @@ import { foo } from "dynamic_import_tests/modules/module" function main(): void { /* @@ label */foo(/* @@ label1 */"abc") } -/* @@@ label1 Error TypeError: Type '"abc"' is not compatible with type 'A' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo("abc") */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo("abc") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"abc"' is not compatible with type 'A' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_extends_dynamic_class_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_extends_dynamic_class_bad.ets index 57d9770affe6fd6bf4e8e51c58fb2ba9a77ec2ee..733598b00aae52f4b7eec9829c0eb9c0f8499b0a 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_extends_dynamic_class_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_extends_dynamic_class_bad.ets @@ -22,4 +22,4 @@ import { C } from "dynamic_import_tests/modules/module" class A extends C /* @@ label */{ } -/* @@@ label Error TypeError: class A can not extends class C which is from dynamic declaration file. */ +/* @@@ label Error Semantic error ESE24143: class A can not extends class C which is from dynamic declaration file. */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_impl_dynamic_interface_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_impl_dynamic_interface_bad.ets index 28aadb3b200250a2cf2db6afd7dca734c2083ba6..1a236140f00f5b9d7c8d6917751a4743b3d3be28 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_impl_dynamic_interface_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_impl_dynamic_interface_bad.ets @@ -29,4 +29,4 @@ class A implements I /* @@ label */{ } } -/* @@@ label Error TypeError: class A can not implements interface I which is from dynamic declaration file. */ +/* @@@ label Error Semantic error ESE24143: class A can not implements interface I which is from dynamic declaration file. */ diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_interface_extends_dynamic_interface_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_interface_extends_dynamic_interface_bad.ets index 4832fff1936bd21fba260be931905de1b647ed4a..a7f77985c613c769315dd80d437c329b2267deb2 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_interface_extends_dynamic_interface_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_interface_extends_dynamic_interface_bad.ets @@ -22,4 +22,4 @@ import { I } from "dynamic_import_tests/modules/module" /* @@ label */interface A extends I { } -/* @@@ label Error TypeError: interface A can not extends interface I which is from dynamic declaration file. */ +/* @@@ label Error Semantic error ESE24143: interface A can not extends interface I which is from dynamic declaration file. */ diff --git a/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets b/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets index d1988ddb9f2ac4cd5d902736652aaf88d22f56ca..56600510ca219d1d8e0412cc723c527edca7fb9b 100644 --- a/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets +++ b/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets @@ -27,5 +27,5 @@ function main() { arktest.assertTrue(!"nothing was thrown") } -/* @@? 18:15 Error SyntaxError: Unexpected token 'import'. */ -/* @@? 18:15 Error TypeError: 'await' expressions require Promise object as argument. */ +/* @@? 18:15 Error Syntax error ESY0227: Unexpected token 'import'. */ +/* @@? 18:15 Error Semantic error ESE0303: 'await' expressions require Promise object as argument. */ diff --git a/ets2panda/test/ast/parser/ets/empty_array_map_inference_fail.ets b/ets2panda/test/ast/parser/ets/empty_array_map_inference_fail.ets index dab191d5b7e27239944032f95c54f80efa65ebaa..efe4b354d51d43375e6eb947a45d59278ff6b7ac 100644 --- a/ets2panda/test/ast/parser/ets/empty_array_map_inference_fail.ets +++ b/ets2panda/test/ast/parser/ets/empty_array_map_inference_fail.ets @@ -21,9 +21,7 @@ return x+1; }); -/* @@? 16:2 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 20:1 Error TypeError: Can't resolve array type */ -/* @@? 20:8 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 20:18 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ - - +/* @@? 16:2 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 20:1 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 20:8 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 20:18 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ diff --git a/ets2panda/test/ast/parser/ets/enum.ets b/ets2panda/test/ast/parser/ets/enum.ets index 3443eb3f6c38ac0318e3b1f6bdbc74e170d7ec40..380b98951c80badd13ea2e5cd807a5ce8ca0574b 100644 --- a/ets2panda/test/ast/parser/ets/enum.ets +++ b/ets2panda/test/ast/parser/ets/enum.ets @@ -66,4 +66,4 @@ function main(): void { } } -/* @@? 26:10 Warning Warning: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ +/* @@? 26:10 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ diff --git a/ets2panda/test/ast/parser/ets/enum11.ets b/ets2panda/test/ast/parser/ets/enum11.ets index c78d967491c138158f757858b21bd5b205dc833c..a0c4ec9a18e75adfa24465c95b959904cda9cecf 100644 --- a/ets2panda/test/ast/parser/ets/enum11.ets +++ b/ets2panda/test/ast/parser/ets/enum11.ets @@ -23,6 +23,6 @@ function main(): void { let ordinalFail: int = /* @@ label */Color as int; } -/* @@@ label Error TypeError: Enum name 'Color' used in the wrong context */ -/* @@? 21:22 Warning Warning: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ -/* @@? 22:13 Warning Warning: Enum cast is deprecated. Cast support from 'Int' to 'Color' will be removed. */ +/* @@? 21:22 Error Warning W0030: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ +/* @@? 22:13 Error Warning W0030: Enum cast is deprecated. Cast support from 'Int' to 'Color' will be removed. */ +/* @@@ label Error Semantic error ESE0144: Enum name 'Color' used in the wrong context */ diff --git a/ets2panda/test/ast/parser/ets/enum12.ets b/ets2panda/test/ast/parser/ets/enum12.ets index 2a7a1dd7bb85f4a4582329eabd7785f25ed30b8c..503a1692c9990d7dcbabe161d9036955761755f0 100644 --- a/ets2panda/test/ast/parser/ets/enum12.ets +++ b/ets2panda/test/ast/parser/ets/enum12.ets @@ -24,4 +24,4 @@ function main(): void { test(Color.Red); } -/* @@@ label Error TypeError: 'toString' is an instance property of 'Color' */ +/* @@@ label Error Semantic error ESE0208: 'toString' is an instance property of 'Color' */ diff --git a/ets2panda/test/ast/parser/ets/enum13.ets b/ets2panda/test/ast/parser/ets/enum13.ets index 0a4828ea518acda1cb55ad1ecfcabffcb73ce963..ae62a4d5c3394d283c9a94aacdc36d76c03072d1 100644 --- a/ets2panda/test/ast/parser/ets/enum13.ets +++ b/ets2panda/test/ast/parser/ets/enum13.ets @@ -24,4 +24,4 @@ function main(): void { test(Color.Red); } -/* @@? 20:28 Error TypeError: 'valueOf' is an instance property of 'Color' */ +/* @@? 20:28 Error Semantic error ESE0208: 'valueOf' is an instance property of 'Color' */ diff --git a/ets2panda/test/ast/parser/ets/enum14.ets b/ets2panda/test/ast/parser/ets/enum14.ets index d152c4368f58e8f01f5c12ac46b0d6b489639690..c44ce1da629270e0a5b36c4a61dbc655f9190c01 100644 --- a/ets2panda/test/ast/parser/ets/enum14.ets +++ b/ets2panda/test/ast/parser/ets/enum14.ets @@ -24,4 +24,4 @@ function main(): void { } } -/* @@@ label Error TypeError: Enum switch case must be unqualified name of an enum constant */ +/* @@@ label Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ diff --git a/ets2panda/test/ast/parser/ets/enum16.ets b/ets2panda/test/ast/parser/ets/enum16.ets index 4b48931d3d476fb68d4b3b31bb00c84f625dffb5..ec4aa967e62b531d30b06cebde92e07812b05049 100644 --- a/ets2panda/test/ast/parser/ets/enum16.ets +++ b/ets2panda/test/ast/parser/ets/enum16.ets @@ -19,8 +19,8 @@ enum InvalidInitTypeEnum { Blue } -/* @@? 18:13 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 18:13 Error TypeError: Unresolved reference b7 */ -/* @@? 18:15 Error SyntaxError: Unexpected token ','. */ -/* @@? 19:3 Error TypeError: Unresolved reference Blue */ -/* @@? 20:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 18:13 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 18:13 Error Semantic error ESE0143: Unresolved reference b7 */ +/* @@? 18:15 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 19:3 Error Semantic error ESE0143: Unresolved reference Blue */ +/* @@? 20:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/enum17.ets b/ets2panda/test/ast/parser/ets/enum17.ets index 31bc25f6dad59ea0e9720d405c832d65e523555e..1a63846649a5ad84e176b4a6073db6e2712ea937 100644 --- a/ets2panda/test/ast/parser/ets/enum17.ets +++ b/ets2panda/test/ast/parser/ets/enum17.ets @@ -19,4 +19,4 @@ enum InvalidInitTypeEnum { Blue } -/* @@? 19:7 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 19:7 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum18.ets b/ets2panda/test/ast/parser/ets/enum18.ets index 8c34ab054c1f9a06c835f2351fa23d3412bc4f56..e62e5b384229add22df3405ab4eb39398bc0af9c 100644 --- a/ets2panda/test/ast/parser/ets/enum18.ets +++ b/ets2panda/test/ast/parser/ets/enum18.ets @@ -19,5 +19,5 @@ enum InvalidInitTypeEnum { Blue } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 19:7 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 19:7 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum2.ets b/ets2panda/test/ast/parser/ets/enum2.ets index 7df33b51a9b38c04ecf2a850533de76cab848373..403e8fb4ec9c6b1686d7f00dd3ec4e94766a3ebd 100644 --- a/ets2panda/test/ast/parser/ets/enum2.ets +++ b/ets2panda/test/ast/parser/ets/enum2.ets @@ -38,7 +38,7 @@ class NestedEnums { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label2 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label1 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label2 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/enum20.ets b/ets2panda/test/ast/parser/ets/enum20.ets index 3f79f66f30150ec4d0e6841a9a4a1187ea8b7f2d..e12fa9635486f2f1bf67832093cee383cebfbe18 100644 --- a/ets2panda/test/ast/parser/ets/enum20.ets +++ b/ets2panda/test/ast/parser/ets/enum20.ets @@ -22,7 +22,7 @@ function main(): void { let white = Color.White./* @@ label3 */ordinal(); } -/* @@@ label Error TypeError: Property 'ordinal' does not exist on type 'Color' */ -/* @@@ label1 Error TypeError: Property 'ordinal' does not exist on type 'Color' */ -/* @@@ label2 Error TypeError: Property 'ordinal' does not exist on type 'Color' */ -/* @@@ label3 Error TypeError: Property 'ordinal' does not exist on type 'Color' */ +/* @@@ label Error Semantic error ESE0087: Property 'ordinal' does not exist on type 'Color' */ +/* @@@ label1 Error Semantic error ESE0087: Property 'ordinal' does not exist on type 'Color' */ +/* @@@ label2 Error Semantic error ESE0087: Property 'ordinal' does not exist on type 'Color' */ +/* @@@ label3 Error Semantic error ESE0087: Property 'ordinal' does not exist on type 'Color' */ diff --git a/ets2panda/test/ast/parser/ets/enum22.ets b/ets2panda/test/ast/parser/ets/enum22.ets index b052216cadf5f248d42a0991f53e6cafe16ce94e..f7e7bfe6f0bec0430abcbebdf3b3061e9de3917f 100644 --- a/ets2panda/test/ast/parser/ets/enum22.ets +++ b/ets2panda/test/ast/parser/ets/enum22.ets @@ -17,4 +17,4 @@ enum duplicateKeysStringCase { Gray = "#ff808080", /* @@ label */Gray = "#ff808080" } -/* @@@ label Error TypeError: Variable 'Gray' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'Gray' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/enum23.ets b/ets2panda/test/ast/parser/ets/enum23.ets index fbea4d6c3b28da754b46afcf9aefa975a6e94f11..de3251ed5fedd139308ac828910bca6ff863d302 100644 --- a/ets2panda/test/ast/parser/ets/enum23.ets +++ b/ets2panda/test/ast/parser/ets/enum23.ets @@ -17,4 +17,4 @@ enum duplicateKeysNumCase { Red = 1, /* @@ label */Red = 1 } -/* @@@ label Error TypeError: Variable 'Red' has already been declared. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0351: Variable 'Red' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/enum24.ets b/ets2panda/test/ast/parser/ets/enum24.ets index fd80f213a4d2e583a79223123e03042be85a6203..25073e467d17bc0961ef3f8f34c12a1369123b1d 100644 --- a/ets2panda/test/ast/parser/ets/enum24.ets +++ b/ets2panda/test/ast/parser/ets/enum24.ets @@ -21,4 +21,4 @@ enum Direction { } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum26.ets b/ets2panda/test/ast/parser/ets/enum26.ets index 8a4845c43b47b781e121fce5ef0a367c9028e392..979b02bbf45bad21f4007c41edbb995c6e9f0cb8 100644 --- a/ets2panda/test/ast/parser/ets/enum26.ets +++ b/ets2panda/test/ast/parser/ets/enum26.ets @@ -20,6 +20,6 @@ enum Direction { /* @@ label */Right = "RIGHT" /* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label Error TypeError: Unresolved reference Right */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference Right */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/enum27.ets b/ets2panda/test/ast/parser/ets/enum27.ets index 1e38fdc9ccbd23cad43d8f136596e7b6b20be27b..12db9426ded48229a507109e1d546fd42d0cf9f6 100644 --- a/ets2panda/test/ast/parser/ets/enum27.ets +++ b/ets2panda/test/ast/parser/ets/enum27.ets @@ -23,5 +23,5 @@ enum Date { } -/* @@@ label2 Error TypeError: Class 'Date' is already defined with different type. */ -/* @@@ label1 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label2 Error Semantic error ESE0350: Class 'Date' is already defined with different type. */ +/* @@@ label1 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum29.ets b/ets2panda/test/ast/parser/ets/enum29.ets index b7981e02d0b9b36ccf68c7f7bf932d9fa6b9fa27..524e54f3c465bb96c9ca7ceb641352cbf6b24af1 100644 --- a/ets2panda/test/ast/parser/ets/enum29.ets +++ b/ets2panda/test/ast/parser/ets/enum29.ets @@ -66,5 +66,5 @@ function main(): void { } } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@@ label1 Error TypeError: Enum switch case must be unqualified name of an enum constant */ +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label1 Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ diff --git a/ets2panda/test/ast/parser/ets/enum31.ets b/ets2panda/test/ast/parser/ets/enum31.ets index 78bc7d8d2c0e91a50dea1257ee25d1952c6131a2..13dbc231260a70c87e344a4c92969543d7542949 100644 --- a/ets2panda/test/ast/parser/ets/enum31.ets +++ b/ets2panda/test/ast/parser/ets/enum31.ets @@ -24,5 +24,5 @@ enum ColorC { Green = /* @@ label1 */ColorB.Green } -/* @@? 20:27 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 24:28 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label1 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum32.ets b/ets2panda/test/ast/parser/ets/enum32.ets index 0201bd17b91dc3cbb9d27e83a5801fd9499bfe53..48ae92f0c8fdb7af1103aba23aa4831a2ebd763b 100644 --- a/ets2panda/test/ast/parser/ets/enum32.ets +++ b/ets2panda/test/ast/parser/ets/enum32.ets @@ -18,7 +18,7 @@ enum Color2 { Red = /* @@ label1 */Color.Red } enum Color3 { Red = /* @@ label2 */Color2.Red } enum Color4 { Red = /* @@ label3 */Color3.Red } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@@ label1 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@@ label2 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@@ label3 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label1 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label2 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label3 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum34.ets b/ets2panda/test/ast/parser/ets/enum34.ets index 9fcdc33582450ae23757dd3ddf4d970e5d45f1f2..69cdeb35430c0800b059e7caacf9c9a0860cb0a5 100644 --- a/ets2panda/test/ast/parser/ets/enum34.ets +++ b/ets2panda/test/ast/parser/ets/enum34.ets @@ -19,4 +19,4 @@ enum Fraction { } -/* @@? 18:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 18:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum5.ets b/ets2panda/test/ast/parser/ets/enum5.ets index 74fc8ad53d3b69a340ce1d10c14a832d84654a6b..1daa772a73251a8df10c8c12961287ec5cabe0e5 100644 --- a/ets2panda/test/ast/parser/ets/enum5.ets +++ b/ets2panda/test/ast/parser/ets/enum5.ets @@ -18,6 +18,6 @@ enum MissingCommaEnum { /* @@ label */Green /* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label Error TypeError: Unresolved reference Green */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference Green */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/enum6.ets b/ets2panda/test/ast/parser/ets/enum6.ets index bea677468244cf076506c3f1a70adfe7e00d12a6..87bb97b4786382ff25ad14558a5972c47b80eab4 100644 --- a/ets2panda/test/ast/parser/ets/enum6.ets +++ b/ets2panda/test/ast/parser/ets/enum6.ets @@ -25,4 +25,4 @@ function main(): void { i = i./* @@ label */Blue; } -/* @@@ label Error TypeError: 'Blue' is a static property of 'Color' */ +/* @@@ label Error Semantic error ESE0207: 'Blue' is a static property of 'Color' */ diff --git a/ets2panda/test/ast/parser/ets/enum7.ets b/ets2panda/test/ast/parser/ets/enum7.ets index 9fb29fa64f841de53bd2c441141321fcecdd757f..c96ffb5397879fb503c8368ca70678162f540db8 100644 --- a/ets2panda/test/ast/parser/ets/enum7.ets +++ b/ets2panda/test/ast/parser/ets/enum7.ets @@ -21,4 +21,4 @@ function main(): void { arktest.assertTrue(/* @@ label */Color.Red != Color2.Red); } -/* @@@ label Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@@ label Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ diff --git a/ets2panda/test/ast/parser/ets/enum8.ets b/ets2panda/test/ast/parser/ets/enum8.ets index 5da56671e4696886529572cdbc959188dee1354b..2f8a778735f12172f093b5cca1a611ef711d25a8 100644 --- a/ets2panda/test/ast/parser/ets/enum8.ets +++ b/ets2panda/test/ast/parser/ets/enum8.ets @@ -20,4 +20,4 @@ function main(): void { let red: Color = /* @@ label */Color2.Red; } -/* @@@ label Error TypeError: Type 'Color2' cannot be assigned to type 'Color' */ +/* @@@ label Error Semantic error ESE0318: Type 'Color2' cannot be assigned to type 'Color' */ diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation3.ets b/ets2panda/test/ast/parser/ets/enumAnnotation3.ets index 17fc47a361df438e6b9e34a0765f1d222caba8c0..22ca20b1ce0a74e163a24f79f4f6951aafac0045 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation3.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation3.ets @@ -19,4 +19,4 @@ enum Fraction: string { } -/* @@? 16:23 Error SyntaxError: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ +/* @@? 16:23 Error Syntax error ESY0327: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation4.ets b/ets2panda/test/ast/parser/ets/enumAnnotation4.ets index 2816b123bbfe215c49f072278a0a92fd70ce361f..f15bb02f19c73e44184ccc267d55b3ddbc9e035e 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation4.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation4.ets @@ -19,4 +19,4 @@ enum Fraction: customInt { } -/* @@? 16:26 Error SyntaxError: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ \ No newline at end of file +/* @@? 16:26 Error Syntax error ESY0327: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation5.ets b/ets2panda/test/ast/parser/ets/enumAnnotation5.ets index 64ff1a363563cd8cb88b37c7e1ccc12df2f30269..640bfbcea0a2ed9191310a7393e374c59008d67e 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation5.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation5.ets @@ -19,5 +19,5 @@ enum Fraction: int { } -/* @@? 17:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 18:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file +/* @@? 17:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 18:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation6.ets b/ets2panda/test/ast/parser/ets/enumAnnotation6.ets index b52526a67f952ca270ba61ea16bd1c25d2a59444..d503356a070d17607d7f72068db4fe712bf76319 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation6.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation6.ets @@ -19,4 +19,4 @@ enum Fraction: byte { } -/* @@? 16:21 Error SyntaxError: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ +/* @@? 16:21 Error Syntax error ESY0327: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ diff --git a/ets2panda/test/ast/parser/ets/enum_default_invalid_value_type.ets b/ets2panda/test/ast/parser/ets/enum_default_invalid_value_type.ets index b80dde0c68c448e08594fa236dcb89c3fcc994f4..14f05d8c4d5584d6392308ff0db3e9db1f4a7ee8 100644 --- a/ets2panda/test/ast/parser/ets/enum_default_invalid_value_type.ets +++ b/ets2panda/test/ast/parser/ets/enum_default_invalid_value_type.ets @@ -27,6 +27,6 @@ enum C { } -/* @@? 17:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 21:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 26:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 17:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 21:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 26:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ diff --git a/ets2panda/test/ast/parser/ets/enum_default_negative.ets b/ets2panda/test/ast/parser/ets/enum_default_negative.ets index 617fe9862870fa33c1b3e93edbe3b0d45f191d20..1092c0efdfe49377e66995490b808594d5dc3d47 100644 --- a/ets2panda/test/ast/parser/ets/enum_default_negative.ets +++ b/ets2panda/test/ast/parser/ets/enum_default_negative.ets @@ -26,12 +26,12 @@ enum D { } -/* @@? 17:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 17:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 20:1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 21:9 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 26:1 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 38:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 38:1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ +/* @@? 17:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 17:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 20:1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 21:9 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 26:1 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 38:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 38:1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ diff --git a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_empty.ets b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_empty.ets index 5ccbb9811890b06261a8f3f407753078692d141d..eaf31b09ad607af5c5081329e3a6576afeb449ae 100644 --- a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_empty.ets +++ b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_empty.ets @@ -16,7 +16,6 @@ enum // Printed two errors about eos, because there are two attempts to read identifiers: name enum and name property -/* @@@ label Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 22:1 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 22:1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 22:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_not_pair_brackets.ets b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_not_pair_brackets.ets index 7a2ac6350b40bed5f3b4dc80624356ebca4ffde5..9a27fe24981bbf273d7dfa216428e79fb916069e 100644 --- a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_not_pair_brackets.ets +++ b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_not_pair_brackets.ets @@ -16,5 +16,4 @@ enum Color { Red, Green // Printed two errors about eos, because there are two attempts to read identifiers: name enum and name property -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@ label */ \ No newline at end of file +/* @@? 20:1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ diff --git a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_with_identifier.ets b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_with_identifier.ets index 13fbdd0ad7a008fb996a35f8ad25589064ab68a1..906cf36623079429cdb0f561b2acafcdda0d24b3 100644 --- a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_with_identifier.ets +++ b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_with_identifier.ets @@ -15,6 +15,5 @@ enum a -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 20:1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 20:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/ets_never_type_without_affect_other.ets b/ets2panda/test/ast/parser/ets/ets_never_type_without_affect_other.ets index 01cd69625eb71456383e81b3fc1fa65605488e00..8b52587e281f874d020088d8e481d61f1685faa6 100644 --- a/ets2panda/test/ast/parser/ets/ets_never_type_without_affect_other.ets +++ b/ets2panda/test/ast/parser/ets/ets_never_type_without_affect_other.ets @@ -26,5 +26,5 @@ function foo(): number { return n! } -/* @@? 23:17 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 26:12 Error Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ +/* @@? 23:17 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 26:12 Error Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ diff --git a/ets2panda/test/ast/parser/ets/export_after_statement.ets b/ets2panda/test/ast/parser/ets/export_after_statement.ets index cf56e544dead5fdb081574db5965292a1b5edff0..a1f2d84d5c67969915842fc08848a00aaad43356 100644 --- a/ets2panda/test/ast/parser/ets/export_after_statement.ets +++ b/ets2panda/test/ast/parser/ets/export_after_statement.ets @@ -16,5 +16,5 @@ while (false) export { } -/* @@? 16:15 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 16:15 Error SyntaxError: Missing body in while statement */ +/* @@? 16:15 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 16:15 Error Syntax error ESY0300: Missing body in while statement */ diff --git a/ets2panda/test/ast/parser/ets/export_as.ets b/ets2panda/test/ast/parser/ets/export_as.ets index f2c130fbe82e2eb4dc9f52b8c778f816c0390894..e9e395bc8b79963636089084538f2ed2c86bf3a8 100644 --- a/ets2panda/test/ast/parser/ets/export_as.ets +++ b/ets2panda/test/ast/parser/ets/export_as.ets @@ -15,6 +15,6 @@ export /* @@ label1 */as /* @@ label2 */namespace mathLib {} -/* @@@ label1 Error SyntaxError: Universal module definitions are not supported, please use ordinary import/export syntax instead. */ -/* @@@ label1 Error SyntaxError: Unexpected token 'as'. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'namespace'. */ +/* @@@ label1 Error Syntax error ESY114179: Universal module definitions are not supported, please use ordinary import/export syntax instead. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'as'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'namespace'. */ diff --git a/ets2panda/test/ast/parser/ets/export_assignment.ets b/ets2panda/test/ast/parser/ets/export_assignment.ets index 7dc0bbfcc8fef31455835e3c8a417e11b8d73aba..e1284d4b2f31c3e168f8a3f690242906fe36fb6d 100644 --- a/ets2panda/test/ast/parser/ets/export_assignment.ets +++ b/ets2panda/test/ast/parser/ets/export_assignment.ets @@ -15,7 +15,7 @@ export /* @@ label1 */= /* @@ label2 */Point -/* @@@ label1 Error SyntaxError: 'export = ...' syntax is not supported, use regular import/export instead! */ -/* @@@ label1 Error SyntaxError: Unexpected token '='. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'Point'. */ -/* @@@ label2 Error TypeError: Unresolved reference Point */ +/* @@@ label1 Error Syntax error ESY0307: 'export = ...' syntax is not supported, use regular import/export instead! */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'Point'. */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference Point */ diff --git a/ets2panda/test/ast/parser/ets/export_default_multiple_specifier.ets b/ets2panda/test/ast/parser/ets/export_default_multiple_specifier.ets index dfd50255646a775c65a87af805c7af1afb6215e4..a0af5f06117774aad8f27972f8a4b82dda5dc501 100644 --- a/ets2panda/test/ast/parser/ets/export_default_multiple_specifier.ets +++ b/ets2panda/test/ast/parser/ets/export_default_multiple_specifier.ets @@ -18,4 +18,4 @@ function foo(): void {} export default {myFunc as default, foo as default} -/* @@? 22:1 Error SyntaxError: export default is not allowed to export multiple specifiers. */ +/* @@? 22:1 Error Syntax error ESY0005: export default is not allowed to export multiple specifiers. */ diff --git a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error1.ets b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error1.ets index 47d3887c4c2635fdf1c73651156c33eea74ed591..f65dedd5d702fe82e8d64e35160210318129349d 100644 --- a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error1.ets +++ b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error1.ets @@ -17,9 +17,4 @@ function animatableWidth(this: TextAttribute, this { this.width(width); return this; } -/* @@? 16:2 Error TypeError: Cannot find type 'AnimatableExtend'. */ -/* @@? 17:32 Error TypeError: Cannot find type 'TextAttribute'. */ -/* @@? 17:52 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:52 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:54 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 17:59 Error TypeError: Property 'width' does not exist on type 'Error' */ +/* @@? 17:52 Error Syntax error ESY0000: , expected */ diff --git a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error2.ets b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error2.ets index 752a06d4cceb6598bb28c56cf9d6fa2f6c135ed4..22fcf9697b25f53944a648179a34de79b1787d7d 100644 --- a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error2.ets +++ b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error2.ets @@ -16,18 +16,4 @@ let a = (this: TextAttribute, this { this.width(width); return this; } -/* @@? 16:9 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 16:9 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 16:9 Error TypeError: Type 'Error' cannot be assigned to type 'ETSGLOBAL' */ -/* @@? 16:14 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 16:16 Error SyntaxError: Unexpected token 'TextAttribute'. */ -/* @@? 16:16 Error TypeError: Unresolved reference TextAttribute */ -/* @@? 16:29 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:31 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 16:31 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 16:36 Error SyntaxError: Unexpected token '{'. */ -/* @@? 16:38 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 16:43 Error TypeError: Property 'width' does not exist on type 'Error' */ -/* @@? 16:57 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 16:64 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 16:64 Error TypeError: All return statements in the function should be empty or have a value. */ +/* @@? 16:14 Error Syntax error ESY0000: Unexpected token, expected ')' */ diff --git a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_not_in_toplevel.ets b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_not_in_toplevel.ets index 4354b9c81880f592187e8dd0a0ba9644102631b7..429da1b21bce866e23d9009795a248a735621d61 100644 --- a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_not_in_toplevel.ets +++ b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_not_in_toplevel.ets @@ -27,6 +27,6 @@ function main() { fruit.price(); } -/* @@? 20:5 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 20:20 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ -/* @@? 27:11 Error TypeError: Property 'price' does not exist on type 'Fruit' */ +/* @@? 20:5 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 20:20 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 27:11 Error Semantic error ESE0087: Property 'price' does not exist on type 'Fruit' */ diff --git a/ets2panda/test/ast/parser/ets/fields.ets b/ets2panda/test/ast/parser/ets/fields.ets index 31cdc48edbacaced6e755ac2afbb339edea4b54f..e0bc492128438809b0026f894aa19260c0cddea6 100644 --- a/ets2panda/test/ast/parser/ets/fields.ets +++ b/ets2panda/test/ast/parser/ets/fields.ets @@ -27,4 +27,4 @@ class C { protected static readonly h = 30; } -/* @@@ label Error TypeError: Variable 'f' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'f' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets b/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets index 83583c963ddb6645c42e4f1ca9d4a443e0e20a42..da5cb6c77b3b016445329c4f7dba4e8cdddf2266 100644 --- a/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets +++ b/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets @@ -49,6 +49,6 @@ function main(): void { arktest.assertEQ(res, "abc"); } -/* @@? 48:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 48:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 48:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 48:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets b/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets index 6282df4a6f4eacb5f9983966dc7611735e9c0250..f6452527ab7669d829959ede94a5d78a94bf4424 100644 --- a/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets +++ b/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets @@ -47,6 +47,6 @@ function main(): void { arktest.assertEQ(res, "abc"); } -/* @@? 46:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 46:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 46:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 46:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/forOfType.ets b/ets2panda/test/ast/parser/ets/forOfType.ets index 32ef6ae505a068762221a4729ebdbca661a6702e..1d09deaa1701914180a0ab82824f363e53500958 100644 --- a/ets2panda/test/ast/parser/ets/forOfType.ets +++ b/ets2panda/test/ast/parser/ets/forOfType.ets @@ -17,4 +17,4 @@ function k() : long { return 0; } for ( Fi of /* @@ label */ k as () => bigint | long ) await this instanceof int -/* @@@ label Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 17:28 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/for_await_of_loop.ets b/ets2panda/test/ast/parser/ets/for_await_of_loop.ets index 3b41c8b661529fd31f678ee9eb1cfd5dc49e8d88..9d82af2c428bc5ea819956c7ba7f840de189a8b8 100644 --- a/ets2panda/test/ast/parser/ets/for_await_of_loop.ets +++ b/ets2panda/test/ast/parser/ets/for_await_of_loop.ets @@ -17,8 +17,8 @@ for await (let k: int /* @@ label1 */= 0; /* @@ label2 */k < d.length; k++) { this.$_set_unsafe(k + 1, d[k]) } -/* @@@ label1 Error SyntaxError: for-await-of loop variable declaration may not have an initializer. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'k'. */ -/* @@? 16:62 Error TypeError: Unresolved reference d */ -/* @@? 17:5 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 17:10 Error TypeError: Property '$_set_unsafe' does not exist on type 'Error' */ +/* @@@ label1 Error Syntax error ESY0097: for-await-of loop variable declaration may not have an initializer. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'k'. */ +/* @@? 16:62 Error Semantic error ESE0143: Unresolved reference d */ +/* @@? 17:5 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 17:10 Error Semantic error ESE0087: Property '$_set_unsafe' does not exist on type 'Error' */ diff --git a/ets2panda/test/ast/parser/ets/for_in.ets b/ets2panda/test/ast/parser/ets/for_in.ets index 922bde17d5a79170a098ebc31071f129909015d2..9d16375586bb69fdfc2b2ee14e684ecfa50b1726 100644 --- a/ets2panda/test/ast/parser/ets/for_in.ets +++ b/ets2panda/test/ast/parser/ets/for_in.ets @@ -17,6 +17,5 @@ let a: number[] = [1.0, 2.0, 3.0] for (let i /* @@ label */in a) { } -/* @@@ label Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@@ label Error SyntaxError: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays - and iterable objects. */ +/* @@@ label Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@@ label Error Syntax error ESY6987: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays and iterable objects. */ diff --git a/ets2panda/test/ast/parser/ets/for_of_03.ets b/ets2panda/test/ast/parser/ets/for_of_03.ets index 12cd09f1b7c83b24c823afcb211af67be3284b9c..121c34db102710c42f84bf2cd2c597b94cd87c84 100644 --- a/ets2panda/test/ast/parser/ets/for_of_03.ets +++ b/ets2panda/test/ast/parser/ets/for_of_03.ets @@ -23,5 +23,5 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Invalid left-hand side in 'for' statement: must have a single binding. */ -/* @@@ label1 Error SyntaxError: Expected ')', got '{'. */ +/* @@@ label Error Syntax error ESY0211: Invalid left-hand side in 'for' statement: must have a single binding. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '{'. */ diff --git a/ets2panda/test/ast/parser/ets/for_of_04.ets b/ets2panda/test/ast/parser/ets/for_of_04.ets index 0b51c9f55cf40b74822d6ecb8756c425f4897172..b9e15e27ad904a3be3111e1129eddebd16140de6 100644 --- a/ets2panda/test/ast/parser/ets/for_of_04.ets +++ b/ets2panda/test/ast/parser/ets/for_of_04.ets @@ -25,14 +25,14 @@ function main(): void { for (i in 50) { a += 10 } -/* @@? 20:9 Error SyntaxError: Type annotation is not allowed when existing variable is used as loop iterator in 'for' statement. */ -/* @@? 20:11 Error SyntaxError: Expected ';', got 'double'. */ -/* @@? 20:11 Error SyntaxError: Unexpected token 'double'. */ -/* @@? 20:18 Error SyntaxError: Expected ';', got 'identification literal'. */ -/* @@? 20:18 Error TypeError: Unresolved reference of */ -/* @@? 20:21 Error SyntaxError: Expected ')', got 'identification literal'. */ -/* @@? 20:21 Error TypeError: Unresolved reference a */ -/* @@? 20:22 Error SyntaxError: Unexpected token ')'. */ -/* @@? 20:24 Error SyntaxError: Unexpected token '{'. */ -/* @@? 25:11 Error TypeError: Object type doesn't have proper iterator method. */ -/* @@? 25:11 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 20:9 Error Syntax error ESY0212: Type annotation is not allowed when existing variable is used as loop iterator in 'for' statement. */ +/* @@? 20:11 Error Syntax error ESY0230: Expected ';', got 'double'. */ +/* @@? 20:11 Error Syntax error ESY0227: Unexpected token 'double'. */ +/* @@? 20:18 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@? 20:18 Error Semantic error ESE0143: Unresolved reference of */ +/* @@? 20:21 Error Syntax error ESY0230: Expected ')', got 'identification literal'. */ +/* @@? 20:21 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 20:22 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:24 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 25:11 Error Semantic error ESE0258: Object type doesn't have proper iterator method. */ +/* @@? 25:11 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/for_with_empty_body.ets b/ets2panda/test/ast/parser/ets/for_with_empty_body.ets index a1e35845ea6a878d0d19b02859dced6014839eb3..ea7da8cae174bb8a538340d9d77cf33a94e4d690 100644 --- a/ets2panda/test/ast/parser/ets/for_with_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/for_with_empty_body.ets @@ -23,4 +23,4 @@ try { } -/* @@? 22:1 Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ +/* @@? 22:1 Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ diff --git a/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets b/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets index 898c63dfdb1a236691c176fcb0238d285ffd5b22..04c3b30b6d802310715a0d30459f6f0a61e2ee83 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets @@ -21,4 +21,4 @@ function foo() {} function main(): int { return 0 } -/* @@@ label Error TypeError: Duplicate type parameter 'T'. */ +/* @@@ label Error Semantic error ESE0182: Duplicate type parameter 'T'. */ diff --git a/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets b/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets index e781375637427b39b2f3a01cfc4c58d5d51629b7..3d0f7397744d9b06a6fd45e9e30744fc3378faf3 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets @@ -23,19 +23,19 @@ declare class Environment { static foo7(props1: {key:string, value:int}[], props2: int[]): void; } -/* @@? 17:23 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 18:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 19:25 Error SyntaxError: Invalid Type. */ -/* @@? 21:16 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 21:20 Error SyntaxError: Invalid Type. */ -/* @@? 21:28 Error SyntaxError: Invalid Type. */ -/* @@? 21:37 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 21:39 Error SyntaxError: Unexpected token '--'. */ -/* @@? 21:41 Error SyntaxError: Unexpected token '-'. */ -/* @@? 21:42 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:43 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:44 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:45 Error SyntaxError: void is a predefined type, cannot be used as an identifier */ -/* @@? 22:20 Error SyntaxError: Invalid Type. */ -/* @@? 23:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 23:36 Error SyntaxError: Unexpected token ','. */ +/* @@? 17:23 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 18:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 19:25 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:16 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 21:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:28 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:37 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 21:39 Error Syntax error ESY0227: Unexpected token '--'. */ +/* @@? 21:41 Error Syntax error ESY0227: Unexpected token '-'. */ +/* @@? 21:42 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:43 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:44 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:45 Error Syntax error ESY0295: void is a predefined type, cannot be used as an identifier */ +/* @@? 22:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 23:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 23:36 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets b/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets index 97ae8eaf9d04cc628a91d08b821648e500ea654a..d817388f80a0ad15498b7c2f27f6f11bb8b5b002 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets @@ -16,5 +16,5 @@ let a: (c: int, b: int) => char /* @@ label */rethrows; -/* @@@ label Error SyntaxError: Unexpected token 'rethrows'. */ -/* @@@ label Error TypeError: Unresolved reference rethrows */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'rethrows'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference rethrows */ diff --git a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets index 8f9e154697a74265d340672a0a1e1ca74a72827b..603489d13aa6e3e1a1218d7da2d88d0b0e7c10a3 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets @@ -16,4 +16,4 @@ function foo(a: (b: int = /* @@ label */0) => int): void { } -/* @@@ label Error SyntaxError: Default value is allowed only for optional parameters. */ +/* @@@ label Error Syntax error ESY0133: Default value is allowed only for optional parameters. */ diff --git a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets index 7896f0b6aaafdb1eb61d90bde732a4a2f8e7fb9b..73b38c40fad0362ab63761033e2abc4e64995ae9 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets @@ -25,4 +25,4 @@ function main(): void { foo(func); } -/* @@@ label Error SyntaxError: Default value is allowed only for optional parameters. */ +/* @@@ label Error Syntax error ESY0133: Default value is allowed only for optional parameters. */ diff --git a/ets2panda/test/ast/parser/ets/function_decl.ets b/ets2panda/test/ast/parser/ets/function_decl.ets index 6b0e4ac7167bf74338907ec4cd962a2bcc465c80..9f0f41533a04a37f2d0514fb88e33785a733437a 100644 --- a/ets2panda/test/ast/parser/ets/function_decl.ets +++ b/ets2panda/test/ast/parser/ets/function_decl.ets @@ -14,4 +14,4 @@ */ function /* @@ label */foo(a: int, b: float, ...c: int[]): boolean {} -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/function_implicit_return_type.ets b/ets2panda/test/ast/parser/ets/function_implicit_return_type.ets index 08913b18bbb2685af2e80d1ca994034db08248eb..fe92537174e20b8a4d27324f4fcf6cc4d298f09e 100644 --- a/ets2panda/test/ast/parser/ets/function_implicit_return_type.ets +++ b/ets2panda/test/ast/parser/ets/function_implicit_return_type.ets @@ -24,6 +24,6 @@ let void6: (i: int ) /* @@ label */= void1 /* @@ label1 */; // CTE; need function main() {} -/* @@? 23:43 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 23:43 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 23:45 Error SyntaxError: Unexpected token 'void1'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 23:45 Error Syntax error ESY0227: Unexpected token 'void1'. */ diff --git a/ets2panda/test/ast/parser/ets/function_implicit_return_type2.ets b/ets2panda/test/ast/parser/ets/function_implicit_return_type2.ets index 7ae27d0965ba5ed12d5e543abb6c3e111d786697..ec3ff65e28189e5fd6b81f01bbaf8917b1928010 100644 --- a/ets2panda/test/ast/parser/ets/function_implicit_return_type2.ets +++ b/ets2panda/test/ast/parser/ets/function_implicit_return_type2.ets @@ -16,4 +16,4 @@ let fn: (i: int) => int = () => {/* @@ label */return; }; -/* @@@ label Error TypeError: Missing return value. */ +/* @@@ label Error Semantic error ESE0032: Missing return value. */ diff --git a/ets2panda/test/ast/parser/ets/function_implicit_return_type3.ets b/ets2panda/test/ast/parser/ets/function_implicit_return_type3.ets index 615533dfc4a2935985d2aea617307526edf359c3..ec7a68d4582d732418b732f98e8db1187aadb3db 100644 --- a/ets2panda/test/ast/parser/ets/function_implicit_return_type3.ets +++ b/ets2panda/test/ast/parser/ets/function_implicit_return_type3.ets @@ -17,4 +17,4 @@ function void1(i: int) {} let fn: (i: int) => int = /* @@ label */void1; -/* @@@ label Error TypeError: Type '(i: Int) => void' cannot be assigned to type '(i: Int) => Int' */ +/* @@@ label Error Semantic error ESE0318: Type '(i: Int) => void' cannot be assigned to type '(i: Int) => Int' */ diff --git a/ets2panda/test/ast/parser/ets/function_implicit_return_type4.ets b/ets2panda/test/ast/parser/ets/function_implicit_return_type4.ets index 89efc28509de05402bb6315a6445fb2669123d2e..f69fc75d0a3265209a15671e66571b38d54a562a 100644 --- a/ets2panda/test/ast/parser/ets/function_implicit_return_type4.ets +++ b/ets2panda/test/ast/parser/ets/function_implicit_return_type4.ets @@ -22,5 +22,5 @@ final class B extends A { public override fn(): int { return 42; } } -/* @@? 22:21 Error TypeError: fn(): Int in B cannot override fn(): void in A because overriding return type is not compatible with the other return type. */ -/* @@? 22:21 Error TypeError: Method fn(): Int in B not overriding any method */ +/* @@? 22:21 Error Semantic error ESE0141: fn(): Int in B cannot override fn(): void in A because overriding return type is not compatible with the other return type. */ +/* @@? 22:21 Error Semantic error ESE0136: Method fn(): Int in B not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/generator_function.ets b/ets2panda/test/ast/parser/ets/generator_function.ets index 7f865bb644004d26a4883231dd986a68aa88f577..d4a28a4d6122de43c66eb011dacd41577e8ffc3b 100644 --- a/ets2panda/test/ast/parser/ets/generator_function.ets +++ b/ets2panda/test/ast/parser/ets/generator_function.ets @@ -14,4 +14,4 @@ */ function* f() {} -/* @@? 16:11 Error SyntaxError: Generator functions are not supported, please use async/await mechanism for multitasking */ +/* @@? 16:11 Error Syntax error ESY0314: Generator functions are not supported, please use async/await mechanism for multitasking */ diff --git a/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets b/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets index 0c3d58049100e5e4f6c69cc06e9bd648d943e716..d478c4aa2229c82d00f566a09b55c83bbffcdaac 100644 --- a/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets +++ b/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets @@ -15,4 +15,4 @@ class C1 {} -/* @@@ label Error SyntaxError: Required type parameters may not follow optional type parameters. */ +/* @@@ label Error Syntax error ESY0179: Required type parameters may not follow optional type parameters. */ diff --git a/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets b/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets index 87657b52f3a78279ef1c66bc17490cc766deddcf..b8b0ad79bfbdbe55935727d28cc0ebb1c3819558 100644 --- a/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets +++ b/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets @@ -23,5 +23,5 @@ function main() : void { let a1 = /* @@ label */new A(/* @@ label1 */"hello") } -/* @@@ label1 Error TypeError: Type '"hello"' is not compatible with type 'Double' at index 1 */ -/* @@@ label Error TypeError: No matching construct signature for genericDefaultParam_4.A("hello") */ +/* @@@ label Error Semantic error ESE0127: No matching construct signature for genericDefaultParam_4.A("hello") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"hello"' is not compatible with type 'Double' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_1.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_1.ets index 51901fd4f3f28c86d397f0bcf988867f5fbbbb4e..4969e9f9bcf39d05e4636c703cc7bba6be6dffcd 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_1.ets @@ -14,4 +14,4 @@ */ class C {} -/* @@@ label Error TypeError: Type Parameter T3 should be defined before use. */ +/* @@@ label Error Semantic error ESE0183: Type Parameter T3 should be defined before use. */ diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_2.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_2.ets index ab1b916139c3d8e88c0e0292b70a5f1148a6277d..ad6f3f60a550b50fc6c1beae50c65297b634ab14 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_2.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_2.ets @@ -13,4 +13,4 @@ * limitations under the License. */ function foo(){} -/* @@@ label Error TypeError: Type Parameter F should be defined before use. */ +/* @@@ label Error Semantic error ESE0183: Type Parameter F should be defined before use. */ diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_3.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_3.ets index deee3d30ac208988a3b3656ca3891634b3900924..9b03b70037484bd534520ed5fa6f7c7d6834a4ec 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_3.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_3.ets @@ -14,4 +14,4 @@ */ class SomeType{} function foo(){} -/* @@@ label Error TypeError: Type Parameter T2 should be defined before use. */ +/* @@@ label Error Semantic error ESE0183: Type Parameter T2 should be defined before use. */ diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_4.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_4.ets index 1335e78b5511a66600af3beba23f745c2a5ea592..33dc2ddb8d9b328fa4daf8175d83839c07b90e1e 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_4.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_4.ets @@ -14,4 +14,4 @@ */ class SomeType{} function foo(){} -/* @@@ label Error TypeError: Type Parameter T2 should be defined before use. */ +/* @@@ label Error Semantic error ESE0183: Type Parameter T2 should be defined before use. */ diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_5.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_5.ets index 807151f8e0e1f84246a66c1c49cb601d2d46dedf..5efdd6a870b205036558f77d05c7ecc7a248e2dd 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_5.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_5.ets @@ -14,4 +14,4 @@ */ class SomeType{} function foo(){} -/* @@? 1:3 Error TypeError: Type Parameter T2 should be defined before use. */ +/* @@? 1:3 Error Semantic error ESE0183: Type Parameter T2 should be defined before use. */ diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_6.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_6.ets index 56b63e63fe59f3c8a9a57f50571e438eb4918ac7..a153c6d94fa40a7b42fcd49bbe93d06e0741bacf 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_6.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_6.ets @@ -14,4 +14,4 @@ */ class SomeType{} function foo, T2=SomeType>(){} -/* @@@ label Error TypeError: Type Parameter T2 should be defined before use. */ +/* @@@ label Error Semantic error ESE0183: Type Parameter T2 should be defined before use. */ diff --git a/ets2panda/test/ast/parser/ets/generic_error.ets b/ets2panda/test/ast/parser/ets/generic_error.ets index 195bb99fa68ac1963cc56e5125ac5d2ba0d50148..33e94747035d1d28f9697a2e98ef5c2c3d217304 100644 --- a/ets2panda/test/ast/parser/ets/generic_error.ets +++ b/ets2panda/test/ast/parser/ets/generic_error.ets @@ -23,4 +23,4 @@ function main(): void { let m = new OldMap/* @@ label */(); } -/* @@@ label Error TypeError: Type argument 'C' should be a subtype of 'Comparable'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'C' should be a subtype of 'Comparable'-constraint */ diff --git a/ets2panda/test/ast/parser/ets/generic_lambda_err1.ets b/ets2panda/test/ast/parser/ets/generic_lambda_err1.ets new file mode 100644 index 0000000000000000000000000000000000000000..aa2e22db83331867db56f62366bbbe7f980a91e3 --- /dev/null +++ b/ets2panda/test/ast/parser/ets/generic_lambda_err1.ets @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function main() { + let foo = < (): void => {} +} + +/* @@? 17:15 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:17 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 17:17 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 17:17 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 17:22 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:22 Error Syntax error ESY0230: Expected '=>', got 'identification literal'. */ +/* @@? 17:22 Error Semantic error ESE0143: Unresolved reference : */ +/* @@? 17:24 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@? 17:29 Error Syntax error ESY0227: Unexpected token '=>'. */ diff --git a/ets2panda/test/ast/parser/ets/generic_lambda_err2.ets b/ets2panda/test/ast/parser/ets/generic_lambda_err2.ets new file mode 100644 index 0000000000000000000000000000000000000000..da2ef6b8db83831f6727efa2fedd86f66e1db909 --- /dev/null +++ b/ets2panda/test/ast/parser/ets/generic_lambda_err2.ets @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function main() { + let foo1 = (p: T): T => p; + foo1("1", 2) + foo1("1", 2) + + let foo2 = (p: T): NonNullable =>p; + + let foo3 = (p: T): T => p; + + let foo4 = (p: T, q: U): T => p; + foo4(1) + foo4(1) + foo4(1, 1) +} + +/* @@? 17:16 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 18:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 19:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 21:16 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 23:16 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 25:16 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 26:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 27:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 28:5 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/parser/ets/generic_lambda_err3.ets b/ets2panda/test/ast/parser/ets/generic_lambda_err3.ets new file mode 100644 index 0000000000000000000000000000000000000000..024f174b8f29f0326cb7745480bb19f1e235f1a8 --- /dev/null +++ b/ets2panda/test/ast/parser/ets/generic_lambda_err3.ets @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +let foo1 = +let foo2 = () +let foo3 = ; +let foo4 = (); +function main() { + let foo5 = + let foo6 = () +} + +/* @@? 17:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 18:5 Error Syntax error ESY0227: Unexpected token 'foo2'. */ +/* @@? 18:5 Error Semantic error ESE0143: Unresolved reference foo2 */ +/* @@? 18:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 18:16 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 19:5 Error Syntax error ESY0227: Unexpected token 'foo3'. */ +/* @@? 19:5 Error Semantic error ESE0143: Unresolved reference foo3 */ +/* @@? 19:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 19:15 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 20:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 20:16 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:17 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 22:16 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 23:5 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 23:9 Error Syntax error ESY0227: Unexpected token 'foo6'. */ +/* @@? 23:9 Error Semantic error ESE0143: Unresolved reference foo6 */ +/* @@? 23:16 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 23:20 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 24:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 48:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/generic_type_alias_clone_fix.ets b/ets2panda/test/ast/parser/ets/generic_type_alias_clone_fix.ets index b3b1333ceefea9271b7c62ad021d0ff1f1e39602..7424a637841a9d45141d22eccd243f9bc9210df7 100644 --- a/ets2panda/test/ast/parser/ets/generic_type_alias_clone_fix.ets +++ b/ets2panda/test/ast/parser/ets/generic_type_alias_clone_fix.ets @@ -21,6 +21,6 @@ type RecordMap = { n: number }; let myMap: MyMap<"n"> = { kind: "n" }; -/* @@? 16:37 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 16:41 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 20:18 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 16:37 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 16:41 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 20:18 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ diff --git a/ets2panda/test/ast/parser/ets/generics_type_param_constraint_8.ets b/ets2panda/test/ast/parser/ets/generics_type_param_constraint_8.ets index 3b5e329f9125c419349f8fe197fa7d770b29c5d8..d6c7c670f4aa24ed050981ecb0a1cb1c648f827f 100644 --- a/ets2panda/test/ast/parser/ets/generics_type_param_constraint_8.ets +++ b/ets2panda/test/ast/parser/ets/generics_type_param_constraint_8.ets @@ -19,4 +19,4 @@ function main(){ const myCharClass = new X/* @@ label */(); } -/* @@@ label Error TypeError: Type argument 'Char' should be a subtype of 'Comparable'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'Char' should be a subtype of 'Comparable'-constraint */ diff --git a/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default.ets b/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default.ets index ec985c8f8164c7cd962926e9aeea6e6c883fc34d..d8a9b6f2a400b6562827ae230ef266bbc14e226d 100644 --- a/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default.ets +++ b/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default.ets @@ -21,6 +21,6 @@ class Base { class Derived extends Base {} -/* @@? 18:11 Error TypeError: Type 'Base' is generic but type argument were not provided. */ -/* @@? 22:23 Error TypeError: Type 'Base' is generic but type argument were not provided. */ -/* @@? 22:23 Error TypeError: The super type of 'Derived' class is not extensible. */ +/* @@? 18:11 Error Semantic error ESE0170: Type 'Base' is generic but type argument were not provided. */ +/* @@? 22:23 Error Semantic error ESE0170: Type 'Base' is generic but type argument were not provided. */ +/* @@? 22:23 Error Semantic error ESE0176: The super type of 'Derived' class is not extensible. */ diff --git a/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default_2.ets b/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default_2.ets index 5b73550d836b3e5d1bd1766bfd53541b189e90e1..941254b96a8846122a4faa28fa5c2ef536174d53 100644 --- a/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default_2.ets +++ b/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default_2.ets @@ -40,5 +40,5 @@ function doSomethingUseful() { } -/* @@@ label Error TypeError: Type 'Boxx' is generic but type argument were not provided. */ -/* @@@ label1 Error TypeError: Type 'Boxx' is generic but type argument were not provided. */ +/* @@@ label Error Semantic error ESE0170: Type 'Boxx' is generic but type argument were not provided. */ +/* @@@ label1 Error Semantic error ESE0170: Type 'Boxx' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/parser/ets/get_unexpected_void.ets b/ets2panda/test/ast/parser/ets/get_unexpected_void.ets index 0a698416952148b24f4b3c2561cf69d54104dd5e..ba3b398421fbafa791c93f5cb781ce10fcd18c73 100644 --- a/ets2panda/test/ast/parser/ets/get_unexpected_void.ets +++ b/ets2panda/test/ast/parser/ets/get_unexpected_void.ets @@ -17,5 +17,5 @@ class SomeClass { $_get (index: string, value: SomeClass) { } } -/* @@? 17:5 Error SyntaxError: The special predefined method '$_get' should have exactly one required parameter. */ -/* @@? 17:11 Error TypeError: 'The special predefined method '$_get' shouldn't have void return type. */ +/* @@? 17:5 Error Syntax error ESY0221: The special predefined method '$_get' should have exactly one required parameter. */ +/* @@? 17:11 Error Semantic error ESE0093: 'The special predefined method '$_get' shouldn't have void return type. */ diff --git a/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets b/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets index 2247606d2b4079e8136a1d4f7c1b70749734e65a..03f3d227417b53877debde949e5f3034a99bfee3 100644 --- a/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets +++ b/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets @@ -21,4 +21,4 @@ class AA implements A { /* @@ label */prop2 = new Int(); } -/* @@@ label Error TypeError: Method prop2(prop2: Int): void in AA not overriding any method */ +/* @@@ label Error Semantic error ESE0136: Method prop2(prop2: Int): void in AA not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/getter_native.ets b/ets2panda/test/ast/parser/ets/getter_native.ets index 2c36a49e5f31726058367aea48dcdd3c4e2acbb1..e4c16376cffeddbde761363b7099f6c3135fa8d2 100644 --- a/ets2panda/test/ast/parser/ets/getter_native.ets +++ b/ets2panda/test/ast/parser/ets/getter_native.ets @@ -20,4 +20,4 @@ class Door { } } -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/getter_not_abstract.ets b/ets2panda/test/ast/parser/ets/getter_not_abstract.ets index aca30c3be7474c95d31d9b5b06797131a1731b82..944187f075f291baf8ac4825d94f22122907fe97 100644 --- a/ets2panda/test/ast/parser/ets/getter_not_abstract.ets +++ b/ets2panda/test/ast/parser/ets/getter_not_abstract.ets @@ -20,6 +20,6 @@ interface A { } } -/* @@? 17:5 Error TypeError: Function color is already declared. */ -/* @@? 18:9 Error TypeError: Variable 'color' has already been declared. */ -/* @@? 18:14 Error SyntaxError: Getter and setter methods must be abstracts in the interface body. */ +/* @@? 17:5 Error Semantic error ESE0130: Function color is already declared. */ +/* @@? 18:9 Error Semantic error ESE0351: Variable 'color' has already been declared. */ +/* @@? 18:14 Error Syntax error ESY0031: Getter and setter methods must be abstracts in the interface body. */ diff --git a/ets2panda/test/ast/parser/ets/getter_setter_access_modifiers_2.ets b/ets2panda/test/ast/parser/ets/getter_setter_access_modifiers_2.ets index ba846261acb7657783e6b5a2f7dd6235c0baff0e..cf961bd766fff9f962e2bac414be0a5af8083b94 100644 --- a/ets2panda/test/ast/parser/ets/getter_setter_access_modifiers_2.ets +++ b/ets2panda/test/ast/parser/ets/getter_setter_access_modifiers_2.ets @@ -39,7 +39,7 @@ class Hex extends Core { } } -/* @@? 33:22 Error TypeError: size(s: Int): void in Hex cannot override size(s: Int): void in Core because overridden method is final. */ -/* @@? 33:22 Error TypeError: Method size(s: Int): void in Hex not overriding any method */ -/* @@? 37:22 Error TypeError: size(): Int in Hex cannot override size(): Int in Core because overridden method is final. */ -/* @@? 37:22 Error TypeError: Method size(): Int in Hex not overriding any method */ +/* @@? 33:22 Error Semantic error ESE0141: size(s: Int): void in Hex cannot override size(s: Int): void in Core because overridden method is final. */ +/* @@? 33:22 Error Semantic error ESE0136: Method size(s: Int): void in Hex not overriding any method */ +/* @@? 37:22 Error Semantic error ESE0141: size(): Int in Hex cannot override size(): Int in Core because overridden method is final. */ +/* @@? 37:22 Error Semantic error ESE0136: Method size(): Int in Hex not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/getter_setter_endless_loop.ets b/ets2panda/test/ast/parser/ets/getter_setter_endless_loop.ets index 0336a0ba77870594f61fb9ae16977f72dea78118..a59ba07da67d54c2515418dc911ca966b4bd1095 100644 --- a/ets2panda/test/ast/parser/ets/getter_setter_endless_loop.ets +++ b/ets2panda/test/ast/parser/ets/getter_setter_endless_loop.ets @@ -26,5 +26,5 @@ function main() { a.i = 2 } -/* @@? 20:58 Warning Warning: Reading the value of the property inside its getter may lead to an endless loop. */ -/* @@? 21:52 Warning Warning: Assigning new value to the property inside its setter may lead to an endless loop. */ +/* @@? 20:58 Warning Warning W0023: Reading the value of the property inside its getter may lead to an endless loop. */ +/* @@? 21:52 Warning Warning W0024: Assigning new value to the property inside its setter may lead to an endless loop. */ diff --git a/ets2panda/test/ast/parser/ets/getter_setter_modifier_diff.ets b/ets2panda/test/ast/parser/ets/getter_setter_modifier_diff.ets index f34e24383d4cc227579e2efa4bfca728c28af2f5..6d9d405dcc6c2cfd74b4a89d757ea821031afd04 100644 --- a/ets2panda/test/ast/parser/ets/getter_setter_modifier_diff.ets +++ b/ets2panda/test/ast/parser/ets/getter_setter_modifier_diff.ets @@ -18,4 +18,4 @@ class A { final get foo/* @@ label */(): int {} } -/* @@@ label Error TypeError: Getter and setter methods must have the same accessor modifiers */ +/* @@@ label Error Semantic error ESE0220: Getter and setter methods must have the same accessor modifiers */ diff --git a/ets2panda/test/ast/parser/ets/getter_setter_modifier_limited.ets b/ets2panda/test/ast/parser/ets/getter_setter_modifier_limited.ets index cb74e1bad8706a07fc92664706f8e14986981059..fad67bd6a312b967802ced0fdcdf7ce108dfe7bd 100644 --- a/ets2panda/test/ast/parser/ets/getter_setter_modifier_limited.ets +++ b/ets2panda/test/ast/parser/ets/getter_setter_modifier_limited.ets @@ -18,4 +18,4 @@ class Person { async get age(): number { return this._age } } -/* @@? 18:11 Error SyntaxError: Modifiers of getter and setter are limited to ('abstract', 'static', 'final', 'override', 'native'). */ +/* @@? 18:11 Error Syntax error ESY0107: Modifiers of getter and setter are limited to ('abstract', 'static', 'final', 'override', 'native'). */ diff --git a/ets2panda/test/ast/parser/ets/global_const_vars1.ets b/ets2panda/test/ast/parser/ets/global_const_vars1.ets index 5a02f4857ea19832129ae347522496bdeb7dac75..cabcaccb20a70da9c6de6945dd02fcf423b572be 100644 --- a/ets2panda/test/ast/parser/ets/global_const_vars1.ets +++ b/ets2panda/test/ast/parser/ets/global_const_vars1.ets @@ -18,4 +18,4 @@ const a: int; function main(): void {} -/* @@? 17:8 Error TypeError: Missing initializer in const declaration */ +/* @@? 17:8 Error Semantic error ESE0363: Missing initializer in const declaration */ diff --git a/ets2panda/test/ast/parser/ets/global_const_vars2.ets b/ets2panda/test/ast/parser/ets/global_const_vars2.ets index d84138433ce82362ab8006eaaaf14b6305b06bf5..777f2ce0c3ccde76260b4db4b5909647823b0e92 100644 --- a/ets2panda/test/ast/parser/ets/global_const_vars2.ets +++ b/ets2panda/test/ast/parser/ets/global_const_vars2.ets @@ -17,4 +17,4 @@ const date: Date/* @@ label */; function main(): void {} -/* @@? 16:10 Error TypeError: Missing initializer in const declaration */ +/* @@? 16:10 Error Semantic error ESE0363: Missing initializer in const declaration */ diff --git a/ets2panda/test/ast/parser/ets/global_const_vars4.ets b/ets2panda/test/ast/parser/ets/global_const_vars4.ets index 7cc9886ebc6b5cb5cf5321c5c4dd6320e20ce637..c3360a9e0c12fd8179c215cacd62ba3707e4a09a 100644 --- a/ets2panda/test/ast/parser/ets/global_const_vars4.ets +++ b/ets2panda/test/ast/parser/ets/global_const_vars4.ets @@ -27,4 +27,4 @@ class ABC { public main(): void {} } -/* @@@ label Error TypeError: Cannot assign to a readonly variable date */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable date */ diff --git a/ets2panda/test/ast/parser/ets/illegal_break_statement.ets b/ets2panda/test/ast/parser/ets/illegal_break_statement.ets index 3dc1bb95b0fedf5110025cd5f4259b6303a8d9cd..e9e965ccbf58cecf2f96c7040396916a024ff7f3 100644 --- a/ets2panda/test/ast/parser/ets/illegal_break_statement.ets +++ b/ets2panda/test/ast/parser/ets/illegal_break_statement.ets @@ -27,8 +27,8 @@ function foo2() { console.log(a + 5) } -/* @@@ label1 Error SyntaxError: Illegal break statement. */ -/* @@@ label2 Error SyntaxError: Illegal break statement. */ -/* @@? 18:20 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 25:20 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 27:17 Error TypeError: Unresolved reference a */ +/* @@@ label1 Error Syntax error ESY0209: Illegal break statement. */ +/* @@@ label1 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label2 Error Syntax error ESY0209: Illegal break statement. */ +/* @@@ label2 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 27:17 Error Semantic error ESE0143: Unresolved reference a */ diff --git a/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets b/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets index 51b0927f20e34f8f11b9ac6404322c41acc2bace..f20d7e8bf3f934499f43627262f174987c38e5aa 100644 --- a/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets +++ b/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets @@ -41,12 +41,12 @@ function foo4() { console.log(a + 5) } -/* @@? 18:5 Error SyntaxError: Illegal continue statement. */ -/* @@? 18:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 25:5 Error SyntaxError: Illegal continue statement. */ -/* @@? 25:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 27:17 Error TypeError: Unresolved reference a */ -/* @@? 32:5 Error SyntaxError: Illegal break statement. */ -/* @@? 32:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 39:5 Error SyntaxError: Illegal break statement. */ -/* @@? 39:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 18:5 Error Syntax error ESY0165: Illegal continue statement. */ +/* @@? 18:5 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 25:5 Error Syntax error ESY0165: Illegal continue statement. */ +/* @@? 25:5 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 27:17 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 32:5 Error Syntax error ESY0209: Illegal break statement. */ +/* @@? 32:5 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 39:5 Error Syntax error ESY0209: Illegal break statement. */ +/* @@? 39:5 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ diff --git a/ets2panda/test/ast/parser/ets/illegal_line_after_throw.ets b/ets2panda/test/ast/parser/ets/illegal_line_after_throw.ets index de6228379823b9e17cec897619b56c7e804db3e8..3b3d5a8893735cb1b4cb8479ce2dd36af29061d2 100644 --- a/ets2panda/test/ast/parser/ets/illegal_line_after_throw.ets +++ b/ets2panda/test/ast/parser/ets/illegal_line_after_throw.ets @@ -25,5 +25,5 @@ throw /* @@ label */{ } -/* @@@ label Error SyntaxError: Illegal newline after throw. */ -/* @@@ label Error TypeError: need to specify target type for class composite */ +/* @@@ label Error Syntax error ESY0172: Illegal newline after throw. */ +/* @@@ label Error Semantic error ESE0062: need to specify target type for class composite */ diff --git a/ets2panda/test/ast/parser/ets/import_assertion.ets b/ets2panda/test/ast/parser/ets/import_assertion.ets index bbf4ed4a28bea17c89c9a37aa2acf3f6143bb3bc..180ea60151efaa82753f25aa1a9859848468f1f7 100644 --- a/ets2panda/test/ast/parser/ets/import_assertion.ets +++ b/ets2panda/test/ast/parser/ets/import_assertion.ets @@ -16,7 +16,7 @@ import * as Pt from "mod" /* @@ label1 */assert /* @@ label2 */{ type: /* @@ label3 */"json" } -/* @@@ label1 Error SyntaxError: Import assertion is not supported, please use the ordinary import syntax instead! */ -/* @@@ label1 Error TypeError: Unresolved reference assert */ -/* @@@ label2 Error SyntaxError: Unexpected token '{'. */ -/* @@@ label3 Error SyntaxError: Label must be followed by a loop statement. */ +/* @@@ label1 Error Syntax error ESY0313: Import assertion is not supported, please use the ordinary import syntax instead! */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference assert */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label3 Error Syntax error ESY0038: Label must be followed by a loop statement. */ diff --git a/ets2panda/test/ast/parser/ets/import_no_empty_binding_list.ets b/ets2panda/test/ast/parser/ets/import_no_empty_binding_list.ets index dd2ff3124f685c3e2ecc51514d1e4a27b8f41f38..d4db418f32715cea71242de06caeb3b74c775404 100644 --- a/ets2panda/test/ast/parser/ets/import_no_empty_binding_list.ets +++ b/ets2panda/test/ast/parser/ets/import_no_empty_binding_list.ets @@ -15,6 +15,6 @@ import {/* @@ label1 */} /* @@ label2 */from /* @@ label3 */'module' -/* @@@ label1 Error SyntaxError: Importing for side-effect only is prohibited! Please provide objects to be imported explicitly or use * to import all objects declared in the module! */ -/* @@@ label2 Error TypeError: Unresolved reference from */ -/* @@@ label3 Error SyntaxError: Unexpected token 'module'. */ +/* @@@ label1 Error Syntax error ESY73297: Importing for side-effect only is prohibited! Please provide objects to be imported explicitly or use * to import all objects declared in the module! */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference from */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token 'module'. */ diff --git a/ets2panda/test/ast/parser/ets/import_no_side_effect.ets b/ets2panda/test/ast/parser/ets/import_no_side_effect.ets index cd4d80cab0b0de58957e3a3cec521d46be29cc37..91dadd50ddb03a018f7e67979f2c96bc3e972e33 100644 --- a/ets2panda/test/ast/parser/ets/import_no_side_effect.ets +++ b/ets2panda/test/ast/parser/ets/import_no_side_effect.ets @@ -15,4 +15,4 @@ import /* @@ label1 */'module' -/* @@@ label1 Error SyntaxError: Importing for side-effect only is prohibited! Please provide objects to be imported explicitly or use * to import all objects declared in the module! */ +/* @@@ label1 Error Syntax error ESY73297: Importing for side-effect only is prohibited! Please provide objects to be imported explicitly or use * to import all objects declared in the module! */ diff --git a/ets2panda/test/ast/parser/ets/import_require.ets b/ets2panda/test/ast/parser/ets/import_require.ets index ad8766f57b15aa3ff127e8aa45c4e8fd08d393da..0253736dddf83b2ee7da018f8c56b74d88fa0d9b 100644 --- a/ets2panda/test/ast/parser/ets/import_require.ets +++ b/ets2panda/test/ast/parser/ets/import_require.ets @@ -15,7 +15,7 @@ import m /* @@ label1 */= /* @@ label2 */require("mod") -/* @@@ label1 Error SyntaxError: Importing by 'require' and 'import' assignment is not supported, use 'import * as ... from ...' form instead! */ -/* @@@ label1 Error SyntaxError: Unexpected token '='. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'require'. */ -/* @@@ label2 Error TypeError: Unresolved reference require */ +/* @@@ label1 Error Syntax error ESY0312: Importing by 'require' and 'import' assignment is not supported, use 'import * as ... from ...' form instead! */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'require'. */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference require */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/Import_error_token_1.ets b/ets2panda/test/ast/parser/ets/import_tests/Import_error_token_1.ets index 349644d2b1c53f4dce7f394b7236b53c35038546..8f4a9f6f6060b3ed114f4f4cf85e91798a6e02e9 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/Import_error_token_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/Import_error_token_1.ets @@ -18,8 +18,8 @@ function main():void{ console.log("not hehe") } -/* @@? 15:10 Error SyntaxError: Expected 'as', got 'number literal'. */ -/* @@? 15:10 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 15:16 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 15:21 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 15:26 Error SyntaxError: Unexpected token 'import_tests/packages'. */ +/* @@? 15:10 Error Syntax error ESY0230: Expected 'as', got 'number literal'. */ +/* @@? 15:10 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 15:16 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 15:21 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 15:26 Error Syntax error ESY0227: Unexpected token 'import_tests/packages'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/check_exported_1.ets b/ets2panda/test/ast/parser/ets/import_tests/check_exported_1.ets index 816c81ef2bb7fd4d7f64629887f70ae20cc78be0..a8aacf8b8f1401d6298cf3a266ffbc9ec69b6be5 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/check_exported_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/check_exported_1.ets @@ -20,4 +20,4 @@ function main(): void { all./* @@ label */bar(); } -/* @@@ label Error TypeError: Property 'bar' does not exist on type 'check_exported_2' */ +/* @@@ label Error Semantic error ESE0087: Property 'bar' does not exist on type 'check_exported_2' */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/default_import2.ets b/ets2panda/test/ast/parser/ets/import_tests/default_import2.ets index f7f0e843222a482907d9da90452ec1ea75aa2ae0..fe6efec2eed691f5de61c3af8022abb56f588ec1 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/default_import2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/default_import2.ets @@ -15,4 +15,4 @@ import default_imported from /* @@ label */"import_tests/modules/missing_default_export"; -/* @@@ label Error TypeError: Cannot find default imported element in the target */ +/* @@@ label Error Semantic error ESE0358: Cannot find default imported element in the target */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/default_import3.ets b/ets2panda/test/ast/parser/ets/import_tests/default_import3.ets index b9a0fc925dd40d790769244bf0030d9bd04c5c3b..be36dac487cf446e67843d47789e08d570021743 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/default_import3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/default_import3.ets @@ -15,8 +15,8 @@ import {default/* @@ label */} from /* @@ label1 */"./modules/class_default_module.ets"/* @@ label2 */; -/* @@@ label Error SyntaxError: Unexpected token, expected 'as'. */ -/* @@@ label Error SyntaxError: Unexpected token '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected string literal. */ +/* @@@ label Error Syntax error ESY0095: Unexpected token, expected 'as'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@@ label1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label2 Error Syntax error ESY0151: Unexpected token, expected string literal. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/export_no_comma.ets b/ets2panda/test/ast/parser/ets/import_tests/export_no_comma.ets index 3693002348813a5254988bafdd92016a5f7fa535..3e17eab9f76db3a9d77c576d48a17aa990029612 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/export_no_comma.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/export_no_comma.ets @@ -18,5 +18,5 @@ function foo2(): void {} export {foo1 /* @@ label */foo2/* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/export_trailing_comma.ets b/ets2panda/test/ast/parser/ets/import_tests/export_trailing_comma.ets index 9a2411abe4612dd07bcd19cd111b7105603b3191..b0c3740d902728516a3f66d388fc25e317ac7436 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/export_trailing_comma.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/export_trailing_comma.ets @@ -19,4 +19,4 @@ function foo3(): void {} export {foo2,} export {/* @@ label */, foo3} -/* @@@ label Error SyntaxError: Unexpected token ','. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_2.ets index 553ab2b2879887e1a0d12fb9c88a0ccabf68bc1c..0ccd5e092b85e1d0ebf6d74352d4d33a192b57ce 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_2.ets @@ -20,4 +20,4 @@ function main():void{ } -/* @@@ label Error TypeError: 'bar1' type does not exist. */ +/* @@@ label Error Semantic error ESE0070: 'bar1' type does not exist. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_3.ets b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_3.ets index bcd085eb42ae99983ddc91bbb0e32dc3a423d36e..ee7a3f96693b7256b74b1d7ecd0cdd56573c318a 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_3.ets @@ -20,4 +20,4 @@ function main():void{ } -/* @@@ label Error TypeError: Property 'foo1' does not exist on type 'export' */ +/* @@@ label Error Semantic error ESE0087: Property 'foo1' does not exist on type 'export' */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_4.ets b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_4.ets index 67fe814600c5d3fa0386030409597e46f621986b..b579ebd7d3a2c7f063085c088d3942580d2399d5 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_4.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_4.ets @@ -20,4 +20,4 @@ function main():void{ } -/* @@@ label Error TypeError: Property 'goo1' does not exist on type 'export' */ +/* @@@ label Error Semantic error ESE0087: Property 'goo1' does not exist on type 'export' */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_all_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_all_2.ets index b7ea1a2d115de773d643b276c052511f342a852a..b7950c38a970f3de6eec0c57c261d781d150b48a 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_all_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_all_2.ets @@ -19,4 +19,4 @@ function main(): void { all./* @@ label */DefaultExportedFunc(); } -/* @@@ label Error TypeError: Property 'DefaultExportedFunc' does not exist on type 'default_export' */ +/* @@@ label Error Semantic error ESE0087: Property 'DefaultExportedFunc' does not exist on type 'default_export' */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_2.ets index 6e328b67b42326b2ae3945e639baf0b6530121ab..ff711bb415fff542d5e78ec64d02985539f40322 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_2.ets @@ -19,5 +19,5 @@ import * as Test from "import_tests/packages"; let x = foo(dbl /* double based signature */); -/* @@? 20:9 Error TypeError: Unresolved reference foo */ -/* @@? 20:9 Error TypeError: This expression is not callable. */ +/* @@? 20:9 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 20:9 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_neg.ets b/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_neg.ets index c2552fb47d7ecf906ea63667466eac4d5914d7a1..a0a945ecbe579990fa2a804b37881b44226eaf08 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_neg.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_neg.ets @@ -17,5 +17,5 @@ import * as Test from "import_tests/packages"; function main() { Test() } -/* @@? 18:19 Error TypeError: Namespace style identifier Test is not callable. */ -/* @@? 18:19 Error TypeError: No static $_invoke method and static $_instantiate method in Test. Test() is not allowed. */ +/* @@? 18:19 Error Semantic error ESE0295: Namespace style identifier Test is not callable. */ +/* @@? 18:19 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Test. Test() is not allowed. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_folder_n.ets b/ets2panda/test/ast/parser/ets/import_tests/import_folder_n.ets index 68fe6856ceedb4b4eb6a8a2a97c85ace10664244..c1ceb9ff649f317de831b6267816841349944403 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_folder_n.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_folder_n.ets @@ -15,4 +15,4 @@ import * as all from /* @@ label */"./folderWithoutIndexOrPackage" -/* @@@ label Error TypeError: Cannot find index.[ets|ts] or package module in folder: ./folderWithoutIndexOrPackage */ +/* @@@ label Error Semantic error ESE0359: Cannot find index.[ets|ts] or package module in folder: ./folderWithoutIndexOrPackage */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_2.ets index 47185e975be32cf0056279b7d9b564aa7492173b..55b28b53ef9407f06381bdf8c0be42cc518936e9 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_2.ets @@ -18,5 +18,4 @@ import {foo, flt} from "import_tests/packages"; // Throw error: "dbl" is not visible. let x = foo(dbl); -/* @@? 19:13 Error TypeError: Unresolved reference dbl */ - +/* @@? 19:13 Error Semantic error ESE0143: Unresolved reference dbl */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_3.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_3.ets index 5b2415ea078caa528cc740e79e37d0088b2fae69..0bd3d39ebc21cac1627dfe741fd0c984c6d2712d 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_3.ets @@ -15,4 +15,4 @@ import {DefaultExportedFunc} from /* @@ label */"import_tests/modules/default_export"; -/* @@@ label Error TypeError: Use the default import syntax to import a default exported element */ +/* @@@ label Error Semantic error ESE0353: Use the default import syntax to import a default exported element */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_alias_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_alias_2.ets index dede176fccbb130dad6d9984f2d7f4486e8e8fab..53c9826a53334e6e9ccbf665e032f1d584d503d0 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_alias_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_alias_2.ets @@ -18,5 +18,5 @@ import {foo as Foo, dbl} from "import_tests/packages"; // Throw error: Foo qualifier should be used instead of foo. let x = foo(dbl); -/* @@? 19:9 Error TypeError: Unresolved reference foo */ -/* @@? 19:9 Error TypeError: This expression is not callable. */ +/* @@? 19:9 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 19:9 Error Semantic error ESE0289: This expression is not callable. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_1.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_1.ets index cf73cdfa0c5ee6992cde143dee77279f2311eb9f..ce5022f585434b9fde8fbfcbef34247c9830e58b 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_1.ets @@ -18,4 +18,4 @@ import {flt as floatingPointNumber} from /* @@ label */"import_tests/packages"; // Throw error because floatingPointNumber is for multiple value. -/* @@@ label Error TypeError: Variable 'floatingPointNumber' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Variable 'floatingPointNumber' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_10.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_10.ets index da0bfebf30e45262a08d7196b66dd4d1910623fe..ec8609df5b9678fc6e67939314217a6c0c672525 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_10.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_10.ets @@ -20,4 +20,4 @@ function foo(): int { } //Throw error: Variable 'foo' is already defined. -/* @@@ label Error TypeError: Variable 'foo' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Variable 'foo' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_11.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_11.ets index f5fcd7f50fc6f7a366abd4a48654d4593dcfa623..cdac6e4150139baf43b81a4ecf03568b804a9921 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_11.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_11.ets @@ -18,4 +18,4 @@ import {bar} from /* @@ label */"./check_exported_3"; let bar: int = 1; //Throw error: Function already declared. -/* @@@ label Error TypeError: Function 'bar' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Function 'bar' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_12.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_12.ets index df4213856b46e0a382d7b1ff06aa80519a7fe5b1..457aae8205c99c95d6dca4aa1159142e7a04e303 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_12.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_12.ets @@ -20,4 +20,4 @@ function Point(): int { } //Throw error: Class already declared. -/* @@@ label Error TypeError: Class 'Point' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Class 'Point' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_2.ets index 071330db39e8b1b4413eb2e232185e4f84420d9b..15ea5eff31d0df8633602711248f96b745565836 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_2.ets @@ -17,4 +17,4 @@ import * as all from "import_tests/packages/var-duplication"; // Throw error: "a" is defined twice in this package. -/* @@? subpackage_module_2.ets:19:12 Error TypeError: Variable 'a' has already been declared. */ +/* @@? subpackage_module_2.ets:19:12 Error Semantic error ESE0351: Variable 'a' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_4.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_4.ets index 98e9319e039dac7484a8ad3a462e3aa8c50aeade..fcc59f60cca326644a99dedbcf09a206ed8f2147 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_4.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_4.ets @@ -18,4 +18,4 @@ import {foo} from /* @@ label */"import_tests/packages/subpackage-1"; let foo: int = 1; //Throw error: Variable 'foo' is already defined. -/* @@@ label Error TypeError: Variable 'foo' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Variable 'foo' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_5.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_5.ets index 9e117d9e1ab7d4b8e20bb28f22264209870779be..993dce0a01f284983d6d9793b72f3d18b47c7a00 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_5.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_5.ets @@ -20,4 +20,4 @@ function bar(): int { } //Throw error: Function already declared. -/* @@? check_exported_3.ets:16:8 Error TypeError: Function bar is already declared. */ +/* @@? check_exported_3.ets:16:8 Error Semantic error ESE0130: Function bar is already declared. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_6.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_6.ets index 294064cf7afb2839affe728eb9af694e6127969d..d9b2421715625cac4d8717c9a3dbd6cd30bbf83f 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_6.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_6.ets @@ -18,4 +18,4 @@ import {Point} from /* @@ label */"import_tests/relative_import/Point"; class Point {} //Throw error: Class already declared. -/* @@@ label Error TypeError: Class 'Point' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Class 'Point' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_7.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_7.ets index dbae3e3415a0343f7663e0b265747b4bfa46ff88..00dee73f5fdf55a783f57c509171f163ff1a9cbb 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_7.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_7.ets @@ -18,4 +18,4 @@ import {foo} from /* @@ label */"import_tests/packages/subpackage-1"; class foo{}; //Throw error: Variable 'foo' is already defined. -/* @@@ label Error TypeError: Variable 'foo' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Variable 'foo' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_8.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_8.ets index c4964db7f370a544174036d92d1077c4ba5c5195..631d58239a21fa9bd5d0d941afb62308c3ec5fc1 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_8.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_8.ets @@ -18,4 +18,4 @@ import {bar} from /* @@ label */"./check_exported_3"; class bar{}; //Throw error: Function already declared. -/* @@@ label Error TypeError: Function 'bar' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Function 'bar' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_9.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_9.ets index 495c4ff7762ed71bdd384ae77eef3cd9a4f46ba4..1232981198202e760264e0a2895246834b8b35a5 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_9.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_9.ets @@ -18,4 +18,4 @@ import {Point} from /* @@ label */"import_tests/relative_import/Point"; let Point: int = 1; //Throw error: Class already declared. -/* @@@ label Error TypeError: Class 'Point' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Class 'Point' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_1.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_1.ets index 31857cd3baa5977409841e142af020aa2cc06f2a..636570a73672a9c7bfdf87ffdaf02d77d0bf9e48 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_1.ets @@ -20,4 +20,4 @@ import {foo_2 as foo} from "./imported_module_2.ets" function main() : void {} // NOTE(kaskov): Add more precise error, when will be suggestions -/* @@? imported_module_2.ets:27:8 Error TypeError: Function foo_1 is already declared. */ +/* @@? imported_module_2.ets:27:8 Error Semantic error ESE0130: Function foo_1 is already declared. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_2.ets index 80cf35a01688ce17300985d68f488c92d8812419..5bc7c958c71a6699310b8b2251528e2164631de4 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_2.ets @@ -19,4 +19,4 @@ import {flt as floatingPointNumber} from /* @@ label */"./imported_module_2.ets" function main() {} -/* @@@ label Error TypeError: Variable 'floatingPointNumber' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Variable 'floatingPointNumber' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_3.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_3.ets index a2bd7160fe17f3e92eccaba215327e0e5a67d22d..f4e1dc7ae253a21d51e054b7b1ea89f47352d535 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_3.ets @@ -19,4 +19,4 @@ import {C as B} from /* @@ label */"./imported_module_2.ets"; function main() : void {} -/* @@@ label Error TypeError: Class 'B' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Class 'B' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_4.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_4.ets index 5f9b89e924a1f0ad95b2bb35e27429e09c897113..57e83f03aac5f906e3281ef8f373d94f7e4463ee 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_4.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_4.ets @@ -18,4 +18,4 @@ import {foo_1} from /* @@ label */"./imported_module_1.ets" function main() : void {} -/* @@@ label Error TypeError: Function 'foo_1' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Function 'foo_1' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_5.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_5.ets index de20e6e0ff210a5e93ef7fbe0dd5dd5102195c2b..bb7540a9843ec66357abbb173a8b84a9fe8f5cad 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_5.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_5.ets @@ -18,4 +18,4 @@ import /* @@ label */* as b from "./imported_module_2.ets" function main() : void {} -/* @@@ label Error TypeError: Variable 'b' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'b' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_6.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_6.ets index 48c5443552382595b13e44cb0ee5d39c66ea0f09..4e5c46c9d0d689ad17499736ddd20568222eaf54 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_6.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_6.ets @@ -20,4 +20,4 @@ import * as c from "./imported_module_2.ets"; function main() { console.log(c); } -/* @@@ label Error TypeError: Variable 'c' is already defined with different type. */ +/* @@@ label Error Semantic error ESE0350: Variable 'c' is already defined with different type. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_7.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_7.ets index 0424ee2b69cadc8d0188e8ae009156f44d9c54f5..c941bc64ac899d94c4b8d8dc2383b3f54545733c 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_7.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_7.ets @@ -18,4 +18,4 @@ import type {CType as A} from /* @@ label */"./imported_module_2.ets" function main() : void {} -/* @@@ label Error TypeError: Class 'A' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Class 'A' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_8.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_8.ets index fdd98363e97cf5b4cd2177ee8d509624f96a5e0f..579a2cf4b852865f0a50297ae51dea566bdd9528 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_8.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_8.ets @@ -18,4 +18,4 @@ import type {CType as B} from /* @@ label */"./imported_module_2.ets" function main() : void {} -/* @@@ label Error TypeError: Class 'B' is already defined. */ +/* @@@ label Error Semantic error ESE0349: Class 'B' is already defined. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_no_comma.ets b/ets2panda/test/ast/parser/ets/import_tests/import_no_comma.ets index dc956c6f393e91ca86f5165ded3bef557747b33c..1e195784eb0da92613ceea82db6706f3de9aacd7 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_no_comma.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_no_comma.ets @@ -15,9 +15,9 @@ import {foo flt} from "import_tests/packages"; -/* @@? 16:13 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 16:16 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 16:18 Error SyntaxError: Unexpected token 'from'. */ -/* @@? 16:18 Error TypeError: Unresolved reference from */ -/* @@? 16:23 Error SyntaxError: Unexpected token 'import_tests/packages'. */ +/* @@? 16:13 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 16:13 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 16:16 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 16:18 Error Syntax error ESY0227: Unexpected token 'from'. */ +/* @@? 16:18 Error Semantic error ESE0143: Unresolved reference from */ +/* @@? 16:23 Error Syntax error ESY0227: Unexpected token 'import_tests/packages'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_type_error_in_class.ets b/ets2panda/test/ast/parser/ets/import_tests/import_type_error_in_class.ets index eec369a4bf2e44807273ad3c16be2230f6855f20..2fed9ee209c75e67e91d69593531b26ad20c7a68 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_type_error_in_class.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_type_error_in_class.ets @@ -24,4 +24,4 @@ export class InImport { // used to give wrong output: // TypeError: Type '"InImport"' cannot be assigned to type 'int' [export_and_import_class.ets:21:1] -/* @@@ label Error TypeError: Type '"InImport"' cannot be assigned to type 'Int' */ +/* @@@ label Error Semantic error ESE0318: Type '"InImport"' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_type_error_top_level.ets b/ets2panda/test/ast/parser/ets/import_tests/import_type_error_top_level.ets index c22d2295148b94bd8bf2cb3b498fdcc5de568761..e7c0b161302e488dae1e2e7873cc321d521e02bc 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_type_error_top_level.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_type_error_top_level.ets @@ -25,4 +25,4 @@ export function fooImport() { // used to give wrong output: // TypeError: Type 'int' cannot be assigned to type 'String' [export_and_import_top_level.ets:21:1] -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_3.ets b/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_3.ets index 01ce457289d8db96d4edecfe7427afbbc661dcc6..4ace92bd92292021c75d395e99e86476220c6d85 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_3.ets @@ -15,4 +15,4 @@ export default * /* @@ err */from "./for_re-export" -/* @@@ err Error SyntaxError: Cannot use 'export default' in re-export context */ +/* @@@ err Error Syntax error ESY0244: Cannot use 'export default' in re-export context */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_4.ets b/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_4.ets index 51575a695b898804acc1aee67b211dd903bd73ae..63b2598927c60c971aa8d05776ccf313e0422ae0 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_4.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_4.ets @@ -15,4 +15,4 @@ export default {foo} /* @@ err */from "./for_re-export" -/* @@@ err Error SyntaxError: Cannot use 'export default' in re-export context */ +/* @@@ err Error Syntax error ESY0244: Cannot use 'export default' in re-export context */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import.ets b/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import.ets index 1a88cd181c10fa567cec1e75a845d48b1ea19229..c386fb806e916e67f146a233c36071afda0d982e 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import.ets @@ -15,4 +15,4 @@ import * /* @@ label */from "./module" -/* @@@ label Error SyntaxError: Unexpected token, expected 'as'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'as'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import2.ets b/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import2.ets index c61d893c63316b0db399820caa14a10e3ba4f4ee..7dd1bae0f51b2cf71a2ed1abac49e9ff163ab527 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import2.ets @@ -15,9 +15,9 @@ import * \u0061s something from "./module" -/* @@? 16:10 Error SyntaxError: Escape sequences are not allowed in keyword. */ -/* @@? 16:10 Error SyntaxError: Escape sequences are not allowed in 'as' keyword.*/ -/* @@? 16:10 Error SyntaxError: Expected 'as', got 'identification literal'. */ -/* @@? 16:18 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 16:28 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 16:33 Error SyntaxError: Unexpected token './module'. */ +/* @@? 16:10 Error Syntax error ESY0271: Escape sequences are not allowed in keyword. */ +/* @@? 16:10 Error Syntax error ESY0108: Escape sequences are not allowed in 'as' keyword. */ +/* @@? 16:10 Error Syntax error ESY0230: Expected 'as', got 'identification literal'. */ +/* @@? 16:18 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 16:28 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 16:33 Error Syntax error ESY0227: Unexpected token './module'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports.ets b/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports.ets index a70cf173d96343d979048d6ea9bd4d3a4ca5f515..da8aba6c5d4a25f7ee6317e92bee4da81fde7f26 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports.ets @@ -16,4 +16,4 @@ export default function TestFunc(): void {} export default /* @@ label */function TestFuncToo(): void {} -/* @@@ label Error TypeError: Only one default export is allowed in a module */ +/* @@@ label Error Semantic error ESE0374: Only one default export is allowed in a module */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports_2.ets b/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports_2.ets index 6f77ae08969085ed68d78afec23c14bfd694e02c..34ee30e44aae591026c15900a60ab71d6f941cdc 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports_2.ets @@ -15,4 +15,4 @@ export default let a = 2, /* @@ label */b = 3; -/* @@@ label Error TypeError: Only one default export is allowed in a module */ +/* @@@ label Error Semantic error ESE0374: Only one default export is allowed in a module */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_1.ets b/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_1.ets index fab0916b778f3ab73843aa401f4c04ca6d20a7e3..7f863a2280e4468e0de5ea6105007a84e8894d9d 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_1.ets @@ -17,5 +17,4 @@ export let a: String = "SubpackageA"; -/* @@? 1:1 Error SyntaxError: Files 'subpackage_module_1' and 'subpackage_module_2' are in the same folder, but have different package names. */ - +/* @@? 1:1 Error Syntax error ESY0002: Files 'subpackage_module_1' and 'subpackage_module_2' are in the same folder, but have different package names. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_2.ets b/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_2.ets index 8576819f858d3e4cb9db1476b187843fa88ac206..21d15b62661f24d0e23acd61dd51b8c7523b3600 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_2.ets @@ -17,4 +17,4 @@ export let b: String = "SubpackageA"; -/* @@? 1:1 Error SyntaxError: Files 'subpackage_module_2' and 'subpackage_module_1' are in the same folder, but have different package names. */ +/* @@? 1:1 Error Syntax error ESY0002: Files 'subpackage_module_2' and 'subpackage_module_1' are in the same folder, but have different package names. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/type/import_type_1.ets b/ets2panda/test/ast/parser/ets/import_tests/type/import_type_1.ets index 4f8dbcf52f3afec96c8659b07c1015422a283fa6..1a30f36116d3ce0477499aaf41c4731ad465248e 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/type/import_type_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/type/import_type_1.ets @@ -17,5 +17,5 @@ import {/* @@ label */A} from "./type" let aa:A; -/* @@@ label Error TypeError: Cannot find imported element 'A' */ -/* @@? 18:8 Error TypeError: Cannot find type 'A'. */ +/* @@@ label Error Semantic error ESE0356: Cannot find imported element 'A' */ +/* @@? 18:8 Error Semantic error ESE0371: Cannot find type 'A'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/type/import_type_2.ets b/ets2panda/test/ast/parser/ets/import_tests/type/import_type_2.ets index 2a63140b101334dce7c7a59b12f170279da4b941..8544706ffe3644317115a6ffd880a04f9e6a94be 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/type/import_type_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/type/import_type_2.ets @@ -17,4 +17,4 @@ import * as B from "./type" let aa:B./* @@ label */A; -/* @@@ label Error TypeError: 'A' type does not exist. */ +/* @@@ label Error Semantic error ESE0070: 'A' type does not exist. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/type/type_3.ets b/ets2panda/test/ast/parser/ets/import_tests/type/type_3.ets index ea9cf69480b354a22de4ce154b6d7bd83b015012..52c15929c18b4ac2d0e628a7ecb3f0ba894b9ec7 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/type/type_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/type/type_3.ets @@ -19,4 +19,4 @@ class TestClass {} export {foo} export type {TestClass as foo} -/* @@? 20:14 Error SyntaxError: Cannot export two different names with the same export alias name 'foo'. */ +/* @@? 20:14 Error Syntax error ESY0344: Cannot export two different names with the same export alias name 'foo'. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_after_decl_n.ets b/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_after_decl_n.ets index 5d987046c31f3fc42e772f92c6c61b87976b6b5a..7059268b068489b6468aeba9c16e02fc3f1ec5f4 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_after_decl_n.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_after_decl_n.ets @@ -19,4 +19,4 @@ class TestClass { /* @@ err */import {testFunc} from "./export" -/* @@@ err Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@@ err Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_in_block_n.ets b/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_in_block_n.ets index 5298672ca757e1a3c871686e9725aeaacb1898bd..f28e7061049fcc9cd276fe88664d709ef97f0225 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_in_block_n.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_in_block_n.ets @@ -17,4 +17,4 @@ function main(): void { /* @@ err */import {testFunc} from "./export" } -/* @@@ err Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@@ err Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ diff --git a/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined-invalid.ets b/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined-invalid.ets index 76b9878b1c36fbd27e2062fd1970415712d7794a..6c2eccf3ceb21c46f33043b423d266819c59ca09 100644 --- a/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined-invalid.ets +++ b/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined-invalid.ets @@ -16,6 +16,6 @@ let a = 1; a/* @@ label */~/* @@ label2 */!/* @@ label3 */; } -/* @@@ label Error SyntaxError: Unexpected token '~'. */ -/* @@@ label2 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ -/* @@@ label3 Error SyntaxError: Unexpected token ';'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '~'. */ +/* @@@ label2 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token ';'. */ diff --git a/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined.ets b/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined.ets index 8ff53d347d508bb5812c2e703ff534e6949cbfe0..7eb29c586e03a72e030e2afea512088cf14d6881 100644 --- a/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined.ets +++ b/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined.ets @@ -17,5 +17,5 @@ a!++; } - /* @@? 17:3 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ - /* @@? 17:3 Error TypeError: Type 'Double' cannot be assigned to type 'undefined' */ + /* @@? 17:3 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'undefined' */ +/* @@? 17:3 Error Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ diff --git a/ets2panda/test/ast/parser/ets/index_not_support_such_type.ets b/ets2panda/test/ast/parser/ets/index_not_support_such_type.ets index c713e3133391f444913437cfa2c9202fed1f4723..b030bad86d9df21a0fde9cf0e585bdc0e7f36e9e 100644 --- a/ets2panda/test/ast/parser/ets/index_not_support_such_type.ets +++ b/ets2panda/test/ast/parser/ets/index_not_support_such_type.ets @@ -18,12 +18,12 @@ function main() { console.log(/* @@ label */a[0]) } -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@@ label Error TypeError: Object type doesn't have proper index access method. */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@@ label Error Semantic error ESE0250: Object type doesn't have proper index access method. */ diff --git a/ets2panda/test/ast/parser/ets/index_signature_error_1.ets b/ets2panda/test/ast/parser/ets/index_signature_error_1.ets index 1b35a8935cd1cc2272f60787d375109beb7f69df..ba5c406d5583b2ae229227792e6fc412a9293939 100644 --- a/ets2panda/test/ast/parser/ets/index_signature_error_1.ets +++ b/ets2panda/test/ast/parser/ets/index_signature_error_1.ets @@ -22,6 +22,6 @@ function getStringArray(): StringArray { let myArray: StringArray = getStringArray() let secondItem = /* @@ label3 */myArray[1] -/* @@@ label1 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@@ label2 Error TypeError: Type 'Array' is not compatible with the enclosing method's return type 'StringArray' */ -/* @@@ label3 Error TypeError: Object type doesn't have proper index access method. */ +/* @@@ label1 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@@ label2 Error Semantic error ESE0091: Type 'Array' is not compatible with the enclosing method's return type 'StringArray' */ +/* @@@ label3 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ diff --git a/ets2panda/test/ast/parser/ets/index_signature_error_2.ets b/ets2panda/test/ast/parser/ets/index_signature_error_2.ets index 8eee907561bbfa0bce864432ac495e2390222ce0..18e33ba991ff426bb6d5a0d2dadc525f46ae4472 100644 --- a/ets2panda/test/ast/parser/ets/index_signature_error_2.ets +++ b/ets2panda/test/ast/parser/ets/index_signature_error_2.ets @@ -22,6 +22,6 @@ function getStringArray(): StringArray { let myArray: StringArray = getStringArray() let secondItem = /* @@ label3 */myArray[1] -/* @@@ label1 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@@ label2 Error TypeError: Type 'Array' is not compatible with the enclosing method's return type 'StringArray' */ -/* @@@ label3 Error TypeError: Object type doesn't have proper index access method. */ +/* @@@ label1 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@@ label2 Error Semantic error ESE0091: Type 'Array' is not compatible with the enclosing method's return type 'StringArray' */ +/* @@@ label3 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ diff --git a/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets b/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets index ac7b4b0c7c171b9778e6ce94d1fd917e7cd6e608..75e4ef7bd5caf9db2770c7c85c9c58d2381bbf0a 100644 --- a/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets +++ b/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets @@ -18,4 +18,4 @@ class B extends A {} class C extends B {} class D extends C {} -/* @@@ label Error TypeError: Cyclic inheritance involving A. */ +/* @@@ label Error Semantic error ESE0310: Cyclic inheritance involving A. */ diff --git a/ets2panda/test/ast/parser/ets/instanceof_on_type.ets b/ets2panda/test/ast/parser/ets/instanceof_on_type.ets index cb4b9dcc7b05ba006d5618998dd5107762e997e5..ad3af703c6d56d6421df7bda8df4da3d9b41dd5d 100644 --- a/ets2panda/test/ast/parser/ets/instanceof_on_type.ets +++ b/ets2panda/test/ast/parser/ets/instanceof_on_type.ets @@ -22,6 +22,6 @@ let c = X instanceof Object let d = X instanceof X let f = B instanceof Object -/* @@? 21:9 Error SyntaxError: The left operand of 'instanceof' operator cannot be a type. */ -/* @@? 22:9 Error SyntaxError: The left operand of 'instanceof' operator cannot be a type. */ -/* @@? 23:9 Error SyntaxError: The left operand of 'instanceof' operator cannot be a type. */ +/* @@? 21:9 Error Syntax error ESY0310: The left operand of 'instanceof' operator cannot be a type. */ +/* @@? 22:9 Error Syntax error ESY0310: The left operand of 'instanceof' operator cannot be a type. */ +/* @@? 23:9 Error Syntax error ESY0310: The left operand of 'instanceof' operator cannot be a type. */ diff --git a/ets2panda/test/ast/parser/ets/instanceof_with_not_object_type.ets b/ets2panda/test/ast/parser/ets/instanceof_with_not_object_type.ets index 3e2f65ca14c6bc0efecfa9dd3ba1bd0e7870adf9..220a1dd7d9df6ec10cab8b54a7255f8f7d5bd316 100644 --- a/ets2panda/test/ast/parser/ets/instanceof_with_not_object_type.ets +++ b/ets2panda/test/ast/parser/ets/instanceof_with_not_object_type.ets @@ -24,4 +24,4 @@ function main() b instanceof /* @@ label */a } -/* @@@ label Error TypeError: Cannot find type 'a'. */ +/* @@@ label Error Semantic error ESE0371: Cannot find type 'a'. */ diff --git a/ets2panda/test/ast/parser/ets/instantied_abstract_class_with_array_creation_expression.ets b/ets2panda/test/ast/parser/ets/instantied_abstract_class_with_array_creation_expression.ets index a9c83cba573101604395d806492b98a8927ddadb..0a70e719ba1b55bb214133cf66717b88020c1076 100644 --- a/ets2panda/test/ast/parser/ets/instantied_abstract_class_with_array_creation_expression.ets +++ b/ets2panda/test/ast/parser/ets/instantied_abstract_class_with_array_creation_expression.ets @@ -19,4 +19,4 @@ function main(): void { /* @@ label */new cls[10]; } -/* @@@ label Error TypeError: Cannot use array creation expression with abstract classes and interfaces. */ +/* @@@ label Error Semantic error ESE0050: Cannot use array creation expression with abstract classes and interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/instantied_interface_with_array_creation_expression.ets b/ets2panda/test/ast/parser/ets/instantied_interface_with_array_creation_expression.ets index d933bf947b3e030112da0b3b7b9d5d9805006e62..e4449434f54920089239ceeeb73caef3237c2d5c 100644 --- a/ets2panda/test/ast/parser/ets/instantied_interface_with_array_creation_expression.ets +++ b/ets2panda/test/ast/parser/ets/instantied_interface_with_array_creation_expression.ets @@ -19,4 +19,4 @@ function main(): void { /* @@ label */new iface[5]; } -/* @@@ label Error TypeError: Cannot use array creation expression with abstract classes and interfaces. */ +/* @@@ label Error Semantic error ESE0050: Cannot use array creation expression with abstract classes and interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/interface-override-function.ets b/ets2panda/test/ast/parser/ets/interface-override-function.ets index f874ad76b546004cab1f1691b90849f51273ddd0..2fdd4b13b3a9e693db3c73edc60ad8d9e06caecf 100644 --- a/ets2panda/test/ast/parser/ets/interface-override-function.ets +++ b/ets2panda/test/ast/parser/ets/interface-override-function.ets @@ -26,4 +26,4 @@ interface J extends K { } -/* @@@ label Error SyntaxError: 'override' modifier cannot appear in interfaces. */ +/* @@@ label Error Syntax error ESY0189: 'override' modifier cannot appear in interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/interface.ets b/ets2panda/test/ast/parser/ets/interface.ets index 2821c3c019f7328414ee348c7c331eb3bda9c326..31abb0221ef6a0d3a3c10bf8ee7a3978fafe2df5 100644 --- a/ets2panda/test/ast/parser/ets/interface.ets +++ b/ets2panda/test/ast/parser/ets/interface.ets @@ -17,4 +17,4 @@ interface G {} -/* @@@ label Error TypeError: Cannot find type 'FunctioN'. */ +/* @@@ label Error Semantic error ESE0371: Cannot find type 'FunctioN'. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceAbstract.ets b/ets2panda/test/ast/parser/ets/interfaceAbstract.ets index 4f1a56deb14a48723faf29badceed9ba0a74e788..f60d6c08f2636f314cd55b9c20ac1a9ca011f9c6 100644 --- a/ets2panda/test/ast/parser/ets/interfaceAbstract.ets +++ b/ets2panda/test/ast/parser/ets/interfaceAbstract.ets @@ -17,4 +17,4 @@ interface Vehicle { private getHorsePower/* @@ label */(rpm: int, torque: int): int } -/* @@@ label Error SyntaxError: Private interface methods must have body. */ +/* @@@ label Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets index cce7b4d6387fac89c0cb1ad6ce06440c032df7e1..dbf6f957b46fa9ed1b632f76313dffd19ec07d12 100644 --- a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets +++ b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets @@ -28,4 +28,4 @@ interface B { interface C extends A, B { } -/* @@? 28:1 Error TypeError: Method 'foo' is declared in A and B interfaces. */ +/* @@? 28:1 Error Semantic error ESE0187: Method 'foo' is declared in A and B interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets index 2bbca592d67434ed18febf845d6310fed30a3e6f..0a6f09edfbcae42d23a3e384bf23089abd0a5118 100644 --- a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets +++ b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets @@ -33,6 +33,6 @@ interface C { interface D extends A, B, C {} -/* @@? 34:1 Error TypeError: Method 'foo' is declared in A and B interfaces. */ -/* @@? 34:1 Error TypeError: Method 'foo' is declared in A and C interfaces. */ -/* @@? 34:1 Error TypeError: Method 'foo' is declared in B and C interfaces. */ +/* @@? 34:1 Error Semantic error ESE0187: Method 'foo' is declared in A and B interfaces. */ +/* @@? 34:1 Error Semantic error ESE0187: Method 'foo' is declared in A and C interfaces. */ +/* @@? 34:1 Error Semantic error ESE0187: Method 'foo' is declared in B and C interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets index fd964d2e8d7a9c98514881c82adab3207b9e5db3..e3dd25139a493d04288c0bee4953df37798534cf 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets @@ -17,5 +17,5 @@ interface I { /* @@ label */native foo/* @@ label1 */() } -/* @@@ label Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@@ label1 Error SyntaxError: Private interface methods must have body. */ +/* @@@ label Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@@ label1 Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets b/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets index ec065fd50ed84905103171d20f7e8c5e468d9967..9d1482f0084be18ae5fb17abe24d5db22e9a5642 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets @@ -17,6 +17,6 @@ interface I { private private foo() } -/* @@? 17:13 Error SyntaxError: Identifier expected. */ -/* @@? 17:13 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:24 Error SyntaxError: Private interface methods must have body. */ +/* @@? 17:13 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:13 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:24 Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets index 116bd826fb4e03e9779dcfa376ec675af5ce84dc..c6cd6b38e40dd84fe46b285c0876e03d1fbfc771 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets @@ -17,7 +17,7 @@ interface I { private static foo() } -/* @@? 17:13 Error SyntaxError: Identifier expected. */ -/* @@? 17:13 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:13 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:23 Error SyntaxError: Private interface methods must have body. */ +/* @@? 17:13 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:13 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:13 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:23 Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets index 39dcced0fd57af716fe1df1d7969c1132a68d59e..2aca2dcff903bc3f80c652712ddc58b863e5c135 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets @@ -17,8 +17,8 @@ interface I { readonly foo() } -/* @@? 17:17 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 17:18 Error SyntaxError: Invalid Type. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ \ No newline at end of file +/* @@? 17:17 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 17:18 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:18 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:18 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets index 098caf8bb49cce917398500eb1fddc250622bf0b..c38af688bd48a5aac5702aff09def6ffa0a6293d 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets @@ -17,5 +17,5 @@ interface I { /* @@ label */static foo/* @@ label1 */() } -/* @@@ label Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@@ label1 Error SyntaxError: Private interface methods must have body. */ +/* @@@ label Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@@ label1 Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_call_signature.ets b/ets2panda/test/ast/parser/ets/interface_ambient_call_signature.ets index 53111d02a43e4d8430d56196989cb5b2b6228f79..a39b1948b2a77feb899ed83f509f5ea47a5f76f0 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_call_signature.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_call_signature.ets @@ -17,4 +17,4 @@ declare interface A { (index :ee ): string } -/* @@? 17:13 Error TypeError: Cannot find type 'ee'. */ \ No newline at end of file +/* @@? 17:13 Error Semantic error ESE0371: Cannot find type 'ee'. */ diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_call_signature_1.ets b/ets2panda/test/ast/parser/ets/interface_ambient_call_signature_1.ets index fc59862c291c59896a70e262d71f691f12599e80..be79ea271172850a1de9baf5c82d4b31f7358715 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_call_signature_1.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_call_signature_1.ets @@ -16,4 +16,4 @@ declare interface A { (arg : string: string } - /* @@? 17:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ \ No newline at end of file + /* @@? 17:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_indexer_1.ets b/ets2panda/test/ast/parser/ets/interface_ambient_indexer_1.ets index 60f624907e9657bba311ec6f64cc86f7a71d5a63..9c57360e5d6bddaffb142e727e6718fd0b16fc68 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_indexer_1.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_indexer_1.ets @@ -19,4 +19,4 @@ declare interface A { [index : number]: stringdd } -/* @@? 19:5 Error TypeError: Cannot find type 'stringdd'. */ +/* @@? 19:5 Error Semantic error ESE0371: Cannot find type 'stringdd'. */ diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_indexer_2.ets b/ets2panda/test/ast/parser/ets/interface_ambient_indexer_2.ets index 6789f5f0985c114f39be7b3b0aaff4afdb74a515..d91cc86faaf87e601bcbfa3f4f4f1b556528cb4f 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_indexer_2.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_indexer_2.ets @@ -17,15 +17,15 @@ declare interface A { [index : string]: string } -/* @@? 17:14 Error SyntaxError: Index type must be number in index signature. */ -/* @@? 17:14 Error SyntaxError: ] expected in index signature. */ -/* @@? 17:20 Error SyntaxError: An index signature must have a type annotation. */ -/* @@? 17:20 Error SyntaxError: Expected ':', got ']'. */ -/* @@? 17:20 Error SyntaxError: Invalid Type. */ -/* @@? 17:20 Error SyntaxError: Return type of index signature from exported class or interface need to be identifier. */ -/* @@? 17:20 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:20 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:21 Error SyntaxError: Identifier expected. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:1 Error SyntaxError: Invalid Type. */ +/* @@? 17:14 Error Syntax error ESY0018: Index type must be number in index signature. */ +/* @@? 17:14 Error Syntax error ESY0019: ] expected in index signature. */ +/* @@? 17:20 Error Syntax error ESY0020: An index signature must have a type annotation. */ +/* @@? 17:20 Error Syntax error ESY0230: Expected ':', got ']'. */ +/* @@? 17:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:20 Error Syntax error ESY0021: Return type of index signature from exported class or interface need to be identifier. */ +/* @@? 17:20 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:20 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:21 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:21 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets b/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets index a186fd0f709b0ffee8baad3e0149ada2b9392fda..7586ceb433e937920672680e07bfaa01b42673be 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets @@ -16,4 +16,4 @@ declare interface IterableInterface { [Symbol.iterator]: Iterable } -/* @@? 17:22 Error TypeError: Type 'Iterable' is generic but type argument were not provided. */ +/* @@? 17:22 Error Semantic error ESE0170: Type 'Iterable' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/parser/ets/interface_extends_class.ets b/ets2panda/test/ast/parser/ets/interface_extends_class.ets index 6e88716f0c466a20fc1b95f31c4989e730b5f135..c98bf450f85ba2a6aef2ee9e3c5b68ed2d89f9b2 100644 --- a/ets2panda/test/ast/parser/ets/interface_extends_class.ets +++ b/ets2panda/test/ast/parser/ets/interface_extends_class.ets @@ -17,4 +17,4 @@ class A {} interface BInterface extends /* @@ label */A {} -/* @@@ label Error TypeError: Interfaces cannot extend classes, only other interfaces. */ +/* @@@ label Error Semantic error ESE0378: Interfaces cannot extend classes, only other interfaces. */ diff --git a/ets2panda/test/ast/parser/ets/interface_instantiation.ets b/ets2panda/test/ast/parser/ets/interface_instantiation.ets index baa3579c4d6cea316f9eab3e3633b25b4d02d20a..919b29934c1d674045fa3c39a11e2ee579a6a843 100644 --- a/ets2panda/test/ast/parser/ets/interface_instantiation.ets +++ b/ets2panda/test/ast/parser/ets/interface_instantiation.ets @@ -16,4 +16,4 @@ interface Base {} let b = /* @@ label */new Base -/* @@@ label Error TypeError: Base is an interface therefore cannot be instantiated. */ +/* @@@ label Error Semantic error ESE0275: Base is an interface therefore cannot be instantiated. */ diff --git a/ets2panda/test/ast/parser/ets/interface_late_initialization_conflict_modifier.ets b/ets2panda/test/ast/parser/ets/interface_late_initialization_conflict_modifier.ets index af859301bffdac40ccd71cd19fce7d8dd8631f7d..359c01bc42d240c32f09106d0c5aee9b974f136c 100644 --- a/ets2panda/test/ast/parser/ets/interface_late_initialization_conflict_modifier.ets +++ b/ets2panda/test/ast/parser/ets/interface_late_initialization_conflict_modifier.ets @@ -18,5 +18,5 @@ interface A { f2!?:number } -/* @@? 17:7 Error SyntaxError: Conflicting modifiers '!' and '?' on field. */ -/* @@? 18:7 Error SyntaxError: Conflicting modifiers '!' and '?' on field. */ +/* @@? 17:7 Error Syntax error ESY0127: Conflicting modifiers '!' and '?' on field. */ +/* @@? 18:7 Error Syntax error ESY0127: Conflicting modifiers '!' and '?' on field. */ diff --git a/ets2panda/test/ast/parser/ets/interface_member_initialization.ets b/ets2panda/test/ast/parser/ets/interface_member_initialization.ets index d96988046df89018c65e106fe5a9dc61b208aab3..6c42078eb735f7e4baca1fe0ca34ae6aceee9b96 100644 --- a/ets2panda/test/ast/parser/ets/interface_member_initialization.ets +++ b/ets2panda/test/ast/parser/ets/interface_member_initialization.ets @@ -22,7 +22,7 @@ function main() } -/* @@? 17:14 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:17 Error SyntaxError: Identifier expected. */ +/* @@? 17:14 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 17:16 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:16 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:17 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets b/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets index 050fbd6b1ca67ec270824aea69dac851a54d5283..139d249177ef7b2faca105ca739bb6802d3aef48 100644 --- a/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets +++ b/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets @@ -32,39 +32,39 @@ class A implements I { function mdin() { let a = new A(); ass -/* @@? 16:4 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 16:4 Error TypeError: Unresolved reference Geit */ -/* @@? 16:9 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:2 Error TypeError: Unresolved reference t */ -/* @@? 17:4 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:5 Error TypeError: Unresolved reference name */ -/* @@? 17:11 Error SyntaxError: Unexpected token ':'. */ -/* @@? 19:1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 20:5 Error SyntaxError: Identifier expected. */ -/* @@? 20:14 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 20:14 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 20:16 Error SyntaxError: Identifier expected. */ -/* @@? 20:16 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 20:16 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 21:1 Error SyntaxError: Identifier expected. */ -/* @@? 22:1 Error TypeError: Class literal is not yet supported. */ -/* @@? 22:1 Error TypeError: Cannot find type 'inter'. */ -/* @@? 24:7 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 24:7 Error TypeError: Unresolved reference A */ -/* @@? 24:9 Error SyntaxError: Unexpected token 'implements'. */ -/* @@? 24:20 Error SyntaxError: Unexpected token 'I'. */ -/* @@? 24:20 Error TypeError: Unresolved reference I */ -/* @@? 24:22 Error SyntaxError: Unexpected token '{'. */ -/* @@? 25:4 Error TypeError: Unresolved reference reanstructor */ -/* @@? 26:19 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 26:19 Error SyntaxError: Unexpected token '�ls'. */ -/* @@? 27:5 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 27:7 Error SyntaxError: Unexpected token '{'. */ -/* @@? 28:5 Error SyntaxError: Hard keyword 'constructor' cannot be used as identifier */ -/* @@? 28:5 Error SyntaxError: Identifier expected, got 'constructor'. */ -/* @@? 28:16 Error SyntaxError: Invalid annotation name. */ -/* @@? 28:19 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 29:18 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 31:2 Error SyntaxError: Unexpected token '*'. */ -/* @@? 32:1 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 71:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 16:4 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 16:4 Error Semantic error ESE0143: Unresolved reference Geit */ +/* @@? 16:9 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:2 Error Semantic error ESE0143: Unresolved reference t */ +/* @@? 17:4 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference name */ +/* @@? 17:11 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 19:1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 20:5 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 20:14 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 20:14 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 20:16 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 20:16 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 20:16 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 21:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 22:1 Error Semantic error ESE0020: Class literal is not yet supported. */ +/* @@? 22:1 Error Semantic error ESE0371: Cannot find type 'inter'. */ +/* @@? 24:7 Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@? 24:7 Error Semantic error ESE0143: Unresolved reference A */ +/* @@? 24:9 Error Syntax error ESY0227: Unexpected token 'implements'. */ +/* @@? 24:20 Error Syntax error ESY0227: Unexpected token 'I'. */ +/* @@? 24:20 Error Semantic error ESE0143: Unresolved reference I */ +/* @@? 24:22 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 25:4 Error Semantic error ESE0143: Unresolved reference reanstructor */ +/* @@? 26:19 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 26:19 Error Syntax error ESY0227: Unexpected token '�ls'. */ +/* @@? 27:5 Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@? 27:7 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 28:5 Error Syntax error ESY0316: Hard keyword 'constructor' cannot be used as identifier */ +/* @@? 28:5 Error Syntax error ESY0224: Identifier expected, got 'constructor'. */ +/* @@? 28:16 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 28:19 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 29:18 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 31:2 Error Syntax error ESY0227: Unexpected token '*'. */ +/* @@? 32:1 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 71:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/interface_parser_error_2.ets b/ets2panda/test/ast/parser/ets/interface_parser_error_2.ets index b2f0dcd0902a63a54ab92a8ad400b76ac841b95e..68908e099d06a998d0f66c0b145d5ffe8a95cbaa 100644 --- a/ets2panda/test/ast/parser/ets/interface_parser_error_2.ets +++ b/ets2panda/test/ast/parser/ets/interface_parser_error_2.ets @@ -17,8 +17,8 @@ interface I { : boolean } -/* @@? 17:5 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:7 Error SyntaxError: Identifier expected. */ -/* @@? 17:7 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:7 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ +/* @@? 17:5 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:7 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:7 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:7 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/interface_private_function_1.ets b/ets2panda/test/ast/parser/ets/interface_private_function_1.ets index 237953a6ba7a66ef171a478631257c2135070422..e0292c2dbde190f73d8213d6eee2f63833916a6a 100644 --- a/ets2panda/test/ast/parser/ets/interface_private_function_1.ets +++ b/ets2panda/test/ast/parser/ets/interface_private_function_1.ets @@ -34,5 +34,5 @@ function main(): void { i.xyz(); } -/* @@? 34:5 Error TypeError: Signature xyz(): Int is not visible here. */ -/* @@? 34:5 Error TypeError: No matching call signature */ +/* @@? 34:5 Error Semantic error ESE0139: Signature xyz(): Int is not visible here. */ +/* @@? 34:5 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/interface_static_late_initialization_assignment_error.ets b/ets2panda/test/ast/parser/ets/interface_static_late_initialization_assignment_error.ets index 4eb37bbc788f851d6803f2c99140d4b8f2fe6cc7..db8fd714658d2b52b2f9b677e58c7ad31f860412 100644 --- a/ets2panda/test/ast/parser/ets/interface_static_late_initialization_assignment_error.ets +++ b/ets2panda/test/ast/parser/ets/interface_static_late_initialization_assignment_error.ets @@ -17,4 +17,4 @@ interface A{ static f!:string } -/* @@? 17:5 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:5 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ diff --git a/ets2panda/test/ast/parser/ets/interface_with_different_type.ets b/ets2panda/test/ast/parser/ets/interface_with_different_type.ets index 628095769466bbc63e2e1573cb1fefd8d16932c5..74dab1748bfebcc1c49551dc6c32202f5b4134d3 100644 --- a/ets2panda/test/ast/parser/ets/interface_with_different_type.ets +++ b/ets2panda/test/ast/parser/ets/interface_with_different_type.ets @@ -34,4 +34,4 @@ function main() { let d = new Derived } -/* @@@ label Error TypeError: Cannot inherit from interface Interface because field instance_field is inherited with a different declaration type */ +/* @@@ label Error Semantic error ESE0215: Cannot inherit from interface Interface because field instance_field is inherited with a different declaration type */ diff --git a/ets2panda/test/ast/parser/ets/interfaces2.ets b/ets2panda/test/ast/parser/ets/interfaces2.ets index fe80085b64ea1ee843167f5503307c876ee9fa27..01ad972e0875c07de57d507506e250351acf79d0 100644 --- a/ets2panda/test/ast/parser/ets/interfaces2.ets +++ b/ets2panda/test/ast/parser/ets/interfaces2.ets @@ -17,4 +17,4 @@ interface K {} interface J /* @@ label */implements K {} -/* @@@ label Error SyntaxError: Interface declaration cannot have 'implements' clause. */ +/* @@@ label Error Syntax error ESY0177: Interface declaration cannot have 'implements' clause. */ diff --git a/ets2panda/test/ast/parser/ets/interfaces3.ets b/ets2panda/test/ast/parser/ets/interfaces3.ets index c8fdf3fb554942ee2666b8fcdce50adad7c3639f..777d500d0934346c909dabeca36b9f10b7010519 100644 --- a/ets2panda/test/ast/parser/ets/interfaces3.ets +++ b/ets2panda/test/ast/parser/ets/interfaces3.ets @@ -17,6 +17,6 @@ interface K {} interface J impleents K {} -/* @@? 18:13 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 18:25 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 18:26 Error SyntaxError: Invalid Type. */ +/* @@? 18:13 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 18:25 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 18:26 Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/invalidEnums.ets b/ets2panda/test/ast/parser/ets/invalidEnums.ets index 82a8b213907bcb988ec02f600c8fb54fa4dba0d2..6d55168505075bd4ed04eae9def4797b2fd91a01 100644 --- a/ets2panda/test/ast/parser/ets/invalidEnums.ets +++ b/ets2panda/test/ast/parser/ets/invalidEnums.ets @@ -58,19 +58,19 @@ enum MissingLeftBrace } -/* @@? 16:5 Error SyntaxError: Variable declaration expected. */ -/* @@? 22:22 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 32:1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 32:1 Error SyntaxError: Unexpected token ']'. */ -/* @@? 37:10 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 38:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 40:1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 43:10 Error SyntaxError: Unexpected token '?'. */ -/* @@? 43:10 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 48:3 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 48:3 Error TypeError: Unresolved reference Member2 */ -/* @@? 49:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 56:3 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 56:10 Error SyntaxError: Identifier expected, got ','. */ -/* @@? 57:3 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 58:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 16:5 Error Syntax error ESY0126: Variable declaration expected. */ +/* @@? 22:22 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 32:1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 32:1 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 37:10 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 38:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 40:1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 43:10 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 43:10 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 48:3 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 48:3 Error Semantic error ESE0143: Unresolved reference Member2 */ +/* @@? 49:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 56:3 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 56:10 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 57:3 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 58:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/invalidEnums1.ets b/ets2panda/test/ast/parser/ets/invalidEnums1.ets index 2021d1a65fdf77e5989dc25f8827933ee4ddfeef..90f0150714823bd23a0312468de6ba57864c97c2 100644 --- a/ets2panda/test/ast/parser/ets/invalidEnums1.ets +++ b/ets2panda/test/ast/parser/ets/invalidEnums1.ets @@ -26,7 +26,7 @@ enum EStrNotInit { } -/* @@? 18:15 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 19:12 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 20:12 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 25:9 Error SyntaxError: All items of string-type enumeration should be explicitly initialized. */ +/* @@? 18:15 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 19:12 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 20:12 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 25:9 Error Syntax error ESY0276: All items of string-type enumeration should be explicitly initialized. */ diff --git a/ets2panda/test/ast/parser/ets/invalidTypes.ets b/ets2panda/test/ast/parser/ets/invalidTypes.ets index ebd93a9b39d70e3c481bb2da63ef8585ff57aab2..cd384cffbec0ffe5ca0aa0365a5ed71d058e944e 100644 --- a/ets2panda/test/ast/parser/ets/invalidTypes.ets +++ b/ets2panda/test/ast/parser/ets/invalidTypes.ets @@ -37,40 +37,40 @@ class Class2 { let var6: [a0: , a1: ]; -/* @@? 18:23 Error SyntaxError: Type annotation isn't allowed for constructor. */ -/* @@? 24:12 Error SyntaxError: Invalid Type. */ -/* @@? 24:12 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 24:12 Error SyntaxError: Unexpected token '...'. */ -/* @@? 24:15 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 24:23 Error SyntaxError: Unexpected token ','. */ -/* @@? 24:25 Error SyntaxError: Unexpected token '...'. */ -/* @@? 24:28 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 24:36 Error SyntaxError: Unexpected token ']'. */ -/* @@? 26:12 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 26:12 Error SyntaxError: Unexpected token '...'. */ -/* @@? 26:12 Error SyntaxError: Invalid Type. */ -/* @@? 26:15 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 26:23 Error SyntaxError: Unexpected token ','. */ -/* @@? 26:25 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 26:25 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 26:31 Error SyntaxError: Unexpected token ']'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token '?'. */ -/* @@? 28:19 Error SyntaxError: Unexpected token ']'. */ -/* @@? 30:18 Error SyntaxError: Unexpected token ':'. */ -/* @@? 30:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 30:20 Error SyntaxError: Unexpected token '...'. */ -/* @@? 30:23 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 30:26 Error SyntaxError: Unexpected token ']'. */ -/* @@? 32:19 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 32:19 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 32:19 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 32:25 Error SyntaxError: Unexpected token ']'. */ -/* @@? 35:21 Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 38:12 Error TypeError: Cannot find type 'a0'. */ -/* @@? 38:14 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 38:14 Error SyntaxError: Unexpected token ':'. */ -/* @@? 38:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 38:18 Error SyntaxError: Unexpected token 'a1'. */ -/* @@? 38:22 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 38:22 Error SyntaxError: Unexpected token ']'. */ +/* @@? 18:23 Error Syntax error ESY0140: Type annotation isn't allowed for constructor. */ +/* @@? 24:12 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 24:12 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 24:12 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 24:15 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 24:25 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 24:28 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 24:36 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 26:12 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 26:12 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 26:12 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 26:15 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 26:23 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 26:25 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 26:25 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 26:31 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 28:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 28:18 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 28:19 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 30:18 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 30:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 30:20 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 30:23 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 30:26 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 32:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 32:19 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 32:19 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 32:25 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 35:21 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 38:12 Error Semantic error ESE0371: Cannot find type 'a0'. */ +/* @@? 38:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 38:14 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 38:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 38:18 Error Syntax error ESY0227: Unexpected token 'a1'. */ +/* @@? 38:22 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 38:22 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_access_static.ets b/ets2panda/test/ast/parser/ets/invalid_access_static.ets index 906e6cc94cbdf009a6f75dad94cfcfcf4919405f..512a191f928040c13c5aab78d391a533ff5a6b84 100644 --- a/ets2panda/test/ast/parser/ets/invalid_access_static.ets +++ b/ets2panda/test/ast/parser/ets/invalid_access_static.ets @@ -20,4 +20,4 @@ class G { let a = new G(); a./* @@ label */y++; -/* @@@ label Error TypeError: 'y' is a static property of 'G' */ +/* @@@ label Error Semantic error ESE0207: 'y' is a static property of 'G' */ diff --git a/ets2panda/test/ast/parser/ets/invalid_access_static2.ets b/ets2panda/test/ast/parser/ets/invalid_access_static2.ets index 18ff34be45aa37e0ba8f671ef3083f2817e75770..0ca0161eabefb745a4d88c31e85ca309b1c41bd6 100644 --- a/ets2panda/test/ast/parser/ets/invalid_access_static2.ets +++ b/ets2panda/test/ast/parser/ets/invalid_access_static2.ets @@ -22,4 +22,4 @@ class G { let a = new G(); a./* @@ label */y(); -/* @@@ label Error TypeError: 'y' is a static property of 'G' */ +/* @@@ label Error Semantic error ESE0207: 'y' is a static property of 'G' */ diff --git a/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets b/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets index ce1345d02672da56f6a1077b57040cde6addb934..0ab2bd764535ec3c3da2fa351737a25e634efcfb 100644 --- a/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets +++ b/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets @@ -15,21 +15,21 @@ @ q.M function i ( this : ( this : @ e ( ) [ ] ) => ( @ V ( ) "" ) ) { } -/* @@? 16:3 Error TypeError: Cannot find type 'q'. */ -/* @@? 16:5 Error TypeError: 'M' is not an annotation. */ -/* @@? 16:5 Error TypeError: 'M' type does not exist. */ -/* @@? 16:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:29 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ -/* @@? 16:40 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 16:44 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:44 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:46 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:46 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:46 Error SyntaxError: Invalid Type. */ -/* @@? 16:48 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:50 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 16:59 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 16:61 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:63 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 16:68 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:70 Error SyntaxError: Unexpected token '{'. */ +/* @@? 16:3 Error Semantic error ESE0371: Cannot find type 'q'. */ +/* @@? 16:5 Error Semantic error ESE0067: 'M' is not an annotation. */ +/* @@? 16:5 Error Semantic error ESE0070: 'M' type does not exist. */ +/* @@? 16:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:29 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 16:40 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 16:44 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:44 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 16:46 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:46 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:46 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 16:48 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:50 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 16:59 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 16:61 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:63 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 16:68 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:70 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets b/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets index 826c56c07631a8182f7951235a6da189dc5de897..0aba9558813d859ee20e6c1087472645f8e87c15 100644 --- a/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets +++ b/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets @@ -15,5 +15,5 @@ const f = ({a: 1}) => {} -/* @@? 16:20 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 16:20 Error SyntaxError: Invalid destructuring assignment target. */ +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 16:20 Error Syntax error ESY0049: Invalid destructuring assignment target. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets b/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets index fc163f36e8b8b9c6a40666d4abb9f49c388ab318..2d5701ca39dadf258edc83910d42926998ef2c70 100644 --- a/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets +++ b/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets @@ -23,5 +23,5 @@ function foo(entry: I) { }); } -/* @@@ label1 Error TypeError: Invalid lambda parameter. Expected: 'identifier(: type)?', 'identifier?(: type)?' or '...identifier(: type)?'. */ -/* @@@ label2 Error SyntaxError: Unexpected token '=>'. */ +/* @@@ label1 Error Semantic error ESE0395: Invalid lambda parameter. Expected: 'identifier(: type)?', 'identifier?(: type)?' or '...identifier(: type)?'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '=>'. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_object_expression.ets b/ets2panda/test/ast/parser/ets/invalid_object_expression.ets index a7b52b85583f9176c23844e417e8b969944357cc..a56e7cef8d1095c18c216f81acaf5945e72534a3 100644 --- a/ets2panda/test/ast/parser/ets/invalid_object_expression.ets +++ b/ets2panda/test/ast/parser/ets/invalid_object_expression.ets @@ -18,11 +18,11 @@ let obj: Record = { [this.viewModel.ads] : 123 } -/* @@? 18:5 Error SyntaxError: Unexpected token. */ -/* @@? 18:6 Error SyntaxError: Unexpected token. */ -/* @@? 18:6 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 18:11 Error TypeError: Property 'viewModel' does not exist on type 'Error' */ -/* @@? 18:24 Error SyntaxError: Unexpected token. */ -/* @@? 18:26 Error SyntaxError: Unexpected token ':'. */ -/* @@? 18:28 Error SyntaxError: Unexpected token '123'. */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 18:5 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:6 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:6 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 18:11 Error Semantic error ESE0087: Property 'viewModel' does not exist on type 'Error' */ +/* @@? 18:24 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:26 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 18:28 Error Syntax error ESY0227: Unexpected token '123'. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_object_literal.ets b/ets2panda/test/ast/parser/ets/invalid_object_literal.ets index 4929e16649b88eca1af1fade82601c60320000c0..b1da989e99642451f52947707a4c6c780b7aecba 100644 --- a/ets2panda/test/ast/parser/ets/invalid_object_literal.ets +++ b/ets2panda/test/ast/parser/ets/invalid_object_literal.ets @@ -36,6 +36,6 @@ let a: A = /* @@ label1 */{ } } -/* @@@ label1 Error TypeError: The object literal properties must be key-value pairs */ -/* @@@ label2 Error SyntaxError: Object pattern can't contain methods. */ -/* @@@ label3 Error SyntaxError: Object pattern can't contain methods. */ +/* @@@ label1 Error Semantic error ESE0064: The object literal properties must be key-value pairs */ +/* @@@ label2 Error Syntax error ESY0062: Object pattern can't contain methods. */ +/* @@@ label3 Error Syntax error ESY0062: Object pattern can't contain methods. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets b/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets index 2eba0019b69d4a8da790cfad2bc98cd8fa23d3cc..7f45971eeaa5132db3e53c42d4927a47c2d52207 100644 --- a/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets +++ b/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets @@ -17,11 +17,5 @@ interface I { J* @@? } -/* @@? 17:2 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 17:4 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 17:4 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:4 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:6 Error SyntaxError: Identifier expected. */ -/* @@? 17:6 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:6 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ +/* @@? 17:2 Error Syntax error ESY0000: Unexpected token in property key */ +/* @@? 17:2 Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_recursive_generic_union_type.ets b/ets2panda/test/ast/parser/ets/invalid_recursive_generic_union_type.ets index bbe7b44619d089abe9afdc7f092b9894a39d2a67..0ff2b2a379ca3eb33939343af15cdf2ceeabc7b0 100644 --- a/ets2panda/test/ast/parser/ets/invalid_recursive_generic_union_type.ets +++ b/ets2panda/test/ast/parser/ets/invalid_recursive_generic_union_type.ets @@ -23,8 +23,8 @@ type Container = T | { [i: string]: Container }; declare namespace Test1 { } -/* @@? 21:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 21:28 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 21:49 Error SyntaxError: Unexpected token '<'. */ -/* @@? 21:51 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:51 Error SyntaxError: Unexpected token '>'. */ +/* @@? 21:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 21:28 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 21:49 Error Syntax error ESY0227: Unexpected token '<'. */ +/* @@? 21:51 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:51 Error Syntax error ESY0227: Unexpected token '>'. */ diff --git a/ets2panda/test/ast/parser/ets/invalid_type.ets b/ets2panda/test/ast/parser/ets/invalid_type.ets index 36b08c0491a44c777dcbbfa168f921f647ed916e..4fa2b6df55b7d38cd3b4d3cfedbf55fb6516fbe4 100644 --- a/ets2panda/test/ast/parser/ets/invalid_type.ets +++ b/ets2panda/test/ast/parser/ets/invalid_type.ets @@ -17,6 +17,6 @@ class Function extends Intl.DateTimeFormat{ let RegExp = Intl.PluralRules } -/* @@? 1:3 Error TypeError: Variable 'Function' is already defined with different type. */ -/* @@? 17:1 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 17:19 Error TypeError: Property 'PluralRules' does not exist on type 'Intl' */ +/* @@? 1:3 Error Semantic error ESE0350: Variable 'Function' is already defined with different type. */ +/* @@? 17:1 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 17:19 Error Semantic error ESE0087: Property 'PluralRules' does not exist on type 'Intl' */ diff --git a/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets b/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets index 814b8ad67da037693c17f0a3aeb06aef2da51219..930d366c64430b0056c131245e63d8b8fd0ad334 100644 --- a/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets +++ b/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets @@ -20,5 +20,5 @@ flags: [dynamic-ast] type Point = { x: number; y: number }; type AxeX = Point['x']; -/* @@? 20:18 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 21:22 Error SyntaxError: Indexed access types are not supported, use type name instead! */ \ No newline at end of file +/* @@? 20:18 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 21:22 Error Syntax error ESY49888: Indexed access types are not supported, use type name instead! */ diff --git a/ets2panda/test/ast/parser/ets/keyof_annotation.ets b/ets2panda/test/ast/parser/ets/keyof_annotation.ets index 4e64a018dd677e97b8e50ef5dbe93ceae4a751ad..31f3833fcd4bf5882dee3f989ea19ba153a655a2 100644 --- a/ets2panda/test/ast/parser/ets/keyof_annotation.ets +++ b/ets2panda/test/ast/parser/ets/keyof_annotation.ets @@ -41,9 +41,9 @@ function main():void{ let y6:keyof B = /* @@ label6 */100; } -/* @@@ label1 Error TypeError: Type '"other field"' cannot be assigned to type '"method1"|"field1"|"field2"' */ -/* @@@ label2 Error TypeError: Type '"other method"' cannot be assigned to type '"method1"|"field1"|"field2"' */ -/* @@@ label3 Error TypeError: Type 'Int' cannot be assigned to type '"method1"|"field1"|"field2"' */ -/* @@@ label4 Error TypeError: Type '"other field"' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ -/* @@@ label5 Error TypeError: Type '"other method"' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ -/* @@@ label6 Error TypeError: Type 'Int' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ +/* @@@ label1 Error Semantic error ESE0318: Type '"other field"' cannot be assigned to type '"method1"|"field1"|"field2"' */ +/* @@@ label2 Error Semantic error ESE0318: Type '"other method"' cannot be assigned to type '"method1"|"field1"|"field2"' */ +/* @@@ label3 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type '"method1"|"field1"|"field2"' */ +/* @@@ label4 Error Semantic error ESE0318: Type '"other field"' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ +/* @@@ label5 Error Semantic error ESE0318: Type '"other method"' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ +/* @@@ label6 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ diff --git a/ets2panda/test/ast/parser/ets/keyof_applied_to_other.ets b/ets2panda/test/ast/parser/ets/keyof_applied_to_other.ets index d2585f5f7eab9b569f71c08a56b5f68481496fe5..a2a7529da32ee52e4472bdefed80da601a611278 100644 --- a/ets2panda/test/ast/parser/ets/keyof_applied_to_other.ets +++ b/ets2panda/test/ast/parser/ets/keyof_applied_to_other.ets @@ -32,9 +32,8 @@ function main():void{ /* @@ label5 */ type keyofVoid = keyof void; } -/* @@@ label1 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label2 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label3 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label4 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label5 Error SyntaxError: Illegal start of Type Alias expression. */ - +/* @@@ label1 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label2 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label3 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label4 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 32:20 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ diff --git a/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets b/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets index 682e4caa7326d503c0fbe17c2a0ad83fc78ed20d..85aaa392bc383bbf0b3f9e968ca4664eb946c61f 100644 --- a/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets +++ b/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets @@ -33,11 +33,11 @@ function main(): void { let x6: Array<"abcd" | keyofA | number | A> = new Array<"abcd" | keyofA | number | A>("abcd", "other field", "foo", 123, a); } -/* @@? 1:3 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 24:3 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 29:20 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 30:20 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 32:26 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 32:68 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 33:26 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 33:68 Error TypeError: Cannot find type 'keyofA'. */ +/* @@? 1:3 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 24:3 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 29:20 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 30:20 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 32:26 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 32:68 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 33:26 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 33:68 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ diff --git a/ets2panda/test/ast/parser/ets/keyof_constraint.ets b/ets2panda/test/ast/parser/ets/keyof_constraint.ets index ed208c3516b71adf4ed70bfc607134a90356aff4..ea952ddfcc2754681431562dff8ddf43c3ca1620 100644 --- a/ets2panda/test/ast/parser/ets/keyof_constraint.ets +++ b/ets2panda/test/ast/parser/ets/keyof_constraint.ets @@ -30,6 +30,6 @@ function main():void{ /* @@ label2 */getProperty(/* @@ label3 */"field12345"); } -/* @@@ label1 Error TypeError: Type argument '"field12345"' should be a subtype of '"method1"|"field1"|"field2"'-constraint */ -/* @@@ label2 Error TypeError: No matching call signature for getProperty("field12345") */ -/* @@@ label3 Error TypeError: Type '"field12345"' is not compatible with type '"method1"|"field1"|"field2"' at index 1 */ +/* @@@ label1 Error Semantic error ESE0228: Type argument '"field12345"' should be a subtype of '"method1"|"field1"|"field2"'-constraint */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for getProperty("field12345") */ +/* @@@ label3 Error Semantic error ESE0046: Type '"field12345"' is not compatible with type '"method1"|"field1"|"field2"' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/keyof_never.ets b/ets2panda/test/ast/parser/ets/keyof_never.ets index c8b75b81c4c9a4763dd82506f5fe521461f52e5f..729712dd2d2b53f450e7581e40279092d90dc073 100644 --- a/ets2panda/test/ast/parser/ets/keyof_never.ets +++ b/ets2panda/test/ast/parser/ets/keyof_never.ets @@ -21,6 +21,6 @@ function main():void{ let a3:keyof A = /* @@ label3 */"method1" } -/* @@@ label1 Error TypeError: Type '""' cannot be assigned to type 'never' */ -/* @@@ label2 Error TypeError: Type '"field1"' cannot be assigned to type 'never' */ -/* @@@ label3 Error TypeError: Type '"method1"' cannot be assigned to type 'never' */ +/* @@@ label1 Error Semantic error ESE0318: Type '""' cannot be assigned to type 'never' */ +/* @@@ label2 Error Semantic error ESE0318: Type '"field1"' cannot be assigned to type 'never' */ +/* @@@ label3 Error Semantic error ESE0318: Type '"method1"' cannot be assigned to type 'never' */ diff --git a/ets2panda/test/ast/parser/ets/keyof_parameter.ets b/ets2panda/test/ast/parser/ets/keyof_parameter.ets index 5d3c9af6412b7c082545ea040f81108d3df6c407..09e91d1a1537183d6bbe37186532a9445ad77600 100644 --- a/ets2panda/test/ast/parser/ets/keyof_parameter.ets +++ b/ets2panda/test/ast/parser/ets/keyof_parameter.ets @@ -28,9 +28,9 @@ function main():void{ /* @@ label5 */getProperty(a, /* @@ label6 */1); } -/* @@@ label1 Error TypeError: No matching call signature for getProperty(A, "other field") */ -/* @@@ label2 Error TypeError: Type '"other field"' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ -/* @@@ label3 Error TypeError: No matching call signature for getProperty(A, "other method") */ -/* @@@ label4 Error TypeError: Type '"other method"' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ -/* @@@ label5 Error TypeError: No matching call signature for getProperty(A, Int) */ -/* @@@ label6 Error TypeError: Type 'Int' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for getProperty(A, "other field") */ +/* @@@ label2 Error Semantic error ESE0046: Type '"other field"' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for getProperty(A, "other method") */ +/* @@@ label4 Error Semantic error ESE0046: Type '"other method"' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ +/* @@@ label5 Error Semantic error ESE0127: No matching call signature for getProperty(A, Int) */ +/* @@@ label6 Error Semantic error ESE0046: Type 'Int' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ diff --git a/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets b/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets index 1f476b40e9c217f36f480ec37f6fe544ab84bdd2..22b25deeb42bd7bfe9297498bf4fd48cb4069543 100644 --- a/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets +++ b/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets @@ -18,5 +18,5 @@ function main():void{ let c2:keyof Int = /* @@ label2 */"field1" } -/* @@@ label1 Error TypeError: Type '"field1"' cannot be assigned to type '"toDouble"|"toLong"|"byteValue"|"doubleValue"|"longValue"|"equals"|"isGreaterEqualThan"|"intValue"|"toInt"|"div"|"shortValue"|"isLessThan"|"isLessEqualThan"|"mul"|"sub"|"toString"|"toFloat"|"compareTo"|"isGreaterThan"|"unboxed"|"$_hashCode"|"add"|"toByte"|"floatValue"|"toShort"|"toChar"|"valueOf"|"MIN_VALUE"|"MAX_VALUE"|"BIT_SIZE"|"BYTE_SIZE"' */ -/* @@@ label2 Error TypeError: Type '"field1"' cannot be assigned to type '"toDouble"|"toLong"|"byteValue"|"doubleValue"|"longValue"|"equals"|"isGreaterEqualThan"|"intValue"|"toInt"|"div"|"shortValue"|"isLessThan"|"isLessEqualThan"|"mul"|"sub"|"toString"|"toFloat"|"compareTo"|"isGreaterThan"|"unboxed"|"$_hashCode"|"add"|"toByte"|"floatValue"|"toShort"|"toChar"|"valueOf"|"MIN_VALUE"|"MAX_VALUE"|"BIT_SIZE"|"BYTE_SIZE"' */ +/* @@@ label1 Error Semantic error ESE0318: Type '"field1"' cannot be assigned to type '"toDouble"|"toLong"|"byteValue"|"doubleValue"|"longValue"|"equals"|"isGreaterEqualThan"|"intValue"|"toInt"|"div"|"shortValue"|"isLessThan"|"isLessEqualThan"|"mul"|"sub"|"toString"|"toFloat"|"compareTo"|"isGreaterThan"|"unboxed"|"$_hashCode"|"add"|"toByte"|"floatValue"|"toShort"|"toChar"|"valueOf"|"MIN_VALUE"|"MAX_VALUE"|"BIT_SIZE"|"BYTE_SIZE"' */ +/* @@@ label2 Error Semantic error ESE0318: Type '"field1"' cannot be assigned to type '"toDouble"|"toLong"|"byteValue"|"doubleValue"|"longValue"|"equals"|"isGreaterEqualThan"|"intValue"|"toInt"|"div"|"shortValue"|"isLessThan"|"isLessEqualThan"|"mul"|"sub"|"toString"|"toFloat"|"compareTo"|"isGreaterThan"|"unboxed"|"$_hashCode"|"add"|"toByte"|"floatValue"|"toShort"|"toChar"|"valueOf"|"MIN_VALUE"|"MAX_VALUE"|"BIT_SIZE"|"BYTE_SIZE"' */ diff --git a/ets2panda/test/ast/parser/ets/keyof_private_and_protected.ets b/ets2panda/test/ast/parser/ets/keyof_private_and_protected.ets index 62d297cb8d25ab387484d4116f315f988f600788..cf780b38ead2fe118f7e4622c5d8c9d4edbf0257 100644 --- a/ets2panda/test/ast/parser/ets/keyof_private_and_protected.ets +++ b/ets2panda/test/ast/parser/ets/keyof_private_and_protected.ets @@ -46,11 +46,11 @@ function main():void{ let c12:keyof B = /* @@ label8 */"bfoo3" } -/* @@@ label1 Error TypeError: Type '"field2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label2 Error TypeError: Type '"foo2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label3 Error TypeError: Type '"field3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label4 Error TypeError: Type '"foo3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label5 Error TypeError: Type '"bfield2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label6 Error TypeError: Type '"bfoo2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label7 Error TypeError: Type '"bfield3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label8 Error TypeError: Type '"bfoo3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label1 Error Semantic error ESE0318: Type '"field2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label2 Error Semantic error ESE0318: Type '"foo2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label3 Error Semantic error ESE0318: Type '"field3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label4 Error Semantic error ESE0318: Type '"foo3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label5 Error Semantic error ESE0318: Type '"bfield2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label6 Error Semantic error ESE0318: Type '"bfoo2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label7 Error Semantic error ESE0318: Type '"bfield3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label8 Error Semantic error ESE0318: Type '"bfoo3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ diff --git a/ets2panda/test/ast/parser/ets/keyof_smartcast.ets b/ets2panda/test/ast/parser/ets/keyof_smartcast.ets index 22ef6be9d47e999162b7a1de9dd4e544d9f82dbf..ab00854955b7ca1ef866e1d0493b7f365a050614 100644 --- a/ets2panda/test/ast/parser/ets/keyof_smartcast.ets +++ b/ets2panda/test/ast/parser/ets/keyof_smartcast.ets @@ -40,7 +40,7 @@ function main(): void { } -/* @@@ label1 Error TypeError: No matching call signature for foo("field2") */ -/* @@@ label2 Error TypeError: Type '"field2"' is not compatible with type '"abcd"|A|undefined|"foo"|"field1"' at index 1 */ -/* @@@ label3 Error TypeError: No matching call signature for foo("other field") */ -/* @@@ label4 Error TypeError: Type '"other field"' is not compatible with type '"abcd"|A|undefined|"foo"|"field1"' at index 1 */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for foo("field2") */ +/* @@@ label2 Error Semantic error ESE0046: Type '"field2"' is not compatible with type '"abcd"|A|undefined|"foo"|"field1"' at index 1 */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for foo("other field") */ +/* @@@ label4 Error Semantic error ESE0046: Type '"other field"' is not compatible with type '"abcd"|A|undefined|"foo"|"field1"' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets b/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets index e1b1f5fb3d4426f1232433f005083a5af050b539..56e9f83d407a44871db7d21c7178246be932a783 100644 --- a/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets +++ b/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets @@ -30,6 +30,6 @@ function main():void{ getProperty1(a,"method1") } -/* @@@ label1 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@@ label2 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@@ label3 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ +/* @@@ label1 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@@ label2 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@@ label3 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ diff --git a/ets2panda/test/ast/parser/ets/keyof_union.ets b/ets2panda/test/ast/parser/ets/keyof_union.ets index fa9733238e5ae382a474890b6380ed92b56cdb33..97e707e4b348b503977bb6c4ec26b0a9da23483c 100644 --- a/ets2panda/test/ast/parser/ets/keyof_union.ets +++ b/ets2panda/test/ast/parser/ets/keyof_union.ets @@ -33,9 +33,9 @@ function main():void{ getProperty("other field") } -/* @@@ label1 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label2 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label3 Error TypeError: Cannot find type 'keyofUnion'. */ -/* @@@ label4 Error TypeError: Cannot find type 'keyofUnion'. */ -/* @@@ label5 Error TypeError: Cannot find type 'keyofA'. */ -/* @@@ label6 Error TypeError: Cannot find type 'keyofA'. */ +/* @@@ label1 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label2 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label3 Error Semantic error ESE0371: Cannot find type 'keyofUnion'. */ +/* @@@ label4 Error Semantic error ESE0371: Cannot find type 'keyofUnion'. */ +/* @@@ label5 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@@ label6 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ diff --git a/ets2panda/test/ast/parser/ets/keyword_after_readonly_interface.ets b/ets2panda/test/ast/parser/ets/keyword_after_readonly_interface.ets index 48cf3c4993dc03dbd73d8aaaedabb436467ed2b7..5853548b8645d2d83c4dbe635314c4400e9229f1 100644 --- a/ets2panda/test/ast/parser/ets/keyword_after_readonly_interface.ets +++ b/ets2panda/test/ast/parser/ets/keyword_after_readonly_interface.ets @@ -17,11 +17,11 @@ interface A { readonly static a = 45; } -/* @@? 17:2 Error SyntaxError: Identifier expected. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:20 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 17:22 Error SyntaxError: Invalid Type. */ -/* @@? 17:22 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:22 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 17:24 Error SyntaxError: Identifier expected. */ +/* @@? 17:2 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:11 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:11 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:20 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 17:22 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:22 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:22 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 17:24 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/labeled.ets b/ets2panda/test/ast/parser/ets/labeled.ets index c6e742534fef7cee9565a9277337eb47223ae0b8..42063c4f6155ecaf92c4b0b782bf8e7e8571d4c1 100644 --- a/ets2panda/test/ast/parser/ets/labeled.ets +++ b/ets2panda/test/ast/parser/ets/labeled.ets @@ -23,10 +23,10 @@ class LabeledTest { } } -/* @@@ label Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label1 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label2 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label3 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label4 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label5 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label6 Error SyntaxError: Label must be followed by a loop statement. */ +/* @@@ label Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label1 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label2 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label3 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label4 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label5 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label6 Error Syntax error ESY0038: Label must be followed by a loop statement. */ diff --git a/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets b/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets index 3847e046a244373056e1af43467aaed6b7d691ca..5172cd102f527c36c8c7a082f9c424e96f7a5bb0 100644 --- a/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets +++ b/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets @@ -17,4 +17,4 @@ function labeledBlockTest01():void{ label1:/* @@ label */{} } -/* @@@ label Error SyntaxError: Label must be followed by a loop statement. */ +/* @@@ label Error Syntax error ESY0038: Label must be followed by a loop statement. */ diff --git a/ets2panda/test/ast/parser/ets/lambda-arrow-after-braces.ets b/ets2panda/test/ast/parser/ets/lambda-arrow-after-braces.ets index 03775c1d71b69b24d83d73d98060ee275651af40..df5c3d25de11fd15cd9c3b459b5415fef40c40eb 100644 --- a/ets2panda/test/ast/parser/ets/lambda-arrow-after-braces.ets +++ b/ets2panda/test/ast/parser/ets/lambda-arrow-after-braces.ets @@ -18,7 +18,6 @@ function main() : void{ ({}/* @@ label */=>z) /* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token '=>'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@@ label2 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label2 */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 24:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/lambda-type-inference-bad-arrow.ets b/ets2panda/test/ast/parser/ets/lambda-type-inference-bad-arrow.ets index 98215468eed7a8e29bda30950ba25eff1fd5ffe0..7af07157d463ad7ca5e803d004219399c964c8e6 100644 --- a/ets2panda/test/ast/parser/ets/lambda-type-inference-bad-arrow.ets +++ b/ets2panda/test/ast/parser/ets/lambda-type-inference-bad-arrow.ets @@ -20,7 +20,8 @@ function main(): void { foo((x(() => { } -/* @@? 20:10 Error TypeError: Unresolved reference x */ -/* @@? 27:1 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 27:1 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 27:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 20:10 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 28:1 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 28:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 28:1 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 28:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/lambda-type-inference-neg.ets b/ets2panda/test/ast/parser/ets/lambda-type-inference-neg.ets index 75cc29a9124eff1f602cb0e682834e350602fbaf..7e1f1c9e8937d36f0847b865a1770bca772ed5ff 100644 --- a/ets2panda/test/ast/parser/ets/lambda-type-inference-neg.ets +++ b/ets2panda/test/ast/parser/ets/lambda-type-inference-neg.ets @@ -25,4 +25,4 @@ function main(): void { } -/* @@@ label Error TypeError: Function foo with this assembly signature already declared. */ +/* @@@ label Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ diff --git a/ets2panda/test/ast/parser/ets/lambda-type-inference-overloaded-1.ets b/ets2panda/test/ast/parser/ets/lambda-type-inference-overloaded-1.ets index be682f7d2f1445a16670690f5652e3df7f3f69f3..7022fc336330dae2985540353db47057a079ae60 100644 --- a/ets2panda/test/ast/parser/ets/lambda-type-inference-overloaded-1.ets +++ b/ets2panda/test/ast/parser/ets/lambda-type-inference-overloaded-1.ets @@ -34,6 +34,6 @@ function main(): void { }); } -/* @@@ label Error TypeError: Function foo with this assembly signature already declared. */ -/* @@@ label1 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Boolean' */ -/* @@? 28:9 Error TypeError: Type '(x: Double, y: String) => Boolean' is not compatible with type '(x: Int, y: String) => Boolean' at index 1 */ +/* @@@ label Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ +/* @@? 28:9 Error Semantic error ESE0046: Type '(x: Double, y: String) => Boolean' is not compatible with type '(x: Int, y: String) => Boolean' at index 1 */ +/* @@@ label1 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Boolean' */ diff --git a/ets2panda/test/ast/parser/ets/lambda_function_index_access_neg.ets b/ets2panda/test/ast/parser/ets/lambda_function_index_access_neg.ets index ef855e4383289ea8bafca7f8b23a5ab6e6c9ae1e..21777357814e70118f6c0ca52e467a866d5a6914 100644 --- a/ets2panda/test/ast/parser/ets/lambda_function_index_access_neg.ets +++ b/ets2panda/test/ast/parser/ets/lambda_function_index_access_neg.ets @@ -19,19 +19,19 @@ let a = (... ( () => { } [] -/* @@? 16:9 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 16:10 Error SyntaxError: Unexpected token '...'. */ -/* @@? 16:10 Error TypeError: This expression is not callable. */ -/* @@? 18:5 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 18:7 Error SyntaxError: Unexpected token ':'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token 'async'. */ -/* @@? 18:15 Error SyntaxError: 'async' flags must be used for functions only at top-level. */ -/* @@? 18:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 18:16 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 18:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:18 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 18:18 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:18 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 18:18 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 18:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:3 Error TypeError: Can't resolve array type */ +/* @@? 16:9 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 16:10 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 18:5 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 18:7 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 18:9 Error Syntax error ESY0227: Unexpected token 'async'. */ +/* @@? 18:15 Error Syntax error ESY0202: 'async' flags must be used for functions only at top-level. */ +/* @@? 18:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 18:16 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 18:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:18 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 18:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:18 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 18:18 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 18:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 20:3 Error Semantic error ESE0301: Can't resolve array type */ diff --git a/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_1.ets b/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_1.ets index 8e962a727f14fa5ea0e4c5c4a49b3985d125e7e3..b2c41e2f4eb51a20e1097607cbb91049ed10e16f 100644 --- a/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_1.ets @@ -16,5 +16,5 @@ let lam :(x:string, y:int) => void = (a,b) =>{} lam(2, 3) -/* @@? 17:1 Error TypeError: No matching call signature for (Int, Int) */ -/* @@? 17:5 Error TypeError: Type 'Int' is not compatible with type 'String' at index 1 */ +/* @@? 17:1 Error Semantic error ESE0127: No matching call signature for (Int, Int) */ +/* @@? 17:5 Error Semantic error ESE0046: Type 'Int' is not compatible with type 'String' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_2.ets b/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_2.ets index 2ccb389e1ecca44a5e1b5931b318bd0a3a29ce8a..1203ab86ac53dcdf0e4ef1892574de1985049925 100644 --- a/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_2.ets +++ b/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_2.ets @@ -17,4 +17,4 @@ function foo(func: (arg1:T, args2:U)=>U){} foo((arg1, args2:number)=>{return new Object()}) -/* @@? 17:35 Error TypeError: Type 'Object' is not compatible with the enclosing method's return type 'Double' */ \ No newline at end of file +/* @@? 17:35 Error Semantic error ESE0091: Type 'Object' is not compatible with the enclosing method's return type 'Double' */ diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_1.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_1.ets index e61d3b64e18f2ae1fdbf8dd176330282ad870078..b65b00be234a69b6da5460e2910757cfeff983e8 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_1.ets @@ -39,5 +39,5 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 39:4 Error TypeError: Expected 18 arguments, got 9. */ -/* @@? 39:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!") */ +/* @@? 39:4 Error Semantic error ESE0124: Expected 18 arguments, got 9. */ +/* @@? 39:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!") */ diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_2.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_2.ets index 74e21ab03d5558bbf38dbb1531d60a689c876d47..b69417587304b5ad2a9f9c74c539fd84a22af248 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_2.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_2.ets @@ -39,5 +39,5 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 39:4 Error TypeError: Expected 18 arguments, got 23. */ -/* @@? 39:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ +/* @@? 39:4 Error Semantic error ESE0124: Expected 18 arguments, got 23. */ +/* @@? 39:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_3.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_3.ets index 20dbdd881835be56fa509ea3fd69eeb28e5e0779..1bbeeaee0c5c6bae3221ca82d44aec2e78d0931d 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_3.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_3.ets @@ -38,5 +38,5 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 38:4 Error TypeError: Expected 16 arguments, got 18. */ -/* @@? 38:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ +/* @@? 38:4 Error Semantic error ESE0124: Expected 16 arguments, got 18. */ +/* @@? 38:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_4.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_4.ets index 57d60ac87968e7cfe94451d0a83aaf3642e33e76..c757c5ec57b52acf0a6de69b424e8085e5ee6f3c 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_4.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_4.ets @@ -38,5 +38,5 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 38:4 Error TypeError: Expected 16 arguments, got 15. */ -/* @@? 38:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ +/* @@? 38:4 Error Semantic error ESE0124: Expected 16 arguments, got 15. */ +/* @@? 38:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_5.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_5.ets index 3c97a6f8c33f3c0dffa2bb401e2ca78bd87957a6..79af18308b456bcbf0d3050164373c548ae5a697 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_5.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_5.ets @@ -38,5 +38,5 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 38:4 Error TypeError: Expected 17 arguments, got 15. */ -/* @@? 38:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ +/* @@? 38:4 Error Semantic error ESE0124: Expected 17 arguments, got 15. */ +/* @@? 38:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ diff --git a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_1.ets b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_1.ets index bf482d1aee7ebe81050fa8072f61e0ce82bae084..33d4e1ba23cdc2dee76f9d21b3d772b393d402df 100644 --- a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_1.ets @@ -18,6 +18,6 @@ function func(fn:(x:int)=>void) { } func(x)=>console.log(1)) -/* @@? 19:8 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 19:8 Error SyntaxError: Unexpected token. */ -/* @@? 19:24 Error SyntaxError: Unexpected token ')'. */ +/* @@? 19:8 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 19:8 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 19:24 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_3.ets b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_3.ets index eac89534ee468e652cb85bd7f0aa99ccc175ceb7..58640c2ce580388e8ced96e64ba046c34ac29ef1 100644 --- a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_3.ets +++ b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_3.ets @@ -16,4 +16,4 @@ function func(fn:(x:int)=>string){} func((x)=>1) -/* @@? 17:11 Error TypeError: Type 'Int' is not compatible with the enclosing method's return type 'String' */ +/* @@? 17:11 Error Semantic error ESE0091: Type 'Int' is not compatible with the enclosing method's return type 'String' */ diff --git a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_type_alias_neg_1.ets b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_type_alias_neg_1.ets index 2ced9449996adbbaf38fb27bfd4b9bb71e3f763d..c82fc4d12fb1953002ff35bd13966bfe97a7450f 100644 --- a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_type_alias_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_type_alias_neg_1.ets @@ -15,5 +15,5 @@ let a: int => void -/* @@? 16:12 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 16:15 Error SyntaxError: Unexpected token 'void'. */ +/* @@? 16:12 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 16:15 Error Syntax error ESY0227: Unexpected token 'void'. */ diff --git a/ets2panda/test/ast/parser/ets/lambda_optional_param_2.ets b/ets2panda/test/ast/parser/ets/lambda_optional_param_2.ets index 5e7f4e4636a07667cf57d81a8b26207e4a9e3061..db07ca48de3def2532073396ce8c657ece7378bf 100644 --- a/ets2panda/test/ast/parser/ets/lambda_optional_param_2.ets +++ b/ets2panda/test/ast/parser/ets/lambda_optional_param_2.ets @@ -21,4 +21,4 @@ function main(): void { gf("abc" as String, /* @@ label */(x: String): Int => { return x=="TEST"?0:1}) } -/* @@@ label Error TypeError: Type '(x: String) => Int' is not compatible with type '(x: String|undefined) => Int' at index 2 */ +/* @@@ label Error Semantic error ESE0046: Type '(x: String) => Int' is not compatible with type '(x: String|undefined) => Int' at index 2 */ diff --git a/ets2panda/test/ast/parser/ets/lambda_optional_param_3.ets b/ets2panda/test/ast/parser/ets/lambda_optional_param_3.ets index 243d1920d6f13aaa1cd0503eb4339d9b6a809c0b..fe06120928b41fd82d459e45ba4b73fd81d5cf72 100644 --- a/ets2panda/test/ast/parser/ets/lambda_optional_param_3.ets +++ b/ets2panda/test/ast/parser/ets/lambda_optional_param_3.ets @@ -21,5 +21,5 @@ function main(): void { gf("abc" as String, (x: String): Int => { return x=="TEST"?0:1}) } -/* @@@ label Error SyntaxError: Default value is allowed only for optional parameters. */ -/* @@? 21:24 Error TypeError: Type '(x: String) => Int' is not compatible with type '(x: String|undefined) => Int' at index 2 */ +/* @@@ label Error Syntax error ESY0133: Default value is allowed only for optional parameters. */ +/* @@? 21:24 Error Semantic error ESE0046: Type '(x: String) => Int' is not compatible with type '(x: String|undefined) => Int' at index 2 */ diff --git a/ets2panda/test/ast/parser/ets/lexer003.ets b/ets2panda/test/ast/parser/ets/lexer003.ets index 6e9900937bba4668ec5615a8ec6df2a61ba96918..e276f78b9c23fd91584a95f870e85d326ccd98ae 100644 --- a/ets2panda/test/ast/parser/ets/lexer003.ets +++ b/ets2panda/test/ast/parser/ets/lexer003.ets @@ -13,12 +13,10 @@ * limitations under the License. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected '`'. */ -/* @@? 24:4 Error TypeError: Unresolved reference message */ -/* @@? 24:15 Error SyntaxError: Unterminated string. */ -/* @@? 24:19 Error SyntaxError: Unterminated string. */ -/* @@? 24:19 Error SyntaxError: Unexpected token, expected '${' or '`' */ -/* @@? 24:19 Error SyntaxError: Unexpected token, expected '`'. */ -/* @@? 24:19 Error SyntaxError: Expected '}', got 'end of stream'. */ - -`${message ?? 'ver \ No newline at end of file +/* @@? 24:1 Error Syntax error ESY0228: Unexpected token, expected '`'. */ +/* @@? 24:4 Error Semantic error ESE0143: Unresolved reference message */ +/* @@? 24:15 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 24:19 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ +/* @@? 24:19 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 24:19 Error Syntax error ESY0259: Unexpected token, expected '${' or '`' */ +/* @@? 24:19 Error Syntax error ESY0228: Unexpected token, expected '`'. */ diff --git a/ets2panda/test/ast/parser/ets/lexical_dec_not_allowed.ets b/ets2panda/test/ast/parser/ets/lexical_dec_not_allowed.ets index afbd9e8ed337000759d3d2d5d69ab65bbfbb06c5..a46bcbd13319e253dccd744c6f1334b47ab673d9 100644 --- a/ets2panda/test/ast/parser/ets/lexical_dec_not_allowed.ets +++ b/ets2panda/test/ast/parser/ets/lexical_dec_not_allowed.ets @@ -15,6 +15,6 @@ while(true) function a (){}; -/* @@? 16:13 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 16:13 Error SyntaxError: Lexical declaration is not allowed in single statement context. */ -/* @@? 16:28 Error SyntaxError: Missing body in while statement */ +/* @@? 16:13 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 16:13 Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ +/* @@? 16:28 Error Syntax error ESY0300: Missing body in while statement */ diff --git a/ets2panda/test/ast/parser/ets/local-class-access-modifier-private.ets b/ets2panda/test/ast/parser/ets/local-class-access-modifier-private.ets index c5e563e92d6badbb10e9d5d66e0626577cae592f..9f6981bf4b30c9fcfa3d196205125131e6810c11 100644 --- a/ets2panda/test/ast/parser/ets/local-class-access-modifier-private.ets +++ b/ets2panda/test/ast/parser/ets/local-class-access-modifier-private.ets @@ -20,4 +20,4 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-access-modifier-protected.ets b/ets2panda/test/ast/parser/ets/local-class-access-modifier-protected.ets index 3bb4c4d899e9a87803955635d1673c31d5d73035..9f4c4d0762471e69750238086e6d780c8f2770b2 100644 --- a/ets2panda/test/ast/parser/ets/local-class-access-modifier-protected.ets +++ b/ets2panda/test/ast/parser/ets/local-class-access-modifier-protected.ets @@ -19,4 +19,4 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-access-modifier-public.ets b/ets2panda/test/ast/parser/ets/local-class-access-modifier-public.ets index 6a84944ebcf4111953ce7d9eb5d910f40169dff9..ac288f001fa45452c970a7412f5ced7599a47cab 100644 --- a/ets2panda/test/ast/parser/ets/local-class-access-modifier-public.ets +++ b/ets2panda/test/ast/parser/ets/local-class-access-modifier-public.ets @@ -19,4 +19,4 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private1.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private1.ets index 2e523713b2080beba4c86bf6aa4ad7eaf19494b3..0fa5e54635e8514e58df556d4e5760cc7c9414b0 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private1.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private1.ets @@ -20,5 +20,5 @@ function foo() private property : int; } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private2.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private2.ets index 85dd9b2df4b39df25c45c2a629111e36230be502..a8ec277819415e5d907cefcb894f3dd695145c1d 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private2.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private2.ets @@ -20,5 +20,5 @@ function foo() private method() : void; } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected1.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected1.ets index 2e7a15b76051b8dd1bdc1babcbc6682660346392..850985daed361babf840d282cecee83213f638df 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected1.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected1.ets @@ -21,5 +21,5 @@ function foo() } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected2.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected2.ets index a320b25eb813baf3968b63b10c40eea7e582ce34..f590d07be47d2fd6fbe48daab834d23324353940 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected2.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected2.ets @@ -21,5 +21,5 @@ function foo() } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public1.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public1.ets index 3b55135eb716a90729f5673ded62a3358b8da8ca..c92316b62ce37a22003afec28303c5a25aad04ab 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public1.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public1.ets @@ -20,5 +20,5 @@ function foo() public property : int; } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public2.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public2.ets index 5bf531cf9fa4fca5def0c8b9b03321b2ba0f860b..a6055e4ca273e73036df59ebbaee7777126f1420 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public2.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public2.ets @@ -21,5 +21,5 @@ function foo() } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-enum.ets b/ets2panda/test/ast/parser/ets/local-enum.ets index 2e3a21b49c2cfbf661f330b8c092f0c1b7db522a..3894b42d718a47aa820ffde4d61127d4b7a636ac 100644 --- a/ets2panda/test/ast/parser/ets/local-enum.ets +++ b/ets2panda/test/ast/parser/ets/local-enum.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-private.ets b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-private.ets index bc73b3237115fd0bcd55893ca0ac5b778197d0df..e380548a8d57ec5faf226fef088dade6618a93d6 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-private.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-private.ets @@ -19,4 +19,4 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-protected.ets b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-protected.ets index 83cbdb3256cc6b5d9c52f5b79abf4a13dbf185f1..9182acd2fd97fed235a979180eee12a4f8e9c2e3 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-protected.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-protected.ets @@ -19,4 +19,4 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-public.ets b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-public.ets index 5fb4868303e044bc3d6efa8c7325792daa5afbf1..a319caeac4c1618996c4795a3dee1b0f45e944bd 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-public.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-public.ets @@ -19,4 +19,4 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private1.ets b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private1.ets index 490354a6199008db14aa92835199ca3b07a7e537..3a61c4dbad53665fbe1da7a7c32e087fb96b6c50 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private1.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private1.ets @@ -21,5 +21,5 @@ function foo() } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ +/* @@@ label1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label2 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ diff --git a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private2.ets b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private2.ets index 7f76e7b9909c883eb60e5618fdb2761c6edf2a5b..b145fae73ca541f6c1acf7c4fb54135edf82ba3c 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private2.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private2.ets @@ -21,6 +21,6 @@ function foo() } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ -/* @@@ label3 Error SyntaxError: Private interface methods must have body. */ +/* @@@ label1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label2 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ +/* @@@ label3 Error Syntax error ESY0032: Private interface methods must have body. */ diff --git a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-protected1.ets b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-protected1.ets index af6da8fe3b1d6a352b72da013ebc13ff4dfa389d..0e4f7ec706d80c6c55db0912702f212add9cbec4 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-protected1.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-protected1.ets @@ -21,5 +21,5 @@ function foo() } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ +/* @@@ label1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label2 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ diff --git a/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets b/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets index fb98c611cf72e82dabf52ed5b9d8b9d8a005000b..746a9595f6c2691dbc9a7c003bff8e1781c6784d 100644 --- a/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets +++ b/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets @@ -19,5 +19,5 @@ function main(): void { let outA : /* @@ label2 */a; -/* @@@ label1 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label2 Error TypeError: Cannot find type 'a'. */ +/* @@@ label1 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label2 Error Semantic error ESE0371: Cannot find type 'a'. */ diff --git a/ets2panda/test/ast/parser/ets/local_class_already_class.ets b/ets2panda/test/ast/parser/ets/local_class_already_class.ets index 3bfff8e7d3288fbea0c3a9f4ec5a33df29683023..9110c4857c4108fde02e651aac183abb1d8db01e 100644 --- a/ets2panda/test/ast/parser/ets/local_class_already_class.ets +++ b/ets2panda/test/ast/parser/ets/local_class_already_class.ets @@ -22,5 +22,5 @@ function bar(): void { } } -/* @@? 17:3 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:3 Error SyntaxError: Illegal start of CLASS expression. */ +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_class_already_interface.ets b/ets2panda/test/ast/parser/ets/local_class_already_interface.ets index 64e86ea35fe8bc56389b747d4ac8285a438e4797..308011c60f3c08a325595c76a026019f339c8ee9 100644 --- a/ets2panda/test/ast/parser/ets/local_class_already_interface.ets +++ b/ets2panda/test/ast/parser/ets/local_class_already_interface.ets @@ -22,5 +22,5 @@ function bar(): void { } } -/* @@? 17:3 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 20:3 Error SyntaxError: Illegal start of CLASS expression. */ +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 20:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_class_already_variable.ets b/ets2panda/test/ast/parser/ets/local_class_already_variable.ets index c784418b2ce2170e9025b84e7b9455a1616f46cb..feea2771cdb67d5e7fa35cc7058dbb28c043495c 100644 --- a/ets2panda/test/ast/parser/ets/local_class_already_variable.ets +++ b/ets2panda/test/ast/parser/ets/local_class_already_variable.ets @@ -20,4 +20,4 @@ function bar(): void { } } -/* @@? 18:3 Error SyntaxError: Illegal start of CLASS expression. */ +/* @@? 18:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_class_in_classfunction.ets b/ets2panda/test/ast/parser/ets/local_class_in_classfunction.ets index 7ae5c158dfa2c47475619c403868faad995102e6..50ac81c803fddba62805c813d4ee6b6ab270f623 100644 --- a/ets2panda/test/ast/parser/ets/local_class_in_classfunction.ets +++ b/ets2panda/test/ast/parser/ets/local_class_in_classfunction.ets @@ -49,13 +49,13 @@ class A_class{ } } -/* @@? 18:18 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 19:9 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 24:15 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 30:9 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 31:24 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 33:18 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 36:15 Error TypeError: Cannot find type 'AbstractLocalClass2'. */ -/* @@? 36:41 Error TypeError: Cannot find type 'AbstractLocalClass2'. */ -/* @@? 38:18 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 43:15 Error SyntaxError: Illegal start of CLASS expression. */ +/* @@? 18:18 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 19:9 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 24:15 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 30:9 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 31:24 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 33:18 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 36:15 Error Semantic error ESE0371: Cannot find type 'AbstractLocalClass2'. */ +/* @@? 36:41 Error Semantic error ESE0371: Cannot find type 'AbstractLocalClass2'. */ +/* @@? 38:18 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 43:15 Error Syntax error ESY0040: Illegal start of CLASS expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_enum.ets b/ets2panda/test/ast/parser/ets/local_enum.ets index 73d642975bb4a763b40034b959490894181294ea..b3d7d0b036ae7974d5306db90f83660c0963d068 100644 --- a/ets2panda/test/ast/parser/ets/local_enum.ets +++ b/ets2panda/test/ast/parser/ets/local_enum.ets @@ -37,12 +37,10 @@ interface I{ enum E {E1} } -/* @@? 17:3 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 21:3 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 24:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 29:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 32:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 37:4 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 37:11 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 37:12 Error TypeError: Cannot find type 'E1'. */ -/* @@? 38:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 37:9 Error Syntax error ESY0000: Unexpected token in property key */ +/* @@? 29:8 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 29:10 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 29:11 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 31:8 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 34:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 37:9 Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/parser/ets/local_interface.ets b/ets2panda/test/ast/parser/ets/local_interface.ets index e645260fcad3857939f27856abde2dde52820e17..1df91081c5d46e731ec37c01899ca7c28b7a0418 100644 --- a/ets2panda/test/ast/parser/ets/local_interface.ets +++ b/ets2panda/test/ast/parser/ets/local_interface.ets @@ -69,13 +69,7 @@ class C { } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@@ label3 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label4 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@@ label5 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label6 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@@ label7 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label8 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label9 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label10 Error SyntaxError: Illegal start of CLASS expression. */ \ No newline at end of file +/* @@? 51:28 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 51:35 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 60:8 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 70:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/local_interface_already_class.ets b/ets2panda/test/ast/parser/ets/local_interface_already_class.ets index df8b96452f5280fe3a0fff4b26417033aeac07a9..e815d2aba21e583f5186bbf2c51f5734e33b2f3b 100644 --- a/ets2panda/test/ast/parser/ets/local_interface_already_class.ets +++ b/ets2panda/test/ast/parser/ets/local_interface_already_class.ets @@ -22,5 +22,5 @@ function bar(): void { } } -/* @@? 17:3 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:3 Error SyntaxError: Illegal start of INTERFACE expression. */ \ No newline at end of file +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_interface_already_interface.ets b/ets2panda/test/ast/parser/ets/local_interface_already_interface.ets index 67952a2acfbbc7d4cddad6651e69ba25b4ffd959..0042b448fb59379f1590cac2146618b90cfc016a 100644 --- a/ets2panda/test/ast/parser/ets/local_interface_already_interface.ets +++ b/ets2panda/test/ast/parser/ets/local_interface_already_interface.ets @@ -22,5 +22,5 @@ function bar(): void { } } -/* @@? 17:3 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 20:3 Error SyntaxError: Illegal start of INTERFACE expression. */ +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 20:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_interface_already_variable..ets b/ets2panda/test/ast/parser/ets/local_interface_already_variable..ets index 0660c505d4bda4e94018cb0e8e5c690c1d5458d8..a4b7a105033395332618968fe9188d29bb408b5e 100644 --- a/ets2panda/test/ast/parser/ets/local_interface_already_variable..ets +++ b/ets2panda/test/ast/parser/ets/local_interface_already_variable..ets @@ -20,4 +20,4 @@ function bar(): void { } } -/* @@? 18:3 Error SyntaxError: Illegal start of INTERFACE expression. */ +/* @@? 18:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ diff --git a/ets2panda/test/ast/parser/ets/local_type_alias.ets b/ets2panda/test/ast/parser/ets/local_type_alias.ets index 9060686ac9d3a95d6b7f809b8adbf2f9d312e3f5..54c54670e567d0884d5b1ad744d5e5528e24ec5d 100644 --- a/ets2panda/test/ast/parser/ets/local_type_alias.ets +++ b/ets2panda/test/ast/parser/ets/local_type_alias.ets @@ -39,14 +39,8 @@ interface I{ type a = A; } -/* @@? 19:3 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 23:3 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 26:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 31:7 Error SyntaxError: Field type annotation expected. */ -/* @@? 31:12 Error SyntaxError: Class cannot be used as object. */ -/* @@? 34:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 39:9 Error TypeError: Cannot find type 'a'. */ -/* @@? 39:11 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 39:13 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 39:13 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 39:14 Error SyntaxError: Identifier expected. */ +/* @@? 39:9 Error Syntax error ESY0000: Unexpected token in property key */ +/* @@? 31:8 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 31:10 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 31:12 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 39:9 Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/parser/ets/loops.ets b/ets2panda/test/ast/parser/ets/loops.ets index b615b0ecd600ac2732f80cbc1f4a68c4f34c2dc3..8564be2d02e06f08f884a7a442a4fc3add1d746a 100644 --- a/ets2panda/test/ast/parser/ets/loops.ets +++ b/ets2panda/test/ast/parser/ets/loops.ets @@ -64,4 +64,4 @@ function labeledcontinue(): void { } } -/* @@? 19:15 Error TypeError: Unresolved reference i */ +/* @@? 19:15 Error Semantic error ESE0143: Unresolved reference i */ diff --git a/ets2panda/test/ast/parser/ets/main_entry_point_2.ets b/ets2panda/test/ast/parser/ets/main_entry_point_2.ets index c980858747b17452e2cce19f3bb61108334a02f8..0231f14a6c1c72c3cda094f00ff88520f621f081 100644 --- a/ets2panda/test/ast/parser/ets/main_entry_point_2.ets +++ b/ets2panda/test/ast/parser/ets/main_entry_point_2.ets @@ -17,4 +17,4 @@ function main(): char { /* @@ label */return c'a'; } -/* @@@ label Error TypeError: Bad return type, main enable only void or int type. */ +/* @@@ label Error Semantic error ESE0088: Bad return type, main enable only void or int type. */ diff --git a/ets2panda/test/ast/parser/ets/main_entry_point_3.ets b/ets2panda/test/ast/parser/ets/main_entry_point_3.ets index 12aeee11688ca699810b7c40a0366664fa16f1c6..0e141efaefcfaea48ae85ff4444e51b80bc6c03a 100644 --- a/ets2panda/test/ast/parser/ets/main_entry_point_3.ets +++ b/ets2panda/test/ast/parser/ets/main_entry_point_3.ets @@ -17,4 +17,4 @@ function main(/* @@ label */i : int[]): void { return; } -/* @@@ label Error TypeError: Only 'FixedArray' type argument is allowed. */ +/* @@@ label Error Semantic error ESE0135: Only 'FixedArray' type argument is allowed. */ diff --git a/ets2panda/test/ast/parser/ets/main_entry_point_4.ets b/ets2panda/test/ast/parser/ets/main_entry_point_4.ets index 79e4b004ee526bf2facb0f3030ea2e77d96d95ee..851cdc4e89d163e8a4e23ed5236bdf2f930ad50b 100644 --- a/ets2panda/test/ast/parser/ets/main_entry_point_4.ets +++ b/ets2panda/test/ast/parser/ets/main_entry_point_4.ets @@ -17,4 +17,4 @@ function main(i : int[], ii : int): void { return; } -/* @@? 16:10 Error TypeError: 0 or 1 argument are allowed */ +/* @@? 16:10 Error Semantic error ESE0133: 0 or 1 argument are allowed */ diff --git a/ets2panda/test/ast/parser/ets/main_entry_point_5.ets b/ets2panda/test/ast/parser/ets/main_entry_point_5.ets index fdca0d522ca929882aff13de5ba24340dcb12099..c4a4438e53563878afa34fe68d6959f4fed108b6 100644 --- a/ets2panda/test/ast/parser/ets/main_entry_point_5.ets +++ b/ets2panda/test/ast/parser/ets/main_entry_point_5.ets @@ -21,5 +21,5 @@ function /* @@ label */main(i : string[]): void { return; } -/* @@? 20:24 Error TypeError: Main overload is not enabled */ -/* @@? 20:29 Error TypeError: Only 'FixedArray' type argument is allowed. */ +/* @@@ label Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 20:29 Error Semantic error ESE0135: Only 'FixedArray' type argument is allowed. */ diff --git a/ets2panda/test/ast/parser/ets/method_full.ets b/ets2panda/test/ast/parser/ets/method_full.ets index 37360616d7fa7adea7537f9b7f035ea7f96a37c1..99014c334bcf18b87ea78396031a590a21e7efbd 100644 --- a/ets2panda/test/ast/parser/ets/method_full.ets +++ b/ets2panda/test/ast/parser/ets/method_full.ets @@ -30,8 +30,8 @@ abstract class method_full { private native foo_native(): int ; } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label1 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label4 Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label1 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label2 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label3 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label4 Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_1.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_1.ets index 821072dfef8ecb6b586e14f210a86ea62a9ff95c..1cd0b643ea758cb659733a75c3f84e0ddceb8be5 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_1.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_1.ets @@ -17,5 +17,5 @@ abstract class A { /* @@ label */abstract static foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_10.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_10.ets index ab3775e63a7b25cec0a8292ddc8b18da286ce065..d573aa3685b8dd33e3651341cb4480ad5d09c91c 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_10.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_10.ets @@ -17,5 +17,5 @@ class A { final static foo() : void {} } -/* @@? 17:5 Error TypeError: Invalid method modifier(s): a final method can't have abstract or static modifier. */ -/* @@? 17:5 Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ +/* @@? 17:5 Error Semantic error ESE0048: Invalid method modifier(s): a final method can't have abstract or static modifier. */ +/* @@? 17:5 Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_11.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_11.ets index f61c43667dc6600088ec20cfc1c01c4ea9621ccd..e4c8e3902449c5c629cb6a814b111c50cd3b322a 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_11.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_11.ets @@ -17,4 +17,4 @@ class A { final override foo/* @@ label */() : void {} } -/* @@@ label Error TypeError: Method foo(): void in A not overriding any method */ +/* @@@ label Error Semantic error ESE0136: Method foo(): void in A not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_12.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_12.ets index 4f9ecbcc8638749da9b7ac923cf51ca4c0b97c6a..7958404f8165c4506557a5265f14c6a68687ae84 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_12.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_12.ets @@ -17,4 +17,4 @@ class A { final native foo() : void /* @@ label */{} } -/* @@@ label Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_13.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_13.ets index a4d21bce0211f78840d9e85f5a7700b35ad24558..f0b35a6f34ec191af6e17cbe05a2d4134351398c 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_13.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_13.ets @@ -17,4 +17,4 @@ abstract class A { /* @@ label */native abstract foo() : void; } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_15.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_15.ets index d9ddd68e777a9ddf6d08733ded11600ff7d20a48..294ffb0f3e0775c71ae40806da99822a03aef9b4 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_15.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_15.ets @@ -18,5 +18,5 @@ class A { static final foo2() : void {}; } -/* @@? 18:5 Error TypeError: Invalid method modifier(s): a final method can't have abstract or static modifier. */ -/* @@? 18:5 Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ \ No newline at end of file +/* @@? 18:5 Error Semantic error ESE0048: Invalid method modifier(s): a final method can't have abstract or static modifier. */ +/* @@? 18:5 Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_16.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_16.ets index beb38160f4fd85ba4a75ee6d306b7cba8ed14e78..6d7b25f19a887c16a72156ee14286000ac45bfa7 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_16.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_16.ets @@ -17,4 +17,4 @@ class A { native override foo/* @@ label */() : void; } -/* @@@ label Error TypeError: Method foo(): void in A not overriding any method */ +/* @@@ label Error Semantic error ESE0136: Method foo(): void in A not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_17.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_17.ets index 0d44625fb31695dd25aba047f9d4a14a5afe967f..af8225a23806c2532f854a1e8f6ef9113eb15772 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_17.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_17.ets @@ -30,4 +30,4 @@ a.instance_method () function main() {} -/* @@@ label Error TypeError: Cannot call abstract method! */ +/* @@@ label Error Semantic error ESE0026: Cannot call abstract method! */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_2.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_2.ets index 134d8fae47d1e1430ed6271aeb3f8e3d77050ec9..6d080ec6226f11d403ce94b52a2f13b2fce11fd5 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_2.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_2.ets @@ -17,5 +17,5 @@ abstract class A { /* @@ label */abstract final foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_3.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_3.ets index 04ca1b3e84298d65e80fee13269c30ecafb5365a..551422e7b21b8d9c06b65756e2b8418107bdc894 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_3.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_3.ets @@ -17,5 +17,5 @@ abstract class A { /* @@ label */abstract override foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_4.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_4.ets index 35b31adb7e074f7f80f1e8135616b1aa8f5b8bc6..00cc4cbe23d97b9de1478cd312494978169daa6d 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_4.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_4.ets @@ -17,5 +17,5 @@ abstract class A { /* @@ label */abstract native foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_5.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_5.ets index fd5a2f56352d9cd81f83b83c568e605b4fcc1695..08f9fd17e0b6b4f277a314a3589ae156bf5bdaf0 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_5.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_5.ets @@ -17,5 +17,5 @@ abstract class A { /* @@ label */static abstract foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_6.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_6.ets index 43793d5207b5c7eaae16bab38b2fae5980694f99..201fdce5e3580b07acfa3977a56559d09d1f828d 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_6.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_6.ets @@ -17,5 +17,5 @@ class A { static final foo(): void {} } -/* @@? 17:5 Error TypeError: Invalid method modifier(s): a final method can't have abstract or static modifier. */ -/* @@? 17:5 Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ +/* @@? 17:5 Error Semantic error ESE0048: Invalid method modifier(s): a final method can't have abstract or static modifier. */ +/* @@? 17:5 Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_7.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_7.ets index eb889baf013cbf6ce938c01bb1b1e349908231a6..e1d9218433cd179261c1c89382bbef6ad93a5abd 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_7.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_7.ets @@ -17,4 +17,4 @@ class A { /* @@ label */static override foo(): void {} } -/* @@@ label Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ +/* @@@ label Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_9.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_9.ets index 4b48b2eb56c4709bd1de5beb0365c99b0916ac06..08025f2550bee452abfbd511306955b7b9f544c3 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_9.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_9.ets @@ -17,4 +17,4 @@ abstract class A { /* @@ label */final abstract foo() : void; } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ diff --git a/ets2panda/test/ast/parser/ets/methods.ets b/ets2panda/test/ast/parser/ets/methods.ets index de66f5d6614c181e68c6e380321f3e3bf504fff7..5d2fad39fe4a4444fd7a41676371473e3a677d1b 100644 --- a/ets2panda/test/ast/parser/ets/methods.ets +++ b/ets2panda/test/ast/parser/ets/methods.ets @@ -40,4 +40,4 @@ final class C4 extends C3 { override a(): void {}; } -/* @@@ label Error TypeError: Only abstract or native methods can't have body. */ +/* @@@ label Error Semantic error ESE0017: Only abstract or native methods can't have body. */ diff --git a/ets2panda/test/ast/parser/ets/minus_sign_as_index_1.ets b/ets2panda/test/ast/parser/ets/minus_sign_as_index_1.ets index 64b36ca55053a67f67347272d8d507de9c521045..1fcd126a9286a87304c33db2ca877017abeaecf2 100644 --- a/ets2panda/test/ast/parser/ets/minus_sign_as_index_1.ets +++ b/ets2panda/test/ast/parser/ets/minus_sign_as_index_1.ets @@ -15,10 +15,10 @@ class URIError extends WebAssembly {WebAssembly : WeakMap [-6]} -/* @@? 1:3 Error TypeError: Class 'URIError' is already defined. */ -/* @@? 16:24 Error TypeError: Cannot find type 'WebAssembly'. */ -/* @@? 16:24 Error TypeError: The super type of 'URIError' class is not extensible. */ -/* @@? 16:60 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 16:60 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:61 Error SyntaxError: Unexpected token '6'. */ -/* @@? 16:62 Error SyntaxError: Unexpected token ']'. */ \ No newline at end of file +/* @@? 1:3 Error Semantic error ESE0349: Class 'URIError' is already defined. */ +/* @@? 16:24 Error Semantic error ESE0371: Cannot find type 'WebAssembly'. */ +/* @@? 16:24 Error Semantic error ESE0176: The super type of 'URIError' class is not extensible. */ +/* @@? 16:60 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 16:60 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:61 Error Syntax error ESY0227: Unexpected token '6'. */ +/* @@? 16:62 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/missing_implementation_1.ets b/ets2panda/test/ast/parser/ets/missing_implementation_1.ets index 2e7d7ff93f3d72b654329e920e7cd5dbaa781a43..e5abe3dcd0b187e6d844e806a033bac11fd5bbf6 100644 --- a/ets2panda/test/ast/parser/ets/missing_implementation_1.ets +++ b/ets2panda/test/ast/parser/ets/missing_implementation_1.ets @@ -27,4 +27,4 @@ class Derived implements Interface /* @@ label */{ } -/* @@@ label Error TypeError: Derived is not abstract and does not implement setter for instance_field property in Interface */ +/* @@@ label Error Semantic error ESE0189: Derived is not abstract and does not implement setter for instance_field property in Interface */ diff --git a/ets2panda/test/ast/parser/ets/missing_implementation_2.ets b/ets2panda/test/ast/parser/ets/missing_implementation_2.ets index 2b1080c3b72101e21521acb5e21a6b09c15e674b..e0ceeef096837a4616be61d75939c44c2b01fe93 100644 --- a/ets2panda/test/ast/parser/ets/missing_implementation_2.ets +++ b/ets2panda/test/ast/parser/ets/missing_implementation_2.ets @@ -28,4 +28,4 @@ class Derived implements Interface /* @@ label */{ } -/* @@@ label Error TypeError: Derived is not abstract and does not implement getter for instance_field property in Interface */ +/* @@@ label Error Semantic error ESE0188: Derived is not abstract and does not implement getter for instance_field property in Interface */ diff --git a/ets2panda/test/ast/parser/ets/missing_in_for_statement_1.ets b/ets2panda/test/ast/parser/ets/missing_in_for_statement_1.ets index 88b0f45e72ce723f258eddb38b5a49290db90dd0..338bf13ca61c30fd3ba5ffe221941f0779da1cec 100644 --- a/ets2panda/test/ast/parser/ets/missing_in_for_statement_1.ets +++ b/ets2panda/test/ast/parser/ets/missing_in_for_statement_1.ets @@ -17,10 +17,10 @@ for /* @@ label */let i = 0; i < count; ++i) { result = result + p[i]!.awaitResolution() * /* @@ label1 */a[i]; } -/* @@@ label Error SyntaxError: Expected '(', got 'let'. */ -/* @@? 16:34 Error TypeError: Unresolved reference count */ -/* @@? 17:5 Error TypeError: Unresolved reference result */ -/* @@? 17:23 Error TypeError: Unresolved reference p */ -/* @@? 17:23 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label1 Error TypeError: Unresolved reference a */ -/* @@@ label1 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'let'. */ +/* @@? 16:34 Error Semantic error ESE0143: Unresolved reference count */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference result */ +/* @@? 17:23 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 17:23 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/parser/ets/missing_in_for_statement_2.ets b/ets2panda/test/ast/parser/ets/missing_in_for_statement_2.ets index a290ef8d7d4adfc1ae456c352bc5deac651335f1..13eee2e691befe1487d7be591e1b134503253a6a 100644 --- a/ets2panda/test/ast/parser/ets/missing_in_for_statement_2.ets +++ b/ets2panda/test/ast/parser/ets/missing_in_for_statement_2.ets @@ -17,10 +17,10 @@ for (let i = 0; i < count; ++i /* @@ label */{ result = result + p[i]!.awaitResolution() * /* @@label1 */a[i]; } -/* @@? 16:21 Error TypeError: Unresolved reference count */ -/* @@@ label Error SyntaxError: Expected ')', got '{'. */ -/* @@? 17:5 Error TypeError: Unresolved reference result */ -/* @@? 17:23 Error TypeError: Unresolved reference p */ -/* @@? 17:23 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label1 Error TypeError: Unresolved reference a */ -/* @@@ label1 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@? 16:21 Error Semantic error ESE0143: Unresolved reference count */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference result */ +/* @@? 17:23 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 17:23 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 17:63 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 17:63 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/parser/ets/missing_in_if_statement_1.ets b/ets2panda/test/ast/parser/ets/missing_in_if_statement_1.ets index b436d6471594d12d478b337008461da8009a724d..3a85fc6678df316d65bb1dd84d2a9bc6b045c687 100644 --- a/ets2panda/test/ast/parser/ets/missing_in_if_statement_1.ets +++ b/ets2panda/test/ast/parser/ets/missing_in_if_statement_1.ets @@ -15,4 +15,4 @@ if (true /* @@ label */{ console.log("hello!") } -/* @@@ label Error SyntaxError: Expected ')', got '{'. */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ diff --git a/ets2panda/test/ast/parser/ets/missing_in_if_statement_2.ets b/ets2panda/test/ast/parser/ets/missing_in_if_statement_2.ets index 88f429a6265c774a1fdf033da01b85f34ac3bf3f..6a2d12e42aa0fb22179d275982ff8a099c14bebf 100644 --- a/ets2panda/test/ast/parser/ets/missing_in_if_statement_2.ets +++ b/ets2panda/test/ast/parser/ets/missing_in_if_statement_2.ets @@ -15,5 +15,5 @@ if /* @@ label */true /* @@ label1 */{ console.log("hello!") } -/* @@@ label Error SyntaxError: Expected '(', got 'true'. */ -/* @@@ label1 Error SyntaxError: Expected ')', got '{'. */ +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'true'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '{'. */ diff --git a/ets2panda/test/ast/parser/ets/multiple_fields.ets b/ets2panda/test/ast/parser/ets/multiple_fields.ets index 06b9aeef41f1ef56a8c6bc6e49dcc49c0e1797d6..ed5281e6548d748df57c261d589d8783c712f62e 100644 --- a/ets2panda/test/ast/parser/ets/multiple_fields.ets +++ b/ets2panda/test/ast/parser/ets/multiple_fields.ets @@ -17,4 +17,4 @@ class C { x: int/* @@ label1 */, y: int; } -/* @@@ label1 Error SyntaxError: Unexpected token ','. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets b/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets index 33ed150ffb0b0683d54d777f9a5c22900aef7c90..8c447e7c6ecb299369d0503c7f62eb6a72352643 100644 --- a/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets +++ b/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets @@ -18,5 +18,5 @@ function main(): void { let d: char[] = /* @@ label1 */null; } -/* @@? 17:38 Error TypeError: Type 'null' cannot be assigned to type 'Array' */ -/* @@? 18:36 Error TypeError: Type 'null' cannot be assigned to type 'Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Array' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets b/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets index 85238afe011293b542092da862e593f4e294c88b..0647cc1b736f3bf55ba8de11c6add1ebd8689e89 100644 --- a/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets +++ b/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets @@ -23,4 +23,4 @@ function main(): void { let x : Object = /* @@ label */foo(); } -/* @@@ label Error TypeError: Type 'A|null' cannot be assigned to type 'Object' */ +/* @@@ label Error Semantic error ESE0318: Type 'A|null' cannot be assigned to type 'Object' */ diff --git a/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets b/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets index 3e9b32aba22f8674f3e6d54595d0f4e3901c030b..26f56d5c6bb009d28e65b55e2e563bfc40beee83 100644 --- a/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets +++ b/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets @@ -17,4 +17,4 @@ function main(): void { let a : int |/* @@ label */; } -/* @@@ label Error SyntaxError: Invalid Type. */ +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets b/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets index 62bc60bdda48ad0d2bcbc4cc7a297f27a9098ec7..4803f42c432072e059087dc56508aadeede47c91 100644 --- a/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets +++ b/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets @@ -19,4 +19,4 @@ function foo() : A { return /* @@ label */null; } -/* @@@ label Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'A' */ +/* @@@ label Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'A' */ diff --git a/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets b/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets index 29e7f68e26259d8cf60a7be682fa00846a6a9c97..881ee8bcec3b74184404c2235df7213c8117d6de 100644 --- a/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets +++ b/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'A' */ +/* @@@ label Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'A' */ diff --git a/ets2panda/test/ast/parser/ets/named_types.ets b/ets2panda/test/ast/parser/ets/named_types.ets index f782419a4b73c7dbacc763f41aa72033b709fda4..97eb93f2f4f096d6aadd56b2a3e373aaaa506fbb 100644 --- a/ets2panda/test/ast/parser/ets/named_types.ets +++ b/ets2panda/test/ast/parser/ets/named_types.ets @@ -30,9 +30,9 @@ class auxilliary { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 19:12 Error TypeError: Cannot find type 'ets'. */ -/* @@? 19:16 Error TypeError: 'lang' type does not exist. */ -/* @@? 19:21 Error TypeError: 'String' type does not exist. */ -/* @@? 29:20 Error TypeError: Type 'inner' is generic but type argument were not provided. */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'ets'. */ +/* @@? 19:16 Error Semantic error ESE0070: 'lang' type does not exist. */ +/* @@? 19:21 Error Semantic error ESE0070: 'String' type does not exist. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 21:30 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 29:20 Error Semantic error ESE0170: Type 'inner' is generic but type argument were not provided. */ diff --git a/ets2panda/test/ast/parser/ets/named_types_1.ets b/ets2panda/test/ast/parser/ets/named_types_1.ets index 675be901c5b744a842d7bf44ed4050d93b1113a0..08de8ddfb8240ecfa461516488cca4041ba4c7e4 100644 --- a/ets2panda/test/ast/parser/ets/named_types_1.ets +++ b/ets2panda/test/ast/parser/ets/named_types_1.ets @@ -18,4 +18,4 @@ class named_types { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file +/* @@? 17:34 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/namespace_bad_token.ets b/ets2panda/test/ast/parser/ets/namespace_bad_token.ets index 5576913d3324f063cc44624d95b259aba988a9d9..b4f5f89d4ae3d22cb9dede4e8ba5a4c3ec01a352 100644 --- a/ets2panda/test/ast/parser/ets/namespace_bad_token.ets +++ b/ets2panda/test/ast/parser/ets/namespace_bad_token.ets @@ -17,5 +17,5 @@ declare namespace uiObserver { function on(options: { a: number }, callback: ): void; } -/* @@? 17:26 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 17:51 Error SyntaxError: Invalid Type. */ \ No newline at end of file +/* @@? 17:26 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 17:51 Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets index 77283eddc7c0ebf852da2640c81dde74ba8fb15a..bcf0392313a7f22d39518d535c3cef92360624f4 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets @@ -17,4 +17,4 @@ namespace MySpace{ ... } -/* @@? 17:5 Error SyntaxError: Unexpected token '...'. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token '...'. */ diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets index 5d0d663fc1d74878ed558210347103ccbaeb8c84..85c1e841097930094667dbcae6e89f1a2cf0aa24 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets @@ -15,4 +15,4 @@ namespace MySpace{ -/* @@? 19:1 Error SyntaxError: Unexpected token. */ +/* @@? 19:1 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets index 62b721754ed65fa7f8d507247ce4295830283d0d..e3be4b8f0eab3bc3ea1785f93bb78849be2fda3f 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets @@ -15,4 +15,4 @@ namespace MySpace{ }} -/* @@? 17:2 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:2 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets index f5dd2523aa7cf6bb2ad41a302f47289a40e598ca..be8f18cd6c2d20654fdb46169a2c3731e12b973a 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets @@ -16,5 +16,5 @@ declare namespace MySpace{ foo():void } -/* @@? 17:10 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:11 Error SyntaxError: Unexpected token 'void'. */ +/* @@? 17:10 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:11 Error Syntax error ESY0227: Unexpected token 'void'. */ diff --git a/ets2panda/test/ast/parser/ets/native_constructor_empty_body.ets b/ets2panda/test/ast/parser/ets/native_constructor_empty_body.ets index 4de8ee4d0aedc9688c4c1add062adf613478bf06..968d7ac8a5d4fde3fe1efd2f63c85c37ac5166b0 100644 --- a/ets2panda/test/ast/parser/ets/native_constructor_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/native_constructor_empty_body.ets @@ -30,6 +30,6 @@ class Apple{ } -/* @@@ label Error TypeError: Native constructor declaration cannot have a body. */ -/* @@@ label1 Error TypeError: Native constructor declaration cannot have a body. */ -/* @@@ label2 Error TypeError: Native constructor declaration cannot have a body. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ +/* @@@ label1 Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ +/* @@@ label2 Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ diff --git a/ets2panda/test/ast/parser/ets/native_constructor_non_empty_body.ets b/ets2panda/test/ast/parser/ets/native_constructor_non_empty_body.ets index 1cb519270d26e7f0c0791b5141bb7adf016d10ca..2986c05bce57b660c45e7bb3c75a91c0ac318a22 100644 --- a/ets2panda/test/ast/parser/ets/native_constructor_non_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/native_constructor_non_empty_body.ets @@ -26,5 +26,5 @@ class Apple{ this.y=y } } -/* @@@ label Error TypeError: Native constructor declaration cannot have a body. */ -/* @@@ label1 Error TypeError: Native constructor declaration cannot have a body. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ +/* @@@ label1 Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ diff --git a/ets2panda/test/ast/parser/ets/native_function_without_return_type.ets b/ets2panda/test/ast/parser/ets/native_function_without_return_type.ets index 5c61f1e38a7ef4a3490fb46c8afec57587707595..8ed8066ebea897be51c2bbefbcfddcd663271058 100644 --- a/ets2panda/test/ast/parser/ets/native_function_without_return_type.ets +++ b/ets2panda/test/ast/parser/ets/native_function_without_return_type.ets @@ -19,4 +19,4 @@ function main(): void { foo(); } -/* @@? 16:17 Error TypeError: Native and Declare methods should have explicit return type. */ +/* @@? 16:17 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ diff --git a/ets2panda/test/ast/parser/ets/nested_function.ets b/ets2panda/test/ast/parser/ets/nested_function.ets index 881d82ec03d183aafa10499b4cbbfbe48ceb5ecf..277a3858c654ff36ca160d7c8874dad19230f4bc 100644 --- a/ets2panda/test/ast/parser/ets/nested_function.ets +++ b/ets2panda/test/ast/parser/ets/nested_function.ets @@ -18,5 +18,5 @@ function main() /* @@ label */function b() /* @@ label1 */} -/* @@@ label Error SyntaxError: Nested functions are not allowed. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '}'. */ +/* @@@ label Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/nested_function_1.ets b/ets2panda/test/ast/parser/ets/nested_function_1.ets index 9325e91cb2144a96be05cbae65f6a510b50ca114..46727b58b21c75808eeb4d43b86ae6ff99c8bf12 100644 --- a/ets2panda/test/ast/parser/ets/nested_function_1.ets +++ b/ets2panda/test/ast/parser/ets/nested_function_1.ets @@ -25,5 +25,5 @@ function main() b() } -/* @@@ label Error SyntaxError: Nested functions are not allowed. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '}'. */ +/* @@@ label Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/nested_function_in_method.ets b/ets2panda/test/ast/parser/ets/nested_function_in_method.ets index 02f77465526117129f867c82647991cd38fd8e7b..da74dfc5d9435a927e6029b684b5578227da697c 100644 --- a/ets2panda/test/ast/parser/ets/nested_function_in_method.ets +++ b/ets2panda/test/ast/parser/ets/nested_function_in_method.ets @@ -28,5 +28,5 @@ function main() a.foo() } -/* @@@ label Error SyntaxError: Nested functions are not allowed. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '}'. */ +/* @@@ label Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/new_object_undefined.ets b/ets2panda/test/ast/parser/ets/new_object_undefined.ets index c18f4c8778319d51e1188f3c7cd2567ef34e7661..4aba3259ed2370ee97e613a9a4ef8642d0bb52c6 100644 --- a/ets2panda/test/ast/parser/ets/new_object_undefined.ets +++ b/ets2panda/test/ast/parser/ets/new_object_undefined.ets @@ -19,5 +19,5 @@ function main() new null(); } -/* @@? 18:5 Error TypeError: Type 'undefined' is not constructible. */ -/* @@? 19:5 Error TypeError: Type 'null' is not constructible. */ +/* @@? 18:5 Error Semantic error ESE0290: Type 'undefined' is not constructible. */ +/* @@? 19:5 Error Semantic error ESE0290: Type 'null' is not constructible. */ diff --git a/ets2panda/test/ast/parser/ets/no-call-signatures.ets b/ets2panda/test/ast/parser/ets/no-call-signatures.ets index e2758cb7fc4ea4903d2c84301c56126f491bd424..edd11ac68457fd169220de4000ce3f6d0d37ad77 100644 --- a/ets2panda/test/ast/parser/ets/no-call-signatures.ets +++ b/ets2panda/test/ast/parser/ets/no-call-signatures.ets @@ -23,6 +23,15 @@ function doSomething(fn: DescribableFunction) { fn(6) } -/* @@@ label Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 23:5 Error TypeError: No static $_invoke method and static $_instantiate method in fn. fn() is not allowed. */ -/* @@? 23:5 Error TypeError: Type 'DescribableFunction' has no call signatures. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:20 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:27 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:29 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:35 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:45 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:16 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:23 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 19:24 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:32 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 19:33 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets b/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets index d0f5d9193ac71e92920c8f2f80fed687db5ff02f..9dd5853ab9dcecd3a7d84546c390e51e89d3a7bb 100644 --- a/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets +++ b/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets @@ -21,5 +21,5 @@ function fn(ctor: SomeConstructor) { return new ctor("hello") } -/* @@? 18:7 Error SyntaxError: Constructor signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 21:14 Error TypeError: Cannot find type 'ctor'. */ \ No newline at end of file +/* @@? 18:7 Error Syntax error ESY103145: Constructor signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 21:14 Error Semantic error ESE0371: Cannot find type 'ctor'. */ diff --git a/ets2panda/test/ast/parser/ets/no-generic-lambda.ets b/ets2panda/test/ast/parser/ets/no-generic-lambda.ets index 3f19f5974ab588f34638937c4b1072753c758828..00ce9556d13181fcc87ff67d9ca907dfd5ede31d 100644 --- a/ets2panda/test/ast/parser/ets/no-generic-lambda.ets +++ b/ets2panda/test/ast/parser/ets/no-generic-lambda.ets @@ -19,7 +19,4 @@ let bar = () => { } foo(1.0); bar(); -/* @@? 16:11 Error SyntaxError: Generic lambda expressions are not supported. */ -/* @@? 17:11 Error SyntaxError: Generic lambda expressions are not supported. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ -/* @@? 20:1 Error TypeError: This expression is not callable. */ +/* @@? 16:18 Error Semantic error ESE0000: This reference refers to a value, but is being used as a type here. Did you mean to use 'typeof'? */ diff --git a/ets2panda/test/ast/parser/ets/no_prototype.ets b/ets2panda/test/ast/parser/ets/no_prototype.ets index 2f70cb7112e9d176b0c326e6865da24e13facf2e..6220acef524c470acf612cbb6b5f96c1cfd839c6 100644 --- a/ets2panda/test/ast/parser/ets/no_prototype.ets +++ b/ets2panda/test/ast/parser/ets/no_prototype.ets @@ -23,14 +23,14 @@ C.prototype = { } } -/* @@? 18:3 Error TypeError: Property 'prototype' does not exist on type 'C' */ -/* @@? 18:13 Error SyntaxError: Runtime prototype assignment is not supported because of static typing */ -/* @@? 18:22 Error TypeError: Property 'prototype' does not exist on type 'Object' */ -/* @@? 20:1 Error SyntaxError: Runtime prototype assignment is not supported because of static typing */ -/* @@? 20:3 Error TypeError: Property 'prototype' does not exist on type 'C' */ -/* @@? 20:13 Error SyntaxError: Runtime prototype assignment is not supported because of static typing */ -/* @@? 21:4 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 21:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:7 Error SyntaxError: Unexpected token. */ -/* @@? 22:12 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 24:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 18:3 Error Semantic error ESE0087: Property 'prototype' does not exist on type 'C' */ +/* @@? 18:13 Error Syntax error ESY30818: Runtime prototype assignment is not supported because of static typing */ +/* @@? 18:22 Error Semantic error ESE0087: Property 'prototype' does not exist on type 'Object' */ +/* @@? 20:1 Error Syntax error ESY30818: Runtime prototype assignment is not supported because of static typing */ +/* @@? 20:3 Error Semantic error ESE0087: Property 'prototype' does not exist on type 'C' */ +/* @@? 20:13 Error Syntax error ESY30818: Runtime prototype assignment is not supported because of static typing */ +/* @@? 21:4 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 21:5 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:7 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 22:12 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 24:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/nolint_bad.ets b/ets2panda/test/ast/parser/ets/nolint_bad.ets index b4aa54d09744e878c4403a61fc3792f11e0aa11d..d40ac23dc029d60aef56b299756e5da1edfee632 100644 --- a/ets2panda/test/ast/parser/ets/nolint_bad.ets +++ b/ets2panda/test/ast/parser/ets/nolint_bad.ets @@ -17,6 +17,6 @@ // ETSNOLINT(definitely-not-a-real-etsnolint-argument) // ETSNOLINT(@) function main() {} -/* @@? 1:3 Error SyntaxError: Invalid argument for ETSNOLINT! */ -/* @@? 1:3 Error SyntaxError: Unexpected character for ETSNOLINT argument! [VALID ONLY: a-z, '-']. */ -/* @@? 1:3 Error SyntaxError: Invalid argument for ETSNOLINT! */ +/* @@? 1:3 Error Syntax error ESY0278: Invalid argument for ETSNOLINT! */ +/* @@? 1:3 Error Syntax error ESY0277: Unexpected character for ETSNOLINT argument! [VALID ONLY: a-z, '-']. */ +/* @@? 1:3 Error Syntax error ESY0278: Invalid argument for ETSNOLINT! */ diff --git a/ets2panda/test/ast/parser/ets/non-ambient_call_signature.ets b/ets2panda/test/ast/parser/ets/non-ambient_call_signature.ets index ede2ed654fee6430d96ff7c4d0020330910bf925..4a14262d94c2e8a2ede44140b922787dc09febfc 100644 --- a/ets2panda/test/ast/parser/ets/non-ambient_call_signature.ets +++ b/ets2panda/test/ast/parser/ets/non-ambient_call_signature.ets @@ -17,4 +17,4 @@ class A{ /* @@ label */(a:number) :number } -/* @@@ label Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@@ label Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ diff --git a/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets b/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets index 7ff657c8b2fabec9e4607e7d53ef1e9b8a960dcd..750b40b44e708b189962fd0a5a2d7ce8622052c1 100644 --- a/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets +++ b/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets @@ -22,4 +22,4 @@ class szeretettek implements ősz { private /* @@ label */field: int; } -/* @@@ label Error TypeError: Interface property implementation cannot be generated as non-public */ +/* @@@ label Error Semantic error ESE0217: Interface property implementation cannot be generated as non-public */ diff --git a/ets2panda/test/ast/parser/ets/non_constant_expression.ets b/ets2panda/test/ast/parser/ets/non_constant_expression.ets index edb49055eba17dc00fac81b5d84cd69269860c90..bc59abe9e7c0275cf7f7acf6a90216e57a07acd4 100644 --- a/ets2panda/test/ast/parser/ets/non_constant_expression.ets +++ b/ets2panda/test/ast/parser/ets/non_constant_expression.ets @@ -22,4 +22,4 @@ let cc = 1 function foo() {} -/* @@? 21:14 Error TypeError: Invalid value for annotation field, expected a constant literal. */ +/* @@? 21:14 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/non_proper_index_method.ets b/ets2panda/test/ast/parser/ets/non_proper_index_method.ets index 49fbed1717f6f4501e8770972ccbcfa9f7480e15..7afbcd44f0fd01d94d0a13016f135ef7008b9da5 100644 --- a/ets2panda/test/ast/parser/ets/non_proper_index_method.ets +++ b/ets2panda/test/ast/parser/ets/non_proper_index_method.ets @@ -22,12 +22,12 @@ function main() { console.log(/* @@ label */a["a"]) } -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@@ label Error TypeError: Object type doesn't have proper index access method. */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@@ label Error Semantic error ESE0250: Object type doesn't have proper index access method. */ diff --git a/ets2panda/test/ast/parser/ets/non_proper_iterator_method.ets b/ets2panda/test/ast/parser/ets/non_proper_iterator_method.ets index 097eb8d19cfa4b48814f0d4f2d9bcf1d008760a2..358e9c25d688b211eb10a23dc5e1671e99d3a9b3 100644 --- a/ets2panda/test/ast/parser/ets/non_proper_iterator_method.ets +++ b/ets2panda/test/ast/parser/ets/non_proper_iterator_method.ets @@ -23,5 +23,5 @@ function main(): void { } } -/* @@? 22:20 Error TypeError: Object type doesn't have proper iterator method. */ -/* @@? 22:20 Error TypeError: 'For-of' statement source expression is not of iterable type. */ +/* @@? 22:20 Error Semantic error ESE0258: Object type doesn't have proper iterator method. */ +/* @@? 22:20 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ diff --git a/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets b/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets index 1b99782dc69e71eaec4b625b61197d7b97a4153a..33ff14fb5cbc15ec72bb32c77ca04c1ca6a06d8d 100644 --- a/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets +++ b/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets @@ -37,5 +37,5 @@ function main(): void { /* @@ label */a./* @@ label1 */increment(); } -/* @@@ label1 Error TypeError: Property 'increment' does not exist on type 'C' */ -/* @@@ label Error TypeError: Member type must be the same for all union objects. */ +/* @@@ label Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label1 Error Semantic error ESE0087: Property 'increment' does not exist on type 'C' */ diff --git a/ets2panda/test/ast/parser/ets/null_invalid.ets b/ets2panda/test/ast/parser/ets/null_invalid.ets index 809f968929494423e636fef954a10bbd05d6be07..08f518638efa7f11a4248a6d7f8218a01abc11b8 100644 --- a/ets2panda/test/ast/parser/ets/null_invalid.ets +++ b/ets2panda/test/ast/parser/ets/null_invalid.ets @@ -16,4 +16,4 @@ const n = null; let o : Object = /* @@ label */n; -/* @@@ label Error TypeError: Type 'null' cannot be assigned to type 'Object' */ +/* @@@ label Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Object' */ diff --git a/ets2panda/test/ast/parser/ets/object_literal_dup_keys_0.ets b/ets2panda/test/ast/parser/ets/object_literal_dup_keys_0.ets index 41fde61d2625934bb543beb584a9189469b03506..f67f9e81d56ff61aa588c9a9669a81d663899801 100644 --- a/ets2panda/test/ast/parser/ets/object_literal_dup_keys_0.ets +++ b/ets2panda/test/ast/parser/ets/object_literal_dup_keys_0.ets @@ -22,4 +22,4 @@ function main(){ let a : A = {name : "John", age : 11, /* @@ label */age : 12} } -/* @@@ label Error TypeError: An object literal cannot have multiple properties with the same name. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0100: An object literal cannot have multiple properties with the same name. */ diff --git a/ets2panda/test/ast/parser/ets/object_literal_dup_keys_2.ets b/ets2panda/test/ast/parser/ets/object_literal_dup_keys_2.ets index 0ebda6e85b3eefa58e7d951f0221253b958654c6..7ec83b3618e25a2d78ef4cd723f343c5912fc4f8 100644 --- a/ets2panda/test/ast/parser/ets/object_literal_dup_keys_2.ets +++ b/ets2panda/test/ast/parser/ets/object_literal_dup_keys_2.ets @@ -22,4 +22,4 @@ function main(){ let a : A = {name : "John", age : 11, /* @@ label */age : 12} } -/* @@@ label Error TypeError: An object literal cannot have multiple properties with the same name. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0100: An object literal cannot have multiple properties with the same name. */ diff --git a/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets b/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets index 12ccf8b28d020a100e60e49be19f9ec6c860acb0..dbdbedb8e7070c2c4b70ccc872e0b69589fc8eae 100644 --- a/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets +++ b/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets @@ -16,9 +16,9 @@ interface A { foo(): void} const x: A = {foo() {}} -/* @@? 17:15 Error TypeError: Class or interface methods cannot be initialized within an object literal. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token. */ -/* @@? 17:22 Error SyntaxError: Unexpected token '}'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:15 Error Semantic error ESE0074: Class or interface methods cannot be initialized within an object literal. */ +/* @@? 17:18 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:21 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:22 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/operator_logical_and_euqal.ets b/ets2panda/test/ast/parser/ets/operator_logical_and_euqal.ets index fc1f9e3a76c63199f21baac405d68e7d43776863..646392da07db6869e261e9b4dcbcb9dea51eb7c8 100644 --- a/ets2panda/test/ast/parser/ets/operator_logical_and_euqal.ets +++ b/ets2panda/test/ast/parser/ets/operator_logical_and_euqal.ets @@ -19,4 +19,4 @@ function main() : void{ console.log(x) } -/* @@@ label Error SyntaxError: Unexpected token '&&='. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '&&='. */ diff --git a/ets2panda/test/ast/parser/ets/operator_logical_nullish_equal.ets b/ets2panda/test/ast/parser/ets/operator_logical_nullish_equal.ets index bd896f54bd176176c812100f4faa57bc9bf0f6af..bc4716281b8e240e004c2da45e8bf1e3aabe04d5 100644 --- a/ets2panda/test/ast/parser/ets/operator_logical_nullish_equal.ets +++ b/ets2panda/test/ast/parser/ets/operator_logical_nullish_equal.ets @@ -19,4 +19,4 @@ function main() : void{ console.log(x) } -/* @@@ label Error SyntaxError: Unexpected token '??='. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '??='. */ diff --git a/ets2panda/test/ast/parser/ets/operator_logical_or_equal.ets b/ets2panda/test/ast/parser/ets/operator_logical_or_equal.ets index 6d7a13b8e3973b97d158fccd63151023ce247398..1e97af1f4d2e1c543e9824abf428dcbf3320e0dd 100644 --- a/ets2panda/test/ast/parser/ets/operator_logical_or_equal.ets +++ b/ets2panda/test/ast/parser/ets/operator_logical_or_equal.ets @@ -19,4 +19,4 @@ function main() : void{ console.log(x) } -/* @@@ label Error SyntaxError: Unexpected token '||='. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '||='. */ diff --git a/ets2panda/test/ast/parser/ets/optional-chaining-array.ets b/ets2panda/test/ast/parser/ets/optional-chaining-array.ets index fd1f441713577e5d01ba1621480a93c0f5c07440..8fc788e3b2812ab3ccbb924e5cc9a6525f44d176 100644 --- a/ets2panda/test/ast/parser/ets/optional-chaining-array.ets +++ b/ets2panda/test/ast/parser/ets/optional-chaining-array.ets @@ -19,4 +19,4 @@ let test = arr?.[1] ?? "unknown"; let arr2: String[] | null; let test2 = arr2?.[100] ?? "unknown2"; -/* @@? 20:13 Error TypeError: Variable 'arr2' is used before being assigned. */ +/* @@? 20:13 Error Semantic error ESE0375: Variable 'arr2' is used before being assigned. */ diff --git a/ets2panda/test/ast/parser/ets/optional_chaining_invalid_property.ets b/ets2panda/test/ast/parser/ets/optional_chaining_invalid_property.ets index 70b3e510124f6bd79746b508ef5356073be2ca01..707b7f16e3ad2ecb4d91f70d7efb93af20fd5b18 100644 --- a/ets2panda/test/ast/parser/ets/optional_chaining_invalid_property.ets +++ b/ets2panda/test/ast/parser/ets/optional_chaining_invalid_property.ets @@ -25,4 +25,4 @@ let dog: Dog = { let hasSting = dog?.hasSting; -/* @@? 26:21 Error TypeError: Property 'hasSting' does not exist on type 'Dog' */ +/* @@? 26:21 Error Semantic error ESE0087: Property 'hasSting' does not exist on type 'Dog' */ diff --git a/ets2panda/test/ast/parser/ets/optional_field.ets b/ets2panda/test/ast/parser/ets/optional_field.ets index de1c1e5af0968cd6efff8304dddf08a43931420c..beaeed8040a6f5799763084a3924fc763856edde 100644 --- a/ets2panda/test/ast/parser/ets/optional_field.ets +++ b/ets2panda/test/ast/parser/ets/optional_field.ets @@ -54,5 +54,5 @@ function main() : int return 0; } -/* @@? 27:4 Error TypeError: Function method with this assembly signature already declared. */ -/* @@? 41:14 Error SyntaxError: Optional variable is deprecated and no longer supported. */ \ No newline at end of file +/* @@? 27:4 Error Semantic error ESE0131: Function method with this assembly signature already declared. */ +/* @@? 41:14 Error Syntax error ESY0306: Optional variable is deprecated and no longer supported. */ diff --git a/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets b/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets index 53990715282575e277235f2886ac54e52dbc02fb..e9483f0e54e4f53fc224ccff863fe9f4c3358a7a 100644 --- a/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets +++ b/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets @@ -31,5 +31,5 @@ abstract class C implements I } } -/* @@? 25:13 Error TypeError: field(): Object|undefined in C cannot override field(): undefined|String|Double in I because overriding return type is not compatible with the other return type. */ -/* @@? 25:13 Error TypeError: Method field(): Object|undefined in C not overriding any method */ +/* @@? 25:13 Error Semantic error ESE0141: field(): Object|undefined in C cannot override field(): undefined|String|Double in I because overriding return type is not compatible with the other return type. */ +/* @@? 25:13 Error Semantic error ESE0136: Method field(): Object|undefined in C not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/optional_field_variable.ets b/ets2panda/test/ast/parser/ets/optional_field_variable.ets index 36a1540c411d2201827b16032f1d8b1fd6d2b043..e0d76f0398fc80c803707695f848d19bb85c49df 100644 --- a/ets2panda/test/ast/parser/ets/optional_field_variable.ets +++ b/ets2panda/test/ast/parser/ets/optional_field_variable.ets @@ -26,5 +26,5 @@ function foo(param? : Object) for (let i? : Number = 1;;) { break; } } -/* @@? 23:14 Error SyntaxError: Optional variable is deprecated and no longer supported. */ -/* @@? 26:16 Error SyntaxError: Optional variable is deprecated and no longer supported. */ \ No newline at end of file +/* @@? 23:14 Error Syntax error ESY0306: Optional variable is deprecated and no longer supported. */ +/* @@? 26:16 Error Syntax error ESY0306: Optional variable is deprecated and no longer supported. */ diff --git a/ets2panda/test/ast/parser/ets/optional_field_variable_forof.ets b/ets2panda/test/ast/parser/ets/optional_field_variable_forof.ets index ae6a03c30933cae0162848dac98f41b1dd194454..a889260fa54a9dc940b4c1c5ded2948f56b83298 100644 --- a/ets2panda/test/ast/parser/ets/optional_field_variable_forof.ets +++ b/ets2panda/test/ast/parser/ets/optional_field_variable_forof.ets @@ -18,4 +18,4 @@ function foo(param? : Object) for (let i/* @@ label */? of "blablabla") { } } -/* @@@ label Error SyntaxError: Optional variable is not allowed in for of statements. */ +/* @@@ label Error Syntax error ESY0096: Optional variable is not allowed in for of statements. */ diff --git a/ets2panda/test/ast/parser/ets/overloaded_method_as_value_neg.ets b/ets2panda/test/ast/parser/ets/overloaded_method_as_value_neg.ets index 1f80043685998b862aae7445b7088d1bb1512c28..b867301b917d6ef21e84c99c5e1513bb85e5fa3b 100644 --- a/ets2panda/test/ast/parser/ets/overloaded_method_as_value_neg.ets +++ b/ets2panda/test/ast/parser/ets/overloaded_method_as_value_neg.ets @@ -15,15 +15,15 @@ interface"actual : " + actual.result[i] -/* @@? 16:10 Error SyntaxError: Number, string or computed value property name 'actual : ' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:10 Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@? 16:22 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 16:30 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 16:38 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 16:38 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 16:38 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 16:39 Error SyntaxError: Identifier expected. */ -/* @@? 16:39 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 16:39 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 30:1 Error SyntaxError: Identifier expected. */ -/* @@? 30:1 Error SyntaxError: Unexpected token, expected '}'. */ +/* @@? 16:10 Error Syntax error ESY0315: Number, string or computed value property name 'actual : ' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 16:10 Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ +/* @@? 16:22 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 16:30 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 16:38 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 16:38 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 16:38 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 16:39 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:39 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 16:39 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 30:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 30:1 Error Syntax error ESY0228: Unexpected token, expected '}'. */ diff --git a/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets b/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets index 30982b269a131212016fea60daa5a5c850b0f2e4..f5a3016217881953fb7f43ca4d383cda32ef6c4e 100644 --- a/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets +++ b/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets @@ -23,6 +23,6 @@ class C implements A /* @@ label1 */{ } } -/* @@@ label Error TypeError: Cannot inherit from interface A because method length is inherited with a different declaration type */ -/* @@@ label1 Error TypeError: C is not abstract and does not override abstract method length(): Double in A */ -/* @@@ label2 Error TypeError: Method length(): Double in C not overriding any method */ +/* @@@ label Error Semantic error ESE0215: Cannot inherit from interface A because method length is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0190: C is not abstract and does not override abstract method length(): Double in A */ +/* @@@ label2 Error Semantic error ESE0136: Method length(): Double in C not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/override_method.ets b/ets2panda/test/ast/parser/ets/override_method.ets index e13c36a4168974051d2f3e08123d61ce3195d856..1a27eb97e84252b600c763ffb52424b051e1a529 100644 --- a/ets2panda/test/ast/parser/ets/override_method.ets +++ b/ets2panda/test/ast/parser/ets/override_method.ets @@ -25,6 +25,6 @@ final class T extends P { } } -/* @@? 22:23 Error TypeError: Cannot inherit with 'final' modifier. */ -/* @@? 23:24 Error TypeError: foo(): Int in T cannot override foo(): Int in P because overridden method is final. */ -/* @@? 23:24 Error TypeError: Method foo(): Int in T not overriding any method */ +/* @@? 22:23 Error Semantic error ESE0178: Cannot inherit with 'final' modifier. */ +/* @@? 23:24 Error Semantic error ESE0141: foo(): Int in T cannot override foo(): Int in P because overridden method is final. */ +/* @@? 23:24 Error Semantic error ESE0136: Method foo(): Int in T not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets b/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets index f500f49c6ead8d9ea094ce644cc46358622f75a2..8d2f21c3ae90eec36e798ccff32a152e01bda5be 100644 --- a/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets +++ b/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets @@ -35,5 +35,5 @@ function foa(b: Partial>): void { /* @@ label */foo(/* @@ label1 */b); } -/* @@@ label1 Error TypeError: Type 'Partial>' is not compatible with type 'Partial>' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(Partial>) */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(Partial>) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'Partial>' is not compatible with type 'Partial>' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/partialInterface_n0.ets b/ets2panda/test/ast/parser/ets/partialInterface_n0.ets index 6097e8bfb6b306ffbca9dcd208c88b72ba277780..92ab2a5829de0d06cf4a73fb7634879531fbecbd 100644 --- a/ets2panda/test/ast/parser/ets/partialInterface_n0.ets +++ b/ets2panda/test/ast/parser/ets/partialInterface_n0.ets @@ -31,5 +31,5 @@ function foa(b: B): void { /* @@ label */foo(/* @@ label1 */b); } -/* @@@ label1 Error TypeError: Type 'B' is not compatible with type 'Partial' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(B) */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(B) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'B' is not compatible with type 'Partial' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/partialInterface_n1.ets b/ets2panda/test/ast/parser/ets/partialInterface_n1.ets index fcf39370fc970ce48ad2bbc0a02ce60dee2f87f5..83f02c1233373987a30320e941647b96d36160b0 100644 --- a/ets2panda/test/ast/parser/ets/partialInterface_n1.ets +++ b/ets2panda/test/ast/parser/ets/partialInterface_n1.ets @@ -31,5 +31,5 @@ function foa(b: B): void { /* @@ label */foo(/* @@ label1 */b); } -/* @@@ label1 Error TypeError: Type 'B' is not compatible with type 'Partial' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(B) */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(B) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'B' is not compatible with type 'Partial' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/partialType_4.ets b/ets2panda/test/ast/parser/ets/partialType_4.ets index 8cf429864d6297082d81862624ed49379eee2e35..582e62c97116f43c47c2682afde2d6e47dcbe52d 100644 --- a/ets2panda/test/ast/parser/ets/partialType_4.ets +++ b/ets2panda/test/ast/parser/ets/partialType_4.ets @@ -79,4 +79,4 @@ class A>{ bar(initializers: Partial): void {} } -/* @@@ label Error TypeError: Type 'S' cannot be assigned to type 'T|undefined' */ +/* @@@ label Error Semantic error ESE0318: Type 'S' cannot be assigned to type 'T|undefined' */ diff --git a/ets2panda/test/ast/parser/ets/partial_interface.ets b/ets2panda/test/ast/parser/ets/partial_interface.ets index f0d6fddb59e1a72ba38ce5eaad39ce4a7c64f641..d10ec8a2609a33cc85e05284009d35de75266ab6 100644 --- a/ets2panda/test/ast/parser/ets/partial_interface.ets +++ b/ets2panda/test/ast/parser/ets/partial_interface.ets @@ -32,6 +32,6 @@ function main(){ partial4.i = 100; } -/* @@? 28:32 Error TypeError: type I$partial has no property named a */ -/* @@? 29:34 Error TypeError: Type '"abcd"' is not compatible with type 'Int|undefined' at property 'i' */ -/* @@? 32:14 Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@? 28:32 Error Semantic error ESE0065: type I$partial has no property named a */ +/* @@? 29:34 Error Semantic error ESE0319: Type '"abcd"' is not compatible with type 'Int|undefined' at property 'i' */ +/* @@? 32:14 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/parser/ets/predefined_non_primitive_types.ets b/ets2panda/test/ast/parser/ets/predefined_non_primitive_types.ets index 5c7ce150be2d84087744c22776ac19daaddf8541..c70bd57bad9f51cf2c2004d580661ae1413c7e1e 100644 --- a/ets2panda/test/ast/parser/ets/predefined_non_primitive_types.ets +++ b/ets2panda/test/ast/parser/ets/predefined_non_primitive_types.ets @@ -35,7 +35,7 @@ let s: String = "abc"; // see 3.2.2 Array types let a: int[] = new int[5]; -/* @@? 23:25 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@@ label Error TypeError: Variable 'non_prim_b' has already been declared. */ -/* @@? 27:31 Error TypeError: Cannot find type 'Bool'. */ -/* @@? 27:38 Error TypeError: Type 'Boolean' cannot be assigned to type 'Byte' */ +/* @@? 23:25 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ label Error Semantic error ESE0351: Variable 'non_prim_b' has already been declared. */ +/* @@? 27:31 Error Semantic error ESE0371: Cannot find type 'Bool'. */ +/* @@? 27:38 Error Semantic error ESE0318: Type 'Boolean' cannot be assigned to type 'Byte' */ diff --git a/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets b/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets index fcf1050921731b38280481e1c63e3065af348567..69c99dd4a28d48668d808f113bd69e77d8b0456d 100644 --- a/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets +++ b/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets @@ -31,5 +31,5 @@ function main(): void { arktest.assertEQ(instance.x, 5); } -/* @@? 25:5 Error TypeError: Signature constructor(alma: Int): void is not visible here. */ -/* @@? 25:5 Error TypeError: No matching call signature for privateSuperConstructorCall.Alma(Int) */ +/* @@? 25:5 Error Semantic error ESE0139: Signature constructor(alma: Int): void is not visible here. */ +/* @@? 25:5 Error Semantic error ESE0127: No matching call signature for privateSuperConstructorCall.Alma(Int) */ diff --git a/ets2panda/test/ast/parser/ets/property-access-field-1.ets b/ets2panda/test/ast/parser/ets/property-access-field-1.ets index d3357fdf84836a060f822ba9bb21f77ab5f79ed0..6b17db638496b9b3725c67d941204e4a2bfe91f3 100644 --- a/ets2panda/test/ast/parser/ets/property-access-field-1.ets +++ b/ets2panda/test/ast/parser/ets/property-access-field-1.ets @@ -21,4 +21,4 @@ class A { } } -/* @@@ label Error TypeError: 'classVal' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'classVal' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/property-access-field-2.ets b/ets2panda/test/ast/parser/ets/property-access-field-2.ets index 5e1bb2acffddb284dc7be1cbbe90f6d78e9655f3..331420c26cf9d1722b6fd26971b2387189d4b7ee 100644 --- a/ets2panda/test/ast/parser/ets/property-access-field-2.ets +++ b/ets2panda/test/ast/parser/ets/property-access-field-2.ets @@ -21,4 +21,4 @@ class A { } } -/* @@@ label Error TypeError: 'instanceVal' is an instance property of 'A' */ +/* @@@ label Error Semantic error ESE0208: 'instanceVal' is an instance property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/property-access-method-1.ets b/ets2panda/test/ast/parser/ets/property-access-method-1.ets index fdd5660b4810bd49fb6ea4e567edffa0201b7333..46e228432334c64b543cfac7d1117f741f8b39b6 100644 --- a/ets2panda/test/ast/parser/ets/property-access-method-1.ets +++ b/ets2panda/test/ast/parser/ets/property-access-method-1.ets @@ -21,4 +21,4 @@ class A { } } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/property-access-method-2.ets b/ets2panda/test/ast/parser/ets/property-access-method-2.ets index 1c19044a833484c4ff3ef2666916ff100171bd27..6682777c20eafb3c8c738c4e0b19fdc69aa1115b 100644 --- a/ets2panda/test/ast/parser/ets/property-access-method-2.ets +++ b/ets2panda/test/ast/parser/ets/property-access-method-2.ets @@ -22,4 +22,4 @@ class A { } } -/* @@@ label Error TypeError: 'foo' is an instance property of 'A' */ +/* @@@ label Error Semantic error ESE0208: 'foo' is an instance property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/re_export/import_16.ets b/ets2panda/test/ast/parser/ets/re_export/import_16.ets index 738fc70c2aaec28f62fef3191e1719097b72c23f..f2ae87bcacba6644f86c2c254d5a652fd7ce9318 100644 --- a/ets2panda/test/ast/parser/ets/re_export/import_16.ets +++ b/ets2panda/test/ast/parser/ets/re_export/import_16.ets @@ -20,4 +20,4 @@ function main() : void /* @@ label */A.foo(); } -/* @@@ label Error TypeError: Ambiguous reference to 'foo' */ +/* @@@ label Error Semantic error ESE0061: Ambiguous reference to 'foo' */ diff --git a/ets2panda/test/ast/parser/ets/re_export/import_17.ets b/ets2panda/test/ast/parser/ets/re_export/import_17.ets index c886b937cfd13377545f85c9560b119f538dbfb9..af138a074b4377b3a66ed2d0da181741c35245ac 100644 --- a/ets2panda/test/ast/parser/ets/re_export/import_17.ets +++ b/ets2panda/test/ast/parser/ets/re_export/import_17.ets @@ -20,4 +20,4 @@ function main() : void /* @@ label */A.foo(); } -/* @@@ label Error TypeError: Ambiguous reference to 'foo' */ +/* @@@ label Error Semantic error ESE0061: Ambiguous reference to 'foo' */ diff --git a/ets2panda/test/ast/parser/ets/re_export/import_20.ets b/ets2panda/test/ast/parser/ets/re_export/import_20.ets index cdad50d23b0ac71959d06841e863f8543f45b603..419635ab87c69ddbeca417e42ae06f31aaa65fd8 100644 --- a/ets2panda/test/ast/parser/ets/re_export/import_20.ets +++ b/ets2panda/test/ast/parser/ets/re_export/import_20.ets @@ -20,4 +20,4 @@ function main() { name./* @@ label */bar(); } -/* @@@ label Error TypeError: Property 'bar' does not exist on type 'export' */ +/* @@@ label Error Semantic error ESE0087: Property 'bar' does not exist on type 'export' */ diff --git a/ets2panda/test/ast/parser/ets/re_export/import_5.ets b/ets2panda/test/ast/parser/ets/re_export/import_5.ets index c3371e9141cfb0e25fb5dbabd519ad2188c1e214..c496b56036d444874bcc958a937b7099810e9b78 100644 --- a/ets2panda/test/ast/parser/ets/re_export/import_5.ets +++ b/ets2panda/test/ast/parser/ets/re_export/import_5.ets @@ -20,4 +20,4 @@ function main() : void /* @@ label */all.foo(); } -/* @@@ label Error TypeError: Ambiguous reference to 'foo' */ +/* @@@ label Error Semantic error ESE0061: Ambiguous reference to 'foo' */ diff --git a/ets2panda/test/ast/parser/ets/re_export/re_export_4.ets b/ets2panda/test/ast/parser/ets/re_export/re_export_4.ets index 399324e4b7989207edba240d77f1c2145da64717..948bf97fbb8f57b2d1aee16a8842cdc0083b9f92 100644 --- a/ets2panda/test/ast/parser/ets/re_export/re_export_4.ets +++ b/ets2panda/test/ast/parser/ets/re_export/re_export_4.ets @@ -16,4 +16,4 @@ export /* @@ label */{foo} from "./export" export {foo} from "./export_2" -/* @@@ label Error TypeError: Ambiguous export 'foo' */ +/* @@@ label Error Semantic error ESE0362: Ambiguous export 'foo' */ diff --git a/ets2panda/test/ast/parser/ets/re_export/re_export_circular.ets b/ets2panda/test/ast/parser/ets/re_export/re_export_circular.ets index bfc5c191e694bbc02f5ecd1d56f2b6f74f475c7c..ef8d2fe088b2a053d5b0530adf3c6d67df96f503 100644 --- a/ets2panda/test/ast/parser/ets/re_export/re_export_circular.ets +++ b/ets2panda/test/ast/parser/ets/re_export/re_export_circular.ets @@ -15,4 +15,4 @@ export {foo} from "./re_export_circular.ets" -/* @@? 16:8 Error SyntaxError: Re-exporting local bindings is not allowed */ +/* @@? 16:8 Error Syntax error ESY138237: Re-exporting local bindings is not allowed */ diff --git a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-arg.ets b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-arg.ets index 2f8f222ce1e5c93af33ed56be2b6b643d3d96e7b..c85098340c50042f543ad7fbc68f14cd97dd7dd5 100644 --- a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-arg.ets +++ b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-arg.ets @@ -30,17 +30,17 @@ function foo(arr: readonly int[]) { arr./* @@ with */with(0, 5); } -/* @@@ extendTo Error TypeError: Property 'extendTo' does not exist on type 'ReadonlyArray' */ -/* @@@ shrinkTo Error TypeError: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ -/* @@@ sort Error TypeError: Property 'sort' does not exist on type 'ReadonlyArray' */ -/* @@@ shift Error TypeError: Property 'shift' does not exist on type 'ReadonlyArray' */ -/* @@@ pop Error TypeError: Property 'pop' does not exist on type 'ReadonlyArray' */ -/* @@@ push Error TypeError: Property 'push' does not exist on type 'ReadonlyArray' */ -/* @@@ pushECMA Error TypeError: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ -/* @@@ splice Error TypeError: Property 'splice' does not exist on type 'ReadonlyArray' */ -/* @@@ unshift Error TypeError: Property 'unshift' does not exist on type 'ReadonlyArray' */ -/* @@@ copyWithin Error TypeError: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ -/* @@@ fill Error TypeError: Property 'fill' does not exist on type 'ReadonlyArray' */ -/* @@@ toSpliced Error TypeError: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ -/* @@@ reverse Error TypeError: Property 'reverse' does not exist on type 'ReadonlyArray' */ -/* @@@ with Error TypeError: Property 'with' does not exist on type 'ReadonlyArray' */ +/* @@@ extendTo Error Semantic error ESE0087: Property 'extendTo' does not exist on type 'ReadonlyArray' */ +/* @@@ shrinkTo Error Semantic error ESE0087: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ +/* @@@ sort Error Semantic error ESE0087: Property 'sort' does not exist on type 'ReadonlyArray' */ +/* @@@ shift Error Semantic error ESE0087: Property 'shift' does not exist on type 'ReadonlyArray' */ +/* @@@ pop Error Semantic error ESE0087: Property 'pop' does not exist on type 'ReadonlyArray' */ +/* @@@ push Error Semantic error ESE0087: Property 'push' does not exist on type 'ReadonlyArray' */ +/* @@@ pushECMA Error Semantic error ESE0087: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ +/* @@@ splice Error Semantic error ESE0087: Property 'splice' does not exist on type 'ReadonlyArray' */ +/* @@@ unshift Error Semantic error ESE0087: Property 'unshift' does not exist on type 'ReadonlyArray' */ +/* @@@ copyWithin Error Semantic error ESE0087: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ +/* @@@ fill Error Semantic error ESE0087: Property 'fill' does not exist on type 'ReadonlyArray' */ +/* @@@ toSpliced Error Semantic error ESE0087: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ +/* @@@ reverse Error Semantic error ESE0087: Property 'reverse' does not exist on type 'ReadonlyArray' */ +/* @@@ with Error Semantic error ESE0087: Property 'with' does not exist on type 'ReadonlyArray' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-field.ets b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-field.ets index 49c10b6b192d71f2db90cc26672ea9b611a49505..80d214533dd5aef1f009e0913b7078398c368cfd 100644 --- a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-field.ets +++ b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-field.ets @@ -33,17 +33,17 @@ class A { } } -/* @@@ extendTo Error TypeError: Property 'extendTo' does not exist on type 'ReadonlyArray' */ -/* @@@ shrinkTo Error TypeError: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ -/* @@@ sort Error TypeError: Property 'sort' does not exist on type 'ReadonlyArray' */ -/* @@@ shift Error TypeError: Property 'shift' does not exist on type 'ReadonlyArray' */ -/* @@@ pop Error TypeError: Property 'pop' does not exist on type 'ReadonlyArray' */ -/* @@@ push Error TypeError: Property 'push' does not exist on type 'ReadonlyArray' */ -/* @@@ pushECMA Error TypeError: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ -/* @@@ splice Error TypeError: Property 'splice' does not exist on type 'ReadonlyArray' */ -/* @@@ unshift Error TypeError: Property 'unshift' does not exist on type 'ReadonlyArray' */ -/* @@@ copyWithin Error TypeError: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ -/* @@@ fill Error TypeError: Property 'fill' does not exist on type 'ReadonlyArray' */ -/* @@@ toSpliced Error TypeError: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ -/* @@@ reverse Error TypeError: Property 'reverse' does not exist on type 'ReadonlyArray' */ -/* @@@ with Error TypeError: Property 'with' does not exist on type 'ReadonlyArray' */ +/* @@@ extendTo Error Semantic error ESE0087: Property 'extendTo' does not exist on type 'ReadonlyArray' */ +/* @@@ shrinkTo Error Semantic error ESE0087: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ +/* @@@ sort Error Semantic error ESE0087: Property 'sort' does not exist on type 'ReadonlyArray' */ +/* @@@ shift Error Semantic error ESE0087: Property 'shift' does not exist on type 'ReadonlyArray' */ +/* @@@ pop Error Semantic error ESE0087: Property 'pop' does not exist on type 'ReadonlyArray' */ +/* @@@ push Error Semantic error ESE0087: Property 'push' does not exist on type 'ReadonlyArray' */ +/* @@@ pushECMA Error Semantic error ESE0087: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ +/* @@@ splice Error Semantic error ESE0087: Property 'splice' does not exist on type 'ReadonlyArray' */ +/* @@@ unshift Error Semantic error ESE0087: Property 'unshift' does not exist on type 'ReadonlyArray' */ +/* @@@ copyWithin Error Semantic error ESE0087: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ +/* @@@ fill Error Semantic error ESE0087: Property 'fill' does not exist on type 'ReadonlyArray' */ +/* @@@ toSpliced Error Semantic error ESE0087: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ +/* @@@ reverse Error Semantic error ESE0087: Property 'reverse' does not exist on type 'ReadonlyArray' */ +/* @@@ with Error Semantic error ESE0087: Property 'with' does not exist on type 'ReadonlyArray' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-var.ets b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-var.ets index bf24504eaaf22b79febf30b73510b592238fe115..002613dae15eb57b83742e7b72b638b839c8b6fb 100644 --- a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-var.ets +++ b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-var.ets @@ -30,17 +30,17 @@ arr./* @@ toSpliced */toSpliced(); arr./* @@ reverse */reverse(); arr./* @@ with */with(0, 5); -/* @@@ extendTo Error TypeError: Property 'extendTo' does not exist on type 'ReadonlyArray' */ -/* @@@ shrinkTo Error TypeError: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ -/* @@@ sort Error TypeError: Property 'sort' does not exist on type 'ReadonlyArray' */ -/* @@@ shift Error TypeError: Property 'shift' does not exist on type 'ReadonlyArray' */ -/* @@@ pop Error TypeError: Property 'pop' does not exist on type 'ReadonlyArray' */ -/* @@@ push Error TypeError: Property 'push' does not exist on type 'ReadonlyArray' */ -/* @@@ pushECMA Error TypeError: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ -/* @@@ splice Error TypeError: Property 'splice' does not exist on type 'ReadonlyArray' */ -/* @@@ unshift Error TypeError: Property 'unshift' does not exist on type 'ReadonlyArray' */ -/* @@@ copyWithin Error TypeError: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ -/* @@@ fill Error TypeError: Property 'fill' does not exist on type 'ReadonlyArray' */ -/* @@@ toSpliced Error TypeError: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ -/* @@@ reverse Error TypeError: Property 'reverse' does not exist on type 'ReadonlyArray' */ -/* @@@ with Error TypeError: Property 'with' does not exist on type 'ReadonlyArray' */ +/* @@@ extendTo Error Semantic error ESE0087: Property 'extendTo' does not exist on type 'ReadonlyArray' */ +/* @@@ shrinkTo Error Semantic error ESE0087: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ +/* @@@ sort Error Semantic error ESE0087: Property 'sort' does not exist on type 'ReadonlyArray' */ +/* @@@ shift Error Semantic error ESE0087: Property 'shift' does not exist on type 'ReadonlyArray' */ +/* @@@ pop Error Semantic error ESE0087: Property 'pop' does not exist on type 'ReadonlyArray' */ +/* @@@ push Error Semantic error ESE0087: Property 'push' does not exist on type 'ReadonlyArray' */ +/* @@@ pushECMA Error Semantic error ESE0087: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ +/* @@@ splice Error Semantic error ESE0087: Property 'splice' does not exist on type 'ReadonlyArray' */ +/* @@@ unshift Error Semantic error ESE0087: Property 'unshift' does not exist on type 'ReadonlyArray' */ +/* @@@ copyWithin Error Semantic error ESE0087: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ +/* @@@ fill Error Semantic error ESE0087: Property 'fill' does not exist on type 'ReadonlyArray' */ +/* @@@ toSpliced Error Semantic error ESE0087: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ +/* @@@ reverse Error Semantic error ESE0087: Property 'reverse' does not exist on type 'ReadonlyArray' */ +/* @@@ with Error Semantic error ESE0087: Property 'with' does not exist on type 'ReadonlyArray' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test1.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test1.ets index a4cba4c0ae9bc6c2f4cdf283eca736656fa13703..288ffee50c3bd257f55aa0ca78aa16518c4e3c22 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test1.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test1.ets @@ -19,4 +19,4 @@ function foo(x : readonly Array) let x1 : Array x1 = /* @@ label */x } -/* @@@ label Error TypeError: Type 'readonly Array' cannot be assigned to type 'Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'readonly Array' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test2.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test2.ets index 3874a331b2dd004260e7bd8df263ec81d3ccdd74..beb63441d557dcf695b15ca1728460a687cc6dae 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test2.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test2.ets @@ -18,4 +18,4 @@ function foo (x: readonly Array) { /* @@ label */x[0] = 1 } -/* @@@ label Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test3.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test3.ets index 2d5de9a3dfdfefd19b92b70c94fc8d0f0e302ac3..98f8f869456c826920f7ff9f5b0b825f7108b3e6 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test3.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test3.ets @@ -19,5 +19,5 @@ function foo (p: Array) { let x: readonly Array /* @@ label */foo(/* @@ label1 */x) -/* @@@ label Error TypeError: No matching call signature for foo(readonly Array) */ -/* @@@ label1 Error TypeError: Type 'readonly Array' is not compatible with type 'Array' at index 1 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly Array) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly Array' is not compatible with type 'Array' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test1.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test1.ets index 5865989d84229a0d5ff02d8b26dcbfb82578aa1e..14d141bdb3fc9d675760e3bddc8f0dfee4660322 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test1.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test1.ets @@ -19,5 +19,5 @@ function foo (p: int[]) { let x: Readonly = [] /* @@ label */foo(/* @@ label1 */x) -/* @@@ label Error TypeError: No matching call signature for foo(readonly Array) */ -/* @@@ label1 Error TypeError: Type 'readonly Array' is not compatible with type 'Array' at index 1 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly Array) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly Array' is not compatible with type 'Array' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test2.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test2.ets index e6e6e1759a06268cdcf5e6961f14950d7523c259..882351eaa78e1af34e7b7e49e46638736e928ec8 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test2.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test2.ets @@ -19,6 +19,6 @@ function foo (p: [int, string]) { let x: Readonly<[int, string]> = /* @@ label2 */[] /* @@ label */foo(/* @@ label1 */x) -/* @@@ label1 Error TypeError: Type 'readonly [Int, String]' is not compatible with type '[Int, String]' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(readonly [Int, String]) */ -/* @@@ label2 Error TypeError: Initializer has 0 elements, but tuple requires 2 */ +/* @@@ label2 Error Semantic error ESE0231: Initializer has 0 elements, but tuple requires 2 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly [Int, String]) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly [Int, String]' is not compatible with type '[Int, String]' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test3.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test3.ets index 1d321b90e4c8c89fcfe3c7f036f06e63f0993d80..b241a3cd89b4a84e1c63815570d829461c726954 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test3.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test3.ets @@ -17,4 +17,4 @@ function foo (x: Readonly<[int, string]>) { let y: [int, string] = /* @@ label */x } -/* @@@ label Error TypeError: Type 'readonly [Int, String]' cannot be assigned to type '[Int, String]' */ +/* @@@ label Error Semantic error ESE0318: Type 'readonly [Int, String]' cannot be assigned to type '[Int, String]' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test4.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test4.ets index 1f44493fba932b6e4552365cd500ae4353550a14..6c22d6b5127c77b48f06d6bfe331fc738eb5e472 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test4.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test4.ets @@ -18,4 +18,4 @@ function foo (x: Readonly) { let x1 : int[] x1 = /* @@ label */x } -/* @@@ label Error TypeError: Type 'readonly Array' cannot be assigned to type 'Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'readonly Array' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-and-Readonly-test1.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-and-Readonly-test1.ets index 900402788108baae0efb5e44956f959fefaff1d1..c5d8bcac1cc95d736d59a806a0db4caac6e6bf56 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-and-Readonly-test1.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-and-Readonly-test1.ets @@ -21,4 +21,4 @@ function foo (tuple: Readonly<[number, string, boolean]>, arr: ReadonlyArray = [0] let y2 : Readonly<[int, string]> /* @@ label9 */y2[1] = "b" -/* @@@ label Error TypeError: Object type doesn't have proper index access method. */ -/* @@@ label1 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label2 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label3 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label4 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label5 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label6 Error TypeError: Object type doesn't have proper index access method. */ -/* @@@ label7 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label8 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label9 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@@ label1 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label2 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label3 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label4 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label5 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label6 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@@ label7 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label8 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label9 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test1.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test1.ets index 4af0252714dce6adc44525445c2141092592cfbd..5c2e2cf2ce44857992e6693e90bb43441fdafeab 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test1.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test1.ets @@ -17,4 +17,4 @@ function foo (x: readonly int/* @@ label */) { } -/* @@@ label Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@@ label Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test2.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test2.ets index 12e4c37feda06db8e2dc233337fc66b095ca17bf..d2f39551b6d677445dd61c55003848a77cf77b28 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test2.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test2.ets @@ -18,4 +18,4 @@ function foo (x: readonly [int, string]) { let y: [int, string] = /* @@ label */x } -/* @@@ label Error TypeError: Type 'readonly [Int, String]' cannot be assigned to type '[Int, String]' */ +/* @@@ label Error Semantic error ESE0318: Type 'readonly [Int, String]' cannot be assigned to type '[Int, String]' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test3.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test3.ets index c19b5d8a1349594e581ffd05eb71434c29de9991..d1a940086e06855e900b556290ceb86e64cbaf7c 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test3.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test3.ets @@ -18,4 +18,4 @@ function foo (x: readonly int[]) { let x1 : int[] x1 = /* @@ label */x } -/* @@@ label Error TypeError: Type 'ReadonlyArray' cannot be assigned to type 'Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'ReadonlyArray' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test4.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test4.ets index d65a0c683f791006671f22c7a9f684f16585f4b2..0fc8ea4c0334c0ca88096a64fd2ba2ad25c91453 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test4.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test4.ets @@ -19,5 +19,5 @@ function foo (p: int[]) { let x: readonly int[] = [] /* @@ label */foo(/* @@ label1 */x) -/* @@@ label Error TypeError: No matching call signature for foo(ReadonlyArray) */ -/* @@@ label1 Error TypeError: Type 'ReadonlyArray' is not compatible with type 'Array' at index 1 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(ReadonlyArray) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'ReadonlyArray' is not compatible with type 'Array' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test5.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test5.ets index 1434abd64149fe606b64f3a8b78fe5129bd571d2..07dbc077845e300a92534225189d3795db9ad659 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test5.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test5.ets @@ -19,6 +19,6 @@ function foo (p: [int, string]) { let x: readonly [int, string] = /* @@ label2 */[] /* @@ label */foo(/* @@ label1 */x) -/* @@@ label Error TypeError: No matching call signature for foo(readonly [Int, String]) */ -/* @@@ label1 Error TypeError: Type 'readonly [Int, String]' is not compatible with type '[Int, String]' at index 1 */ -/* @@@ label2 Error TypeError: Initializer has 0 elements, but tuple requires 2 */ +/* @@@ label2 Error Semantic error ESE0231: Initializer has 0 elements, but tuple requires 2 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly [Int, String]) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly [Int, String]' is not compatible with type '[Int, String]' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test6.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test6.ets index a792cb4bdde514333c1ea69eeae3a2f9c4bcc683..a0df91d629c0bfc6ac258cb70d6200347da28e56 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test6.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test6.ets @@ -27,5 +27,5 @@ let arr = foo1() let tuple = foo2() /* @@ label1 */tuple[1] = "c" -/* @@@ label Error TypeError: Object type doesn't have proper index access method. */ -/* @@@ label1 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@@ label1 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ diff --git a/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets b/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets index 686f313ee070e7f322ff87ed868b7a484d8be38d..dbe8ab17cda1e1420904b726cf408e5d0e4136b3 100644 --- a/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets +++ b/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets @@ -16,12 +16,12 @@ func: readonly (Y : object | long [] ) => [ ] -/* @@? 17:7 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:7 Error TypeError: Unresolved reference readonly */ -/* @@? 17:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:20 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token 'object'. */ -/* @@? 17:22 Error TypeError: Type name 'object' used in the wrong context */ -/* @@? 17:22 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 17:39 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:42 Error SyntaxError: Unexpected token '=>'. */ \ No newline at end of file +/* @@? 17:7 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:7 Error Semantic error ESE0143: Unresolved reference readonly */ +/* @@? 17:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:20 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:22 Error Syntax error ESY0227: Unexpected token 'object'. */ +/* @@? 17:22 Error Semantic error ESE0144: Type name 'object' used in the wrong context */ +/* @@? 17:22 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 17:39 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:42 Error Syntax error ESY0227: Unexpected token '=>'. */ diff --git a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets index 9576c6e5dca877c7bd49cd37630481f83462afc5..a2ca6958daa3e6e6b8c766c05918b9bef523d89b 100644 --- a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets +++ b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets @@ -35,4 +35,4 @@ function main() { arktest.assertEQ(a.a, false); } -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ +/* @@@ label Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ diff --git a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets index 449033192b7df559dc03985d2faea4157d8f989d..a488075f3328534dce9b691d656ab5c04005981f 100644 --- a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets +++ b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets @@ -30,4 +30,4 @@ function main() { arktest.assertEQ(a.a, false); } -/* @@@ label Error TypeError: Readonly field already initialized at declaration. */ +/* @@@ label Error Semantic error ESE0210: Readonly field already initialized at declaration. */ diff --git a/ets2panda/test/ast/parser/ets/readonly_interface_method.ets b/ets2panda/test/ast/parser/ets/readonly_interface_method.ets index 418b6c6ef1cc2ddca151538b9ab231979abba143..00bea99ca2e93fcb02ac27067ad81cf966d2cce5 100644 --- a/ets2panda/test/ast/parser/ets/readonly_interface_method.ets +++ b/ets2panda/test/ast/parser/ets/readonly_interface_method.ets @@ -17,5 +17,5 @@ interface A { readonly(): void {} } -/* @@? 17:5 Error SyntaxError: Modifier 'readonly' cannot be applied to an interface method. */ -/* @@? 17:13 Error SyntaxError: Expected 'method name', got '('. */ +/* @@? 17:5 Error Syntax error ESY0033: Modifier 'readonly' cannot be applied to an interface method. */ +/* @@? 17:13 Error Syntax error ESY0230: Expected 'method name', got '('. */ diff --git a/ets2panda/test/ast/parser/ets/readonly_reference_CTE_err_elimilate.ets b/ets2panda/test/ast/parser/ets/readonly_reference_CTE_err_elimilate.ets index 435c77d20aaa0727515fb8496a8b59e5cdaa12c6..b26ae8aaa9295d435c44259772045175c946b2f0 100644 --- a/ets2panda/test/ast/parser/ets/readonly_reference_CTE_err_elimilate.ets +++ b/ets2panda/test/ast/parser/ets/readonly_reference_CTE_err_elimilate.ets @@ -29,5 +29,5 @@ function bar(a:Readonly){ bar(changeAbleVar) -/* @@@ label Error TypeError: Cannot assign to a readonly variable x */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a readonly variable x */ diff --git a/ets2panda/test/ast/parser/ets/readonly_union_negative.ets b/ets2panda/test/ast/parser/ets/readonly_union_negative.ets index e260f1e32d3c6fa3bf70372258603e36276ed8dd..78143d45fd131462b5448a0feb50b947ed84e6e9 100644 --- a/ets2panda/test/ast/parser/ets/readonly_union_negative.ets +++ b/ets2panda/test/ast/parser/ets/readonly_union_negative.ets @@ -46,19 +46,19 @@ function main(): void { } -/* @@? 19:49 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@? 24:51 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@? 28:50 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@? 32:33 Error TypeError: 'void' used as type annotation. */ -/* @@? 32:47 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@? 36:55 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ -/* @@? 41:5 Error TypeError: Expected 1 arguments, got 2. */ -/* @@? 41:5 Error TypeError: No matching call signature for test_negative_1(Int, "test") */ -/* @@? 42:5 Error TypeError: Expected 1 arguments, got 2. */ -/* @@? 42:5 Error TypeError: No matching call signature for test_negative_2(MyObject, "test") */ -/* @@? 43:5 Error TypeError: Expected 1 arguments, got 2. */ -/* @@? 43:5 Error TypeError: No matching call signature for test_negative_5(Boolean, Array) */ -/* @@? 44:5 Error TypeError: Expected 1 arguments, got 2. */ -/* @@? 44:5 Error TypeError: No matching call signature for test_negative_6(undefined, Int) */ -/* @@? 45:5 Error TypeError: Expected 1 arguments, got 2. */ -/* @@? 45:5 Error TypeError: No matching call signature for test_negative_7(() => void, "test") */ \ No newline at end of file +/* @@? 19:49 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@? 24:51 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@? 28:50 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@? 32:33 Error Semantic error ESE0232: 'void' used as type annotation. */ +/* @@? 32:47 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@? 36:55 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ +/* @@? 41:5 Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@? 41:5 Error Semantic error ESE0127: No matching call signature for test_negative_1(Int, "test") */ +/* @@? 42:5 Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@? 42:5 Error Semantic error ESE0127: No matching call signature for test_negative_2(MyObject, "test") */ +/* @@? 43:5 Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@? 43:5 Error Semantic error ESE0127: No matching call signature for test_negative_5(Boolean, Array) */ +/* @@? 44:5 Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@? 44:5 Error Semantic error ESE0127: No matching call signature for test_negative_6(undefined, Int) */ +/* @@? 45:5 Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@? 45:5 Error Semantic error ESE0127: No matching call signature for test_negative_7(() => void, "test") */ diff --git a/ets2panda/test/ast/parser/ets/recordIndexing.ets b/ets2panda/test/ast/parser/ets/recordIndexing.ets index 082f69e7b7736645a39549780b4702655df12d89..3c8ae08f08b4b1b416289cad02c74893a654e8e0 100644 --- a/ets2panda/test/ast/parser/ets/recordIndexing.ets +++ b/ets2panda/test/ast/parser/ets/recordIndexing.ets @@ -22,14 +22,14 @@ console.log(x[/* @@ label */0]) } -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@? 23:17 Error TypeError: No matching indexing signature for $_get(Int) */ -/* @@@ label Error TypeError: Type 'Int' is not compatible with type 'String' at index 1 */ -/* @@@ label Error TypeError: Cannot find index access method with the required signature. */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@? 23:17 Error Semantic error ESE0127: No matching indexing signature for $_get(Int) */ +/* @@@ label Error Semantic error ESE0046: Type 'Int' is not compatible with type 'String' at index 1 */ +/* @@@ label Error Semantic error ESE0251: Cannot find index access method with the required signature. */ diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets index aa08c98e228a4680db9434a7ba145d4714de524d..5a35e0413f79a07699e2182e82683c329ad0b61a 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets @@ -19,4 +19,4 @@ function main(){ "key2": 2 } } -/* @@@ label Error TypeError: Type argument 'Char|String' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'Char|String' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets index d65646705f1c1b92083273927b1714233eebfc16..47efb684e698d244e4148da18eb615ca47ebcd6d 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets @@ -21,4 +21,4 @@ function main(){ 2: 2 } } -/* @@@ label Error TypeError: Type argument 'A|Double' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'A|Double' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets index 5d863c0d03274bc22ff7ccfad74f884258d62fdb..ac21a8caf3f29100d2661db8cbe920eb82274791 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets @@ -18,4 +18,4 @@ class A{} function main(){ let a: Record/* @@ label */ } -/* @@@ label Error TypeError: Type argument 'BigInt' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ +/* @@@ label Error Semantic error ESE0228: Type argument 'BigInt' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets index eeee8b412bfb3c75206a98b61b52ed215ba5bc99..f98c301cdab9fb9459a549a964903df050bd55b7 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets @@ -18,4 +18,4 @@ function main(){ "hello": 1, } } -/* @@? 18:9 Error TypeError: Type '"hello"' is not compatible with type 'Double' at index 1 */ +/* @@? 18:9 Error Semantic error ESE0046: Type '"hello"' is not compatible with type 'Double' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/record_dup_key_01.ets b/ets2panda/test/ast/parser/ets/record_dup_key_01.ets index 1a7a3bf605fba7ba7ec3110ddfc6dd6cfc703fd8..7682c9dbfa3a06e7d23d5cc774ebcb3bb200d4a5 100644 --- a/ets2panda/test/ast/parser/ets/record_dup_key_01.ets +++ b/ets2panda/test/ast/parser/ets/record_dup_key_01.ets @@ -20,4 +20,4 @@ function main(){ 2: 3 } } -/* @@@ label Error TypeError: An object literal cannot multiple properties with same name */ +/* @@@ label Error Semantic error ESE0263: An object literal cannot multiple properties with same name */ diff --git a/ets2panda/test/ast/parser/ets/record_dup_key_02.ets b/ets2panda/test/ast/parser/ets/record_dup_key_02.ets index ef679095556f77c28740209d45e9fb5270478cd5..43b7955ed2b01f54bb0d2678ac5a09bb9a06b3b3 100644 --- a/ets2panda/test/ast/parser/ets/record_dup_key_02.ets +++ b/ets2panda/test/ast/parser/ets/record_dup_key_02.ets @@ -20,4 +20,4 @@ function main(){ "key2": 3 } } -/* @@@ label Error TypeError: An object literal cannot multiple properties with same name */ +/* @@@ label Error Semantic error ESE0263: An object literal cannot multiple properties with same name */ diff --git a/ets2panda/test/ast/parser/ets/record_init_check.ets b/ets2panda/test/ast/parser/ets/record_init_check.ets index 4c4eaffb810e18234834a48e636a1d3e8d94496c..0cb3f06b98e6365cae194371a6ad0b905ffede32 100644 --- a/ets2panda/test/ast/parser/ets/record_init_check.ets +++ b/ets2panda/test/ast/parser/ets/record_init_check.ets @@ -20,4 +20,4 @@ function main(){ 2: 2 } } -/* @@@ label Error TypeError: Object literal may only specify known properties */ +/* @@@ label Error Semantic error ESE0264: Object literal may only specify known properties */ diff --git a/ets2panda/test/ast/parser/ets/record_object_value.ets b/ets2panda/test/ast/parser/ets/record_object_value.ets index f46be86af254562b153d1aef3817470c28c8ebc1..28f4d55b089cc5d5dcc43ca8a1fcf4c3415ced34 100644 --- a/ets2panda/test/ast/parser/ets/record_object_value.ets +++ b/ets2panda/test/ast/parser/ets/record_object_value.ets @@ -57,7 +57,7 @@ function main(){ "Mary":["20", "30"] }; } -/* @@@ label Error TypeError: Type '"10"' is not compatible with type 'Double' at property 'age' */ -/* @@@ label1 Error TypeError: Type '"100"' is not compatible with type 'Double' at property 'salary' */ -/* @@@ label2 Error TypeError: type PersonInfoInterface has no property named agee */ -/* @@@ label3 Error TypeError: type PersonInfoInterface has no property named other */ +/* @@@ label Error Semantic error ESE0319: Type '"10"' is not compatible with type 'Double' at property 'age' */ +/* @@@ label1 Error Semantic error ESE0319: Type '"100"' is not compatible with type 'Double' at property 'salary' */ +/* @@@ label2 Error Semantic error ESE0065: type PersonInfoInterface has no property named agee */ +/* @@@ label3 Error Semantic error ESE0065: type PersonInfoInterface has no property named other */ diff --git a/ets2panda/test/ast/parser/ets/recursive_clousre_reference_error.ets b/ets2panda/test/ast/parser/ets/recursive_clousre_reference_error.ets index 5f8630844170b3ab3329e00396dfdefa282ff038..3ca87b355ac84fcc9b39af2b91a17b6a009665a7 100644 --- a/ets2panda/test/ast/parser/ets/recursive_clousre_reference_error.ets +++ b/ets2panda/test/ast/parser/ets/recursive_clousre_reference_error.ets @@ -19,5 +19,5 @@ function foo() { x(); } -/* @@? 17:19 Error TypeError: Variable 'y' is accessed before it's initialization. */ -/* @@? 18:9 Error TypeError: Circular dependency detected for identifier: y */ +/* @@? 17:19 Error Semantic error ESE0365: Variable 'y' is accessed before it's initialization. */ +/* @@? 18:9 Error Semantic error ESE0308: Circular dependency detected for identifier: y */ diff --git a/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets b/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets index 25e4a6d0eaaf25483db83cdaaa5298e7e0b37bf2..2585fb22377f41e5a4762fbd5d78f61cee8a25a0 100644 --- a/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets +++ b/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets @@ -88,15 +88,15 @@ const _exported: ExportedType = _exportedStructure; export default _exported; -/* @@? 26:26 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 41:12 Error TypeError: No matching call signature for (...) */ -/* @@? 41:23 Error TypeError: need to specify target type for class composite */ -/* @@? 54:20 Error TypeError: No matching call signature for (...) */ -/* @@? 54:31 Error TypeError: need to specify target type for class composite */ -/* @@? 61:64 Error SyntaxError: Unexpected token '&'. */ -/* @@? 61:66 Error SyntaxError: Unexpected token '{'. */ -/* @@? 62:12 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 62:12 Error TypeError: Type name 'IndexableType' used in the wrong context */ -/* @@? 66:36 Error TypeError: Interfaces cannot extend classes, only other interfaces. */ -/* @@? 73:6 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 76:16 Error TypeError: Cannot cast type 'ExportedStructure' to 'Record Double|Record Double>>' */ +/* @@? 26:26 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 41:12 Error Semantic error ESE0127: No matching call signature for (...) */ +/* @@? 41:23 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 54:20 Error Semantic error ESE0127: No matching call signature for (...) */ +/* @@? 54:31 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 61:64 Error Syntax error ESY0227: Unexpected token '&'. */ +/* @@? 61:66 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 62:12 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 62:12 Error Semantic error ESE0144: Type name 'IndexableType' used in the wrong context */ +/* @@? 66:36 Error Semantic error ESE0378: Interfaces cannot extend classes, only other interfaces. */ +/* @@? 73:6 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 76:16 Error Semantic error ESE0326: Cannot cast type 'ExportedStructure' to 'Record Double|Record Double>>' */ diff --git a/ets2panda/test/ast/parser/ets/required_multiple_fields.ets b/ets2panda/test/ast/parser/ets/required_multiple_fields.ets index 4f68534936f6b404b20392eb61eb942f3f66debb..9c6e0df307b5bff7dd6aed0d30fe330991232130 100644 --- a/ets2panda/test/ast/parser/ets/required_multiple_fields.ets +++ b/ets2panda/test/ast/parser/ets/required_multiple_fields.ets @@ -32,9 +32,9 @@ function main() { let x4: Required = /* @@ label4 */{i: 1.9}; } -/* @@@ label1 Error TypeError: Class property 'k' needs to be initialized for Required. */ -/* @@@ label2 Error TypeError: Class property 'j' needs to be initialized for Required. */ -/* @@@ label2 Error TypeError: Class property 'k' needs to be initialized for Required. */ -/* @@@ label3 Error TypeError: Class property 'k' needs to be initialized for Required. */ -/* @@@ label4 Error TypeError: Class property 'j' needs to be initialized for Required. */ -/* @@@ label4 Error TypeError: Class property 'k' needs to be initialized for Required. */ +/* @@@ label1 Error Semantic error ESE0226: Class property 'k' needs to be initialized for Required. */ +/* @@@ label2 Error Semantic error ESE0226: Class property 'j' needs to be initialized for Required. */ +/* @@@ label2 Error Semantic error ESE0226: Class property 'k' needs to be initialized for Required. */ +/* @@@ label3 Error Semantic error ESE0226: Class property 'k' needs to be initialized for Required. */ +/* @@@ label4 Error Semantic error ESE0226: Class property 'j' needs to be initialized for Required. */ +/* @@@ label4 Error Semantic error ESE0226: Class property 'k' needs to be initialized for Required. */ diff --git a/ets2panda/test/ast/parser/ets/required_multiple_fields_2.ets b/ets2panda/test/ast/parser/ets/required_multiple_fields_2.ets index 0243622ca6882fc3fea01e58f4d9feaf689a0a0e..5e5f62dc6401af6d1dc99542d6605efdf1db1100 100644 --- a/ets2panda/test/ast/parser/ets/required_multiple_fields_2.ets +++ b/ets2panda/test/ast/parser/ets/required_multiple_fields_2.ets @@ -25,5 +25,5 @@ function main() { let x3: Required = /* @@ label2 */{j :"somestr", j :"somestr"}; } -/* @@@ label1 Error TypeError: type A has no property named K */ -/* @@@ label2 Error TypeError: Class property 'i' needs to be initialized for Required. */ +/* @@@ label1 Error Semantic error ESE0065: type A has no property named K */ +/* @@@ label2 Error Semantic error ESE0226: Class property 'i' needs to be initialized for Required. */ diff --git a/ets2panda/test/ast/parser/ets/reserved_type.ets b/ets2panda/test/ast/parser/ets/reserved_type.ets index 91edf9e1458d89688b3f50927abd04774b6092dc..a2510fdab0b504268d42baa6fb3e5c4fbee02e0f 100644 --- a/ets2panda/test/ast/parser/ets/reserved_type.ets +++ b/ets2panda/test/ast/parser/ets/reserved_type.ets @@ -34,12 +34,12 @@ function main() { let n = new Partial() } -/* @@? 16:16 Error SyntaxError: 'Required' is reserved and cannot be used as a variable/type name */ -/* @@? 20:16 Error SyntaxError: 'Readonly' is reserved and cannot be used as a variable/type name */ -/* @@? 24:15 Error SyntaxError: 'Partial' is reserved and cannot be used as a variable/type name */ -/* @@? 29:13 Error SyntaxError: 'Required' is reserved and cannot be used as a variable/type name */ -/* @@? 30:13 Error SyntaxError: 'Readonly' is reserved and cannot be used as a variable/type name */ -/* @@? 31:13 Error SyntaxError: 'Partial' is reserved and cannot be used as a variable/type name */ -/* @@? 32:26 Error SyntaxError: 'Required' is reserved and cannot be used as a variable/type name */ -/* @@? 33:26 Error SyntaxError: 'Readonly' is reserved and cannot be used as a variable/type name */ -/* @@? 34:25 Error SyntaxError: 'Partial' is reserved and cannot be used as a variable/type name */ +/* @@? 16:16 Error Syntax error ESY0242: 'Required' is reserved and cannot be used as a variable/type name */ +/* @@? 20:16 Error Syntax error ESY0242: 'Readonly' is reserved and cannot be used as a variable/type name */ +/* @@? 24:15 Error Syntax error ESY0242: 'Partial' is reserved and cannot be used as a variable/type name */ +/* @@? 29:13 Error Syntax error ESY0242: 'Required' is reserved and cannot be used as a variable/type name */ +/* @@? 30:13 Error Syntax error ESY0242: 'Readonly' is reserved and cannot be used as a variable/type name */ +/* @@? 31:13 Error Syntax error ESY0242: 'Partial' is reserved and cannot be used as a variable/type name */ +/* @@? 32:26 Error Syntax error ESY0242: 'Required' is reserved and cannot be used as a variable/type name */ +/* @@? 33:26 Error Syntax error ESY0242: 'Readonly' is reserved and cannot be used as a variable/type name */ +/* @@? 34:25 Error Syntax error ESY0242: 'Partial' is reserved and cannot be used as a variable/type name */ diff --git a/ets2panda/test/ast/parser/ets/rest_never.ets b/ets2panda/test/ast/parser/ets/rest_never.ets index dd17382ea1f90f1d379b532f9dd9097708c6ef38..14b8c8d05e5d82a1a45f1731cc3bc43be521924b 100644 --- a/ets2panda/test/ast/parser/ets/rest_never.ets +++ b/ets2panda/test/ast/parser/ets/rest_never.ets @@ -20,5 +20,5 @@ function main() { sum(...null!) } -/* @@? 20:9 Error TypeError: Spread expression can be applied only to array or tuple type, but 'never' is provided */ -/* @@? 20:12 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file +/* @@? 20:9 Error Semantic error ESE0049: Spread expression can be applied only to array or tuple type, but 'never' is provided */ +/* @@? 20:12 Error Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ diff --git a/ets2panda/test/ast/parser/ets/rest_no_default.ets b/ets2panda/test/ast/parser/ets/rest_no_default.ets index 2964b29db0ba9ddcadaddf38749d9bf5b9c8ba51..21a1222282c1ba226bb189582fd45b3cd443aa63 100644 --- a/ets2panda/test/ast/parser/ets/rest_no_default.ets +++ b/ets2panda/test/ast/parser/ets/rest_no_default.ets @@ -15,5 +15,5 @@ function sum(...numbers: number = 0): number {} -/* @@? 16:35 Error SyntaxError: Rest parameter cannot have the default value. */ -/* @@? 16:36 Error SyntaxError: Identifier is needed here. */ +/* @@? 16:35 Error Syntax error ESY0192: Rest parameter cannot have the default value. */ +/* @@? 16:36 Error Syntax error ESY0131: Identifier is needed here. */ diff --git a/ets2panda/test/ast/parser/ets/rest_no_optional.ets b/ets2panda/test/ast/parser/ets/rest_no_optional.ets index 2fe5e0e584e2cfc06bfa61e32080238af0599ef4..42553ae2380fd2067b4248be2eff8b576b87cc16 100644 --- a/ets2panda/test/ast/parser/ets/rest_no_optional.ets +++ b/ets2panda/test/ast/parser/ets/rest_no_optional.ets @@ -16,4 +16,4 @@ function sum(...numbers?: number[]): number {} -/* @@? 17:24 Error SyntaxError: Rest parameter cannot have the default value. */ +/* @@? 17:24 Error Syntax error ESY0192: Rest parameter cannot have the default value. */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_04.ets b/ets2panda/test/ast/parser/ets/rest_parameter_04.ets index b175b93357c63158b7e8c9d77a7912d5593fef8a..11f4e03ce71cd413b994c361ae18058a7b1a791b 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_04.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_04.ets @@ -17,7 +17,7 @@ function hehe(...items: number[]/* @@ label */: void /* @@ label1 */{ console.log("aaaaaaaa") } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@@ label Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:49 Error SyntaxError: Unexpected token 'void'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '{'. */ +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@@ label Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:49 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_05.ets b/ets2panda/test/ast/parser/ets/rest_parameter_05.ets index 53d71208a0886248013a2c68ab4204e05f1e5f78..f1f4fb34825c6c7fc97a30046f51ad573f5b94c8 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_05.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_05.ets @@ -19,5 +19,5 @@ function sum(...numbers: [number, number, number]): number { /* @@ label */sum() -/* @@@ label Error TypeError: Expected 3 arguments, got 0. */ -/* @@@ label Error TypeError: No matching call signature */ +/* @@@ label Error Semantic error ESE0124: Expected 3 arguments, got 0. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_06.ets b/ets2panda/test/ast/parser/ets/rest_parameter_06.ets index 2d75bc751833a693d8bbd69a5f7a52c8eec98461..fd6a7f08da94e2b7309bd418b66c9832b4338023 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_06.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_06.ets @@ -19,5 +19,5 @@ function sum(...numbers: [number, number, number]): number { /* @@ label */sum(10, 20, 30, 40) -/* @@@ label Error TypeError: Expected 3 arguments, got 4. */ -/* @@@ label Error TypeError: No matching call signature for sum(Int, Int, Int, Int) */ +/* @@@ label Error Semantic error ESE0124: Expected 3 arguments, got 4. */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for sum(Int, Int, Int, Int) */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_07.ets b/ets2panda/test/ast/parser/ets/rest_parameter_07.ets index ac4c0fed73bf20d39a094c0413a303287c2fc910..2a311f79e5d15ba9e1754f4bf0a9c2c61bd93aad 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_07.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_07.ets @@ -19,5 +19,5 @@ function sum(...numbers: [number, number, number]): number { /* @@ label1 */sum(10, 20, /* @@ label2 */"one") -/* @@@ label1 Error TypeError: No matching call signature for sum(Double, Double, "one") */ -/* @@@ label2 Error TypeError: Type '"one"' is not compatible with type 'Double' at index 3 */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for sum(Double, Double, "one") */ +/* @@@ label2 Error Semantic error ESE0046: Type '"one"' is not compatible with type 'Double' at index 3 */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_08.ets b/ets2panda/test/ast/parser/ets/rest_parameter_08.ets index b81323e196d5a38eb30156dd2559cbe4e92e7df8..62164ffe949276b05128e12c985d585c222459a6 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_08.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_08.ets @@ -22,12 +22,12 @@ function sum(a: int, ...numbers: [number, number, number]): number { /* @@ label3 */sum(11,12,13) /* @@ label4 */sum(11,12,13,15,16) -/* @@@ label1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@@ label1 Error TypeError: Expected 4 arguments, got 0. */ -/* @@@ label1 Error TypeError: No matching call signature */ -/* @@@ label2 Error TypeError: Expected 4 arguments, got 1. */ -/* @@@ label2 Error TypeError: No matching call signature for sum(Int) */ -/* @@@ label3 Error TypeError: Expected 4 arguments, got 3. */ -/* @@@ label3 Error TypeError: No matching call signature for sum(Int, Int, Int) */ -/* @@@ label4 Error TypeError: Expected 4 arguments, got 5. */ -/* @@@ label4 Error TypeError: No matching call signature for sum(Int, Int, Int, Int, Int) */ +/* @@@ label1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0124: Expected 4 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0128: No matching call signature */ +/* @@@ label2 Error Semantic error ESE0124: Expected 4 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for sum(Int) */ +/* @@@ label3 Error Semantic error ESE0124: Expected 4 arguments, got 3. */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for sum(Int, Int, Int) */ +/* @@@ label4 Error Semantic error ESE0124: Expected 4 arguments, got 5. */ +/* @@@ label4 Error Semantic error ESE0127: No matching call signature for sum(Int, Int, Int, Int, Int) */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_09.ets b/ets2panda/test/ast/parser/ets/rest_parameter_09.ets index c958b2efe1158870f943ef205ec0ea298cf49f8f..8680e0aff4b35af596d1ce83480c5d4f96252438 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_09.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_09.ets @@ -22,5 +22,5 @@ class C { /* @@ label */(new C()).foo() -/* @@@ label Error TypeError: Expected 2 arguments, got 0. */ -/* @@@ label Error TypeError: No matching call signature */ +/* @@@ label Error Semantic error ESE0124: Expected 2 arguments, got 0. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_10.ets b/ets2panda/test/ast/parser/ets/rest_parameter_10.ets index db95f4b9b072594eeaef434067e33c86eee8179a..e2c69ee8394ceb00f5964224b425a4f78fa7947e 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_10.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_10.ets @@ -22,5 +22,5 @@ class C { /* @@ label */(new C()).foo(new A) -/* @@@ label Error TypeError: Expected 2 arguments, got 1. */ -/* @@@ label Error TypeError: No matching call signature for foo(A) */ +/* @@@ label Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(A) */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_11.ets b/ets2panda/test/ast/parser/ets/rest_parameter_11.ets index 5750476b45c61d017f30953572399f04db80f51d..22d3d886939763508148e33d3346e005bd9eef2c 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_11.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_11.ets @@ -22,5 +22,5 @@ class C { /* @@ label */(new C()).foo(new A, new B, new B) -/* @@@ label Error TypeError: Expected 2 arguments, got 3. */ -/* @@@ label Error TypeError: No matching call signature for foo(A, B, B) */ +/* @@@ label Error Semantic error ESE0124: Expected 2 arguments, got 3. */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(A, B, B) */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_12.ets b/ets2panda/test/ast/parser/ets/rest_parameter_12.ets index 5b519005961a3ddb39329fe51fa1de4cec476a01..95a9657a62fda404e406ea27023cdb2b2943e49a 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_12.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_12.ets @@ -24,9 +24,9 @@ class C { /* @@ label2 */C.foo(new A) /* @@ label3 */C.foo(new A, new B, new B) -/* @@@ label1 Error TypeError: Expected 2 arguments, got 0. */ -/* @@@ label1 Error TypeError: No matching call signature */ -/* @@@ label2 Error TypeError: Expected 2 arguments, got 1. */ -/* @@@ label2 Error TypeError: No matching call signature for foo(A) */ -/* @@@ label3 Error TypeError: Expected 2 arguments, got 3. */ -/* @@@ label3 Error TypeError: No matching call signature for foo(A, B, B) */ +/* @@@ label1 Error Semantic error ESE0124: Expected 2 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0128: No matching call signature */ +/* @@@ label2 Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for foo(A) */ +/* @@@ label3 Error Semantic error ESE0124: Expected 2 arguments, got 3. */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for foo(A, B, B) */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_13.ets b/ets2panda/test/ast/parser/ets/rest_parameter_13.ets index 46f794926f745d3fcf69c72449cc26f3095e3e87..16c7f13ca65548988221e58396c2ba691b149406 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_13.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_13.ets @@ -34,14 +34,14 @@ function main() { /* @@ label3 */new C(new A, new B, new B) } -/* @@@ label1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@@ label1 Error TypeError: Expected 2 arguments, got 0. */ -/* @@@ label1 Error TypeError: Expected 3 arguments, got 0. */ -/* @@@ label1 Error TypeError: No matching construct signature */ -/* @@@ label2 Error TypeError: Expected 2 arguments, got 1. */ -/* @@@ label2 Error TypeError: Expected 3 arguments, got 1. */ -/* @@@ label2 Error TypeError: No matching construct signature for rest_parameter_13.C(A) */ -/* @@? 33:37 Error TypeError: Type 'A' is not compatible with type 'Int' at index 1 */ -/* @@@ label3 Error TypeError: Expected 2 arguments, got 3. */ -/* @@@ label3 Error TypeError: No matching construct signature for rest_parameter_13.C(A, B, B) */ -/* @@? 34:37 Error TypeError: Type 'A' is not compatible with type 'Int' at index 1 */ +/* @@@ label1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0124: Expected 2 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0124: Expected 3 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0128: No matching construct signature */ +/* @@@ label2 Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0124: Expected 3 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0127: No matching construct signature for rest_parameter_13.C(A) */ +/* @@? 33:37 Error Semantic error ESE0046: Type 'A' is not compatible with type 'Int' at index 1 */ +/* @@@ label3 Error Semantic error ESE0124: Expected 2 arguments, got 3. */ +/* @@@ label3 Error Semantic error ESE0127: No matching construct signature for rest_parameter_13.C(A, B, B) */ +/* @@? 34:37 Error Semantic error ESE0046: Type 'A' is not compatible with type 'Int' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_14.ets b/ets2panda/test/ast/parser/ets/rest_parameter_14.ets index 73bbbb9eb079a4ae9c0701e4ac1a4f98d577a2e1..2bfc382021bb6efcdcdafc740f1343fa9b48c0f2 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_14.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_14.ets @@ -21,5 +21,5 @@ class B { moo(/* @@ label2 */...i: A) {} } -/* @@@ label1 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@@ label2 Error SyntaxError: Rest parameter should be either array or tuple type. */ +/* @@@ label1 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@@ label2 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ diff --git a/ets2panda/test/ast/parser/ets/return_null_and_type_not_match.ets b/ets2panda/test/ast/parser/ets/return_null_and_type_not_match.ets index f67d3dbe0d94a7839866c8ce1335344eb5084cb7..4f212ad020aeafb2a2a5eb5fea0941c1cadc519d 100644 --- a/ets2panda/test/ast/parser/ets/return_null_and_type_not_match.ets +++ b/ets2panda/test/ast/parser/ets/return_null_and_type_not_match.ets @@ -22,5 +22,5 @@ function main(): int { function test():string { /* @@ label1 */return; } -/* @@@ label Error TypeError: Type 'String' is not compatible with the enclosing method's return type 'Int' */ -/* @@@ label1 Error TypeError: Missing return value. */ +/* @@@ label Error Semantic error ESE0091: Type 'String' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label1 Error Semantic error ESE0032: Missing return value. */ diff --git a/ets2panda/test/ast/parser/ets/return_type_non_match.ets b/ets2panda/test/ast/parser/ets/return_type_non_match.ets index 5a8539550bb3bf72ced49fc066920bd5c765b5e3..5c456953f2970614921f0768d665886f826dd9b6 100644 --- a/ets2panda/test/ast/parser/ets/return_type_non_match.ets +++ b/ets2panda/test/ast/parser/ets/return_type_non_match.ets @@ -15,5 +15,5 @@ function main():undefined { return false; } - /* @@? 16:4 Error TypeError: Bad return type, main enable only void or int type. */ -/* @@? 16:11 Error TypeError: Type 'Boolean' is not compatible with the enclosing method's return type 'undefined' */ + /* @@? 16:4 Error Semantic error ESE0088: Bad return type, main enable only void or int type. */ +/* @@? 16:11 Error Semantic error ESE0091: Type 'Boolean' is not compatible with the enclosing method's return type 'undefined' */ diff --git a/ets2panda/test/ast/parser/ets/return_while_warning.ets b/ets2panda/test/ast/parser/ets/return_while_warning.ets index 08ae4d2f3a52b082999c9208b622ec843bb4c28c..fd76ee34cb80783612a358a7dc8de94fc7b5e5c5 100644 --- a/ets2panda/test/ast/parser/ets/return_while_warning.ets +++ b/ets2panda/test/ast/parser/ets/return_while_warning.ets @@ -19,4 +19,4 @@ function main(): void { } } -/* @@? 17:19 Warning Warning: Unreachable statement. */ \ No newline at end of file +/* @@? 17:19 Warning Warning W0026: Unreachable statement. */ diff --git a/ets2panda/test/ast/parser/ets/returntype_override_object.ets b/ets2panda/test/ast/parser/ets/returntype_override_object.ets index be73db7d84c954115d820d94947109f928fdfc1e..ee79b4e7f74646e5533283cf4b86572e5151ba33 100644 --- a/ets2panda/test/ast/parser/ets/returntype_override_object.ets +++ b/ets2panda/test/ast/parser/ets/returntype_override_object.ets @@ -25,5 +25,5 @@ class Derived extends Base { } } -/* @@? 23:17 Error TypeError: foo(): Object in Derived cannot override foo(): Base in Base because overriding return type is not compatible with the other return type. */ -/* @@? 23:17 Error TypeError: Method foo(): Object in Derived not overriding any method */ \ No newline at end of file +/* @@? 23:17 Error Semantic error ESE0141: foo(): Object in Derived cannot override foo(): Base in Base because overriding return type is not compatible with the other return type. */ +/* @@? 23:17 Error Semantic error ESE0136: Method foo(): Object in Derived not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets b/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets index c5e9ad05f304c09b03cb90a973e47c8b9efd1113..047a9c1568fa39f86ba504bd2f7824fa73bfb7de 100644 --- a/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets +++ b/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets @@ -21,4 +21,4 @@ function A(a: string) { } } -/* @@@ label Error TypeError: Unresolved reference c */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0143: Unresolved reference c */ diff --git a/ets2panda/test/ast/parser/ets/selective_export/selective_export_bad.ets b/ets2panda/test/ast/parser/ets/selective_export/selective_export_bad.ets index bb493f22fa10474c14c594b1f7e0cf7da27da1de..0ecec689229a0541bf34bc2f871303a4add45a9d 100644 --- a/ets2panda/test/ast/parser/ets/selective_export/selective_export_bad.ets +++ b/ets2panda/test/ast/parser/ets/selective_export/selective_export_bad.ets @@ -19,4 +19,4 @@ function bar(): int { return 1; } -/* @@@ label Error SyntaxError: Cannot find name 'foo' to export. */ +/* @@@ label Error Syntax error ESY0279: Cannot find name 'foo' to export. */ diff --git a/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets b/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets index f7e6f36d169ddfde8cb64ddeddccbfeb788108a2..a54ea4f4c4c7da5efd4a9e549e5787d0ac1f3443 100644 --- a/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets +++ b/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets @@ -17,5 +17,5 @@ class SomeClass { $_set (index: string): SomeClass { return this } } -/* @@? 17:5 Error SyntaxError: The special predefined method '$_set' should have exactly two required parameter. */ -/* @@? 17:11 Error TypeError: 'The special predefined method '$_set' should have void return type. */ +/* @@? 17:5 Error Syntax error ESY0222: The special predefined method '$_set' should have exactly two required parameter. */ +/* @@? 17:11 Error Semantic error ESE0094: 'The special predefined method '$_set' should have void return type. */ diff --git a/ets2panda/test/ast/parser/ets/setter_native.ets b/ets2panda/test/ast/parser/ets/setter_native.ets index 1c9aa8b1453d50abd2b778fb6754ba20d283aad4..94c324728f0a84d47b6cf5741431be3bca51f8a7 100644 --- a/ets2panda/test/ast/parser/ets/setter_native.ets +++ b/ets2panda/test/ast/parser/ets/setter_native.ets @@ -20,4 +20,4 @@ class Door { } } -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ diff --git a/ets2panda/test/ast/parser/ets/setter_with_more_than_one_formal_parameter.ets b/ets2panda/test/ast/parser/ets/setter_with_more_than_one_formal_parameter.ets index a7f211b961258743c7ed1869dc0ad2595c1298ad..8fa42e0629a344d7b43f1c039eb396f5d5b71912 100644 --- a/ets2panda/test/ast/parser/ets/setter_with_more_than_one_formal_parameter.ets +++ b/ets2panda/test/ast/parser/ets/setter_with_more_than_one_formal_parameter.ets @@ -17,5 +17,5 @@ set value(a: int, b: int, c : int)/* @@ label */; } - /* @@@ label Error SyntaxError: Setter must have exactly one formal parameter. */ -/* @@? 1:3 Error TypeError: Class 'Set' is already defined with different type. */ + /* @@? 1:3 Error Semantic error ESE0350: Class 'Set' is already defined with different type. */ +/* @@@ label Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ diff --git a/ets2panda/test/ast/parser/ets/setter_with_non_void.ets b/ets2panda/test/ast/parser/ets/setter_with_non_void.ets index e42ce4c09430e355df72bf118b6e2abebba8934b..30a60c32583b7e58e58a3a2931212cabbea09342 100644 --- a/ets2panda/test/ast/parser/ets/setter_with_non_void.ets +++ b/ets2panda/test/ast/parser/ets/setter_with_non_void.ets @@ -26,4 +26,4 @@ function main(): void { apple.color = 10; } -/* @@@ label Error SyntaxError: Setter must not have return type even if it is void. */ +/* @@@ label Error Syntax error ESY0241: Setter must not have return type even if it is void. */ diff --git a/ets2panda/test/ast/parser/ets/setter_with_return_type.ets b/ets2panda/test/ast/parser/ets/setter_with_return_type.ets index f0423da780a3e6082a00e8ad41abcf57f8fe0940..1c25894866e1bc089a1596e279848ab9a0b945a1 100644 --- a/ets2panda/test/ast/parser/ets/setter_with_return_type.ets +++ b/ets2panda/test/ast/parser/ets/setter_with_return_type.ets @@ -25,4 +25,4 @@ interface I{ class D extends C implements I{ } -/* @@? 22:9 Error SyntaxError: Setter must not have return type even if it is void. */ +/* @@? 22:9 Error Syntax error ESY0241: Setter must not have return type even if it is void. */ diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_as_n.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_as_n.ets index 29a7abba3638de3c247c6b414190fe200e37c018..a8316cc14b0ea1796e14093218daeb2a6155d529 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_as_n.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_as_n.ets @@ -17,6 +17,6 @@ export a as A let a = 2; -/* @@? 16:10 Error SyntaxError: Unexpected token 'as'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 16:13 Error TypeError: Unresolved reference A */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'as'. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@? 16:13 Error Semantic error ESE0143: Unresolved reference A */ diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_expression.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_expression.ets index 18b046b7253296853c53a0c4dcf442d7da50fefd..fd31e9fb55a02e78419e5b00b98e29d0dfdf74b2 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_expression.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_expression.ets @@ -15,4 +15,4 @@ export /* @@ label */(5442 + 41 * 39 - 10) -/* @@@ label Error SyntaxError: Export is allowed only for declarations. */ +/* @@@ label Error Syntax error ESY0043: Export is allowed only for declarations. */ diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_from_n.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_from_n.ets index 6b49070609c141727741f0333c51ddf7d081a494..a1b179af938644d05e8e84a9d5411c9fe3deacc2 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_from_n.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_from_n.ets @@ -12,7 +12,7 @@ export a /* @@ label */from /* @@ label1 */"./type" -/* @@? 13:8 Error SyntaxError: Cannot find name 'a' to export. */ -/* @@? 13:24 Error SyntaxError: Unexpected token 'from'. */ -/* @@? 13:24 Error TypeError: Unresolved reference from */ -/* @@? 13:44 Error SyntaxError: Unexpected token './type'. */ +/* @@? 13:8 Error Syntax error ESY0279: Cannot find name 'a' to export. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'from'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference from */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token './type'. */ diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_lambda.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_lambda.ets index d56bfbcfc7581c6386dd6c5721ae720151751859..54b4922f524528b640cc0bd85bc85f6c11dadc70 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_lambda.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_lambda.ets @@ -15,4 +15,4 @@ export /* @@ label */(a: int) => { return a } -/* @@@ label Error SyntaxError: Export is allowed only for declarations. */ +/* @@@ label Error Syntax error ESY0043: Export is allowed only for declarations. */ diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_n.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_n.ets index e25119a5405600f586c47db503e06e933fefec6a..a174d005fd76ace82df776b24b9fcbd389f8b3c5 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_n.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_n.ets @@ -18,5 +18,5 @@ export v,m let v = 1 let m = 2 -/* @@? 16:9 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:10 Error SyntaxError: Unexpected token 'm'. */ +/* @@? 16:9 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'm'. */ diff --git a/ets2panda/test/ast/parser/ets/single_statement_1.ets b/ets2panda/test/ast/parser/ets/single_statement_1.ets index 64d355e22c7b69d900061a2c1f7e5d21333f481e..1c077506b2bcab82a4c218dd1c31cb960492086e 100644 --- a/ets2panda/test/ast/parser/ets/single_statement_1.ets +++ b/ets2panda/test/ast/parser/ets/single_statement_1.ets @@ -20,14 +20,14 @@ function main(): int { let hehe: int = 10 } -/* @@@ label1 Error SyntaxError: Lexical declaration is not allowed in single statement context. */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@? 18:17 Error TypeError: Unresolved reference aaaa */ -/* @@@ label2 Error SyntaxError: Unexpected token ')'. */ +/* @@@ label1 Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@? 18:17 Error Semantic error ESE0143: Unresolved reference aaaa */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/ets/single_statement_2.ets b/ets2panda/test/ast/parser/ets/single_statement_2.ets index 996fdd7fd487845d70c35809a94386d0a4b8ea2b..bf8d1541832bf0515ac0fa83455bc7efb31bbd22 100644 --- a/ets2panda/test/ast/parser/ets/single_statement_2.ets +++ b/ets2panda/test/ast/parser/ets/single_statement_2.ets @@ -20,14 +20,14 @@ function main(): int { let hehe: int = 10 } -/* @@@ label1 Error SyntaxError: Lexical declaration is not allowed in single statement context. */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@? 18:17 Error TypeError: Unresolved reference aaaa */ -/* @@@ label2 Error SyntaxError: Unexpected token ')'. */ +/* @@@ label1 Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@? 18:17 Error Semantic error ESE0143: Unresolved reference aaaa */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/ets/special_signatures.ets b/ets2panda/test/ast/parser/ets/special_signatures.ets index 811f62bf38be89ba904fe9279ee87eb225cab517..a6f4aeac51574150c420de8f251f4705cc7b8ff1 100644 --- a/ets2panda/test/ast/parser/ets/special_signatures.ets +++ b/ets2panda/test/ast/parser/ets/special_signatures.ets @@ -17,6 +17,6 @@ interface Document { createElement(tagName: "div"): /* @@ label */HTMLDivElement; createElement(tagName: "span"): HTMLSpanElement; } -/* @@@ label Error TypeError: Cannot find type 'HTMLDivElement'. */ -/* @@? 18:35 Error TypeError: Cannot find type 'HTMLSpanElement'. */ -/* @@? 18:3 Error TypeError: Function createElement with this assembly signature already declared. */ +/* @@@ label Error Semantic error ESE0371: Cannot find type 'HTMLDivElement'. */ +/* @@? 18:3 Error Semantic error ESE0131: Function createElement with this assembly signature already declared. */ +/* @@? 18:35 Error Semantic error ESE0371: Cannot find type 'HTMLSpanElement'. */ diff --git a/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets b/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets index 597d40da24509d4a5ed9746a12928d6ec6039eb0..6037223641316ddba9c5758bb40b3ddcf31aab24 100644 --- a/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets +++ b/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets @@ -20,7 +20,7 @@ function main() { let y2: [boolean, int, string] = /* @@ label2 */[true, /* @@ label3 */...x2] } -/* @@? 18:43 Error TypeError: Initializer has 1 elements, but tuple requires 2 */ -/* @@? 18:59 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 20:53 Error TypeError: Initializer has 2 elements, but tuple requires 3 */ -/* @@? 20:75 Error TypeError: 'Array' cannot be spread in tuple. */ +/* @@@ label Error Semantic error ESE0231: Initializer has 1 elements, but tuple requires 2 */ +/* @@@ label1 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label2 Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 3 */ +/* @@@ label3 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ diff --git a/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets b/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets index 2259dc49208c8e5bfe0fe9ea0cde14e0c51e9ed8..2a8b11077dcd058a38e7b01651f434b0b9552d08 100644 --- a/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets +++ b/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets @@ -20,4 +20,4 @@ function main() { } -/* @@? 19:23 Error TypeError: Spread expression can be applied only to array or tuple type, but 'Object|null|undefined' is provided */ +/* @@? 19:23 Error Semantic error ESE0049: Spread expression can be applied only to array or tuple type, but 'Object|null|undefined' is provided */ diff --git a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_1.ets b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_1.ets index 26483b2780137c4e697099b19173c07c0e83d3ab..967e78cfa8e3866d2ff2b27f13785b803879ea1f 100644 --- a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_1.ets +++ b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_1.ets @@ -21,7 +21,4 @@ let args_tuple: [number, number] = [0, 1] let args_array: number[] = [2, 3] /* @@ label2 */foo(4, ...args_array) -/* @@@ label1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label1 Error TypeError: No matching call signature for foo(Int, [Double, Double]) */ -/* @@@ label2 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label2 Error TypeError: No matching call signature for foo(Int, Double) */ +/* @@? 17:3 Error Semantic error ESE0000: Cannot find name console */ diff --git a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_2.ets b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_2.ets index a5407b76f91f8ed4787688a74ea581267c105884..af26daab379874fc2cb1aa672525a1a54155a8a9 100644 --- a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_2.ets +++ b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_2.ets @@ -29,11 +29,4 @@ args_tuple = [0, 1] args_array = [2, 3] /* @@ label4 */moo(2, ...args_array) -/* @@@ label1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label1 Error TypeError: No matching call signature for foo([Double, Double]) */ -/* @@@ label2 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label2 Error TypeError: No matching call signature for foo(Double) */ -/* @@@ label3 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label3 Error TypeError: No matching call signature for moo(Int, [Double, Double]) */ -/* @@@ label4 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label4 Error TypeError: No matching call signature for moo(Int, Double) */ +/* @@? 17:3 Error Semantic error ESE0000: Cannot find name console */ diff --git a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_3.ets b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_3.ets index 89d5215fd1226415488589ea8be4a8376171f4aa..247e44c623edad11eeb289319fe11d6bb281f04b 100644 --- a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_3.ets +++ b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_3.ets @@ -29,11 +29,4 @@ args_tuple = [0, 1] args_array = [2, 3] /* @@ label4 */moo(2, ...args_array) -/* @@@ label1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label1 Error TypeError: No matching call signature for foo([Double, Double]) */ -/* @@@ label2 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label2 Error TypeError: No matching call signature for foo(Double) */ -/* @@@ label3 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label3 Error TypeError: No matching call signature for moo(Int, [Double, Double]) */ -/* @@@ label4 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label4 Error TypeError: No matching call signature for moo(Int, Double) */ +/* @@? 17:3 Error Semantic error ESE0000: Cannot find name console */ diff --git a/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg01.ets b/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg01.ets index 346e038a118c139cdee0e38a75a5b3360deb2467..8059fa89a0faebe0dd0aa7f849a5341f776f1311 100644 --- a/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg01.ets +++ b/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg01.ets @@ -26,12 +26,12 @@ function main() { let a2 = new A(...nums); } -/* @@? 18:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:31 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 18:39 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:41 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:9 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 19:13 Error SyntaxError: Unexpected token '.'. */ -/* @@? 19:14 Error TypeError: Variable 'fld' has already been declared. */ -/* @@? 19:20 Error TypeError: Unresolved reference p */ -/* @@? 21:1 Error SyntaxError: Unexpected token '}'. */ \ No newline at end of file +/* @@? 18:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:31 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 18:39 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:41 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:9 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 19:13 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 19:14 Error Semantic error ESE0351: Variable 'fld' has already been declared. */ +/* @@? 19:20 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg02.ets b/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg02.ets index 6c37863a775c31de50d27d99f08e1da146433ae3..d439d3ab0e30559f7cc8732ddfc0e11645dcdcac 100644 --- a/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg02.ets +++ b/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg02.ets @@ -26,4 +26,4 @@ function main() { let a2 = new A(1, 1.0, ...nums); } -/* @@@ label Error SyntaxError: Both optional and rest parameters are not allowed in function's parameter list. */ +/* @@@ label Error Syntax error ESY0015: Both optional and rest parameters are not allowed in function's parameter list. */ diff --git a/ets2panda/test/ast/parser/ets/static_block.ets b/ets2panda/test/ast/parser/ets/static_block.ets index 054302363657607fee25f1a324d2b4d0b8950bf7..7714b5ea85b05e50ab8dd41297946a7ce41ad2a2 100644 --- a/ets2panda/test/ast/parser/ets/static_block.ets +++ b/ets2panda/test/ast/parser/ets/static_block.ets @@ -21,5 +21,5 @@ class A { } } -/* @@? 20:12 Error SyntaxError: Unexpected return value. */ -/* @@? 20:12 Error TypeError: All return statements in the function should be empty or have a value. */ +/* @@? 20:12 Error Syntax error ESY0287: Unexpected return value. */ +/* @@? 20:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ diff --git a/ets2panda/test/ast/parser/ets/static_field_1.ets b/ets2panda/test/ast/parser/ets/static_field_1.ets index a711e4124553ad0fa6c299c14437f0361c17c930..2a7da80daee23d4cd656d8a9eb18b2f40b5ec288 100644 --- a/ets2panda/test/ast/parser/ets/static_field_1.ets +++ b/ets2panda/test/ast/parser/ets/static_field_1.ets @@ -18,4 +18,4 @@ class A { } new A()./* @@ label */bar -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_field_2.ets b/ets2panda/test/ast/parser/ets/static_field_2.ets index e0457f45a5b19fa6cce2dac856821ea88962568d..547ede93f3b6f84b6df4bbc5c902bd85952b77eb 100644 --- a/ets2panda/test/ast/parser/ets/static_field_2.ets +++ b/ets2panda/test/ast/parser/ets/static_field_2.ets @@ -18,4 +18,4 @@ class A { } (new A() as A)./* @@ label */bar -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_field_3.ets b/ets2panda/test/ast/parser/ets/static_field_3.ets index 2d3fd4b3a355f716e5296c90b311cfef6d8cf161..44907ea45c701fe48a64f7fa71605b3889329472 100644 --- a/ets2panda/test/ast/parser/ets/static_field_3.ets +++ b/ets2panda/test/ast/parser/ets/static_field_3.ets @@ -22,4 +22,4 @@ function main() { arr[0]./* @@ label */foo; } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_field_4.ets b/ets2panda/test/ast/parser/ets/static_field_4.ets index f012dcab619796102661c2ab282f924cc0424560..1882ece17f75ba8209075ec353ae2ff953959bc8 100644 --- a/ets2panda/test/ast/parser/ets/static_field_4.ets +++ b/ets2panda/test/ast/parser/ets/static_field_4.ets @@ -26,5 +26,5 @@ function main() { f()!./* @@ label2 */foo } -/* @@@ label1 Error TypeError: 'foo' is a static property of 'A' */ -/* @@@ label2 Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label1 Error Semantic error ESE0207: 'foo' is a static property of 'A' */ +/* @@@ label2 Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_field_5.ets b/ets2panda/test/ast/parser/ets/static_field_5.ets index aabed3382f4083fa0e6b3ca092234e7957507a2f..d6a8c93337b48ddbfeadba5b40e74af19271751c 100644 --- a/ets2panda/test/ast/parser/ets/static_field_5.ets +++ b/ets2panda/test/ast/parser/ets/static_field_5.ets @@ -47,4 +47,4 @@ function main() { d.c.b.a./* @@ label */boo } -/* @@@ label Error TypeError: 'boo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'boo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_1.ets b/ets2panda/test/ast/parser/ets/static_func_call_1.ets index a05228f5545417ac8246aef8a0ea028025665c41..651810539a02b589bed1de3bdd41aaa34bb1b419 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_1.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_1.ets @@ -18,4 +18,4 @@ class A { foo() { /* @@ label */bar(); } } -/* @@@ label Error TypeError: Static property 'bar' must be accessed through it's class 'A' */ +/* @@@ label Error Semantic error ESE0173: Static property 'bar' must be accessed through it's class 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_10.ets b/ets2panda/test/ast/parser/ets/static_func_call_10.ets index 0ece7d40e967b5607c705f3fc522e66f496a0d3e..21d58130eccf8d7d483ea5b62292f5d0b01ff6a8 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_10.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_10.ets @@ -47,4 +47,4 @@ function main() { d.c.b.a./* @@ label */foo() } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_2.ets b/ets2panda/test/ast/parser/ets/static_func_call_2.ets index 775353d917b942700a73ee2a6d6fe4e33816612d..458ce5dc91d083ead6c18ee9c2d64639a68ec37a 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_2.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_2.ets @@ -18,4 +18,4 @@ class A { foo() { this./* @@ label */bar(); } } -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_3.ets b/ets2panda/test/ast/parser/ets/static_func_call_3.ets index 6a017aa3a8d0f7a67b2ae956d645e735cfa57df5..9f6d3dd8eddc0a9d3aab1ec80907e4b2fb940c0b 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_3.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_3.ets @@ -20,4 +20,4 @@ class A { let a = new A() a./* @@ label */bar() -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_4.ets b/ets2panda/test/ast/parser/ets/static_func_call_4.ets index c6ed5fb46df97389474c80d284ff569fbaabaa62..aba2c94c49240817c74c4532cddc9525133c2285 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_4.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_4.ets @@ -19,4 +19,4 @@ class A { new A()./* @@ label */bar() -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_5.ets b/ets2panda/test/ast/parser/ets/static_func_call_5.ets index b9b671f2df7d6b82bc30d0715c1ba4aca12ba6fb..476110bbe1286c453a1a6125cc1714e1898e63a5 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_5.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_5.ets @@ -24,4 +24,4 @@ function main() { bb./* @@ label */foo() } -/* @@@ label Error TypeError: 'foo' is a static property of 'B' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'B' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_6.ets b/ets2panda/test/ast/parser/ets/static_func_call_6.ets index b0e31af436446ab291a386f18a376e50b113daaf..4cc9d69ba6d14477ec85b5db6a3f0c42f7017a28 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_6.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_6.ets @@ -23,4 +23,4 @@ class B extends A { } } -/* @@@ label Error TypeError: 'foo' is a static property of 'B' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'B' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_7.ets b/ets2panda/test/ast/parser/ets/static_func_call_7.ets index 70acfe1cd0f76680a00c47cdb22dfd3493ad5721..ab9a84e4772b299f47748769d592b00cf1182108 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_7.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_7.ets @@ -23,4 +23,4 @@ class B extends A { } } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_8.ets b/ets2panda/test/ast/parser/ets/static_func_call_8.ets index 0511949959c62cac6f09c8fabc483b8cf47b17e2..78340eefe100794178232ab1e77ec8b93737b97d 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_8.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_8.ets @@ -22,4 +22,4 @@ function main() { arr[0]./* @@ label */foo(); } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_func_call_9.ets b/ets2panda/test/ast/parser/ets/static_func_call_9.ets index edd4d973c6c3ed7104eb9648364200ef43379b85..d704d0bc0dbbe9f59a3a426d291d554c77b36edf 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_9.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_9.ets @@ -26,5 +26,5 @@ function main() { f()!./* @@ label2 */foo() } -/* @@@ label1 Error TypeError: 'foo' is a static property of 'A' */ -/* @@@ label2 Error TypeError: 'foo' is a static property of 'A' */ +/* @@@ label1 Error Semantic error ESE0207: 'foo' is a static property of 'A' */ +/* @@@ label2 Error Semantic error ESE0207: 'foo' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/static_function_override_4.ets b/ets2panda/test/ast/parser/ets/static_function_override_4.ets index 65cbbbc108cc4376f975e96100730956b44c7d69..e5f4c33088e84ccd9dd81273fdaeb6188f37b021 100644 --- a/ets2panda/test/ast/parser/ets/static_function_override_4.ets +++ b/ets2panda/test/ast/parser/ets/static_function_override_4.ets @@ -21,4 +21,4 @@ class BClass extends AClass { override bar/* @@ label */(): void {} } -/* @@@ label Error TypeError: Method bar(): void in BClass not overriding any method */ +/* @@@ label Error Semantic error ESE0136: Method bar(): void in BClass not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method.ets index fb2f82596ab6444d11fdf98ce38a3600d2148abf..abb8c08272530ec6a384fa98e0664a3f610c5e4f 100644 --- a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method.ets +++ b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method.ets @@ -23,4 +23,4 @@ class A /* @@ label */{ } } -/* @@@ label Error TypeError: Static $_invoke method and static $_instantiate method both exist in class/interface A is not allowed. */ +/* @@@ label Error Semantic error ESE0221: Static $_invoke method and static $_instantiate method both exist in class/interface A is not allowed. */ diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method_1.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method_1.ets index 75f6e923d87844dd110060988111198578bf6592..ad9aad40a21fc56fa1c1821e08c57814550a392a 100644 --- a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method_1.ets +++ b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method_1.ets @@ -25,4 +25,4 @@ class B extends A /* @@ label */{ } } -/* @@@ label Error TypeError: Static $_invoke method and static $_instantiate method both exist in class/interface B is not allowed. */ +/* @@@ label Error Semantic error ESE0221: Static $_invoke method and static $_instantiate method both exist in class/interface B is not allowed. */ diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature.ets index 094ce9a2ce7495c108ac4f59d92cb2154b8d5c37..8a838e8f17bcf53cff43ce3b6b85504bf0471e2b 100644 --- a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature.ets +++ b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature.ets @@ -23,5 +23,5 @@ function main() { A() } -/* @@? 23:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:5 Error TypeError: No matching call signature */ +/* @@? 23:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:5 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_1.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_1.ets index 3956680e07a52dd11f041de33826fe793c480105..d4bc5f555fb6cab78d2fb526b63039b717ccf6b0 100644 --- a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_1.ets +++ b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_1.ets @@ -21,5 +21,5 @@ function main() { A() } -/* @@? 21:5 Error TypeError: No static $_invoke method and static $_instantiate method in A. A() is not allowed. */ -/* @@? 21:5 Error TypeError: Type 'A' has no call signatures. */ +/* @@? 21:5 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in A. A() is not allowed. */ +/* @@? 21:5 Error Semantic error ESE0002: Type 'A' has no call signatures. */ diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_2.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_2.ets index 825c8316ad560de20b62b70c8be093bddb47a50a..05637c658f1c60f5eeff7c8d61bbfaceb8f74b72 100644 --- a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_2.ets +++ b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_2.ets @@ -23,5 +23,5 @@ function main() { A() } -/* @@? 23:5 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 23:5 Error TypeError: No matching call signature for $_instantiate(() => A) */ +/* @@? 23:5 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 23:5 Error Semantic error ESE0127: No matching call signature for $_instantiate(() => A) */ diff --git a/ets2panda/test/ast/parser/ets/string_literal_01.ets b/ets2panda/test/ast/parser/ets/string_literal_01.ets index 6703e372958a1d35e9bd6cafaf7215bf106ac235..81a6e2e6a55a623778f02964fe6fb2bda733d78e 100644 --- a/ets2panda/test/ast/parser/ets/string_literal_01.ets +++ b/ets2panda/test/ast/parser/ets/string_literal_01.ets @@ -15,6 +15,6 @@ let x = "\u{}"; -/* @@? 16:9 Error SyntaxError: Hexadecimal digit expected. */ -/* @@? 16:9 Error SyntaxError: Invalid Unicode escape. */ -/* @@? 16:9 Error SyntaxError: Newline is not allowed in strings */ +/* @@? 16:9 Error Syntax error ESY0248: Hexadecimal digit expected. */ +/* @@? 16:9 Error Syntax error ESY0091: Invalid Unicode escape. */ +/* @@? 16:9 Error Syntax error ESY0265: Newline is not allowed in strings */ diff --git a/ets2panda/test/ast/parser/ets/string_literal_const_cast.ets b/ets2panda/test/ast/parser/ets/string_literal_const_cast.ets index d265e8555759d3a03bc205f29f3fe93f97c5d11f..14bc53a12a74924cde03e68fa12a0743d283ae6e 100644 --- a/ets2panda/test/ast/parser/ets/string_literal_const_cast.ets +++ b/ets2panda/test/ast/parser/ets/string_literal_const_cast.ets @@ -15,8 +15,8 @@ let x = "literal str" as const -/* @@? 16:26 Error SyntaxError: 'as const' assertion is not supported. */ -/* @@? 16:26 Error SyntaxError: Unexpected token 'const'. */ -/* @@? 23:1 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 23:1 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 23:1 Error TypeError: Missing initializer in const declaration */ +/* @@? 16:26 Error Syntax error ESY0311: 'as const' assertion is not supported. */ +/* @@? 16:26 Error Syntax error ESY0227: Unexpected token 'const'. */ +/* @@? 23:1 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 23:1 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 23:1 Error Semantic error ESE0363: Missing initializer in const declaration */ diff --git a/ets2panda/test/ast/parser/ets/struct_export1.ets b/ets2panda/test/ast/parser/ets/struct_export1.ets index 6fa897ef35051f6641b2214c7fdba11f43751c9d..c7f21cae90f43ae2b9f0180f944dbdb62ad62405 100644 --- a/ets2panda/test/ast/parser/ets/struct_export1.ets +++ b/ets2panda/test/ast/parser/ets/struct_export1.ets @@ -18,4 +18,4 @@ export struct A { } -/* @@? 16:8 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_extends_class.ets b/ets2panda/test/ast/parser/ets/struct_extends_class.ets index 42709eee1d8615b26c2bd35adfccfcf261570698..fa3aa49e19b610b7e39f64390998379f644f6ad7 100644 --- a/ets2panda/test/ast/parser/ets/struct_extends_class.ets +++ b/ets2panda/test/ast/parser/ets/struct_extends_class.ets @@ -22,4 +22,4 @@ struct B extends A { } -/* @@? 20:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_extends_interface.ets b/ets2panda/test/ast/parser/ets/struct_extends_interface.ets index 719f558829c8bf6ea006dad3ed1b6096cef89745..81700a5b9c78db7627b80f21451437a6cac3af60 100644 --- a/ets2panda/test/ast/parser/ets/struct_extends_interface.ets +++ b/ets2panda/test/ast/parser/ets/struct_extends_interface.ets @@ -22,5 +22,5 @@ struct B extends A { } -/* @@? 20:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:18 Error TypeError: The super type of 'B' class is not extensible. */ +/* @@? 20:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:18 Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ diff --git a/ets2panda/test/ast/parser/ets/struct_extends_struct.ets b/ets2panda/test/ast/parser/ets/struct_extends_struct.ets index af090a527e457480c451fca729f3e709a23afecd..94b845cb1c93fee6a058f7409140831125f1c373 100644 --- a/ets2panda/test/ast/parser/ets/struct_extends_struct.ets +++ b/ets2panda/test/ast/parser/ets/struct_extends_struct.ets @@ -22,6 +22,6 @@ struct B extends A { } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:18 Error TypeError: struct B is not extensible. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:18 Error Semantic error ESE0177: struct B is not extensible. */ diff --git a/ets2panda/test/ast/parser/ets/struct_implements_interface.ets b/ets2panda/test/ast/parser/ets/struct_implements_interface.ets index 31481d72fa7d3786d03023322bcff9a627889f2e..b0c9d84770c82619ba6cd5e707ffd73da766fa71 100644 --- a/ets2panda/test/ast/parser/ets/struct_implements_interface.ets +++ b/ets2panda/test/ast/parser/ets/struct_implements_interface.ets @@ -22,4 +22,4 @@ struct B implements A { } -/* @@? 20:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_in_class.ets b/ets2panda/test/ast/parser/ets/struct_in_class.ets index 275cf87934f7cda8b2b953cec1ea7fbb19603c0e..535cafe362990535f064be6de09ba3a2f563f7ba 100644 --- a/ets2panda/test/ast/parser/ets/struct_in_class.ets +++ b/ets2panda/test/ast/parser/ets/struct_in_class.ets @@ -21,5 +21,5 @@ class A { } -/* @@? 18:5 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 18:5 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 18:5 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 18:5 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_in_interface.ets b/ets2panda/test/ast/parser/ets/struct_in_interface.ets index 1d6aafc6bfa10e5ec66e613961c152c0631c846a..bf6e8b7e4979fb650186c97b2743da1030213d6b 100644 --- a/ets2panda/test/ast/parser/ets/struct_in_interface.ets +++ b/ets2panda/test/ast/parser/ets/struct_in_interface.ets @@ -20,14 +20,14 @@ interface A { } } -/* @@? 17:16 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 18:12 Error TypeError: Cannot find type 'B'. */ -/* @@? 18:14 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:14 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 19:20 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 19:22 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 19:22 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@? 20:5 Error SyntaxError: Identifier expected. */ -/* @@? 21:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:16 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 17:18 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:18 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 18:12 Error Semantic error ESE0371: Cannot find type 'B'. */ +/* @@? 18:14 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:14 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 19:20 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 19:22 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 19:22 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@? 20:5 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/struct_in_struct.ets b/ets2panda/test/ast/parser/ets/struct_in_struct.ets index 96406ac56d2a47f5da3579cd4033de7d0af6807f..2cb20443bf101031e9a413a26f0cf899a7ddea96 100644 --- a/ets2panda/test/ast/parser/ets/struct_in_struct.ets +++ b/ets2panda/test/ast/parser/ets/struct_in_struct.ets @@ -21,6 +21,6 @@ struct A { } -/* @@? 18:5 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 18:5 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 18:5 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 18:5 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets b/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets index cdc157dbd5051411661877cb0773a556cc7068c3..a27d39ace4c085a8cdf8958f3d82085464196c20 100644 --- a/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets +++ b/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets @@ -20,4 +20,4 @@ abstract struct A { } } -/* @@? 16:10 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:10 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_invalid_local.ets b/ets2panda/test/ast/parser/ets/struct_invalid_local.ets index eae483b3e33f6bcab33dbbbe7e9c6c931024fb75..2197a6bb53e1b97dc37a326d91b828ac2f299992 100644 --- a/ets2panda/test/ast/parser/ets/struct_invalid_local.ets +++ b/ets2panda/test/ast/parser/ets/struct_invalid_local.ets @@ -19,4 +19,4 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Illegal start of STRUCT expression. */ +/* @@@ label Error Syntax error ESY0040: Illegal start of STRUCT expression. */ diff --git a/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets b/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets index 4ef929e9e6c37848faab5785255735412fdcafbe..7dec2c63c7cdc7f2638b702a780f99e4bcad6554 100644 --- a/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets +++ b/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets @@ -19,5 +19,5 @@ struct A { } } -/* @@? 17:5 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 17:5 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ diff --git a/ets2panda/test/ast/parser/ets/struct_keywords1.ets b/ets2panda/test/ast/parser/ets/struct_keywords1.ets index 7dcd3f5ee4243352140a7b5a6bdd91a18f524ada..61c960c2a9275b00483f24ce976e96731fbf2f15 100644 --- a/ets2panda/test/ast/parser/ets/struct_keywords1.ets +++ b/ets2panda/test/ast/parser/ets/struct_keywords1.ets @@ -54,4 +54,4 @@ struct AA { } } -/* @@? 42:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 42:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_keywords2.ets b/ets2panda/test/ast/parser/ets/struct_keywords2.ets index 01c146278ebb453dde6e56385d226e8f01005281..9a19ecb7c818f33ca5bba6e3513f5da2fefc718f 100644 --- a/ets2panda/test/ast/parser/ets/struct_keywords2.ets +++ b/ets2panda/test/ast/parser/ets/struct_keywords2.ets @@ -54,4 +54,4 @@ struct B { } } -/* @@? 41:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 41:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_keywords3.ets b/ets2panda/test/ast/parser/ets/struct_keywords3.ets index 93de56a5c0b4dfcfe2c0f3b5837e1ebe906c3a8c..fa0050389f6cff94127296bedddc6bb0d97ecd7a 100644 --- a/ets2panda/test/ast/parser/ets/struct_keywords3.ets +++ b/ets2panda/test/ast/parser/ets/struct_keywords3.ets @@ -83,5 +83,5 @@ struct Second { } -/* @@? 58:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 71:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 58:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 71:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_with_annotations.ets b/ets2panda/test/ast/parser/ets/struct_with_annotations.ets index 8f03d67f106f5d1256c636c8da6a90d3ee9779f1..ad4d25ff74cfff5fec104645069584bb7390c2a5 100644 --- a/ets2panda/test/ast/parser/ets/struct_with_annotations.ets +++ b/ets2panda/test/ast/parser/ets/struct_with_annotations.ets @@ -31,4 +31,4 @@ struct A { } -/* @@? 28:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 28:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/struct_with_component_annotation.ets b/ets2panda/test/ast/parser/ets/struct_with_component_annotation.ets index dadfaf733acfed91206a76297c2fb010b828b038..12a088125bdf0a3a67e84602afde79d0d6d340fc 100644 --- a/ets2panda/test/ast/parser/ets/struct_with_component_annotation.ets +++ b/ets2panda/test/ast/parser/ets/struct_with_component_annotation.ets @@ -25,5 +25,5 @@ struct A { } -/* @@? 22:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:2 Error TypeError: Cannot find type 'Component'. */ +/* @@? 20:2 Error Semantic error ESE0371: Cannot find type 'Component'. */ +/* @@? 22:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ diff --git a/ets2panda/test/ast/parser/ets/superInConstructor1.ets b/ets2panda/test/ast/parser/ets/superInConstructor1.ets index e1666bd8728ef0771a90ede55a0fa1e953d289c7..6be77befb017f812082457ae732096de2040077a 100644 --- a/ets2panda/test/ast/parser/ets/superInConstructor1.ets +++ b/ets2panda/test/ast/parser/ets/superInConstructor1.ets @@ -34,4 +34,4 @@ class B extends A { } } -/* @@@ label Error TypeError: Using super is not allowed in constructor */ +/* @@@ label Error Semantic error ESE0235: Using super is not allowed in constructor */ diff --git a/ets2panda/test/ast/parser/ets/superInConstructor2.ets b/ets2panda/test/ast/parser/ets/superInConstructor2.ets index 6afa6f51825c42e787270d5382be363da7c0d868..72e347325e1462681fd2712d8b667d9108b9e157 100644 --- a/ets2panda/test/ast/parser/ets/superInConstructor2.ets +++ b/ets2panda/test/ast/parser/ets/superInConstructor2.ets @@ -38,4 +38,4 @@ function alma(param: int) : int { return param; } -/* @@@ label Error TypeError: Using super is not allowed in constructor */ +/* @@@ label Error Semantic error ESE0235: Using super is not allowed in constructor */ diff --git a/ets2panda/test/ast/parser/ets/superInConstructor3.ets b/ets2panda/test/ast/parser/ets/superInConstructor3.ets index 2cbd62e5c48db4d07e3c2fedae0a50d940ff6bda..641ccf96588cf20fac93578c1ffad9f32f41b62d 100644 --- a/ets2panda/test/ast/parser/ets/superInConstructor3.ets +++ b/ets2panda/test/ast/parser/ets/superInConstructor3.ets @@ -44,4 +44,4 @@ function foo(arg : A) { return arg; } -/* @@@ label Error TypeError: Using super is not allowed in constructor */ +/* @@@ label Error Semantic error ESE0235: Using super is not allowed in constructor */ diff --git a/ets2panda/test/ast/parser/ets/superStaticCall.ets b/ets2panda/test/ast/parser/ets/superStaticCall.ets index 119114d65c7dcc820833527c47e5d9ad6bce8455..e884297b0083ddaa91de1d21030c2f9e9f20e993 100644 --- a/ets2panda/test/ast/parser/ets/superStaticCall.ets +++ b/ets2panda/test/ast/parser/ets/superStaticCall.ets @@ -30,4 +30,4 @@ function main() : void { x.alma(); } -/* @@@ label Error TypeError: 'korte' is a static property of 'A' */ +/* @@@ label Error Semantic error ESE0207: 'korte' is a static property of 'A' */ diff --git a/ets2panda/test/ast/parser/ets/super_field.ets b/ets2panda/test/ast/parser/ets/super_field.ets index 680e8dcaf7a0118e22d58bd33092863b57992742..2590c04c95f681fb078b2dfad31ad92d4d140fe4 100644 --- a/ets2panda/test/ast/parser/ets/super_field.ets +++ b/ets2panda/test/ast/parser/ets/super_field.ets @@ -23,4 +23,4 @@ class B extends A { } } -/* @@@ label Error TypeError: Class field 'value' defined by the parent class is not accessible in the child class via super. */ +/* @@@ label Error Semantic error ESE0377: Class field 'value' defined by the parent class is not accessible in the child class via super. */ diff --git a/ets2panda/test/ast/parser/ets/switch_alive_2.ets b/ets2panda/test/ast/parser/ets/switch_alive_2.ets index 59a09de8ca0aba99f7637eb93d35e331dad35386..f0f7b446b586dc69f88387f5a351ea4b56c5849c 100644 --- a/ets2panda/test/ast/parser/ets/switch_alive_2.ets +++ b/ets2panda/test/ast/parser/ets/switch_alive_2.ets @@ -24,4 +24,4 @@ function /* @@ label */main(): int { } } -/* @@@ label Error TypeError: Not all code paths return a value. */ +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/parser/ets/switch_alive_3.ets b/ets2panda/test/ast/parser/ets/switch_alive_3.ets index 8dd956bacc209ef2175581d1e56a7c6045395e85..89d8a4307aecb6783e23a3c5f1e7e64b8f85a3e4 100644 --- a/ets2panda/test/ast/parser/ets/switch_alive_3.ets +++ b/ets2panda/test/ast/parser/ets/switch_alive_3.ets @@ -26,4 +26,4 @@ function main(): int { return 0; } -/* @@@ label Warning Warning: Possible fall-through into case */ +/* @@@ label Warning Warning W0020: Possible fall-through into case */ diff --git a/ets2panda/test/ast/parser/ets/switch_const_int_compare_char_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_const_int_compare_char_duplicate.ets index 9cee2e20154530a252cefefb5aec3d02672829a5..2b4e7fafe952b1edca4d556b31895bfd9bb48d69 100644 --- a/ets2panda/test/ast/parser/ets/switch_const_int_compare_char_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_const_int_compare_char_duplicate.ets @@ -26,4 +26,4 @@ function main() { } } -/* @@? 20:28 Error TypeError: Switch case type 'int' is not comparable to discriminant type 'char' */ +/* @@? 20:28 Error Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'char' */ diff --git a/ets2panda/test/ast/parser/ets/switch_enum.ets b/ets2panda/test/ast/parser/ets/switch_enum.ets index ecccc8cdaee3fe1be8ba450b40bb654e7ff26226..fc2319b960780d864c7ed11ccd980d9838ea96d0 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum.ets @@ -24,4 +24,4 @@ function main(): void { } } -/* @@@ label Error TypeError: Case duplicate */ +/* @@@ label Error Semantic error ESE0165: Case duplicate */ diff --git a/ets2panda/test/ast/parser/ets/switch_enum2.ets b/ets2panda/test/ast/parser/ets/switch_enum2.ets index 3bb5002d1d2c8a9bd18ea51618a17d72572b29db..bd34690403e42a778182296f265d573a325cd677 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum2.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum2.ets @@ -23,4 +23,4 @@ function main(): void { } } -/* @@@ label Error TypeError: Switch case type 'int' is not comparable to discriminant type 'Color' */ +/* @@@ label Error Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'Color' */ diff --git a/ets2panda/test/ast/parser/ets/switch_enum_case_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_enum_case_duplicate.ets index d1638ba35da00419b2c0dc21c0cdf432c3d6f85a..7300f81389def4bb9df1cee133c8032b0d9bdaf1 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum_case_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum_case_duplicate.ets @@ -29,4 +29,4 @@ function main() { } } -/* @@@ label Error TypeError: Case duplicate */ +/* @@@ label Error Semantic error ESE0165: Case duplicate */ diff --git a/ets2panda/test/ast/parser/ets/switch_enum_string_case_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_enum_string_case_duplicate.ets index 1c4623761cf683201482c2a32a22dc95176d3023..2c30a1c45bf77616aef3e57b09f1980363f9340a 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum_string_case_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum_string_case_duplicate.ets @@ -24,4 +24,4 @@ function main() { } } -/* @@@ label Error TypeError: Case duplicate */ +/* @@@ label Error Semantic error ESE0165: Case duplicate */ diff --git a/ets2panda/test/ast/parser/ets/switch_invalid.ets b/ets2panda/test/ast/parser/ets/switch_invalid.ets index 7c72bea595dfbcfaeb807895046d27a9dddf8110..8f48b513cc9230c043d70686e3bf68018b90489a 100644 --- a/ets2panda/test/ast/parser/ets/switch_invalid.ets +++ b/ets2panda/test/ast/parser/ets/switch_invalid.ets @@ -16,52 +16,52 @@ switch:[11](q): [12]{: [13]case: [14]1:: [15]{: [16]q: [17] +=: [18]2;: [38]try: [39]{: [40]s: [41] +=: [42]"cba";: [43]q: [44] +=: [45]5;: [46]throw: [98] -/* @@? 16:7 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:7 Error SyntaxError: Expected '(', got ':'. */ -/* @@? 16:7 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:7 Error TypeError: Incompatible types. Found: *ERROR_TYPE*, required: char , byte , short , int, long , Char , Byte , Short , Int, Long , String or an enum type */ -/* @@? 16:15 Error SyntaxError: Expected '{', got ':'. */ -/* @@? 16:15 Error SyntaxError: Expected ')', got ':'. */ -/* @@? 16:15 Error SyntaxError: Unexpected token ':', expected 'case' or 'default'. */ -/* @@? 16:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 16:22 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:22 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:28 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 16:32 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:32 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:38 Error SyntaxError: Unexpected token '1'. */ -/* @@? 16:39 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:40 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:40 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:46 Error SyntaxError: Unexpected token '{'. */ -/* @@? 16:47 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:47 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:53 Error SyntaxError: Unexpected token 'q'. */ -/* @@? 16:56 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 16:56 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 16:61 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 16:63 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:69 Error SyntaxError: Unexpected token '2'. */ -/* @@? 16:71 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:71 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 17:5 Error SyntaxError: Unexpected token 'try'. */ -/* @@? 17:5 Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ -/* @@? 17:8 Error SyntaxError: Expected '{', got ':'. */ -/* @@? 17:8 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:14 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:15 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token 's'. */ -/* @@? 17:24 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:29 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 17:31 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:37 Error SyntaxError: Unexpected token 'cba'. */ -/* @@? 17:43 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:49 Error SyntaxError: Unexpected token 'q'. */ -/* @@? 17:52 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:57 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 17:59 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:65 Error SyntaxError: Unexpected token '5'. */ -/* @@? 17:67 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:73 Error SyntaxError: Unexpected token 'throw'. */ -/* @@? 17:78 Error SyntaxError: Unexpected token ':'. */ -/* @@? 68:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 16:7 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:7 Error Syntax error ESY0230: Expected '(', got ':'. */ +/* @@? 16:7 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:7 Error Semantic error ESE0162: Incompatible types. Found: *ERROR_TYPE*, required: char , byte , short , int, long , Char , Byte , Short , Int, Long , String or an enum type */ +/* @@? 16:15 Error Syntax error ESY0230: Expected '{', got ':'. */ +/* @@? 16:15 Error Syntax error ESY0230: Expected ')', got ':'. */ +/* @@? 16:15 Error Syntax error ESY0231: Unexpected token ':', expected 'case' or 'default'. */ +/* @@? 16:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 16:22 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:22 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:28 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 16:32 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:32 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:38 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@? 16:39 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:40 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:40 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:46 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 16:47 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:47 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:53 Error Syntax error ESY0227: Unexpected token 'q'. */ +/* @@? 16:56 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 16:56 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 16:61 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 16:63 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:69 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 16:71 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:71 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token 'try'. */ +/* @@? 17:5 Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ +/* @@? 17:8 Error Syntax error ESY0230: Expected '{', got ':'. */ +/* @@? 17:8 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:14 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:15 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token 's'. */ +/* @@? 17:24 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:29 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 17:31 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:37 Error Syntax error ESY0227: Unexpected token 'cba'. */ +/* @@? 17:43 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:49 Error Syntax error ESY0227: Unexpected token 'q'. */ +/* @@? 17:52 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:57 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 17:59 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:65 Error Syntax error ESY0227: Unexpected token '5'. */ +/* @@? 17:67 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:73 Error Syntax error ESY0227: Unexpected token 'throw'. */ +/* @@? 17:78 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 68:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum.ets b/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum.ets index dd4f092bcaaecb6246f0f7a1d8b41372687f22c0..25958844231e26a6e38b60ed4653931c0c063ff5 100644 --- a/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum.ets +++ b/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum.ets @@ -40,5 +40,5 @@ function main() { } } -/* @@@ label Error TypeError: Switch case type 'A' is not comparable to discriminant type 'E' */ -/* @@@ label1 Error TypeError: Switch case type 'A' is not comparable to discriminant type 'E' */ +/* @@@ label Error Semantic error ESE0262: Switch case type 'A' is not comparable to discriminant type 'E' */ +/* @@@ label1 Error Semantic error ESE0262: Switch case type 'A' is not comparable to discriminant type 'E' */ diff --git a/ets2panda/test/ast/parser/ets/switch_readonly_member_enum_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_readonly_member_enum_duplicate.ets index 1d5b8815e21c62e53dfc7f1f685ff625e49def03..40fd4db1798e416ff76c6d1baed06b550c5ea0c1 100644 --- a/ets2panda/test/ast/parser/ets/switch_readonly_member_enum_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_readonly_member_enum_duplicate.ets @@ -40,4 +40,4 @@ function main() { } } -/* @@@ label Error TypeError: Case duplicate */ +/* @@@ label Error Semantic error ESE0165: Case duplicate */ diff --git a/ets2panda/test/ast/parser/ets/switch_readonly_member_number_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_readonly_member_number_duplicate.ets index 74b1b4f4a64d1c0676faa1258c7cf49cebe0d085..5ca788e41929d43108dd0aa2b2099849c3b7b82b 100644 --- a/ets2panda/test/ast/parser/ets/switch_readonly_member_number_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_readonly_member_number_duplicate.ets @@ -32,4 +32,4 @@ function main() { } } -/* @@? 27:28 Error TypeError: Switch case type 'int' is not comparable to discriminant type 'char' */ +/* @@? 27:28 Error Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'char' */ diff --git a/ets2panda/test/ast/parser/ets/swtich_not_const.ets b/ets2panda/test/ast/parser/ets/swtich_not_const.ets index e01c4e24742249cf06c225b5dd359d68b88ae4dd..263dba3e34d47023b33d1ee17d5ffdbc2a312e56 100644 --- a/ets2panda/test/ast/parser/ets/swtich_not_const.ets +++ b/ets2panda/test/ast/parser/ets/swtich_not_const.ets @@ -24,4 +24,4 @@ function main() { } } -/* @@@ label Error TypeError: Constant expression required */ +/* @@@ label Error Semantic error ESE0163: Constant expression required */ diff --git a/ets2panda/test/ast/parser/ets/test_type_alias1.ets b/ets2panda/test/ast/parser/ets/test_type_alias1.ets index e1f3d4cf4fb619ecc62b3308fd715ff117793b38..209d0be59545fe6be9e0bd94a296b466deb80c10 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias1.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias1.ets @@ -15,7 +15,7 @@ type 5 = number; -/* @@? 16:1 Error TypeError: Unresolved reference type */ -/* @@? 16:6 Error SyntaxError: Unexpected token '5'. */ -/* @@? 16:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 16:8 Error SyntaxError: Invalid left-hand side in assignment expression. */ +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference type */ +/* @@? 16:6 Error Syntax error ESY0227: Unexpected token '5'. */ +/* @@? 16:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 16:8 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ diff --git a/ets2panda/test/ast/parser/ets/test_type_alias10.ets b/ets2panda/test/ast/parser/ets/test_type_alias10.ets index 79ed9bd2d0461a575f64b290b619da5092ebd8b7..efb0f63a28859462cb2984d49aa031476f0451c0 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias10.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias10.ets @@ -16,4 +16,4 @@ type firstType = secondType; /* @@ label */type secondType = firstType; -/* @@@ label Error TypeError: Circular type alias reference */ +/* @@@ label Error Semantic error ESE0311: Circular type alias reference */ diff --git a/ets2panda/test/ast/parser/ets/test_type_alias2.ets b/ets2panda/test/ast/parser/ets/test_type_alias2.ets index 7a71e94ce32217a905c56119b51c3b236669beee..a91c309f8be543b75a6b9897b824ff7cc1fc50e3 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias2.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias2.ets @@ -15,4 +15,4 @@ type bar /* @@ label */number; -/* @@@ label Error SyntaxError: Expected '=', got 'identification literal'. */ +/* @@@ label Error Syntax error ESY0230: Expected '=', got 'identification literal'. */ diff --git a/ets2panda/test/ast/parser/ets/test_type_alias3.ets b/ets2panda/test/ast/parser/ets/test_type_alias3.ets index 3ff4cbb38cb89513d96acbccc565c531f1eb6e02..7788c8702dbcfc06d2f3040e8ffe9701f7bc7fa6 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias3.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias3.ets @@ -15,4 +15,4 @@ type foo = /* @@ label */; -/* @@@ label Error SyntaxError: Invalid Type. */ +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/test_type_alias4.ets b/ets2panda/test/ast/parser/ets/test_type_alias4.ets index d7fc3f50d8fe71c0d9138f2a0cf74e72054789e9..2213c72dc2386a69ea1a100c4f3907d9756ac0f4 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias4.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias4.ets @@ -16,4 +16,4 @@ type x = int; type /* @@ label */x = double; -/* @@@ label Error TypeError: Variable 'x' has already been declared. */ +/* @@@ label Error Semantic error ESE0351: Variable 'x' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ets/thisInConstructor.ets b/ets2panda/test/ast/parser/ets/thisInConstructor.ets index 652a510e20036ec34d6fb5506240b3eca61fd148..6fcbcbaf1c54e2f444e564c61ad665cc305a0ca5 100644 --- a/ets2panda/test/ast/parser/ets/thisInConstructor.ets +++ b/ets2panda/test/ast/parser/ets/thisInConstructor.ets @@ -30,4 +30,4 @@ class B extends A { } } -/* @@@ label Error TypeError: Using this is not allowed in constructor */ +/* @@@ label Error Semantic error ESE0235: Using this is not allowed in constructor */ diff --git a/ets2panda/test/ast/parser/ets/this_type_class_field_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_class_field_invalid.ets index 6561a2551f43d3436422825a68befc5d39306ad0..1c264c5a8c68b6b1b338389274ddc2d8e2f38d68 100644 --- a/ets2panda/test/ast/parser/ets/this_type_class_field_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_class_field_invalid.ets @@ -18,4 +18,4 @@ class A { attr_a: /* @@ label */this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_class_method_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_class_method_parameter_invalid.ets index ed587076e663e95e2413352762216a7e9f20b891..9544b70ed8f0f6a19e9a6249b8423a9c04e47a42 100644 --- a/ets2panda/test/ast/parser/ets/this_type_class_method_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_class_method_parameter_invalid.ets @@ -17,4 +17,4 @@ class A { foo(arg1: int, arg2: /* @@ label */this) {} } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_class_static_method_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_class_static_method_parameter_invalid.ets index 8eed4266ad9baf1e76d95ec2a59025f4a6b5a601..ff9a0234cf35bcab1afb042d86428fd017a61b59 100644 --- a/ets2panda/test/ast/parser/ets/this_type_class_static_method_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_class_static_method_parameter_invalid.ets @@ -17,4 +17,4 @@ class A { static foo(arg1: int, arg2: /* @@ label */this) {} } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_class_static_method_return_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_class_static_method_return_invalid.ets index 0dceb8d82ab5eab525a00c19477ea7b57c9470b6..9478c21a3b1cca9aae617e0c88d0291d47e7a68c 100644 --- a/ets2panda/test/ast/parser/ets/this_type_class_static_method_return_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_class_static_method_return_invalid.ets @@ -17,5 +17,5 @@ class A { static foo(arg1: int, arg2: /* @@ label */this) { return this; } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 17:62 Error TypeError: 'this' cannot be referenced from a static context */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 17:62 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ diff --git a/ets2panda/test/ast/parser/ets/this_type_function_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_function_parameter_invalid.ets index 5333744910e634063041ddc10c5dd1646f1649e8..50a5617b6a59f1e65cb1417c88971056b08ccc22 100644 --- a/ets2panda/test/ast/parser/ets/this_type_function_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_function_parameter_invalid.ets @@ -15,4 +15,4 @@ function foo(arg1: int, arg2: /* @@ label */this) {} -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_function_return_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_function_return_invalid.ets index 549cfdf8be116a688021f4657f2f75625a869883..dbed1ed5ad5c78f4b1044e729adfb697bbdc0084 100644 --- a/ets2panda/test/ast/parser/ets/this_type_function_return_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_function_return_invalid.ets @@ -15,6 +15,6 @@ function foo(arg1: int): /* @@ label */this { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 16:54 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 16:54 Error TypeError: Type 'Error' is not compatible with the enclosing method's return type 'ETSGLOBAL' */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 16:54 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 16:54 Error Semantic error ESE0091: Type 'Error' is not compatible with the enclosing method's return type 'ETSGLOBAL' */ diff --git a/ets2panda/test/ast/parser/ets/this_type_instanceof_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_instanceof_invalid.ets index 0b96d94e59b46f9cde64ffb081c20bbda9f22d09..228dfe7b79a067155eb15f03f05247ead160c51d 100644 --- a/ets2panda/test/ast/parser/ets/this_type_instanceof_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_instanceof_invalid.ets @@ -61,14 +61,14 @@ class C { } } -/* @@? 20:28 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ -/* @@? 36:22 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ -/* @@? 43:22 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ -/* @@? 50:27 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ -/* @@? 50:31 Error SyntaxError: Expected ')', got '.'. */ -/* @@? 50:31 Error SyntaxError: Unexpected token '.'. */ -/* @@? 50:32 Error SyntaxError: Unexpected token 'b'. */ -/* @@? 50:32 Error TypeError: Property 'b' must be accessed through 'this' */ -/* @@? 50:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 50:35 Error SyntaxError: Unexpected token '{'. */ -/* @@? 57:22 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 20:28 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 36:22 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 43:22 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 50:27 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 50:31 Error Syntax error ESY0230: Expected ')', got '.'. */ +/* @@? 50:31 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 50:32 Error Syntax error ESY0227: Unexpected token 'b'. */ +/* @@? 50:32 Error Semantic error ESE0145: Property 'b' must be accessed through 'this' */ +/* @@? 50:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 50:35 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 57:22 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_in_class_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_in_class_invalid.ets index f59ba4f21ab44bcf56c593c2a17c01df27b15f69..28ce707b28f455e9e24b282057004236f60b6615 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_in_class_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_in_class_invalid.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_invalid.ets index 7de38bf16268a4806fc22c55799691e12e5be554..73f7e3bcbfdf4d2f96923745ebdbdb88043e2354 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_invalid.ets @@ -15,4 +15,4 @@ let x: (i: int, t: /* @@ label */this) => number; -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_in_class_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_in_class_invalid.ets index e8996e7b02fe8367107735a335272f654edc02e6..1dc5aab063c80ffac55df0d805701444ca875f75 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_in_class_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_in_class_invalid.ets @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_invalid.ets index a4f3d149351fcb8d42415c16751fd92f012a8445..d200f50015f002ff142d7e68fe5a68147cc3db5b 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_invalid.ets @@ -15,4 +15,4 @@ let x: (i: int, n: number) => /* @@ label */this; -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_in_class_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_in_class_invalid.ets index 018061ac843f13c35328635603f1b1d6c8248168..b07222c7829f92efa1fc658a5c8cf6f7a888c1b2 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_in_class_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_in_class_invalid.ets @@ -20,4 +20,4 @@ class A { } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_in_class_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_in_class_invalid.ets index aa1727e92082aae2c83614c56465fb0169afc7e2..e2753b4514bb897283d9e3e72c93e34abe82fd84 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_in_class_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_in_class_invalid.ets @@ -20,4 +20,4 @@ class A { } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/too_many_expression.ets b/ets2panda/test/ast/parser/ets/too_many_expression.ets index 3588b1597785bc417f2e55bfbf2565768b8caee3..dcfd7595ba536ad18a7c4979bb6be4eaeeaa6b1c 100644 --- a/ets2panda/test/ast/parser/ets/too_many_expression.ets +++ b/ets2panda/test/ast/parser/ets/too_many_expression.ets @@ -15,5 +15,5 @@ (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( -/* @@? 16:513 Error SyntaxError: Maximum allowed nesting level exceeded. */ -/* @@? 19:67 Error SyntaxError: Unexpected token, expected ')'. */ \ No newline at end of file +/* @@? 16:513 Error Syntax error ESY0305: Maximum allowed nesting level exceeded. */ +/* @@? 20:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ diff --git a/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets b/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets index 34985816d112490c281acefc2fad4fdf0adfa79b..524707b4c72889490cb249c02b6caa0d6e6548e9 100644 --- a/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets +++ b/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets @@ -17,4 +17,4 @@ } -/* @@@ label Error SyntaxError: Unexpected token 'static'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'static'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_comma_1.ets b/ets2panda/test/ast/parser/ets/trailing_comma_1.ets index 3bc32586c949fffa9d73f02178436b3f8757a27d..c5be6c6d9bc0b83324a21dddd015bdf90b472900 100644 --- a/ets2panda/test/ast/parser/ets/trailing_comma_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_comma_1.ets @@ -35,35 +35,35 @@ foo(,a[0]) foo(a[0] a[1]) foo(,) -/* @@? 16:30 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 24:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:15 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 28:12 Error SyntaxError: Unexpected token ','. */ -/* @@? 28:14 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 28:14 Error SyntaxError: Unexpected token '2'. */ -/* @@? 28:15 Error SyntaxError: Unexpected token ','. */ -/* @@? 28:16 Error SyntaxError: Unexpected token ']'. */ -/* @@? 30:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:1 Error TypeError: No matching call signature for foo(a[0], a[1], ...a) */ -/* @@? 31:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:11 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:17 Error TypeError: Spread argument for the rest parameter can be only one. */ -/* @@? 32:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 32:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 32:11 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 32:11 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 32:11 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 32:15 Error SyntaxError: Unexpected token ')'. */ -/* @@? 33:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 33:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 34:5 Error SyntaxError: Unexpected token ','. */ -/* @@? 34:6 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 34:6 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 34:6 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 34:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 35:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 35:10 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 35:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 35:10 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 35:14 Error SyntaxError: Unexpected token ')'. */ -/* @@? 36:5 Error SyntaxError: Unexpected token ','. */ +/* @@? 16:30 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 24:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:15 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 28:12 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 28:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 28:14 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 28:15 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 28:16 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 30:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:1 Error Semantic error ESE0127: No matching call signature for foo(a[0], a[1], ...a) */ +/* @@? 31:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:11 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:17 Error Semantic error ESE0123: Spread argument for the rest parameter can be only one. */ +/* @@? 32:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 32:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 32:11 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 32:11 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 32:11 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 32:15 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 33:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 33:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 34:5 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 34:6 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 34:6 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 34:6 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 34:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 35:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 35:10 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 35:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 35:10 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 35:14 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 36:5 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_comma_2.ets b/ets2panda/test/ast/parser/ets/trailing_comma_2.ets index d2ec51613e8280210c80070ec230b269e16271a1..8fc76360534dd2bb235ded5a03c7195b24894558 100644 --- a/ets2panda/test/ast/parser/ets/trailing_comma_2.ets +++ b/ets2panda/test/ast/parser/ets/trailing_comma_2.ets @@ -19,8 +19,8 @@ class C { let a = new C(12,) -/* @@@ label1 Error SyntaxError: Unexpected token ','. */ -/* @@? 20:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 20:9 Error TypeError: No matching construct signature for trailing_comma_2.C(Int) */ -/* @@? 20:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 20:9 Error TypeError: No matching construct signature for trailing_comma_2.C(Int) */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 20:9 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 20:9 Error Semantic error ESE0127: No matching construct signature for trailing_comma_2.C(Int) */ +/* @@? 20:9 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 20:9 Error Semantic error ESE0127: No matching construct signature for trailing_comma_2.C(Int) */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/double_trailing_lambda_1.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/double_trailing_lambda_1.ets index 74e47ee4f4114c6a71d61c266468b9630524a033..6e92852d72776c49853b3f55355b47cbf467fa85 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/double_trailing_lambda_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/double_trailing_lambda_1.ets @@ -17,4 +17,4 @@ function foo(a?:number, b?:()=>void, c?:()=>void){} foo(){}{} -/* @@? 18:8 Error SyntaxError: Unexpected token '{'. */ \ No newline at end of file +/* @@? 18:8 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/empty_vs_nonempty_lambda.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/empty_vs_nonempty_lambda.ets index f7270078e3cb7b4c8d819277e852af07209f1d74..dd3fa2a66e4f7a6708906a79dd93b66de4febc0c 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/empty_vs_nonempty_lambda.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/empty_vs_nonempty_lambda.ets @@ -42,5 +42,5 @@ function testEmptyLambda() { }; } -/* @@? 40:5 Error TypeError: Expected 2 arguments, got 1. */ -/* @@? 40:5 Error TypeError: No matching call signature for check("test") */ \ No newline at end of file +/* @@? 40:5 Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@? 40:5 Error Semantic error ESE0127: No matching call signature for check("test") */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_1.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_1.ets index f4837d017aa5bb4e1be686cf73810c7baf22894c..181ea66106ca0fc027d618c1988a45eb3c8f7048 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_1.ets @@ -39,6 +39,6 @@ function testExtraTrailing() { }; } -/* @@? 32:5 Error TypeError: No matching call signature with trailing lambda */ -/* @@? 37:5 Error TypeError: No matching call signature for process(Double, "ok") */ -/* @@? 37:18 Error TypeError: Type '"ok"' is not compatible with type '() => void|undefined' at index 2 */ +/* @@? 32:5 Error Semantic error ESE0140: No matching call signature with trailing lambda */ +/* @@? 37:5 Error Semantic error ESE0127: No matching call signature for process(Double, "ok") */ +/* @@? 37:18 Error Semantic error ESE0046: Type '"ok"' is not compatible with type '() => void|undefined' at index 2 */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_2.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_2.ets index 62cbf9b829972536c2f722c87fcfdc896347ae55..24b30c6adad3e03adbe39731fb25e8ddfafc78be 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_2.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_2.ets @@ -34,4 +34,4 @@ function testExtraTrailing() { }; } -/* @@? 32:5 Error TypeError: No matching call signature with trailing lambda */ +/* @@? 32:5 Error Semantic error ESE0140: No matching call signature with trailing lambda */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_1.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_1.ets index 95bf39bd295359335468dfb1af89285f971f9ca6..77e0b18e65148736fe066b074a1fd30329956bca 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_1.ets @@ -23,4 +23,4 @@ function main() { } } -/* @@@ label Error TypeError: Unexpected return value, enclosing method return type is void. */ +/* @@@ label Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_2.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_2.ets index 90b3b80d959b2bfe5490e434999877e930b197af..6a89d90e6ea398424940feda879936d33896e77f 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_2.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_2.ets @@ -23,4 +23,4 @@ function main() { } } -/* @@@ label Error TypeError: Unexpected return value, enclosing method return type is void. */ +/* @@@ label Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_1.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_1.ets index a411511e00fd6b6548020e84db487ac4d206af88..9d7ff52cf1227f95266a1ee7dc4c491821d633dc 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_1.ets @@ -23,4 +23,4 @@ function f(c: ()=>void) { } -/* @@@ label Error TypeError: No matching call signature with trailing lambda */ +/* @@@ label Error Semantic error ESE0140: No matching call signature with trailing lambda */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_10.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_10.ets index 295914248459f181e41b669cb37920770fca774b..28fcb1687be50cb3465766fa086e46afa9a2058e 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_10.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_10.ets @@ -23,4 +23,4 @@ function main(): void { new A() { console.print(2); }; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:13 Error SyntaxError: Unexpected token '{'. */ +/* @@? 23:13 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_2.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_2.ets index fdfa09e0614a0f3ebe9c6b010cbff3b4de1b9635..0a0c641da9be5b4786f212b7cdba4f2e670ad812 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_2.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_2.ets @@ -23,5 +23,5 @@ function main() { } } -/* @@? 21:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 21:5 Error TypeError: No matching call signature */ +/* @@? 21:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 21:5 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_3.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_3.ets index bed0ab08160e5c3be1b8b307ec313d69751dcf92..3bf2b93de6714d7dc6f827cc34f92a7bc05188c3 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_3.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_3.ets @@ -23,6 +23,6 @@ function main(): void { new A() {}; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:5 Error TypeError: No matching construct signature */ -/* @@? 23:13 Error SyntaxError: Unexpected token '{'. */ +/* @@? 23:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:5 Error Semantic error ESE0128: No matching construct signature */ +/* @@? 23:13 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_4.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_4.ets index 725e5fce4fdd7f34d98b92ccd3f57f687f540460..c9f140a7f6cd3dbcb51a2dab6d5d4c7d3502fb55 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_4.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_4.ets @@ -23,6 +23,6 @@ function main(): void { new A {}; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:5 Error TypeError: No matching construct signature */ -/* @@? 23:11 Error SyntaxError: Unexpected token '{'. */ +/* @@? 23:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:5 Error Semantic error ESE0128: No matching construct signature */ +/* @@? 23:11 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_5.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_5.ets index bd5d20efe0b0534b1365cefab3382adb4b33bbc6..18443380dd89fe1e137e59d9636fe5022e4c0e75 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_5.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_5.ets @@ -23,6 +23,6 @@ function main(): void { new A() { console.print(2); }; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:5 Error TypeError: No matching construct signature */ -/* @@? 23:13 Error SyntaxError: Unexpected token '{'. */ +/* @@? 23:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:5 Error Semantic error ESE0128: No matching construct signature */ +/* @@? 23:13 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_6.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_6.ets index 9d29273a826bf4e1705c107a90c85b2740f9f8af..8d7acafa63be60af28ca1e4fade0b37b603ade72 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_6.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_6.ets @@ -23,4 +23,4 @@ function f(c?: ()=>void) { } -/* @@@ label Error TypeError: No matching call signature with trailing lambda */ +/* @@@ label Error Semantic error ESE0140: No matching call signature with trailing lambda */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_8.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_8.ets index b80f49af56e3aee922324335216786f159c1d086..fdaefa3240d90de36776670d5c23d78d5a5c3995 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_8.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_8.ets @@ -23,4 +23,4 @@ function main(): void { new A() {}; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:13 Error SyntaxError: Unexpected token '{'. */ +/* @@? 23:13 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_9.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_9.ets index b168957e53cb22071af037a4ae3e4ea00ebc405b..d50a5da9772721cd7288cc808e430ccb81d74c1d 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_9.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_9.ets @@ -23,4 +23,4 @@ function main(): void { new A {}; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:11 Error SyntaxError: Unexpected token '{'. */ +/* @@? 23:11 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_omit_call_parentheses.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_omit_call_parentheses.ets index c4e618d2d9a9a92f8cbbe0ed9f5bf86c2b8c6b5e..e83c1a8d99f22d7ae40159db7f3bb65e248c658c 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_omit_call_parentheses.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_omit_call_parentheses.ets @@ -23,4 +23,4 @@ function main() { } } -/* @@@ label Error SyntaxError: Unexpected token '{'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/tryBlockOnly.ets b/ets2panda/test/ast/parser/ets/tryBlockOnly.ets index af8966afe914a8283a81605fba65c60cf9e6a092..86b0b92571e44174223c13a99d3018a3b7eb98b8 100644 --- a/ets2panda/test/ast/parser/ets/tryBlockOnly.ets +++ b/ets2panda/test/ast/parser/ets/tryBlockOnly.ets @@ -19,4 +19,4 @@ function main() : int { return 0; } -/* @@@ label Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ +/* @@@ label Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_1.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_1.ets index 7bf5655f13fa10d9d5b3835204fd0e6d792b6d0b..a6fc3c5f729e90229434d1bb5f8854cfdacdbc92 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_1.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_1.ets @@ -66,4 +66,4 @@ function foo5(): int { return 2; } } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_2.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_2.ets index 6a456013e9e371754c24129a38f18a763212131a..8e9dace42cec23a1e5dfe23f2e73cea63cffd221 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_2.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_2.ets @@ -21,4 +21,4 @@ function /* @@ label */foo(): int { } } -/* @@@ label Error TypeError: Not all code paths return a value. */ +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_3.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_3.ets index a1a950a348b1c9fe3e3d0cd096e5c3c2a67cdd13..e8b03a489f1b9fc2e73667d5d764569f3a74cecf 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_3.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_3.ets @@ -25,4 +25,4 @@ function /* @@ label */foo(): int { } } -/* @@@ label Error TypeError: Not all code paths return a value. */ +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_4.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_4.ets index f578fdd2cf7ed54641f7bf16d6bae77840580ec2..c9ddb75b39466441223c59c574bc1d41590034ad 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_4.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_4.ets @@ -24,4 +24,4 @@ function /* @@ label */foo(): int { } } -/* @@@ label Error TypeError: Not all code paths return a value. */ +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_5.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_5.ets index f2328e1f53d21dc457c263e3ed53622b4ff577dc..95ad7e9d40ec22a16d50fff0d48ae01d0f0245c4 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_5.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_5.ets @@ -26,4 +26,4 @@ function foo(): int { } } -/* @@@ label Warning Warning: Unreachable statement. */ +/* @@@ label Warning Warning W0026: Unreachable statement. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_6.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_6.ets index 40fe55f8cca60b657f80b229a2c79d58cefbcd8f..ed9f15027237733b85b18b23e58ab7e3de8f2fd2 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_6.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_6.ets @@ -25,5 +25,5 @@ function foo(): int { } -/* @@@ label1 Warning Warning: Unreachable statement. */ -/* @@@ label Warning Warning: Finally clause cannot complete normally */ +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ +/* @@@ label1 Warning Warning W0026: Unreachable statement. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_7.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_7.ets index 8f1984ceaa199dff2c369727e48b6c691d447301..75399f896972a0bce643f341f97f17d439da3ab5 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_7.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_7.ets @@ -23,4 +23,4 @@ function /* @@ label */foo(): int { } } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_8.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_8.ets index 356e8c5c6dabc7930c1b5fd9f1c877d78f240848..17d571ea0f021c9fa1f3b5e7006ae4943d056ad0 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_8.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_8.ets @@ -24,5 +24,5 @@ function foo(): int { /* @@ label1 */return 0; } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ -/* @@@ label1 Warning Warning: Unreachable statement. */ +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ +/* @@@ label1 Warning Warning W0026: Unreachable statement. */ diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_9.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_9.ets index 2b31a764f13361e147457cfa2745f52003d412e9..d11e01dc7dbc551f461f28a1d3b52b064477e745 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_9.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_9.ets @@ -24,5 +24,5 @@ function foo(): int { } } -/* @@@ label Warning Warning: Unreachable statement. */ -/* @@@ label1 Warning Warning: Finally clause cannot complete normally */ +/* @@@ label Warning Warning W0026: Unreachable statement. */ +/* @@@ label1 Warning Warning W0021: Finally clause cannot complete normally */ diff --git a/ets2panda/test/ast/parser/ets/ts-type-assertion.ets b/ets2panda/test/ast/parser/ets/ts-type-assertion.ets index 19a04aa602008f3e88724508f6c9eb865a393832..5d932ff08579e5ebde18c3ee7d0e60ee3101e68d 100644 --- a/ets2panda/test/ast/parser/ets/ts-type-assertion.ets +++ b/ets2panda/test/ast/parser/ets/ts-type-assertion.ets @@ -20,9 +20,9 @@ const c = foo; const d = (foo); const e = (foo); const f = foo; -/* @@? 18:11 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 19:11 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 20:12 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 21:11 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 22:11 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 22:14 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 18:11 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 19:11 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 20:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 21:11 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 22:11 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 22:14 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ diff --git a/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets b/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets index a894834153a0d79d97a16fadb5985a455c9349ce..65f0ea376d92faefaff54fbed8430770c5bb61e8 100644 --- a/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets +++ b/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets @@ -20,4 +20,4 @@ function main(): void { tuple[/* @@ label */index] = 2; } -/* @@@ label Error TypeError: Element accessor value is out of tuple size bounds. */ +/* @@@ label Error Semantic error ESE0198: Element accessor value is out of tuple size bounds. */ diff --git a/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets b/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets index 093fa956bef06456fa83008ef6028cf71a8b2ebf..0cdd3f948c62503a9aa2fa2a08811d5ab7697e20 100644 --- a/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets +++ b/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets @@ -17,14 +17,14 @@ let a: [number, w: number, number,] = [1, 2, 3,]; let b: [number, /* @@ label */,number, number,] = [1, 2, 3,]; -/* @@? 17:17 Error TypeError: Cannot find type 'w'. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:18 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:20 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:20 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:26 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:28 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:28 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:34 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:35 Error SyntaxError: Unexpected token ']'. */ -/* @@@ label Error SyntaxError: Invalid Type. */ +/* @@? 17:17 Error Semantic error ESE0371: Cannot find type 'w'. */ +/* @@? 17:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:20 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:20 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:26 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:28 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:34 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:35 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ diff --git a/ets2panda/test/ast/parser/ets/tuple_type_2_neg.ets b/ets2panda/test/ast/parser/ets/tuple_type_2_neg.ets index c8033ccf5c2731e0fc1ce837919520b2ec9d7b7b..f42195912cf8a4f780e4ce36f5c8b9becbf00d2b 100644 --- a/ets2panda/test/ast/parser/ets/tuple_type_2_neg.ets +++ b/ets2panda/test/ast/parser/ets/tuple_type_2_neg.ets @@ -16,11 +16,11 @@ let a: [number, ...number[], number] = [1, 2, 3]; -/* @@? 17:17 Error SyntaxError: Invalid Type. */ -/* @@? 17:17 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:17 Error SyntaxError: Unexpected token '...'. */ -/* @@? 17:20 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:28 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:30 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:30 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:36 Error SyntaxError: Unexpected token ']'. */ +/* @@? 17:17 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:17 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:17 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 17:20 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:30 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:30 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:36 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/tuple_type_3_neg.ets b/ets2panda/test/ast/parser/ets/tuple_type_3_neg.ets index 2ac71cc79e3b250c2655018f772e55c24be0923a..be6f648925b4bf5e512da4cb51928a7f5841e8b6 100644 --- a/ets2panda/test/ast/parser/ets/tuple_type_3_neg.ets +++ b/ets2panda/test/ast/parser/ets/tuple_type_3_neg.ets @@ -16,7 +16,7 @@ let a: [number, number number] = [1, 2, 3]; -/* @@? 17:24 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:24 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:24 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:30 Error SyntaxError: Unexpected token ']'. */ +/* @@? 17:24 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:24 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:24 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:30 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/tuple_type_4_neg.ets b/ets2panda/test/ast/parser/ets/tuple_type_4_neg.ets index 47e1f0f24172a1e2f64854f59084bd899f78d0de..3dfd130bb2f09f297e68b381c476ed8783d8c4ba 100644 --- a/ets2panda/test/ast/parser/ets/tuple_type_4_neg.ets +++ b/ets2panda/test/ast/parser/ets/tuple_type_4_neg.ets @@ -16,11 +16,11 @@ let a: [a0: , a1: number] = [1, 2, 3]; -/* @@? 17:9 Error TypeError: Cannot find type 'a0'. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:11 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:13 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:15 Error SyntaxError: Unexpected token 'a1'. */ -/* @@? 17:19 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:19 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:25 Error SyntaxError: Unexpected token ']'. */ +/* @@? 17:9 Error Semantic error ESE0371: Cannot find type 'a0'. */ +/* @@? 17:11 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:11 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:13 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:15 Error Syntax error ESY0227: Unexpected token 'a1'. */ +/* @@? 17:19 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:19 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/type_alias_invalid_name.ets b/ets2panda/test/ast/parser/ets/type_alias_invalid_name.ets index 9caf26990c93f8ae4566dd5537faf3f4118016d9..59f0e1df323b543678b8499480afeda5ad177ef8 100644 --- a/ets2panda/test/ast/parser/ets/type_alias_invalid_name.ets +++ b/ets2panda/test/ast/parser/ets/type_alias_invalid_name.ets @@ -15,4 +15,4 @@ type var = number[] -/* @@? 16:6 Error SyntaxError: Type alias name cannot be 'var'. */ +/* @@? 16:6 Error Syntax error ESY0225: Type alias name cannot be 'var'. */ diff --git a/ets2panda/test/ast/parser/ets/type_argument_conversion.ets b/ets2panda/test/ast/parser/ets/type_argument_conversion.ets index 0de608fe9020f50ed3c1580f985d65463e304a91..1f2df568fd24e3e81377b9cd3f0489cb97c0ffb6 100644 --- a/ets2panda/test/ast/parser/ets/type_argument_conversion.ets +++ b/ets2panda/test/ast/parser/ets/type_argument_conversion.ets @@ -30,8 +30,8 @@ function main(): int { return 0; } -/* @@? 29:24 Error TypeError: No matching construct signature for type_argument_conversion.A(Array>) */ -/* @@? 29:38 Error TypeError: No Matching Parameterless Constructor, parameter count 1 */ -/* @@? 29:38 Error TypeError: No matching parameterless constructor */ -/* @@? 29:38 Error TypeError: Signature is not available here. */ -/* @@? 29:38 Error TypeError: Type 'Array>' is not compatible with type 'Array>' at index 1 */ +/* @@? 29:24 Error Semantic error ESE0127: No matching construct signature for type_argument_conversion.A(Array>) */ +/* @@? 29:38 Error Semantic error ESE0270: No Matching Parameterless Constructor, parameter count 1 */ +/* @@? 29:38 Error Semantic error ESE0125: No matching parameterless constructor */ +/* @@? 29:38 Error Semantic error ESE0137: Signature is not available here. */ +/* @@? 29:38 Error Semantic error ESE0046: Type 'Array>' is not compatible with type 'Array>' at index 1 */ diff --git a/ets2panda/test/ast/parser/ets/type_from_1.ets b/ets2panda/test/ast/parser/ets/type_from_1.ets index 4e10098780338a90595bde28b021e1253aa4d147..f3599b75fdead104fbaa9def155d3b617edd0cef 100644 --- a/ets2panda/test/ast/parser/ets/type_from_1.ets +++ b/ets2panda/test/ast/parser/ets/type_from_1.ets @@ -17,5 +17,5 @@ } - /* @@? 16:13 Error TypeError: Expected 1 type arguments, got 0 .*/ - /* @@? 16:13 Error TypeError: No matching call signature */ \ No newline at end of file + /* @@? 16:13 Error Semantic error ESE0273: Expected 1 type arguments, got 0 . */ +/* @@? 16:13 Error Semantic error ESE0128: No matching call signature */ diff --git a/ets2panda/test/ast/parser/ets/type_from_generic.ets b/ets2panda/test/ast/parser/ets/type_from_generic.ets index 0a37ebe5477f7c4faada61cd74edcf9f439f2871..bfcc3ad365b61df19290035e64cb9d29c846d56c 100644 --- a/ets2panda/test/ast/parser/ets/type_from_generic.ets +++ b/ets2panda/test/ast/parser/ets/type_from_generic.ets @@ -17,4 +17,4 @@ function foo(){ Type.from(); } - /* @@? 17:3 Error TypeError: Unable to resolve type.*/ \ No newline at end of file + /* @@? 17:3 Error Semantic error ESE0285: Unable to resolve type. */ diff --git a/ets2panda/test/ast/parser/ets/type_from_never_literal_keyof.ets b/ets2panda/test/ast/parser/ets/type_from_never_literal_keyof.ets index 302df199c40c3d41f1b57b8ee0dc5297a3133463..66aa99e3129aed6d3f7c290dfa1d37a5b3b22a68 100644 --- a/ets2panda/test/ast/parser/ets/type_from_never_literal_keyof.ets +++ b/ets2panda/test/ast/parser/ets/type_from_never_literal_keyof.ets @@ -19,5 +19,5 @@ let keyOfType = Type.from(); } - /* @@? 18:4 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 19:30 Error TypeError: Cannot find type 'keyofType'. */ \ No newline at end of file + /* @@? 18:4 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 19:30 Error Semantic error ESE0371: Cannot find type 'keyofType'. */ diff --git a/ets2panda/test/ast/parser/ets/type_from_union_tuple.ets b/ets2panda/test/ast/parser/ets/type_from_union_tuple.ets index 6c2a060aa56bdd2f63c1df0801988eb03e391da3..815885db1423a20e7ef11aa4866cbf04253f8de7 100644 --- a/ets2panda/test/ast/parser/ets/type_from_union_tuple.ets +++ b/ets2panda/test/ast/parser/ets/type_from_union_tuple.ets @@ -19,6 +19,6 @@ function foo(){ let unionTuple = Type.from<[string|number,byte|short|int|long]>(); } - /* @@? 17:18 Error TypeError: Acquiring types for union types is not supported. */ - /* @@? 18:18 Error TypeError: Acquiring types for tuple types is not supported. */ - /* @@? 19:22 Error TypeError: Acquiring types for tuple types is not supported. */ + /* @@? 17:18 Error Semantic error ESE0284: Acquiring types for union types is not supported. */ +/* @@? 18:18 Error Semantic error ESE0286: Acquiring types for tuple types is not supported. */ +/* @@? 19:22 Error Semantic error ESE0286: Acquiring types for tuple types is not supported. */ diff --git a/ets2panda/test/ast/parser/ets/type_from_utility_type.ets b/ets2panda/test/ast/parser/ets/type_from_utility_type.ets index fd5724ec64144391b1b695595763a83ec5370f82..6b9bbcc49ac9f30585b6f52f2891ccff3c2d44fc 100644 --- a/ets2panda/test/ast/parser/ets/type_from_utility_type.ets +++ b/ets2panda/test/ast/parser/ets/type_from_utility_type.ets @@ -32,8 +32,8 @@ let recordarrT = Type.from,Array>>(); } - /* @@? 30:19 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 30:29 Error TypeError: No static $_invoke method and static $_instantiate method in Record. Record() is not allowed. */ -/* @@? 30:29 Error TypeError: Type 'Record' has no call signatures. */ -/* @@? 31:38 Error TypeError: Type argument 'Array' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ -/* @@? 32:38 Error TypeError: Type argument 'Array' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ + /* @@? 30:19 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 30:29 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Record. Record() is not allowed. */ +/* @@? 30:29 Error Semantic error ESE0002: Type 'Record' has no call signatures. */ +/* @@? 31:38 Error Semantic error ESE0228: Type argument 'Array' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ +/* @@? 32:38 Error Semantic error ESE0228: Type argument 'Array' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ diff --git a/ets2panda/test/ast/parser/ets/type_node_clone_assertion_fix.ets b/ets2panda/test/ast/parser/ets/type_node_clone_assertion_fix.ets index 911938c62612630527a555580a31ace6a126b3d1..0aa9142509a58f4bac449c7c64ffd03070e60871 100644 --- a/ets2panda/test/ast/parser/ets/type_node_clone_assertion_fix.ets +++ b/ets2panda/test/ast/parser/ets/type_node_clone_assertion_fix.ets @@ -26,6 +26,6 @@ type MyMap = { type RecordMap = { n: number }; // Expected compilation errors for unsupported TypeScript features in ETS: -/* @@? 22:37 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 22:41 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 26:18 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ \ No newline at end of file +/* @@? 22:37 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 22:41 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 26:18 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ diff --git a/ets2panda/test/ast/parser/ets/type_param_contraint_override.ets b/ets2panda/test/ast/parser/ets/type_param_contraint_override.ets index e679c92132e889c86487d773268d828a44bbc027..6ae9cdd0b1abf59f8fddd7c8a0b2ae1d0e0a3448 100644 --- a/ets2panda/test/ast/parser/ets/type_param_contraint_override.ets +++ b/ets2panda/test/ast/parser/ets/type_param_contraint_override.ets @@ -32,5 +32,5 @@ function main() { arktest.assertEQ(res, 2); } -/* @@? 25:17 Error TypeError: foo(x: T): void in B cannot override foo(x: T): void in A because overriding type parameter's conatraints are not compatible with type parameter constraints of the overridden method. */ -/* @@? 25:17 Error TypeError: Method foo(x: T): void in B not overriding any method */ +/* @@? 25:17 Error Semantic error ESE0141: foo(x: T): void in B cannot override foo(x: T): void in A because overriding type parameter's conatraints are not compatible with type parameter constraints of the overridden method. */ +/* @@? 25:17 Error Semantic error ESE0136: Method foo(x: T): void in B not overriding any method */ diff --git a/ets2panda/test/ast/parser/ets/type_references.ets b/ets2panda/test/ast/parser/ets/type_references.ets index 4659ad2318d3ba2c6233d479ebf8516b534424c4..e4ae8ec559a806b3c11ee65d272c1de0d33b7303 100644 --- a/ets2panda/test/ast/parser/ets/type_references.ets +++ b/ets2panda/test/ast/parser/ets/type_references.ets @@ -18,6 +18,6 @@ type B = short; let x: G // OK let y: G<{a:String}, B> // Error -/* @@? 18:8 Error TypeError: Cannot find type 'G'. */ -/* @@? 19:8 Error TypeError: Cannot find type 'G'. */ -/* @@? 19:10 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 18:8 Error Semantic error ESE0371: Cannot find type 'G'. */ +/* @@? 19:8 Error Semantic error ESE0371: Cannot find type 'G'. */ +/* @@? 19:10 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ diff --git a/ets2panda/test/ast/parser/ets/type_variance2.ets b/ets2panda/test/ast/parser/ets/type_variance2.ets index 67d7a48464199ebb03ddf3328a46bac9afb687b6..8eb960f0133cef8880c9ce379389f5354ff0535f 100644 --- a/ets2panda/test/ast/parser/ets/type_variance2.ets +++ b/ets2panda/test/ast/parser/ets/type_variance2.ets @@ -17,4 +17,4 @@ class C { constructor() {} } -/* @@@ label Error SyntaxError: Variance modifier is not allowed here. */ +/* @@@ label Error Syntax error ESY0098: Variance modifier is not allowed here. */ diff --git a/ets2panda/test/ast/parser/ets/type_variance3.ets b/ets2panda/test/ast/parser/ets/type_variance3.ets index ac07e70222713b01e40cfefff0ff9a023b32ed87..3394d01d5e0226769885cf7bd6d42504fc126727 100644 --- a/ets2panda/test/ast/parser/ets/type_variance3.ets +++ b/ets2panda/test/ast/parser/ets/type_variance3.ets @@ -17,4 +17,4 @@ class C { set(t: T2): void { } } -/* @@@ label Error SyntaxError: Variance modifier is not allowed here. */ +/* @@@ label Error Syntax error ESY0098: Variance modifier is not allowed here. */ diff --git a/ets2panda/test/ast/parser/ets/type_variance4.ets b/ets2panda/test/ast/parser/ets/type_variance4.ets index f4495006d1460bfc3e504d864a6fa56ef2ab0e0b..433e524d5554835498375af5fe983eb84c77328b 100644 --- a/ets2panda/test/ast/parser/ets/type_variance4.ets +++ b/ets2panda/test/ast/parser/ets/type_variance4.ets @@ -17,4 +17,4 @@ // after generic global function parsing is implemented. function fn(t: T): void {} -/* @@@ label Error SyntaxError: Variance modifier is not allowed here. */ +/* @@@ label Error Syntax error ESY0098: Variance modifier is not allowed here. */ diff --git a/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets b/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets index 8fa208a4cb59e61dc26920ba4164b4ace7054053..67352daeb2d35d41535db071da7828e5d3e5f05f 100644 --- a/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets +++ b/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets @@ -35,4 +35,4 @@ fn6("123","456","321") function fn7(x:T, y:D){} fn7("123","456") -/* @@@ label Error TypeError: Type parameter 'D' has circular constraint dependency. */ +/* @@@ label Error Semantic error ESE0184: Type parameter 'D' has circular constraint dependency. */ diff --git a/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets b/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets index 3e8e77e5b8fbc7cde66c9be1a67e642743645bf5..ed395d11fb9c4a07992c00e06957eac29a74eedf 100644 --- a/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets +++ b/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets @@ -39,17 +39,17 @@ type BrokenFunc = (param: T) => void; declare const broken1: BrokenType; declare const broken2: AnotherBroken; -/* @@? 21:33 Error TypeError: Cannot find type 'UndefinedMap'. */ -/* @@? 21:45 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 21:49 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 26:36 Error TypeError: Cannot find type 'NonExistent'. */ -/* @@? 26:47 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 27:27 Error TypeError: Cannot find type 'InvalidInterface'. */ -/* @@? 30:52 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 31:14 Error SyntaxError: Unexpected token ','. */ -/* @@? 32:26 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 32:26 Error SyntaxError: Unexpected token ']'. */ -/* @@? 32:27 Error SyntaxError: Unexpected token ']'. */ -/* @@? 36:27 Error TypeError: Cannot find type 'UndefinedInterface'. */ -/* @@? 39:35 Error TypeError: Cannot find type 'any'. */ -/* @@? 40:38 Error TypeError: Cannot find type 'any'. */ +/* @@? 21:33 Error Semantic error ESE0371: Cannot find type 'UndefinedMap'. */ +/* @@? 21:45 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 21:49 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 26:36 Error Semantic error ESE0371: Cannot find type 'NonExistent'. */ +/* @@? 26:47 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 27:27 Error Semantic error ESE0371: Cannot find type 'InvalidInterface'. */ +/* @@? 30:52 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 31:14 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 32:26 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 32:26 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 32:27 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 36:27 Error Semantic error ESE0371: Cannot find type 'UndefinedInterface'. */ +/* @@? 39:35 Error Semantic error ESE0371: Cannot find type 'any'. */ +/* @@? 40:38 Error Semantic error ESE0371: Cannot find type 'any'. */ diff --git a/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets b/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets index 069c51fb2f2b65c77959c4bb1af9b5001bce86c7..4f0abcaa08861c93c155edb68f48c06f53a54f91 100644 --- a/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets +++ b/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets @@ -67,58 +67,4 @@ declare const test1: ComplexType<'n'>; declare const test2: ComplexType<'s'>; declare const test3: ComplexType<'b'>; -/* @@? 1:3 Error TypeError: Class 'TupleType' is already defined with different type. */ -/* @@? 1:3 Error TypeError: Class 'UnionType' is already defined with different type. */ -/* @@? 21:19 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 21:30 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:41 Error SyntaxError: Unexpected token ','. */ -/* @@? 32:42 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 35:44 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 35:59 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 35:59 Error SyntaxError: Unexpected token ']'. */ -/* @@? 35:60 Error SyntaxError: Unexpected token ']'. */ -/* @@? 38:19 Error TypeError: Cannot find type 'a'. */ -/* @@? 38:20 Error SyntaxError: Unexpected token ':'. */ -/* @@? 38:20 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 38:22 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 38:22 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 38:28 Error SyntaxError: Unexpected token ','. */ -/* @@? 38:30 Error SyntaxError: Unexpected token 'b'. */ -/* @@? 38:33 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 38:33 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 38:39 Error SyntaxError: Unexpected token ']'. */ -/* @@? 41:19 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 41:22 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 41:26 Error SyntaxError: Field type annotation expected. */ -/* @@? 41:32 Error SyntaxError: Field type annotation expected. */ -/* @@? 41:43 Error SyntaxError: Unexpected token ']'. */ -/* @@? 41:43 Error SyntaxError: Field type annotation expected. */ -/* @@? 41:44 Error SyntaxError: Unexpected token ':'. */ -/* @@? 41:46 Error SyntaxError: string is a predefined type, cannot be used as an identifier */ -/* @@? 44:41 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 44:60 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 54:34 Error TypeError: Cannot find type 'InvalidMap'. */ -/* @@? 54:44 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 57:45 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 57:63 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 57:67 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 58:12 Error SyntaxError: Unexpected token ','. */ -/* @@? 59:23 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 59:23 Error SyntaxError: Unexpected token ']'. */ -/* @@? 59:24 Error SyntaxError: Unexpected token ']'. */ -/* @@? 59:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 60:29 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 60:40 Error SyntaxError: Unexpected token ','. */ -/* @@? 61:27 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 61:28 Error SyntaxError: Unexpected token ']'. */ -/* @@? 61:29 Error SyntaxError: Unexpected token ']'. */ -/* @@? 61:30 Error SyntaxError: Unexpected token ','. */ -/* @@? 62:13 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 62:16 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 62:20 Error SyntaxError: Field type annotation expected. */ -/* @@? 62:22 Error SyntaxError: Unexpected token ']'. */ -/* @@? 62:22 Error SyntaxError: Field type annotation expected. */ -/* @@? 62:23 Error SyntaxError: Unexpected token ':'. */ -/* @@? 62:35 Error SyntaxError: Field type annotation expected. */ -/* @@? 62:36 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 62:37 Error SyntaxError: Unexpected token ']'. */ +/* @@? 32:46 Error Semantic error ESE0000: This reference refers to a value, but is being used as a type here. Did you mean to use 'typeof'? */ diff --git a/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets b/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets index 2cce27da50794b50a4af00d6506dadd9a932e9fd..8869e2dbba7240dbb8f2af94bc2854e6dfd94907 100644 --- a/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets +++ b/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets @@ -46,15 +46,15 @@ declare const num: NumAlias<42>; declare const str: StrAlias<"test">; declare const bool: BoolAlias; -/* @@? 37:73 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 38:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 39:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 40:17 Error SyntaxError: Unexpected token ','. */ -/* @@? 45:29 Error SyntaxError: Invalid Type. */ -/* @@? 45:29 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 45:29 Error SyntaxError: Unexpected token '>'. */ -/* @@? 45:32 Error SyntaxError: Unexpected token ';'. */ -/* @@? 47:31 Error SyntaxError: Invalid Type. */ -/* @@? 47:31 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 47:31 Error SyntaxError: Unexpected token '>'. */ -/* @@? 47:36 Error SyntaxError: Unexpected token ';'. */ +/* @@? 37:73 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 38:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 39:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 40:17 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 45:29 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 45:29 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 45:29 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 45:32 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 47:31 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 47:31 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 47:31 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 47:36 Error Syntax error ESY0227: Unexpected token ';'. */ diff --git a/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets b/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets index 2ab98e4b5510f88e510b477c9f16a13dacdfec91..fed3d72df7f6d358d64399baf345f50943a6d699 100644 --- a/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets +++ b/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets @@ -18,7 +18,7 @@ let s1 = "foo" let n2: typeof n1 let s2: typeof s1 -/* @@? 18:16 Error SyntaxError: Result of 'typeof' operator is not supported to be used as type annotation. */ -/* @@? 18:16 Error SyntaxError: Unexpected token 'n1'. */ -/* @@? 19:16 Error SyntaxError: Result of 'typeof' operator is not supported to be used as type annotation. */ -/* @@? 19:16 Error SyntaxError: Unexpected token 's1'. */ +/* @@? 18:16 Error Syntax error ESY0309: Result of 'typeof' operator is not supported to be used as type annotation. */ +/* @@? 18:16 Error Syntax error ESY0227: Unexpected token 'n1'. */ +/* @@? 19:16 Error Syntax error ESY0309: Result of 'typeof' operator is not supported to be used as type annotation. */ +/* @@? 19:16 Error Syntax error ESY0227: Unexpected token 's1'. */ diff --git a/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_0.ets b/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_0.ets index 0633f881b0a0ca4cd6d65a75f22dba0eb7e91f7b..530072a995d8380ae5019eb0a159fafea967af37 100644 --- a/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_0.ets +++ b/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_0.ets @@ -14,4 +14,4 @@ */ function foo() {} -/* @@@ label Error TypeError: Type parameter 'T' has circular constraint dependency. */ +/* @@@ label Error Semantic error ESE0184: Type parameter 'T' has circular constraint dependency. */ diff --git a/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_1.ets b/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_1.ets index c9d98306aa2507ef2fa486480fc61cd48fd4a410..a0cad035281892d8b976b6c57578babefeaf60b0 100644 --- a/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_1.ets +++ b/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_1.ets @@ -14,4 +14,4 @@ */ function foo() {} -/* @@@ label Error TypeError: Type parameter 'R' has circular constraint dependency. */ +/* @@@ label Error Semantic error ESE0184: Type parameter 'R' has circular constraint dependency. */ diff --git a/ets2panda/test/ast/parser/ets/types_decls.ets b/ets2panda/test/ast/parser/ets/types_decls.ets index 07eedb43d239c1de61878bc418c86c7169727375..dacecc09a9f01e3fb445e40929e921d9f78d1cba 100644 --- a/ets2panda/test/ast/parser/ets/types_decls.ets +++ b/ets2panda/test/ast/parser/ets/types_decls.ets @@ -56,11 +56,11 @@ let non_prim_c: Char = c'b'; // see 3.1.5 Void type function v(): void {} -/* @@? 35:21 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@? 36:25 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@@ label Error TypeError: Variable 'prim_b' has already been declared. */ -/* @@? 45:27 Error TypeError: Cannot find type 'bool'. */ -/* @@? 45:34 Error TypeError: Type 'Boolean' cannot be assigned to type 'Byte' */ -/* @@? 46:5 Error TypeError: Variable 'non_prim_b' has already been declared. */ -/* @@? 46:17 Error TypeError: Cannot find type 'Bool'. */ -/* @@? 46:24 Error TypeError: Type 'Boolean' cannot be assigned to type 'Byte' */ +/* @@? 35:21 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@? 36:25 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ label Error Semantic error ESE0351: Variable 'prim_b' has already been declared. */ +/* @@? 45:27 Error Semantic error ESE0371: Cannot find type 'bool'. */ +/* @@? 45:34 Error Semantic error ESE0318: Type 'Boolean' cannot be assigned to type 'Byte' */ +/* @@? 46:5 Error Semantic error ESE0351: Variable 'non_prim_b' has already been declared. */ +/* @@? 46:17 Error Semantic error ESE0371: Cannot find type 'Bool'. */ +/* @@? 46:24 Error Semantic error ESE0318: Type 'Boolean' cannot be assigned to type 'Byte' */ diff --git a/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl.ets b/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl.ets index 633a00e7acf11705dee0444b85999910e74c4dfb..f3f57e7938ebb48feb8c7c3629e6d48d3021ef14 100644 --- a/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl.ets +++ b/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl.ets @@ -15,5 +15,5 @@ let o: /* @@ label */{ x: number/* @@ label2 */, y: number } = { x: 2, y: 3 } -/* @@@ label Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label2 Error SyntaxError: Unexpected token ','. */ +/* @@@ label Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl_2.ets b/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl_2.ets index dbbd45161ef1d205c44b95782ab7aa0df2c03554..a10fa09cfd8b9b5f42cceae71fc282b56ff05856 100644 --- a/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl_2.ets +++ b/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl_2.ets @@ -15,5 +15,4 @@ type S = Set -/* @@@ label Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label2 Error SyntaxError: Unexpected token ','. */ +/* @@? 16:10 Error Semantic error ESE0000: Cannot find name Set */ diff --git a/ets2panda/test/ast/parser/ets/unclosed_loop.ets b/ets2panda/test/ast/parser/ets/unclosed_loop.ets index a2b6128cce31c04e8cbd998c97ea543aee56a955..573d0ed28a07f71724f5361238af7101fbbf585a 100644 --- a/ets2panda/test/ast/parser/ets/unclosed_loop.ets +++ b/ets2panda/test/ast/parser/ets/unclosed_loop.ets @@ -24,7 +24,7 @@ function main(): int { /* @@ label3 */continue return 0; } -/* @@@ label Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label1 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label2 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label3 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label1 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label2 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label3 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ diff --git a/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets b/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets index 2abca169321926501a282d84a1f0d18dc7195534..46177151895341adfe60befa085bc6aba9f778fb 100644 --- a/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets +++ b/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets @@ -18,4 +18,4 @@ function main(){ mix = /* @@ label */new Object(); } -/* @@@ label Error TypeError: Type 'Object' cannot be assigned to type 'undefined|null' */ +/* @@@ label Error Semantic error ESE0318: Type 'Object' cannot be assigned to type 'undefined|null' */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_1.ets b/ets2panda/test/ast/parser/ets/unexpected_token_1.ets index 475a31b33cba30f94bd5c14eccbe64c0a405dfa8..2d4a46f3bc0f56098c5944ee478bb81a6cf62b65 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_1.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_1.ets @@ -15,6 +15,6 @@ import num from @^& -/* @@? 16:17 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 16:17 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 16:19 Error SyntaxError: Unexpected token '&'. */ +/* @@? 16:17 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 16:17 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 16:19 Error Syntax error ESY0227: Unexpected token '&'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_10.ets b/ets2panda/test/ast/parser/ets/unexpected_token_10.ets index 71868b43eca0c7619e80f74a5e1a6389df2fb9ad..19c962e8fcd6b69f424e7133fd91288242cf83c3 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_10.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_10.ets @@ -15,7 +15,7 @@ import /* @@ label */(/* @@ label1 */node/* @@ label2 */) /* @@ label3 */from -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label3 Error SyntaxError: Unexpected token, expected string literal. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label2 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label3 Error Syntax error ESY0151: Unexpected token, expected string literal. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_11.ets b/ets2panda/test/ast/parser/ets/unexpected_token_11.ets index b64b32d7569f7a1fbb666e1fdd1460feaf464d77..cf4fdef52663850c70ded501490f7a44db3ec785 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_11.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_11.ets @@ -15,4 +15,4 @@ do {} /* @@ label */whi (true) -/* @@@ label Error SyntaxError: Unexpected token, expected 'while'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'while'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_12.ets b/ets2panda/test/ast/parser/ets/unexpected_token_12.ets index b963cbd92e14b2653a11f67ac71e6000351695b8..600c097f1d0d04e224b4c832bb71a931befcc4bf 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_12.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_12.ets @@ -15,8 +15,8 @@ import { foo, bar } /* @@ label */kjfjf /* @@ label1 */988 /* @@ label2 */from /* @@ label3 */"./import_tests/modules/module" -/* @@@ label Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'from'. */ -/* @@? 16:75 Error TypeError: Unresolved reference from */ -/* @@@ label3 Error SyntaxError: Unexpected token './import_tests/modules/module'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'from'. */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference from */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token './import_tests/modules/module'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_13.ets b/ets2panda/test/ast/parser/ets/unexpected_token_13.ets index 74bc387d005ed21799eb7f390e104f24ac764327..5b7a455b3c9dc4887611f3f66f004770650894a0 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_13.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_13.ets @@ -15,5 +15,5 @@ import X1/* @@ label */~ from -/* @@@ label Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 20:1 Error SyntaxError: Unexpected token, expected string literal. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 20:1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_14.ets b/ets2panda/test/ast/parser/ets/unexpected_token_14.ets index 8cf75f4f62cb82167ab5e3e9842ce9d6b22db055..5eed4cd8d33f288d3109bd2473ce95b2991a97ee 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_14.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_14.ets @@ -19,9 +19,9 @@ enum HEHE } -/* @@? 17:5 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 17:9 Error SyntaxError: Identifier expected, got '='. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token ','. */ -/* @@? 18:5 Error TypeError: Unresolved reference Green */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:5 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 17:9 Error Syntax error ESY0224: Identifier expected, got '='. */ +/* @@? 17:11 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 18:5 Error Semantic error ESE0143: Unresolved reference Green */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_15.ets b/ets2panda/test/ast/parser/ets/unexpected_token_15.ets index aee9c4ea50e86109aebfc34af4d24947cf226007..1c867f716fbbfd135f6700b167d2f08c4fdd5ec3 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_15.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_15.ets @@ -15,5 +15,5 @@ try /* @@ label */} catch (/* @@ label1 */) {} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected an identifier. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@@ label1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_18.ets b/ets2panda/test/ast/parser/ets/unexpected_token_18.ets index 9ca9cf1006f7ef9a110da298f2bdc73709ab8173..42c618470964a3839e6fcac19e8763aa8e21bb51 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_18.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_18.ets @@ -15,4 +15,4 @@ try {} catch (e) /* @@ label */} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_19.ets b/ets2panda/test/ast/parser/ets/unexpected_token_19.ets index aef678ed24a88a6f2e6e32b3dfbd0eee47a2a1b2..331761b0bbba7ca1d13c4e510f33584aba85973d 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_19.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_19.ets @@ -15,5 +15,5 @@ interface A /* @@ label */} -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 20:1 Error SyntaxError: Unexpected token, expected '}'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 20:1 Error Syntax error ESY0228: Unexpected token, expected '}'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_2.ets b/ets2panda/test/ast/parser/ets/unexpected_token_2.ets index 9fd9559ad1515a22882477427558b628361fba78..0c988e8d792099226b49e7ace81b64ff522045aa 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_2.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_2.ets @@ -36,6 +36,6 @@ function labeledTest01(): int { return result; } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token 'label1'. */ -/* @@@ label1 Error TypeError: Identifier 'label1' is used in wrong context. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'label1'. */ +/* @@@ label1 Error Semantic error ESE0330: Identifier 'label1' is used in wrong context. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_20.ets b/ets2panda/test/ast/parser/ets/unexpected_token_20.ets index 916eadf031f33e454509f83bf76db591d822e53b..31147c8b4b597b3b173d9cc2e85c62bc29cc355e 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_20.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_20.ets @@ -15,4 +15,4 @@ try {} catch /* @@ label */e) {} finally {} -/* @@@ label Error SyntaxError: Expected '(', got 'identification literal'. */ +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_21.ets b/ets2panda/test/ast/parser/ets/unexpected_token_21.ets index d4101acf56b8e8fca0e6cfa59aea6d07374c3db3..6b207580c892cf1b88af44fd7d7bcc76e5c31741 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_21.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_21.ets @@ -17,6 +17,6 @@ async function asyncFunc): Promise { return true; } -/* @@? 16:25 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 16:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:45 Error SyntaxError: Unexpected token, expected ',' or ')'. */ +/* @@? 16:25 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 16:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:45 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_22.ets b/ets2panda/test/ast/parser/ets/unexpected_token_22.ets index 19b5147c4de18673c8d759894dbfbfc38afa47a0..b65543c70eb194d53cf82f21d6b61727a4bc03c2 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_22.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_22.ets @@ -36,7 +36,7 @@ function main(): void { callAsyncLambda(); } -/* @@? 25:43 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 25:43 Error TypeError: Type '(_: Promise) => Promise' cannot be assigned to type '() => Promise' */ -/* @@? 25:44 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 25:60 Error SyntaxError: Unexpected token, expected ',' or ')'. */ +/* @@? 25:43 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 25:43 Error Semantic error ESE0318: Type '(_: Promise) => Promise' cannot be assigned to type '() => Promise' */ +/* @@? 25:44 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 25:60 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_23.ets b/ets2panda/test/ast/parser/ets/unexpected_token_23.ets index 9f614340a0631ab4b41d9457f170c3b3566ebfe1..851c47bbe65f0ad7d4d73e0e2f6b52eb298010b2 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_23.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_23.ets @@ -15,4 +15,4 @@ do {} while /* @@ label */[true) -/* @@@ label Error SyntaxError: Unexpected token, expected '('. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_24.ets b/ets2panda/test/ast/parser/ets/unexpected_token_24.ets index e2d0fa6af69635727945be0c8de612c57d282ad0..566e492976ef8b20d7fd095cc44cd0ef6cd7cd18 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_24.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_24.ets @@ -27,6 +27,6 @@ function main(): void { } } -/* @@? 19:5 Error TypeError: Unresolved reference with_param */ -/* @@? 20:31 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@? 21:28 Error SyntaxError: Expected '{', got 'case'. */ +/* @@? 19:5 Error Semantic error ESE0143: Unresolved reference with_param */ +/* @@@ label1 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@@ label2 Error Syntax error ESY0230: Expected '{', got 'case'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_25.ets b/ets2panda/test/ast/parser/ets/unexpected_token_25.ets index 629580bc4ce8d47e158aff21a38af17a223a6f6d..88bbd3aba7b315c1c6e52828a26051a241b65f3a 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_25.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_25.ets @@ -16,12 +16,12 @@ let x: int[ = [1,2,3] let y: int = x [0] -/* @@? 16:13 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:13 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:17 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 16:18 Error SyntaxError: Unexpected token '2'. */ -/* @@? 16:19 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:20 Error SyntaxError: Unexpected token '3'. */ -/* @@? 16:21 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:14 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@? 16:13 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:13 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:17 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 16:18 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 16:19 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token '3'. */ +/* @@? 16:21 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_26.ets b/ets2panda/test/ast/parser/ets/unexpected_token_26.ets index fb94eb1691a7e3d1245984ca1dee803dab3a3897..16e49e32d27987df06a5c80a7b063fe9fa8bf80f 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_26.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_26.ets @@ -16,4 +16,4 @@ let x: int[] = [1,2,3] let y: int = x [0 -/* @@? 20:1 Error SyntaxError: Unexpected token, expected ']'. */ +/* @@? 20:1 Error Syntax error ESY0228: Unexpected token, expected ']'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_27.ets b/ets2panda/test/ast/parser/ets/unexpected_token_27.ets index e9078503bc4fdca1d55b057e522d1ffed2767fa7..66475c89b42827906b0f136f16b6da7dd039862d 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_27.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_27.ets @@ -17,5 +17,5 @@ interface A {} interface B {} class C implements A, B /* @@ label */[} -/* @@@ label Error SyntaxError: Unexpected token, expected ','. */ -/* @@@ label Error SyntaxError: Expected '{', got ','. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got ','. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_28.ets b/ets2panda/test/ast/parser/ets/unexpected_token_28.ets index b71e53851f5ff8c5c203de8f1c3e972b5513bc48..0c4086b0bfd3e6726d8013df17b81964bc6bc149 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_28.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_28.ets @@ -17,11 +17,11 @@ interface A {} interface B {} interface C extends A, B [} -/* @@? 18:26 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:27 Error SyntaxError: Identifier expected. */ -/* @@? 18:27 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:27 Error TypeError: Interface expected here. */ -/* @@? 28:1 Error SyntaxError: Identifier expected. */ -/* @@? 28:1 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 28:1 Error SyntaxError: Unexpected token, expected '}'. */ -/* @@? 28:1 Error TypeError: Interface expected here. */ +/* @@? 18:26 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:27 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:27 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:27 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 28:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 28:1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 28:1 Error Syntax error ESY0228: Unexpected token, expected '}'. */ +/* @@? 28:1 Error Semantic error ESE0179: Interface expected here. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_29.ets b/ets2panda/test/ast/parser/ets/unexpected_token_29.ets index b2c42936faed3a9b1d79437fe74fe213f925a6b3..9452ed013eebb4a615454121c4c74801a2464dc7 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_29.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_29.ets @@ -19,11 +19,11 @@ function main(): void { } /*@@ label4 */} -/* @@@ label1 Error SyntaxError: Expected ';', got 'identification literal'. */ -/* @@? 17:44 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 17:69 Error TypeError: need to specify target type for class composite */ -/* @@? 18:30 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 20:15 Error SyntaxError: Expected ')', got '}'. */ -/* @@? 20:15 Error SyntaxError: Unexpected token '}'. */ -/* @@? 30:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@? 17:44 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@@ label2 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 17:69 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 18:30 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 20:15 Error Syntax error ESY0230: Expected ')', got '}'. */ +/* @@? 20:15 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 30:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_3.ets b/ets2panda/test/ast/parser/ets/unexpected_token_3.ets index 9d34f48d53b193ef073afadd2aae0901dbefa485..b1abe086479b6f559f17ce0621ce73f5f82e5f8b 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_3.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_3.ets @@ -36,7 +36,7 @@ function labeledTest01(): int { return result; } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token '^'. */ -/* @@? 27:57 Error SyntaxError: Unexpected token 'label1'. */ -/* @@? 27:57 Error TypeError: Identifier 'label1' is used in wrong context. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '^'. */ +/* @@? 27:57 Error Syntax error ESY0227: Unexpected token 'label1'. */ +/* @@? 27:57 Error Semantic error ESE0330: Identifier 'label1' is used in wrong context. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_30.ets b/ets2panda/test/ast/parser/ets/unexpected_token_30.ets index 3dc7c9d7336bef806cd659af99df14cf0a3f51e3..23e5bfeef94e16f796101de285177a2fc9ea6d14 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_30.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_30.ets @@ -19,6 +19,6 @@ function main(): void { } } -/* @@? 17:23 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 17:27 Error TypeError: Variable 'i' is accessed before it's initialization. */ -/* @@@ label Error SyntaxError: Expected ';', got ')'. */ +/* @@? 17:23 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 17:27 Error Semantic error ESE0365: Variable 'i' is accessed before it's initialization. */ +/* @@@ label Error Syntax error ESY0230: Expected ';', got ')'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_31.ets b/ets2panda/test/ast/parser/ets/unexpected_token_31.ets index d7442c979c49e6bf8a53f134df63df63f420a6fc..1583e7e09b660c670c053baf17ff00ca897c26b0 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_31.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_31.ets @@ -17,16 +17,16 @@ function foo(...^number: int[]): int { return number[0] } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 16:17 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:18 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:18 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:31 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:32 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:34 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 16:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 17:12 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:12 Error TypeError: Object type doesn't have proper index access method. */ -/* @@? 17:12 Error TypeError: All return statements in the function should be empty or have a value. */ +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 16:17 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:18 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:18 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:31 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:32 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:34 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 16:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 17:12 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:12 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@? 17:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_32.ets b/ets2panda/test/ast/parser/ets/unexpected_token_32.ets index 001705a3bb6cbe9972183f2a4879b90db113f2c7..08986833daeda5ff28a2b86c2506a223477199c2 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_32.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_32.ets @@ -15,7 +15,6 @@ class G'. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '}'. */ -/* @@@ label2 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@label2 */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 21:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_33.ets b/ets2panda/test/ast/parser/ets/unexpected_token_33.ets index 4041748031eb3917e2e8a0a0333a1d1d1c8a3a27..b8a1ef5965373549b64fd033e99ec8c7ce0df567 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_33.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_33.ets @@ -15,10 +15,10 @@ class G /* @@ label */T/* @@ label1 */, S /* @@ label2 */extends T/* @@ label3 */> /* @@ label4 */{} -/* @@@ label Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@@ label1 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:42 Error SyntaxError: Field type annotation expected. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'extends'. */ -/* @@? 16:67 Error SyntaxError: Field type annotation expected. */ -/* @@@ label3 Error SyntaxError: Unexpected token '>'. */ -/* @@@ label4 Error SyntaxError: Unexpected token '{'. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got 'identification literal'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:42 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'extends'. */ +/* @@? 16:67 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_35.ets b/ets2panda/test/ast/parser/ets/unexpected_token_35.ets index eb4252a50f139b7702f0c539a0014e3cf5373952..c9c99b818faf06bc4c4363dfb47c87cfa087f153 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_35.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_35.ets @@ -25,9 +25,9 @@ let sector: float }; } -/* @@? 20:12 Error TypeError: key in class composite should be either identifier or string literal */ -/* @@? 23:19 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 23:20 Error SyntaxError: Unexpected token. */ -/* @@? 23:21 Error SyntaxError: Unexpected token ','. */ -/* @@? 24:16 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 26:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 20:12 Error Semantic error ESE0073: key in class composite should be either identifier or string literal */ +/* @@? 23:19 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 23:20 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 23:21 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 24:16 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 26:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_36.ets b/ets2panda/test/ast/parser/ets/unexpected_token_36.ets index 742ce91981051144e90a977664d73ad99940f48f..781c9fa9b569d7c1b9c35bc834844abad37e83c7 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_36.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_36.ets @@ -31,12 +31,12 @@ export class AccessNSieve { } } } -/* @@? 29:10 Error TypeError: Unresolved reference le */ -/* @@? 29:13 Error SyntaxError: Expected ';', got 'identification literal'. */ -/* @@? 29:13 Error TypeError: Unresolved reference i */ -/* @@? 29:14 Error SyntaxError: Expected ';', got ':'. */ -/* @@? 29:14 Error SyntaxError: Unexpected token ':'. */ -/* @@? 29:16 Error SyntaxError: Expected ')', got 'int'. */ -/* @@? 29:16 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 29:36 Error SyntaxError: Unexpected token ')'. */ -/* @@? 29:38 Error SyntaxError: Unexpected token '{'. */ +/* @@? 29:10 Error Semantic error ESE0143: Unresolved reference le */ +/* @@? 29:13 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@? 29:13 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 29:14 Error Syntax error ESY0230: Expected ';', got ':'. */ +/* @@? 29:14 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 29:16 Error Syntax error ESY0230: Expected ')', got 'int'. */ +/* @@? 29:16 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 29:36 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 29:38 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_37.ets b/ets2panda/test/ast/parser/ets/unexpected_token_37.ets index 11db5876c009fc6c5d4e64f380c8e5ca43403e54..d2b131b734081781c1a7ee07be14887ef0fedac9 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_37.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_37.ets @@ -20,12 +20,12 @@ console.log("h") } -/* @@@ label Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ -/* @@@ label1 Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@@ label2 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:41 Error SyntaxError: Unexpected token 'Error'. */ -/* @@@ label3 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:63 Error SyntaxError: Unexpected token '{'. */ -/* @@@ label4 Error SyntaxError: Unexpected token '{'. */ -/* @@? 32:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@@ label Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got 'identification literal'. */ +/* @@@ label2 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:41 Error Syntax error ESY0227: Unexpected token 'Error'. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:63 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 32:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_38.ets b/ets2panda/test/ast/parser/ets/unexpected_token_38.ets index 780e05d9629c60f9001974f4d2513e40cda83429..e5619c4f091bb6465fd169c18b46f5fca9762aa1 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_38.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_38.ets @@ -23,9 +23,9 @@ let func3: (f: (a: number, b: string) => number[]): number[] => (a: number, b: b // let func3: (f: (a: number, b: string) => number[]): number[]) => (a: number, b: boolean) => true; -/* @@? 19:8 Error TypeError: 'void' used as type annotation. */ -/* @@? 22:51 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 22:51 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 22:53 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 22:62 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 22:62 Error SyntaxError: Unexpected token. */ +/* @@? 19:8 Error Semantic error ESE0232: 'void' used as type annotation. */ +/* @@? 22:51 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 22:51 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 22:53 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 22:62 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 22:62 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_39.ets b/ets2panda/test/ast/parser/ets/unexpected_token_39.ets index 31b0b10aa77b0e04546bbf80662de0414867140d..9a3693b58c0e4c3824a0f73c6bccfbf7ce486e93 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_39.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_39.ets @@ -15,4 +15,4 @@ let r: ((((number)))[]/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected ')'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ')'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_4.ets b/ets2panda/test/ast/parser/ets/unexpected_token_4.ets index 5c8a7e33b0a7cdcffcffad5ae7b1c6733ba5a9bd..fca2ce4e51ca1959bbcb53b6dc98aba51b282e0e 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_4.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_4.ets @@ -15,6 +15,6 @@ import {/* @@ label */^} from /* @@ label1 */"./import_tests/modules/module" -/* @@@ label Error SyntaxError: Unexpected token '^'. */ -/* @@? 16:26 Error TypeError: Unresolved reference from */ -/* @@@ label1 Error SyntaxError: Unexpected token './import_tests/modules/module'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '^'. */ +/* @@? 16:26 Error Semantic error ESE0143: Unresolved reference from */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token './import_tests/modules/module'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_40.ets b/ets2panda/test/ast/parser/ets/unexpected_token_40.ets index f4c93de60bcb1015d8d030e33b073458f658cca0..8fbafaeeea3ea5fb06bc0841907531fd0075ad6c 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_40.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_40.ets @@ -15,6 +15,6 @@ let arr = new Array' is generic but type argument were not provided. */ -/* @@? 16:41 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 21:1 Error SyntaxError: Unexpected token 'end of stream'. */ +/* @@? 16:15 Error Semantic error ESE0170: Type 'Array' is generic but type argument were not provided. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_41.ets b/ets2panda/test/ast/parser/ets/unexpected_token_41.ets index 40e2093999804fc0de7c2be2c6f293e4f1a95d2f..20f88612b6f85c517aaceaa86aa2a7e4a3b0629f 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_41.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_41.ets @@ -17,8 +17,8 @@ for (let i: int = 0; i < d?length/* @@ label */; ++i/* @@ label1 */) { arr.push(d[i]); } -/* @@? 16:26 Error TypeError: Unresolved reference d */ -/* @@? 16:28 Error TypeError: Unresolved reference length */ -/* @@@ label Error SyntaxError: Unexpected token, expected ':'. */ -/* @@@ label1 Error SyntaxError: Expected ';', got ')'. */ -/* @@? 17:5 Error TypeError: Unresolved reference arr */ +/* @@? 16:26 Error Semantic error ESE0143: Unresolved reference d */ +/* @@? 16:28 Error Semantic error ESE0143: Unresolved reference length */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ';', got ')'. */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference arr */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_42.ets b/ets2panda/test/ast/parser/ets/unexpected_token_42.ets index 7d02e8a0d86580dace30a943bda8d11d344f709a..12ca92d36540a0d3190ea04d72e87e529114fecf 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_42.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_42.ets @@ -15,5 +15,5 @@ // Int[1,2,3,4,5] let a: number = new Int[1 -/* @@? 16:17 Error TypeError: Type 'Array' cannot be assigned to type 'Double' */ -/* @@? 20:1 Error SyntaxError: Expected ']', got 'end of stream'. */ +/* @@? 16:17 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'Double' */ +/* @@? 20:1 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_43.ets b/ets2panda/test/ast/parser/ets/unexpected_token_43.ets index 28f196a0b8551588190a7e8d924353e9d892a7a7..c1e6fddfc0b393c5cc4312af5e6aab609f851799 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_43.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_43.ets @@ -15,9 +15,9 @@ let v2 = `--- ${y + abc /* @@ label */${y} = ${ n*2 }!`/* @@ label1 */} ---`;` -/* @@? 16:17 Error TypeError: Unresolved reference y */ -/* @@? 16:21 Error TypeError: Unresolved reference abc */ -/* @@@ label Error SyntaxError: Expected '}', got 'identification literal'. */ -/* @@? 16:49 Error TypeError: Unresolved reference n */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 16:71 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 16:17 Error Semantic error ESE0143: Unresolved reference y */ +/* @@? 16:21 Error Semantic error ESE0143: Unresolved reference abc */ +/* @@@ label Error Syntax error ESY0230: Expected '}', got 'identification literal'. */ +/* @@? 16:49 Error Semantic error ESE0143: Unresolved reference n */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@@ label1 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_44.ets b/ets2panda/test/ast/parser/ets/unexpected_token_44.ets index ebff97f5b41c32730d6338cfbaa6a3c4ecc47237..606d9dde83d1e9f65e7baf8979f024e7bd1fefb0 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_44.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_44.ets @@ -19,4 +19,4 @@ do { ) } while /* @@ label */[true) -/* @@@ label Error SyntaxError: Unexpected token, expected '('. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_45.ets b/ets2panda/test/ast/parser/ets/unexpected_token_45.ets index 8ee88559f0d4d7d44166c0aff7163d66b15aa959..b6df61d68b74919d25d97d97abbdaaa67403e385 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_45.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_45.ets @@ -19,5 +19,4 @@ do { ) } while (true -/* @@@ label Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 23:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_46.ets b/ets2panda/test/ast/parser/ets/unexpected_token_46.ets index 5762664c26a8559d99bcc57b3e5d1f8974d471d5..37a8576b49cf1f0b69b1cb64f91920d6672db0ef 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_46.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_46.ets @@ -19,7 +19,7 @@ interface IEmployee { sdskdsopd?: string; } -/* @@? 17:7 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:7 Error SyntaxError: Expected 'method name', got '^'. */ -/* @@? 17:7 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected ',' or ')'. */ +/* @@? 17:7 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:7 Error Syntax error ESY0230: Expected 'method name', got '^'. */ +/* @@? 17:7 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 17:25 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_47.ets b/ets2panda/test/ast/parser/ets/unexpected_token_47.ets index 875bd83b5a89bf6866f80faf63bde8eedd8455f8..96b6de1a36a6e612aedce09bc3525f91c89226fe 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_47.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_47.ets @@ -15,7 +15,7 @@ let isPrime: int[] = new int[[]][[] -/* @@? 16:22 Error TypeError: Type 'Array>' cannot be assigned to type 'Array' */ -/* @@? 16:30 Error TypeError: Can't resolve array type */ -/* @@? 16:34 Error TypeError: Can't resolve array type */ -/* @@? 22:1 Error SyntaxError: Expected ']', got 'end of stream'. */ +/* @@? 16:22 Error Semantic error ESE0318: Type 'Array>' cannot be assigned to type 'Array' */ +/* @@? 16:30 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 16:34 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 22:1 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_48.ets b/ets2panda/test/ast/parser/ets/unexpected_token_48.ets index 9193aee2c196dabf4af57223a3dfe15599f718f4..e37ba4b376fef19a85f83279bd9ac4b3e1bd59b0 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_48.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_48.ets @@ -15,6 +15,6 @@ export type {B/* @@ label */] -/* @@? 16:14 Error SyntaxError: Cannot find name 'B' to export. */ -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label Error SyntaxError: Unexpected token ']'. */ +/* @@? 16:14 Error Syntax error ESY0279: Cannot find name 'B' to export. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_49.ets b/ets2panda/test/ast/parser/ets/unexpected_token_49.ets index a08589fe314f4dfdc1383e05db3d7502968d66b1..7ed161528a81d0b6319f8c931b3db6b100660feb 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_49.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_49.ets @@ -18,7 +18,9 @@ function identity(arg: Type): Type { } let output = identity/* @@ label */"hehe" -/* @@? 19:14 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 19:14 Error TypeError: No matching call signature */ -/* @@? 19:44 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 25:1 Error SyntaxError: Expected ')', got 'end of stream'. */ +/* @@? 19:14 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 19:14 Error Semantic error ESE0128: No matching call signature */ +/* @@? 19:14 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 19:14 Error Semantic error ESE0128: No matching call signature */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 27:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_5.ets b/ets2panda/test/ast/parser/ets/unexpected_token_5.ets index 2e86dc60a27e9f0afe2dcd1c2c1be6805ba61e4b..cf6e96c49a63edfdad4610312bdc59ed34ea5eb7 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_5.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_5.ets @@ -15,7 +15,7 @@ import * as /* @@ label */~/* @@ label1 */path /* @@ label2 */from /* @@ label3 */'node:path'; -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@@ label3 Error SyntaxError: Unexpected token 'node:path'. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label2 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token 'node:path'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_50.ets b/ets2panda/test/ast/parser/ets/unexpected_token_50.ets index d183229f0b8e87e1ba95936112d01c684d3f2688..82962b7aad599b60c5f177b04c4b7fd119455172 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_50.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_50.ets @@ -19,7 +19,9 @@ function identity(arg: Type): Type { let output = identity let output1 = identity/* @@ label */"hehe" -/* @@? 20:15 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 20:15 Error TypeError: No matching call signature */ -/* @@? 20:45 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 26:1 Error SyntaxError: Expected ')', got 'end of stream'. */ +/* @@? 20:15 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 20:15 Error Semantic error ESE0128: No matching call signature */ +/* @@? 20:15 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 20:15 Error Semantic error ESE0128: No matching call signature */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 28:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_52.ets b/ets2panda/test/ast/parser/ets/unexpected_token_52.ets index 9b65b55ca6dfc69334e73db9fd863823f19ec76a..4d20c736cf3b3c94c89056fa70a7a34c99679144 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_52.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_52.ets @@ -18,16 +18,16 @@ let a = { ...a, } -/* @@? 16:5 Error TypeError: Cannot infer type for a because class composite needs an explicit target type */ -/* @@? 17:9 Error SyntaxError: Unexpected token. */ -/* @@? 17:10 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 17:10 Error SyntaxError: Object pattern can't contain methods. */ -/* @@? 17:12 Error SyntaxError: Expected '{', got '('. */ -/* @@? 17:12 Error SyntaxError: Unexpected token. */ -/* @@? 17:13 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:14 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 18:5 Error SyntaxError: Unexpected token '...'. */ -/* @@? 18:8 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token ','. */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 16:5 Error Semantic error ESE0174: Cannot infer type for a because class composite needs an explicit target type */ +/* @@? 17:9 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:10 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 17:10 Error Syntax error ESY0062: Object pattern can't contain methods. */ +/* @@? 17:12 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@? 17:12 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:13 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:14 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 18:5 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 18:8 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 18:9 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_53.ets b/ets2panda/test/ast/parser/ets/unexpected_token_53.ets index da3f06e4cb2d8eb192d3942705f586e01a6871f4..b643d8916c9446e5f6a5c403cfb59739a3e49534 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_53.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_53.ets @@ -25,17 +25,17 @@ export class MathSpectralNorm { } } -/* @@? 19:10 Error TypeError: Unresolved reference i */ -/* @@? 19:22 Error SyntaxError: Expected ';', got ':'. */ -/* @@? 19:22 Error SyntaxError: Unexpected token ':'. */ -/* @@? 19:24 Error SyntaxError: Expected ')', got 'identification literal'. */ -/* @@? 19:27 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:29 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:7 Error TypeError: Unresolved reference vbv */ -/* @@? 20:14 Error TypeError: Unresolved reference u */ -/* @@? 20:14 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 20:21 Error TypeError: Unresolved reference v */ -/* @@? 20:21 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:7 Error TypeError: Unresolved reference vv */ -/* @@? 21:14 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:21 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@? 19:10 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 19:22 Error Syntax error ESY0230: Expected ';', got ':'. */ +/* @@? 19:22 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 19:24 Error Syntax error ESY0230: Expected ')', got 'identification literal'. */ +/* @@? 19:27 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:29 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 20:7 Error Semantic error ESE0143: Unresolved reference vbv */ +/* @@? 20:14 Error Semantic error ESE0143: Unresolved reference u */ +/* @@? 20:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 20:21 Error Semantic error ESE0143: Unresolved reference v */ +/* @@? 20:21 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:7 Error Semantic error ESE0143: Unresolved reference vv */ +/* @@? 21:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:21 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_55.ets b/ets2panda/test/ast/parser/ets/unexpected_token_55.ets index 17ccd7464285434ae8ad3f976820d979401f83d1..6966ac2066179b84cef7c3594fc99558d6e52c25 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_55.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_55.ets @@ -25,18 +25,18 @@ export class MathSpectralNorm { } } -/* @@? 19:16 Error TypeError: Unresolved reference i */ -/* @@? 19:18 Error SyntaxError: Unexpected token '='. */ -/* @@? 19:29 Error SyntaxError: Expected ';', got ':'. */ -/* @@? 19:29 Error SyntaxError: Unexpected token ':'. */ -/* @@? 19:31 Error SyntaxError: Expected ')', got 'identification literal'. */ -/* @@? 19:34 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:36 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:7 Error TypeError: Unresolved reference vbv */ -/* @@? 20:14 Error TypeError: Unresolved reference u */ -/* @@? 20:14 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 20:21 Error TypeError: Unresolved reference v */ -/* @@? 20:21 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:7 Error TypeError: Unresolved reference vv */ -/* @@? 21:14 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:21 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@? 19:16 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 19:18 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 19:29 Error Syntax error ESY0230: Expected ';', got ':'. */ +/* @@? 19:29 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 19:31 Error Syntax error ESY0230: Expected ')', got 'identification literal'. */ +/* @@? 19:34 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:36 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 20:7 Error Semantic error ESE0143: Unresolved reference vbv */ +/* @@? 20:14 Error Semantic error ESE0143: Unresolved reference u */ +/* @@? 20:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 20:21 Error Semantic error ESE0143: Unresolved reference v */ +/* @@? 20:21 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:7 Error Semantic error ESE0143: Unresolved reference vv */ +/* @@? 21:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:21 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_56.ets b/ets2panda/test/ast/parser/ets/unexpected_token_56.ets index 7b68324c196dd725b88a8dd4bea2f34043942cf2..7a303c210c80f3efa4fd5a774086e981c46ed38e 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_56.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_56.ets @@ -18,16 +18,16 @@ for await (/* @@ label1 */;/* @@ label2 */;/* @@ label3 */i < /* @@ label4 */cou } for (let i? /* @@ label11 */: Number = 1;;) { break; } -/* @@@ label1 Error SyntaxError: Unexpected token ';'. */ -/* @@@ label2 Error SyntaxError: Unexpected token ';'. */ -/* @@@ label3 Error TypeError: Unresolved reference i */ -/* @@@ label4 Error TypeError: Unresolved reference count */ -/* @@@ label5 Error SyntaxError: Expected ')', got ';'. */ -/* @@@ label6 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label7 Error SyntaxError: Unexpected token '{'. */ -/* @@@ label8 Error TypeError: Unresolved reference result */ -/* @@@ label9 Error TypeError: Unresolved reference p */ -/* @@@ label9 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label10 Error TypeError: Unresolved reference a */ -/* @@@ label10 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label11 Error SyntaxError: Optional variable is deprecated and no longer supported. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@@ label3 Error Semantic error ESE0143: Unresolved reference i */ +/* @@@ label4 Error Semantic error ESE0143: Unresolved reference count */ +/* @@@ label5 Error Syntax error ESY0230: Expected ')', got ';'. */ +/* @@@ label6 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label7 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label8 Error Semantic error ESE0143: Unresolved reference result */ +/* @@@ label9 Error Semantic error ESE0143: Unresolved reference p */ +/* @@@ label9 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@@ label10 Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label10 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@@ label11 Error Syntax error ESY0306: Optional variable is deprecated and no longer supported. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_57.ets b/ets2panda/test/ast/parser/ets/unexpected_token_57.ets index 3372ab6a51aaa4e6d9244f879ac89aee0fdd1518..0f66fdf4d8f7aed25381a5ff22f55838fe5745fc 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_57.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_57.ets @@ -17,5 +17,4 @@ function foo(a: int) {} foo(1 -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@ label */ \ No newline at end of file +/* @@? 21:1 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_58.ets b/ets2panda/test/ast/parser/ets/unexpected_token_58.ets index b6b5d9d26f6768c0d5b7aa8f9e728f06b90d4919..2900f81f9207032c0fa6d9715445bae38570eb10 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_58.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_58.ets @@ -17,5 +17,4 @@ function foo(a: int) {} foo(1, -/* @@@ label Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 21:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_59.ets b/ets2panda/test/ast/parser/ets/unexpected_token_59.ets index b35bc96dee2884ac963395c368587763b895d0b2..32cd3d0dcbaa8817b78f738c36a4ca9956447757 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_59.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_59.ets @@ -17,5 +17,4 @@ class A { x: int -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 21:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_6.ets b/ets2panda/test/ast/parser/ets/unexpected_token_6.ets index 7f3274cd03d9d771aa3ff2ed5e48c09602c35092..3e4e828c939ebf90ace764a8f59b737648332301 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_6.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_6.ets @@ -17,4 +17,4 @@ while (true /* @@ label */{ console.log("hehehehe") } -/* @@@ label Error SyntaxError: Expected ')', got '{'. */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_60.ets b/ets2panda/test/ast/parser/ets/unexpected_token_60.ets index be2e36498f72107b0bfc5aa799d2d89ba3a820c1..8b7fd20292994b81799971ca65cc108347b4dcad 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_60.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_60.ets @@ -19,4 +19,4 @@ function main(): void { } } -/* @@@ label1 Error SyntaxError: Expected ';', got 'identification literal'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_61.ets b/ets2panda/test/ast/parser/ets/unexpected_token_61.ets index 76c41c3aa432f2414e2e4c27053c8a3c7f2d55c7..339011e42a2688cb2cbaa6939ff78c2fe3cf0a89 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_61.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_61.ets @@ -19,5 +19,5 @@ function main(): void { } } -/* @@@ label Error TypeError: Cannot assign to a constant variable i */ -/* @@@ label1 Error SyntaxError: Expected ';', got 'identification literal'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@@ label Error Semantic error ESE0298: Cannot assign to a constant variable i */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_63.ets b/ets2panda/test/ast/parser/ets/unexpected_token_63.ets index 40a8346dc0839833ce2ffd16fadac6498fa6510a..9088ff3e8686fbc9741dbe4374459ebc449d0fc4 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_63.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_63.ets @@ -26,37 +26,36 @@ class A { } } -/* @@? 17:7 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:23 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:29 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:31 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 17:37 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:39 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:3 Error SyntaxError: Unexpected token 'while'. */ -/* @@? 18:8 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 18:9 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 18:9 Error SyntaxError: Unexpected token 'true'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 18:13 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:15 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:4 Error SyntaxError: Unexpected token 'if'. */ -/* @@? 19:6 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 19:7 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 19:7 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:7 Error SyntaxError: Unexpected token 'false'. */ -/* @@? 19:7 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:12 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:14 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:5 Error SyntaxError: Unexpected token 'break'. */ -/* @@? 21:6 Error SyntaxError: Unexpected token 'else'. */ -/* @@? 21:11 Error SyntaxError: Unexpected token '{'. */ -/* @@? 23:5 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 23:10 Error TypeError: Property 'func' does not exist on type 'Error' */ -/* @@? 23:21 Error SyntaxError: Unexpected token 'final'. */ -/* @@? 25:3 Error SyntaxError: Unexpected token '}'. */ -/* @@? 26:2 Error SyntaxError: Unexpected token '}'. */ -/* @@? 27:1 Error SyntaxError: Unexpected token '}'. */ - +/* @@? 17:7 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:23 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:23 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:29 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:31 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 17:37 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:39 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 18:3 Error Syntax error ESY0227: Unexpected token 'while'. */ +/* @@? 18:8 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 18:9 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 18:9 Error Syntax error ESY0227: Unexpected token 'true'. */ +/* @@? 18:9 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:9 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 18:13 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:15 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:4 Error Syntax error ESY0227: Unexpected token 'if'. */ +/* @@? 19:6 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 19:7 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 19:7 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:7 Error Syntax error ESY0227: Unexpected token 'false'. */ +/* @@? 19:7 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:12 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:14 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 20:5 Error Syntax error ESY0227: Unexpected token 'break'. */ +/* @@? 21:6 Error Syntax error ESY0227: Unexpected token 'else'. */ +/* @@? 21:11 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 23:5 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 23:10 Error Semantic error ESE0087: Property 'func' does not exist on type 'Error' */ +/* @@? 23:21 Error Syntax error ESY0227: Unexpected token 'final'. */ +/* @@? 25:3 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 26:2 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 27:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_7.ets b/ets2panda/test/ast/parser/ets/unexpected_token_7.ets index 43dc6c6c4724a541439142a096ba6ca08ef44780..6d575b676922ab761c53ae9f01f3f4dc98ac2d81 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_7.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_7.ets @@ -17,4 +17,4 @@ while /* @@ label */true) { console.log("hehehehe") } -/* @@@ label Error SyntaxError: Expected '(', got 'true'. */ +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'true'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_8.ets b/ets2panda/test/ast/parser/ets/unexpected_token_8.ets index 0e1150386e3952250fcc0a9e5660d176c480a06d..1ff4f3dfeb2a52370b3e15c3a4531b0eac6178c2 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_8.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_8.ets @@ -17,4 +17,4 @@ try { } catch (e /* @@ label1 */{} -/* @@@ label1 Error SyntaxError: Expected ')', got '{'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '{'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_9.ets b/ets2panda/test/ast/parser/ets/unexpected_token_9.ets index 0afcc96121db1592af1a2b3a68d2f927300df698..640d6f5261fbe7d9b28cd9c11cacab08c9c94a1a 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_9.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_9.ets @@ -15,5 +15,5 @@ console.log("aaaaaaaa"} -/* @@? 16:23 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:23 Error SyntaxError: Unexpected token '}'. */ +/* @@? 16:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:23 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/union_static_method.ets b/ets2panda/test/ast/parser/ets/union_static_method.ets index 9148df208530292b359e66cc5e9eb0d8dcdea57d..f3d6de35c54850e8be9375e4e8fb6e638f1c40a3 100644 --- a/ets2panda/test/ast/parser/ets/union_static_method.ets +++ b/ets2panda/test/ast/parser/ets/union_static_method.ets @@ -29,4 +29,4 @@ function main() { UT.met() } -/* @@? 29:5 Error TypeError: Static union member expression cannot be interpreted. */ +/* @@? 29:5 Error Semantic error ESE0335: Static union member expression cannot be interpreted. */ diff --git a/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets b/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets index 1b3e35abc03eff8a6367a730582018ae972dd5f8..25e73850e3cae70b4d215900f196aba1f3fd1601 100644 --- a/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets +++ b/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets @@ -21,12 +21,12 @@ classtext: string, reviver: ((key: string, value: NullishType) => NullishType) | undefined, type: Type -/* @@? 16:13 Error TypeError: Unresolved reference z */ -/* @@? 22:12 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:18 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:20 Error SyntaxError: Unexpected token 'reviver'. */ -/* @@? 22:29 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:91 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:93 Error SyntaxError: Unexpected token 'type'. */ -/* @@? 22:99 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 33:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 16:13 Error Semantic error ESE0143: Unresolved reference z */ +/* @@? 22:12 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:18 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:20 Error Syntax error ESY0227: Unexpected token 'reviver'. */ +/* @@? 22:29 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:91 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:93 Error Syntax error ESY0227: Unexpected token 'type'. */ +/* @@? 22:99 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 33:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ets/update_funcscope_error.ets b/ets2panda/test/ast/parser/ets/update_funcscope_error.ets index 7ca3f8b98c016452f86634a9eb2894793e19aff9..aa62b2aea9f62a743215bc52fb27693e8738bbbb 100644 --- a/ets2panda/test/ast/parser/ets/update_funcscope_error.ets +++ b/ets2panda/test/ast/parser/ets/update_funcscope_error.ets @@ -34,18 +34,18 @@ export const updateIfChanged = (t: Record) => { }; }; -/* @@? 21:19 Error TypeError: Unresolved reference u */ -/* @@? 21:19 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 24:7 Error TypeError: Type '(v: Record) => Boolean' is not compatible with type '(previousValue: Boolean, currentValue: Boolean, index: Double, array: FixedArray) => Boolean' at index 2 */ -/* @@? 27:11 Error TypeError: Invalid record property */ -/* @@? 28:11 Error SyntaxError: Unexpected token. */ -/* @@? 28:12 Error SyntaxError: Unexpected token. */ -/* @@? 28:12 Error TypeError: Type '*ERROR_TYPE*' is not compatible with type 'String' at index 1 */ -/* @@? 28:15 Error SyntaxError: Unexpected token. */ -/* @@? 28:16 Error SyntaxError: Unexpected token ':'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token 'v'. */ -/* @@? 29:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 30:16 Error TypeError: Unresolved reference update */ -/* @@? 32:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 33:12 Error TypeError: Unresolved reference reduceResult */ -/* @@? 35:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 21:19 Error Semantic error ESE0143: Unresolved reference u */ +/* @@? 21:19 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 24:7 Error Semantic error ESE0046: Type '(v: Record) => Boolean' is not compatible with type '(previousValue: Boolean, currentValue: Boolean, index: Double, array: FixedArray) => Boolean' at index 2 */ +/* @@? 27:11 Error Semantic error ESE0393: Invalid record property */ +/* @@? 28:11 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 28:12 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 28:12 Error Semantic error ESE0046: Type '*ERROR_TYPE*' is not compatible with type 'String' at index 1 */ +/* @@? 28:15 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 28:16 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 28:18 Error Syntax error ESY0227: Unexpected token 'v'. */ +/* @@? 29:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 30:16 Error Semantic error ESE0143: Unresolved reference update */ +/* @@? 32:5 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 33:12 Error Semantic error ESE0143: Unresolved reference reduceResult */ +/* @@? 35:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_10.ets b/ets2panda/test/ast/parser/ets/user_defined_10.ets index 3f505ccfbd68ae52d2d2b7db68982b301ecc4375..df16447a43db5b5c14d10dba37c02b05e9cde4c1 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_10.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_10.ets @@ -17,5 +17,5 @@ struct number{ a : string = "15"; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 16:8 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_11.ets b/ets2panda/test/ast/parser/ets/user_defined_11.ets index e04f80779fc9e643d032eebf66080cc8055ac2ec..dcb9954df99bce9cf017a1f9add99c8eac02d7eb 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_11.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_11.ets @@ -17,4 +17,4 @@ class /* @@ label */number{ a : string = "15"; } -/* @@? 16:21 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ +/* @@@ label Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_12.ets b/ets2panda/test/ast/parser/ets/user_defined_12.ets index aa91f5c7f9cf75dd0bd6c06371f74d7f8e20bed5..cfc02a533e18053f2fb0537bca039079609b7d0d 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_12.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_12.ets @@ -17,4 +17,4 @@ class /* @@ label */yield{ a : string = "15"; } -/* @@@ label Error SyntaxError: Cannot be used as user-defined type. */ +/* @@@ label Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_13.ets b/ets2panda/test/ast/parser/ets/user_defined_13.ets index 15cf8e612bbc2a3fa6794deae82cecd9faada43c..74389241a257ab4017dad7959018276ba5457c58 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_13.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_13.ets @@ -17,4 +17,4 @@ class /* @@ label */var{ a : string = "15"; } -/* @@@ label Error SyntaxError: Cannot be used as user-defined type. */ +/* @@@ label Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_14.ets b/ets2panda/test/ast/parser/ets/user_defined_14.ets index 31c17e0cc894d95cfb988decab385f757e4d58c6..952f1c9239676be0ec632d5b0d77e4c2a365c155 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_14.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_14.ets @@ -17,5 +17,5 @@ class /* @@ label */typeof { a : string = "15"; } -/* @@@ label Error SyntaxError: Hard keyword 'typeof' cannot be used as identifier */ -/* @@@ label Error SyntaxError: Identifier expected, got 'typeof'. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got 'typeof'. */ +/* @@? 16:28 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_15.ets b/ets2panda/test/ast/parser/ets/user_defined_15.ets index 1d8a6b4ec1a5929580cb0ba044a884445a5c7156..ef99686fa94abeb3bca3a43d62aff7de23dfc612 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_15.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_15.ets @@ -17,4 +17,4 @@ class /* @@ label */is{ a : string = "15"; } -/* @@@ label Error SyntaxError: Cannot be used as user-defined type. */ +/* @@@ label Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_16.ets b/ets2panda/test/ast/parser/ets/user_defined_16.ets index 536b78e81079c4d3d73305b8e45e460c64c601a3..4fde376137710cb468218b596694811772eb3c04 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_16.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_16.ets @@ -17,5 +17,5 @@ struct is{ a : string = "15"; } -/* @@? 16:8 Error SyntaxError: Cannot be used as user-defined type. */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_17.ets b/ets2panda/test/ast/parser/ets/user_defined_17.ets index 316498fa684dbb3539321ad4f7107700960357eb..37949adeaeee55006b051916db3eb480b36183d5 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_17.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_17.ets @@ -17,5 +17,5 @@ struct var{ a : string = "15"; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 16:8 Error SyntaxError: Cannot be used as user-defined type. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_18.ets b/ets2panda/test/ast/parser/ets/user_defined_18.ets index b261560d447054e980b974d263298e2ad9d499dd..6d408c2215fb9119dd1c94b4990582b8b11fb887 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_18.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_18.ets @@ -17,5 +17,5 @@ struct yield{ a : string = "15"; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 16:8 Error SyntaxError: Cannot be used as user-defined type. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_19.ets b/ets2panda/test/ast/parser/ets/user_defined_19.ets index 8f81e7dbc795a24a5188d7b7e80fe4eb86cfaa11..1efa2647faad1682c291baf5b449f0eeb0ff53c0 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_19.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_19.ets @@ -17,6 +17,6 @@ struct typeof{ a : string = "15"; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 16:8 Error SyntaxError: Hard keyword 'typeof' cannot be used as identifier */ -/* @@? 16:8 Error SyntaxError: Identifier expected, got 'typeof'. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0316: Hard keyword 'typeof' cannot be used as identifier */ +/* @@? 16:8 Error Syntax error ESY0224: Identifier expected, got 'typeof'. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_20.ets b/ets2panda/test/ast/parser/ets/user_defined_20.ets index 11c00c085ab04a1aaa9a32c9f8aa67f3a774f110..2c0e7648057128ef6d8e75aec7a7124ffcd10878 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_20.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_20.ets @@ -17,5 +17,5 @@ struct bigint{ a : string = "15"; } -/* @@? 16:8 Error SyntaxError: bigint is a predefined type, cannot be used as an identifier */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0227: Unexpected token 'bigint'. */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_21.ets b/ets2panda/test/ast/parser/ets/user_defined_21.ets index a7715989bf1d418e8d4c0263dca804341ef44563..2c0901c86119afdcf03401807252b0fd42c63f33 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_21.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_21.ets @@ -17,4 +17,4 @@ class /* @@ label */bigint{ a : string = "15"; } -/* @@@ label Error SyntaxError: bigint is a predefined type, cannot be used as an identifier */ +/* @@@ label Error Syntax error ESY0295: bigint is a predefined type, cannot be used as an identifier */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_23.ets b/ets2panda/test/ast/parser/ets/user_defined_23.ets index efb6979bc61e44de27990bbd37e84816bf8ad7ad..857e9005ca6322fee0a8b7e6c7f0ca4330a93c52 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_23.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_23.ets @@ -17,4 +17,4 @@ class /* @@ label */type { type: number = 0 } -/* @@@ label Error SyntaxError: Cannot be used as user-defined type. */ +/* @@@ label Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_24.ets b/ets2panda/test/ast/parser/ets/user_defined_24.ets index fb94fe840a90385d19360ff6623d2612fba52c2e..a600d3b9ae9bcde790e5c6fd627eee8c5fd3e468 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_24.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_24.ets @@ -17,5 +17,5 @@ struct type { type: number = 0 } -/* @@? 16:8 Error SyntaxError: Cannot be used as user-defined type. */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0145: Cannot be used as user-defined type. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_25.ets b/ets2panda/test/ast/parser/ets/user_defined_25.ets index a51079cba2b300ed2602e782961485091f370491..4c54adfc807df514a035c4a2dcad4856162a63ac 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_25.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_25.ets @@ -17,8 +17,8 @@ interface /* @@ label1 */type { type: number /* @@ label2 */= /* @@ label3 */0 /* @@ label4 */} -/* @@@ label1 Error SyntaxError: Cannot be used as user-defined type. */ -/* @@@ label2 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@@ label3 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:48 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@@ label4 Error SyntaxError: Identifier expected. */ +/* @@@ label1 Error Syntax error ESY0145: Cannot be used as user-defined type. */ +/* @@@ label2 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@@ label3 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@@ label3 Error Syntax error ESY0124: Unexpected token, expected 'private' or identifier. */ +/* @@@ label4 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_5.ets b/ets2panda/test/ast/parser/ets/user_defined_5.ets index a20b8680d4ed2d7c4dac1f52b113a95206279b00..5ac355da8817d066bc0f5f90943691cac6a833b0 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_5.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_5.ets @@ -17,4 +17,4 @@ enum /* @@ label */double { A, B, C } -/* @@@ label Error SyntaxError: double is a predefined type, cannot be used as an identifier */ +/* @@@ label Error Syntax error ESY0295: double is a predefined type, cannot be used as an identifier */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_7.ets b/ets2panda/test/ast/parser/ets/user_defined_7.ets index 5b9519508f6746008b811c5d0d2d3eefcc2cb2d7..e7df940ae7da16aa69f9969cf6826b6f891d8997 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_7.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_7.ets @@ -17,8 +17,6 @@ interface /* @@ label1 */double { name : string /* @@ label2 */= /* @@ label3 */"" /* @@ label4 */} -/* @@@ label1 Error SyntaxError: double is a predefined type, cannot be used as an identifier */ -/* @@@ label2 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@@ label3 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:51 Error SyntaxError: Unexpected token, expected 'private' or identifier. */ -/* @@@ label4 Error SyntaxError: Identifier expected. */ +/* @@@ label3 Error Syntax error ESY0000: Unexpected token in property key */ +/* @@@ label2 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@@ label3 Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_8.ets b/ets2panda/test/ast/parser/ets/user_defined_8.ets index 52278742dd3f8ed2e018321cb303a067e5bcf713..fa590b4be933b277bf2946e8c66d8cc27e255a66 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_8.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_8.ets @@ -17,5 +17,5 @@ struct string{ a : string = "15"; } -/* @@? 16:8 Error SyntaxError: string is a predefined type, cannot be used as an identifier */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_9.ets b/ets2panda/test/ast/parser/ets/user_defined_9.ets index 1170c80f98c44b47ee10471aed582e5cd53019a1..1742d05c0d6cd1d9d03b0ae9668b8426897f8236 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_9.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_9.ets @@ -17,4 +17,4 @@ class /* @@ label */string{ a : string = "15"; } -/* @@@ label Error SyntaxError: string is a predefined type, cannot be used as an identifier */ +/* @@@ label Error Syntax error ESY0295: string is a predefined type, cannot be used as an identifier */ diff --git a/ets2panda/test/ast/parser/ets/visible_signatures_1.ets b/ets2panda/test/ast/parser/ets/visible_signatures_1.ets index 829fc98702e4fb80b241f56a6aebe7f8a1a9d23b..80ab40140ab1d668513675c624064a19b3610e1e 100644 --- a/ets2panda/test/ast/parser/ets/visible_signatures_1.ets +++ b/ets2panda/test/ast/parser/ets/visible_signatures_1.ets @@ -27,6 +27,6 @@ function main(): void { } -/* @@? 20:5 Error TypeError: Function foo with this assembly signature already declared. */ -/* @@? 26:5 Error TypeError: Signature foo(a: Double|undefined): Int is not visible here. */ -/* @@? 26:5 Error TypeError: No matching call signature for foo(Double) */ +/* @@? 20:5 Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ +/* @@? 26:5 Error Semantic error ESE0139: Signature foo(a: Double|undefined): Int is not visible here. */ +/* @@? 26:5 Error Semantic error ESE0127: No matching call signature for foo(Double) */ diff --git a/ets2panda/test/ast/parser/ets/while_with_empty_body.ets b/ets2panda/test/ast/parser/ets/while_with_empty_body.ets index 3e6ecfbf428e4e16bf84d14524414613a789cd6c..953992e392ca705a35f241ee26c99662bae1baaf 100644 --- a/ets2panda/test/ast/parser/ets/while_with_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/while_with_empty_body.ets @@ -15,5 +15,5 @@ while (null) export function foo() {} -/* @@? 16:14 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 16:14 Error SyntaxError: Missing body in while statement */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 16:14 Error Syntax error ESY0300: Missing body in while statement */ diff --git a/ets2panda/test/ast/parser/ets/while_with_empty_condition.ets b/ets2panda/test/ast/parser/ets/while_with_empty_condition.ets index 33c96d6b164262d3adec76bed34cc20eb6ce0412..04d01e1a53af7a863b7728f88771324347f7d54d 100644 --- a/ets2panda/test/ast/parser/ets/while_with_empty_condition.ets +++ b/ets2panda/test/ast/parser/ets/while_with_empty_condition.ets @@ -15,6 +15,6 @@ while () {} -/* @@? 16:8 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:10 Error SyntaxError: Expected ')', got '{'. */ -/* @@? 21:1 Error SyntaxError: Missing condition in while statement */ +/* @@? 16:8 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:10 Error Syntax error ESY0230: Expected ')', got '{'. */ +/* @@? 21:1 Error Syntax error ESY0301: Missing condition in while statement */ diff --git a/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets b/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets index f4fc655e44f39ef00cd58b29bdbc188ba1e5a12b..58771c6d61adb1ccf14acac46842f92dc2cda9c4 100644 --- a/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets +++ b/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets @@ -20,4 +20,4 @@ file with CR LF line endings */ a -/* @@? 21:1 Error TypeError: Unresolved reference a */ +/* @@? 21:1 Error Semantic error ESE0143: Unresolved reference a */ diff --git a/ets2panda/test/ast/parser/ets/wrong-union-array-assignment.ets b/ets2panda/test/ast/parser/ets/wrong-union-array-assignment.ets index 90dddc19e8d33c1502e969cd577b45decf3e0b9a..0a7dda76d46bfac1ef67bf60c6aebc8b4a0812e2 100644 --- a/ets2panda/test/ast/parser/ets/wrong-union-array-assignment.ets +++ b/ets2panda/test/ast/parser/ets/wrong-union-array-assignment.ets @@ -24,4 +24,4 @@ function main() array = /* @@ label */new Bad(); } -/* @@? 24:27 Error TypeError: Type 'Bad' cannot be assigned to type 'Array' */ +/* @@@ label Error Semantic error ESE0318: Type 'Bad' cannot be assigned to type 'Array' */ diff --git a/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets b/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets index 13d250bfdbe671753284b1b026d8281f2f75b928..83c56c3a2ef103ad1035a763c501b7822953a84f 100644 --- a/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets +++ b/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets @@ -20,5 +20,5 @@ class A { let a: readonly = new A(); -/* @@? 21:16 Error SyntaxError: Invalid Type. */ -/* @@? 21:20 Error SyntaxError: Readonly utility type expected but readonly found. */ +/* @@? 21:16 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:20 Error Syntax error ESY0237: Readonly utility type expected but readonly found. */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_class_1.ets b/ets2panda/test/ast/parser/ets/wrong_context_class_1.ets index 76848aae0f9f83e4668fcc2fda5156914f68e2d2..abf15b98e7279e42e8081a01bc8d3125b0e29389 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_class_1.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_class_1.ets @@ -22,5 +22,5 @@ function main() /* @@ label */a = /* @@ label1 */5 } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type 'a' */ +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'a' */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_class_2.ets b/ets2panda/test/ast/parser/ets/wrong_context_class_2.ets index f26cb6dee62a19595f38e4a39a61b61ad9fc41ee..b11611cdc03c137501d9364fe0c02c8986b46665 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_class_2.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_class_2.ets @@ -23,5 +23,5 @@ function main() b = a } -/* @@? 23:9 Error SyntaxError: Class cannot be used as object. */ -/* @@? 23:9 Error TypeError: Type 'a' cannot be assigned to type 'Int' */ +/* @@? 23:9 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 23:9 Error Semantic error ESE0318: Type 'a' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_class_3.ets b/ets2panda/test/ast/parser/ets/wrong_context_class_3.ets index 6b54667d9f58ff7fa9839619ce1637c9924a6597..ef155250950e5d56194d98faf090d78cc3d8e341 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_class_3.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_class_3.ets @@ -22,5 +22,5 @@ function main() a++ } -/* @@? 22:5 Error SyntaxError: Class cannot be used as object. */ -/* @@? 22:5 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ +/* @@? 22:5 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 22:5 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_class_4.ets b/ets2panda/test/ast/parser/ets/wrong_context_class_4.ets index 79ccb2bf3b42f75c8be831257608c268bd56f91a..7379f2d44bee447ead9d384f3ff88836ebc696c2 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_class_4.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_class_4.ets @@ -26,5 +26,5 @@ function main() a[3] } -/* @@? 26:5 Error TypeError: Object type doesn't have proper index access method. */ -/* @@? 26:5 Error SyntaxError: Class cannot be used as object. */ +/* @@? 26:5 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 26:5 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets b/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets index 4e2bf2e259d4475642e54090baedb6613d27ba24..23527a7690768789dc8079bf1644b049f654974a 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets @@ -22,5 +22,5 @@ function main() /* @@ label */a = /* @@ label1 */5 } -/* @@@ label Error TypeError: Function name 'a' used in the wrong context */ -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type '() => void' */ +/* @@@ label Error Semantic error ESE0144: Function name 'a' used in the wrong context */ +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type '() => void' */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_function_2.ets b/ets2panda/test/ast/parser/ets/wrong_context_function_2.ets index 69076b3d7b8d72942d1428c7b1fb18cc8905ec16..87724424f8ae1dabd1d136298dc9811540cb2f18 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_function_2.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_function_2.ets @@ -23,4 +23,4 @@ function main() b = /* @@ label */a } -/* @@@ label Error TypeError: Type '() => void' cannot be assigned to type 'Int' */ +/* @@@ label Error Semantic error ESE0318: Type '() => void' cannot be assigned to type 'Int' */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_function_3.ets b/ets2panda/test/ast/parser/ets/wrong_context_function_3.ets index 74b8296e569fb0bbdf09cd3004228e5ac4e7409f..8b5a6990ff70b4fa16971b4d8d9d2059f61da023 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_function_3.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_function_3.ets @@ -22,5 +22,5 @@ function main() a++ } -/* @@? 22:5 Error TypeError: Function name 'a' used in the wrong context */ -/* @@? 22:5 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ +/* @@? 22:5 Error Semantic error ESE0144: Function name 'a' used in the wrong context */ +/* @@? 22:5 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ diff --git a/ets2panda/test/ast/parser/ets/wrong_context_function_4.ets b/ets2panda/test/ast/parser/ets/wrong_context_function_4.ets index 16a45d2daa8ad6b42e896482a005392451b493dd..96c235f8f7ba1d8c505ca0f0ba06b106357ef5d1 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_function_4.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_function_4.ets @@ -26,5 +26,5 @@ function main() a[3] } -/* @@? 26:5 Error TypeError: Function name 'a' used in the wrong context */ -/* @@? 26:5 Error TypeError: Indexed access is not supported for such expression type. */ +/* @@? 26:5 Error Semantic error ESE0144: Function name 'a' used in the wrong context */ +/* @@? 26:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ diff --git a/ets2panda/test/ast/parser/js/InvalidParserImpl.js b/ets2panda/test/ast/parser/js/InvalidParserImpl.js index c9a25dc5df258bdefeeb5613c3acc403d48f688a..f6a755d863a9f51e68f95162100ac5d8f5ec7f23 100644 --- a/ets2panda/test/ast/parser/js/InvalidParserImpl.js +++ b/ets2panda/test/ast/parser/js/InvalidParserImpl.js @@ -49,21 +49,11 @@ for (var i of a) { continue label; } -/* @@? 16:7 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:10 Error SyntaxError: Unexpected token '{'. */ -/* @@? 22:5 Error SyntaxError: Private field has already been declared. */ -/* @@? 22:15 Error SyntaxError: Invalid accessor. */ -/* @@? 24:12 Error SyntaxError: Unexpected modifier. */ -/* @@? 24:12 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 26:6 Error SyntaxError: Unexpected identifier. */ -/* @@? 30:6 Error SyntaxError: Private identifier can not be constructor. */ -/* @@? 35:12 Error SyntaxError: Classes may not have static property named prototype. */ -/* @@? 37:5 Error SyntaxError: Classes may not have a field named 'constructor'. */ -/* @@? 38:12 Error SyntaxError: Classes may not have static property named prototype. */ -/* @@? 40:5 Error SyntaxError: Multiple constructor implementations are not allowed. */ -/* @@? 41:5 Error SyntaxError: Multiple constructor implementations are not allowed. */ -/* @@? 43:5 Error SyntaxError: Multiple constructor implementations are not allowed. */ -/* @@? 43:11 Error SyntaxError: Constructor can not be special method. */ -/* @@? 46:12 Error SyntaxError: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ -/* @@? 46:18 Error SyntaxError: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ -/* @@? 49:14 Error SyntaxError: Undefined label. */ +/* @@? 26:13 Error Syntax error ESY0000: A method cannot be named with a private identifier */ +/* @@? 16:7 Error Syntax error ESY0230: Expected '{', got 'number literal'. */ +/* @@? 16:10 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 22:5 Error Syntax error ESY0154: Private field has already been declared. */ +/* @@? 22:15 Error Syntax error ESY0159: Invalid accessor. */ +/* @@? 24:12 Error Syntax error ESY0153: Unexpected modifier. */ +/* @@? 24:12 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 26:6 Error Syntax error ESY0045: Unexpected identifier. */ diff --git a/ets2panda/test/ast/parser/js/for_of_loop_variable.js b/ets2panda/test/ast/parser/js/for_of_loop_variable.js index ba0df0f51096697f7c3de6ba4d1b232e475b2285..76dd251f66b4a5499c9c620160f1b963cd3a276b 100644 --- a/ets2panda/test/ast/parser/js/for_of_loop_variable.js +++ b/ets2panda/test/ast/parser/js/for_of_loop_variable.js @@ -27,4 +27,4 @@ for (let value of iterable2) { console.log(value); } -/* @@@ label Error SyntaxError: for-of loop variable declaration may not have an initializer. */ +/* @@@ label Error Syntax error ESY0168: for-of loop variable declaration may not have an initializer. */ diff --git a/ets2panda/test/ast/parser/js/invalid-left-hand-side-in-prefix-operation.js b/ets2panda/test/ast/parser/js/invalid-left-hand-side-in-prefix-operation.js index 45100448e1039ae6274e9167947de801b0c644af..66d933f98dc7a05c860fa84a823d4f8bc17f4197 100644 --- a/ets2panda/test/ast/parser/js/invalid-left-hand-side-in-prefix-operation.js +++ b/ets2panda/test/ast/parser/js/invalid-left-hand-side-in-prefix-operation.js @@ -15,5 +15,4 @@ ++!a -/* @@@ label Error SyntaxError: Invalid left-hand side in prefix operation. */ -/* @@ label */ \ No newline at end of file +/* @@? 20:1 Error Syntax error ESY0071: Invalid left-hand side in prefix operation. */ diff --git a/ets2panda/test/ast/parser/js/module/import_meta_1.js b/ets2panda/test/ast/parser/js/module/import_meta_1.js index c27479a9719bb21d4be6756cc4e7b2c0a68d1143..6835ff35d4bf8014b9d2234503f479314b95721f 100644 --- a/ets2panda/test/ast/parser/js/module/import_meta_1.js +++ b/ets2panda/test/ast/parser/js/module/import_meta_1.js @@ -20,8 +20,6 @@ flags: [module] import(import.mta) import.meta -/* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ +/* @@? 20:14 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ +/* @@? 20:15 Error Syntax error ESY0068: The only valid meta property for import is import.Meta. */ +/* @@? 21:7 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ diff --git a/ets2panda/test/ast/parser/js/module/import_meta_2.js b/ets2panda/test/ast/parser/js/module/import_meta_2.js index 44391afab75f33fd8b8a38e75178360f928bbfa4..7a2336edf07dd5b1f954e84686172f367b734018 100644 --- a/ets2panda/test/ast/parser/js/module/import_meta_2.js +++ b/ets2panda/test/ast/parser/js/module/import_meta_2.js @@ -21,10 +21,7 @@ import(import.mta import.meta -/* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 21:1 Error SyntaxError: Expected ')', got 'import'. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 21:1 Error SyntaxError: Expected ')', got 'import'. */ +/* @@? 20:14 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ +/* @@? 20:15 Error Syntax error ESY0068: The only valid meta property for import is import.Meta. */ +/* @@? 21:1 Error Syntax error ESY0230: Expected ')', got 'import'. */ +/* @@? 21:7 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ diff --git a/ets2panda/test/ast/parser/js/module/unexpected_token_10.js b/ets2panda/test/ast/parser/js/module/unexpected_token_10.js index 9b30edb06b5001a316de0197b7f0a153c0c50bae..451c7636e2849bb9b4f23f9bbd6b5ebf1e067f27 100644 --- a/ets2panda/test/ast/parser/js/module/unexpected_token_10.js +++ b/ets2panda/test/ast/parser/js/module/unexpected_token_10.js @@ -19,6 +19,6 @@ flags: [module] import(import /* @@ label */) -/* @@@ label Error SyntaxError: Expected '(', got ')'. */ -/* @@@ label Error SyntaxError: Unexpected token ')'. */ -/* @@? 25:1 Error SyntaxError: Expected ')', got 'end of stream'. */ +/* @@@ label Error Syntax error ESY0230: Expected '(', got ')'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 26:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/js/module/unexpected_token_9.js b/ets2panda/test/ast/parser/js/module/unexpected_token_9.js index 4988d12095e063ec6a54c58d1d36b841f70c9f9f..5b62af7a9d540057320156caa4d07033c623f6ef 100644 --- a/ets2panda/test/ast/parser/js/module/unexpected_token_9.js +++ b/ets2panda/test/ast/parser/js/module/unexpected_token_9.js @@ -20,8 +20,4 @@ flags: [module] export { a as 6, c} from "foo" -/* @@? 20:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 20:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 20:15 Error SyntaxError: Unexpected token, expected an identifier. */ +/* @@? 20:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/parser/js/new-expression.js b/ets2panda/test/ast/parser/js/new-expression.js index 3a1a9bb9b5299cd76f8b0dbc6449eef1d944aa6c..07f4f7ec21dde3c4e145cabbaeeeb77fab6ae420 100644 --- a/ets2panda/test/ast/parser/js/new-expression.js +++ b/ets2panda/test/ast/parser/js/new-expression.js @@ -15,4 +15,4 @@ new a()/* @@ label */{}; -/* @@@ label Error SyntaxError: Unexpected token '{'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/js/private_ctor_bad.js b/ets2panda/test/ast/parser/js/private_ctor_bad.js index 1b9477045f2682176e219e5d18c7db2125030c6d..8c9a6c461628b34e2859e52c1f756ed93c398496 100644 --- a/ets2panda/test/ast/parser/js/private_ctor_bad.js +++ b/ets2panda/test/ast/parser/js/private_ctor_bad.js @@ -17,4 +17,5 @@ class A { #constructor(){} } -/* @@? 18:6 Error SyntaxError: Private identifier can not be constructor. */ +/* @@? 18:17 Error Syntax error ESY0000: A method cannot be named with a private identifier */ +/* @@? 18:6 Error Syntax error ESY0267: Private identifier can not be constructor. */ diff --git a/ets2panda/test/ast/parser/js/private_number_bad.js b/ets2panda/test/ast/parser/js/private_number_bad.js index 94cd82cad0adec7fc72ee2b4572247a0019ed93a..270800bd167954576cd74959f76aeed1c9c37713 100644 --- a/ets2panda/test/ast/parser/js/private_number_bad.js +++ b/ets2panda/test/ast/parser/js/private_number_bad.js @@ -16,5 +16,6 @@ class WeAre { #1 } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Private identifier name can not be number. */ +/* @@? 17:5 Error Syntax error ESY0298: Use 'private' keyword to declare an identifier as private. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token '1'. */ diff --git a/ets2panda/test/ast/parser/js/private_ref_bad.js b/ets2panda/test/ast/parser/js/private_ref_bad.js index cc4b234705d69a92b2be25ca18a4cc86fb8deede..f5413ede8557d448c87dc77bd705e6e9726f8d40 100644 --- a/ets2panda/test/ast/parser/js/private_ref_bad.js +++ b/ets2panda/test/ast/parser/js/private_ref_bad.js @@ -18,4 +18,4 @@ class A{ return this.#x } } -/* @@? 18:21 Error SyntaxError: Private field 'x' must be declared in an enclosing class */ +/* @@? 18:21 Error Syntax error ESY0000: Private field 'x' must be declared in an enclosing class */ diff --git a/ets2panda/test/ast/parser/js/private_sqbracket_bad.js b/ets2panda/test/ast/parser/js/private_sqbracket_bad.js index 426ccec09f494b4ac77389b6317cfa181521c25e..5147ddf2ae7d335cd40c8cd4b8da3afad7db7a35 100644 --- a/ets2panda/test/ast/parser/js/private_sqbracket_bad.js +++ b/ets2panda/test/ast/parser/js/private_sqbracket_bad.js @@ -16,8 +16,7 @@ class WeAre { #[ } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Unexpected character in private identifier. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 24:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 18:1 Error Syntax error ESY0000: Unexpected token, expected ']' */ +/* @@? 17:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0270: Unexpected character in private identifier. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/js/private_string_bad.js b/ets2panda/test/ast/parser/js/private_string_bad.js index 58c411b6fd9fcc16fd4c6cbaa533c681c3b85836..e085ff69af6e49ff1f203b6d141eff3d0f287020 100644 --- a/ets2panda/test/ast/parser/js/private_string_bad.js +++ b/ets2panda/test/ast/parser/js/private_string_bad.js @@ -16,5 +16,6 @@ class WeAre { #"one" } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Private identifier name can not be string. */ +/* @@? 17:5 Error Syntax error ESY0298: Use 'private' keyword to declare an identifier as private. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token 'one'. */ diff --git a/ets2panda/test/ast/parser/js/static_property_prototype.js b/ets2panda/test/ast/parser/js/static_property_prototype.js index 9162d059454a7425a3b8b9719dca04481bd2cbe9..fe688160788db93307ab216a758948a70c400c06 100644 --- a/ets2panda/test/ast/parser/js/static_property_prototype.js +++ b/ets2panda/test/ast/parser/js/static_property_prototype.js @@ -18,4 +18,4 @@ class A { static "prototype" = 123; } -/* @@? 18:12 Error SyntaxError: Classes may not have static property named prototype. */ +/* @@? 18:12 Error Syntax error ESY0155: Classes may not have static property named prototype. */ diff --git a/ets2panda/test/ast/parser/js/test-array-expression-1.js b/ets2panda/test/ast/parser/js/test-array-expression-1.js index 72735af88fc60c4eeb566fb808715db323a57afe..d5f6723d3ca2ed2c0ae3e4ad1de1fc66f6bf8efe 100644 --- a/ets2panda/test/ast/parser/js/test-array-expression-1.js +++ b/ets2panda/test/ast/parser/js/test-array-expression-1.js @@ -15,6 +15,6 @@ [a['b']/* @@ label */c] -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token 'c'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token ']'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'c'. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/js/test-array-expression-2.js b/ets2panda/test/ast/parser/js/test-array-expression-2.js index ae6bc3f978d24b99285acb17da27455b6a3b301e..f840cbb8c51139dd57b9a59840106b8956f4767f 100644 --- a/ets2panda/test/ast/parser/js/test-array-expression-2.js +++ b/ets2panda/test/ast/parser/js/test-array-expression-2.js @@ -16,4 +16,4 @@ [a/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ']'. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ diff --git a/ets2panda/test/ast/parser/js/test-class-definition1.js b/ets2panda/test/ast/parser/js/test-class-definition1.js index cc74c1dfa0e143e0d4ce935a341afa6c70da1107..468e6f6fc471203e76dfdbf5a4f92e7b8b1e7a47 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition1.js +++ b/ets2panda/test/ast/parser/js/test-class-definition1.js @@ -20,4 +20,4 @@ class A { super/* @@ label */(); } } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ diff --git a/ets2panda/test/ast/parser/js/test-class-definition2.js b/ets2panda/test/ast/parser/js/test-class-definition2.js index 450865bc4883f944d6fbb0bb30aa771a18a2c85b..b61b90b31bcc28f32f465ee8e183073daeb44a98 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition2.js +++ b/ets2panda/test/ast/parser/js/test-class-definition2.js @@ -23,4 +23,4 @@ class A { } } -/* @@@ label Error SyntaxError: Multiple constructor implementations are not allowed. */ +/* @@@ label Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ diff --git a/ets2panda/test/ast/parser/js/test-class-definition3.js b/ets2panda/test/ast/parser/js/test-class-definition3.js index 9b0d1bd0609b2ea42a9926a37285496e1ab00151..e299b4bb3decb101b40c759a7be3929bd327ec08 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition3.js +++ b/ets2panda/test/ast/parser/js/test-class-definition3.js @@ -20,4 +20,4 @@ class B extends A { super/* @@ label */(); } } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ +/* @@? 19:10 Error Syntax error ESY0000: Static modifier can not appear on a constructor */ diff --git a/ets2panda/test/ast/parser/js/test-class-definition4.js b/ets2panda/test/ast/parser/js/test-class-definition4.js index 2b904bb27027f0d91940c6087f64eb6d81584e8c..a4b8035d3ff9b5579750b794cfb3098c25ddc3e3 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition4.js +++ b/ets2panda/test/ast/parser/js/test-class-definition4.js @@ -18,4 +18,4 @@ class B { static /* @@ label */prototype() { } } -/* @@@ label Error SyntaxError: Classes may not have static property named prototype. */ +/* @@@ label Error Syntax error ESY0155: Classes may not have static property named prototype. */ diff --git a/ets2panda/test/ast/parser/js/test-class-definition5.js b/ets2panda/test/ast/parser/js/test-class-definition5.js index 3fedf6b5786b0c3ad32cce6c288f01e2ff9c0b95..b21715f3b716acdc4ac8cf5b2eb4797a3ce0a395 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition5.js +++ b/ets2panda/test/ast/parser/js/test-class-definition5.js @@ -18,4 +18,4 @@ class A { get /* @@ label */constructor() { } } -/* @@@ label Error SyntaxError: Constructor can not be special method. */ +/* @@@ label Error Syntax error ESY0149: Constructor can not be special method. */ diff --git a/ets2panda/test/ast/parser/js/test-class-static-block1.js b/ets2panda/test/ast/parser/js/test-class-static-block1.js index d6eb0f75ba7bb4c8aa4d1f9bc701b34c7fc11c3f..bdfce4fba0f99d0b144b33b7c0ee93880fa3edf0 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block1.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block1.js @@ -19,5 +19,5 @@ class A { } /* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected ';'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/js/test-class-static-block2.js b/ets2panda/test/ast/parser/js/test-class-static-block2.js index cc4297e70874ece4c915e248ab2f29a0197ffaa5..fe0e420ca0889803b9d4ecf8bd570c42afc8d487 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block2.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block2.js @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: return keyword should be used in function body. */ +/* @@@ label Error Syntax error ESY0163: return keyword should be used in function body. */ diff --git a/ets2panda/test/ast/parser/js/test-class-static-block3.js b/ets2panda/test/ast/parser/js/test-class-static-block3.js index 1035daac13675d9505f88a69efe7bd97fc70f656..b9fdb77685a71e717f38ae0f71e2be77d2a54cff 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block3.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block3.js @@ -19,4 +19,4 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ diff --git a/ets2panda/test/ast/parser/js/test-class-static-block4.js b/ets2panda/test/ast/parser/js/test-class-static-block4.js index cdf794c0e79ea6f173303c702410fbfe69066e4e..ab2b8fc0d2a7c17d53c8b6fd9da1716cac460d4e 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block4.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block4.js @@ -20,4 +20,4 @@ class A { } } -/* @@@ label Error SyntaxError: Variable 'a' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'a' has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-class-static-block5.js b/ets2panda/test/ast/parser/js/test-class-static-block5.js index 0fa943de1b31ce4162c9b30a9d01f2574af83590..fbab6ae3f7a658917d601cd6e7a596ed9af3f87d 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block5.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block5.js @@ -20,4 +20,4 @@ class A { } -/* @@@ label Error SyntaxError: Private field 'a' must be declared in an enclosing class */ +/* @@@ label Error Syntax error ESY0000: Private field 'a' must be declared in an enclosing class */ diff --git a/ets2panda/test/ast/parser/js/test-class-static-block6.js b/ets2panda/test/ast/parser/js/test-class-static-block6.js index b12cb5006b98885b207ea2b7dc5df7c9df872ddf..4f61fb6ec4e55c59efe47754aa168166e4643841 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block6.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block6.js @@ -21,4 +21,4 @@ function *g() { } } -/* @@? 19:13 Error SyntaxError: Unexpected strict mode reserved keyword. */ +/* @@? 19:13 Error Syntax error ESY0264: Unexpected strict mode reserved keyword. */ diff --git a/ets2panda/test/ast/parser/js/test-const-without-init.js b/ets2panda/test/ast/parser/js/test-const-without-init.js index 2a9fc8c2eb32c8ef8687fc4c0a2e101e048b96af..21c1ae9836df83271b8d19bffd14da67e990cb84 100644 --- a/ets2panda/test/ast/parser/js/test-const-without-init.js +++ b/ets2panda/test/ast/parser/js/test-const-without-init.js @@ -16,4 +16,4 @@ const c/* @@ label */; -/* @@@ label Error SyntaxError: Missing initializer in const declaration. */ +/* @@? 17:7 Error Semantic error ESE0000: Variable c implicitly has an any type. */ diff --git a/ets2panda/test/ast/parser/js/test-continue-in-switch.js b/ets2panda/test/ast/parser/js/test-continue-in-switch.js index d1ed42da049dda534e33bf16611da1b194d79d7a..9da2a2b1a948a9f7f5d0c82fb47806d90e5d1f7c 100644 --- a/ets2panda/test/ast/parser/js/test-continue-in-switch.js +++ b/ets2panda/test/ast/parser/js/test-continue-in-switch.js @@ -25,4 +25,4 @@ switch (a) break; } -/* @@@ label Error SyntaxError: Illegal continue statement. */ +/* @@@ label Error Syntax error ESY0000: A 'continue' statement can only be used within an enclosing iteration statement */ diff --git a/ets2panda/test/ast/parser/js/test-delete-identifier.js b/ets2panda/test/ast/parser/js/test-delete-identifier.js index 50d2a69b2d6df5421b3c682a5311d6f7d6b44037..085e9c79a451b4a00778118a6274b0c7f51b8b47 100644 --- a/ets2panda/test/ast/parser/js/test-delete-identifier.js +++ b/ets2panda/test/ast/parser/js/test-delete-identifier.js @@ -16,4 +16,4 @@ var a; delete a/* @@ label */; -/* @@@ label Error SyntaxError: Deleting local variable in strict mode. */ +/* @@@ label Error Syntax error ESY0050: Deleting local variable in strict mode. */ diff --git a/ets2panda/test/ast/parser/js/test-do-while-1.js b/ets2panda/test/ast/parser/js/test-do-while-1.js index 7f49fa1b8b9e0771bcfe8f06a3e8cd0c2acde053..d633711c7d2453e64a83f619c4901497f0aaf282 100644 --- a/ets2panda/test/ast/parser/js/test-do-while-1.js +++ b/ets2panda/test/ast/parser/js/test-do-while-1.js @@ -15,4 +15,4 @@ do a = 2 /* @@ label */while (a > b) -/* @@@ label Error SyntaxError: Unexpected token 'while'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'while'. */ diff --git a/ets2panda/test/ast/parser/js/test-escaped-keyword.js b/ets2panda/test/ast/parser/js/test-escaped-keyword.js index 894e93267a0df969ffd06f35991f7af8099f5153..2d3aca1f76a8f85bdb68283a7f5e401034a9d037 100644 --- a/ets2panda/test/ast/parser/js/test-escaped-keyword.js +++ b/ets2panda/test/ast/parser/js/test-escaped-keyword.js @@ -16,4 +16,4 @@ cl\u0061ss; -/* @@? 17:1 Error SyntaxError: Escape sequences are not allowed in keyword. */ +/* @@? 17:1 Error Syntax error ESY0271: Escape sequences are not allowed in keyword. */ diff --git a/ets2panda/test/ast/parser/js/test-expression-after-unary-expression.js b/ets2panda/test/ast/parser/js/test-expression-after-unary-expression.js index 2dace32c0c3b490ab9579e064fe2a42cad5b24fd..cd1672c2eb8872def16f020275c4c41811aaf21b 100644 --- a/ets2panda/test/ast/parser/js/test-expression-after-unary-expression.js +++ b/ets2panda/test/ast/parser/js/test-expression-after-unary-expression.js @@ -15,4 +15,4 @@ ~a /* @@ label */b -/* @@@ label Error SyntaxError: Unexpected token 'b'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'b'. */ diff --git a/ets2panda/test/ast/parser/js/test-for-1.js b/ets2panda/test/ast/parser/js/test-for-1.js index 9b2243661f8b6d858a65801f948acbb1cbc4e554..5f4713ad1e5eafded805391df07b03ec6e08419e 100644 --- a/ets2panda/test/ast/parser/js/test-for-1.js +++ b/ets2panda/test/ast/parser/js/test-for-1.js @@ -16,6 +16,5 @@ for () {} -/* @@? 17:6 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:6 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:6 Error SyntaxError: Expected ';', got ')'. */ +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:6 Error Syntax error ESY0230: Expected ';', got ')'. */ diff --git a/ets2panda/test/ast/parser/js/test-for-2.js b/ets2panda/test/ast/parser/js/test-for-2.js index 050b2fa3d7e4793168e6401685b4c4b4376f11b4..5aa44c7271c50881c66f45689d2bf2364abecf8c 100644 --- a/ets2panda/test/ast/parser/js/test-for-2.js +++ b/ets2panda/test/ast/parser/js/test-for-2.js @@ -15,5 +15,5 @@ for (;/* @@ label */) {} -/* @@@ label Error SyntaxError: Unexpected token ')'. */ -/* @@@ label Error SyntaxError: Expected ';', got ')'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label Error Syntax error ESY0230: Expected ';', got ')'. */ diff --git a/ets2panda/test/ast/parser/js/test-for-3.js b/ets2panda/test/ast/parser/js/test-for-3.js index 35fd692b388d444db687ea8d0cbeb8f2df66082b..45e5a0938944b72b92aa16402a539a88dd542208 100644 --- a/ets2panda/test/ast/parser/js/test-for-3.js +++ b/ets2panda/test/ast/parser/js/test-for-3.js @@ -20,4 +20,5 @@ function foo() { } foo().a = 1; -/* @@@ label Error SyntaxError: Invalid left-hand side in 'For[In/Of]Statement'. */ +/* @@? 16:18 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@@ label Error Syntax error ESY0167: Invalid left-hand side in 'For[In/Of]Statement'. */ diff --git a/ets2panda/test/ast/parser/js/test-for-4.js b/ets2panda/test/ast/parser/js/test-for-4.js index 5c38c7a18639611eb5114d8436e3897c522faf1e..618f8d256e7bdd96e4043741fe9f31c11f17f7e0 100644 --- a/ets2panda/test/ast/parser/js/test-for-4.js +++ b/ets2panda/test/ast/parser/js/test-for-4.js @@ -15,4 +15,4 @@ for (let d,/* @@ label */c of {d,c}); -/* @@@ label Error SyntaxError: Invalid left-hand side in 'for' statement: must have a single binding. */ +/* @@@ label Error Syntax error ESY0211: Invalid left-hand side in 'for' statement: must have a single binding. */ diff --git a/ets2panda/test/ast/parser/js/test-function-scope-violation-1.js b/ets2panda/test/ast/parser/js/test-function-scope-violation-1.js index 18d6cfdd51e97a5300a76788eb3a9fdb1727cee2..a4b3153d53bfa3f1535a0b118a38d792f14bdd5f 100644 --- a/ets2panda/test/ast/parser/js/test-function-scope-violation-1.js +++ b/ets2panda/test/ast/parser/js/test-function-scope-violation-1.js @@ -21,4 +21,4 @@ function f(a, b, c) { let /* @@ label */a; } -/* @@@ label Error SyntaxError: Variable 'a' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'a' has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-function-scope-violation-2.js b/ets2panda/test/ast/parser/js/test-function-scope-violation-2.js index 9799129a27e2888bf54a94b381f84266c863b555..5bbc5143d733f7228cb3456e5934a77cd2322190 100644 --- a/ets2panda/test/ast/parser/js/test-function-scope-violation-2.js +++ b/ets2panda/test/ast/parser/js/test-function-scope-violation-2.js @@ -20,4 +20,4 @@ function f(a, b, c) { const /* @@ label */c = 1; } -/* @@@ label Error SyntaxError: Variable 'c' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'c' has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-if-1.js b/ets2panda/test/ast/parser/js/test-if-1.js index 74a15854c678220e9dc48131f5a2b3163de6eec6..57ddad4d7aa54540aff8eb515b9d9b50807f2593 100644 --- a/ets2panda/test/ast/parser/js/test-if-1.js +++ b/ets2panda/test/ast/parser/js/test-if-1.js @@ -15,7 +15,7 @@ if /* @@ label */else; -/* @@@ label Error SyntaxError: Expected '(', got 'else'. */ -/* @@@ label Error SyntaxError: Unexpected token 'else'. */ -/* @@@ label Error SyntaxError: Expected ')', got 'else'. */ -/* @@@ label Error SyntaxError: Unexpected token 'else'. */ +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'else'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'else'. */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got 'else'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'else'. */ diff --git a/ets2panda/test/ast/parser/js/test-if-2.js b/ets2panda/test/ast/parser/js/test-if-2.js index 56a941f110607ccd1550bcb82ba9abd6001cd7e7..5445e88ea8e91714036a97530c146643865e00b9 100644 --- a/ets2panda/test/ast/parser/js/test-if-2.js +++ b/ets2panda/test/ast/parser/js/test-if-2.js @@ -15,5 +15,5 @@ if(/* @@ label */) -/* @@@ label Error SyntaxError: Unexpected token ')'. */ -/* @@? 20:1 Error SyntaxError: Unexpected token 'end of stream'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/js/test-import-decl.js b/ets2panda/test/ast/parser/js/test-import-decl.js index c4238d22015ddafcdca0dd790c308fbdadf4248a..c36666e88732f7a196d42f08f9f7ea0106b8b5e7 100644 --- a/ets2panda/test/ast/parser/js/test-import-decl.js +++ b/ets2panda/test/ast/parser/js/test-import-decl.js @@ -23,5 +23,5 @@ import a from /* @@ label */"bar"/* @@ label1 */; import {c, d as e, f } from "bar" import "foobar"; -/* @@@ label Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected string literal. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ diff --git a/ets2panda/test/ast/parser/js/test-imported-decl1.js b/ets2panda/test/ast/parser/js/test-imported-decl1.js index 7189810d14231e52fb49878d6c3c4859c10f82bc..ffa95fe09eb1a22b36fbe0ac36faf529105fe5b9 100644 --- a/ets2panda/test/ast/parser/js/test-imported-decl1.js +++ b/ets2panda/test/ast/parser/js/test-imported-decl1.js @@ -20,4 +20,4 @@ flags: [module] import * as b from "foo" import {/* @@ label */b} from "bar" -/* @@@ label Error SyntaxError: Variable 'b' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'b' has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-labelled-statement1.js b/ets2panda/test/ast/parser/js/test-labelled-statement1.js index 5ad2a83d1ff8c46c3ea6e30d109db66adf92f1e9..e4404a50032df33df826eb508f1703493ff6219a 100644 --- a/ets2panda/test/ast/parser/js/test-labelled-statement1.js +++ b/ets2panda/test/ast/parser/js/test-labelled-statement1.js @@ -17,4 +17,4 @@ a: /* @@ label */a: 2; -/* @@@ label Error SyntaxError: Label already declared. */ +/* @@@ label Error Syntax error ESY0214: Label already declared. */ diff --git a/ets2panda/test/ast/parser/js/test-labelled-statement2.js b/ets2panda/test/ast/parser/js/test-labelled-statement2.js index eb1914fa4075a19929a3745e178b0a64eb75303d..dfb3ec24f1d50806bdbfdaee472bbeec84e9a928 100644 --- a/ets2panda/test/ast/parser/js/test-labelled-statement2.js +++ b/ets2panda/test/ast/parser/js/test-labelled-statement2.js @@ -21,6 +21,4 @@ while(true) a+=10/* @@ label1 */!! /* @@ label2 */} -/* @@@ label Error SyntaxError: Undefined label. */ -/* @@@ label1 Error SyntaxError: Unexpected token '!'. */ -/* @@@ label2 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0162: Undefined label. */ diff --git a/ets2panda/test/ast/parser/js/test-let-redeclaration.js b/ets2panda/test/ast/parser/js/test-let-redeclaration.js index 82ad1aa3127db21706456d45541066b5394d971c..ac9c64e404aa5cd48794abf7b454c07e03c88587 100644 --- a/ets2panda/test/ast/parser/js/test-let-redeclaration.js +++ b/ets2panda/test/ast/parser/js/test-let-redeclaration.js @@ -18,4 +18,4 @@ let a; let b; let /* @@ label */a; -/* @@@ label Error SyntaxError: Variable 'a' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'a' has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-member-expression-1.js b/ets2panda/test/ast/parser/js/test-member-expression-1.js index 332e76d609eada7b49327a12573d1d1070ec77c9..4c4dad1b5801f4e83610b8efc8f908cb5a792db4 100644 --- a/ets2panda/test/ast/parser/js/test-member-expression-1.js +++ b/ets2panda/test/ast/parser/js/test-member-expression-1.js @@ -15,8 +15,6 @@ a.(b) -/* @@? 17:3 Error SyntaxError: Identifier expected, got '('. */ -/* @@? 17:4 Error SyntaxError: Unexpected token 'b'. */ -/* @@? 17:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:5 Error SyntaxError: Unexpected token ')'. */ +/* @@? 17:3 Error Syntax error ESY0224: Identifier expected, got '('. */ +/* @@? 17:4 Error Syntax error ESY0227: Unexpected token 'b'. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/js/test-member-expression-2.js b/ets2panda/test/ast/parser/js/test-member-expression-2.js index 531e2aea05ab81278d42f9c0a7778373e82227d9..2729b1c4f4e5ab0b5c12cb51f86ace797a8bfa24 100644 --- a/ets2panda/test/ast/parser/js/test-member-expression-2.js +++ b/ets2panda/test/ast/parser/js/test-member-expression-2.js @@ -15,4 +15,4 @@ a[b -/* @@? 19:1 Error SyntaxError: Unexpected token, expected ']'. */ +/* @@? 21:1 Error Syntax error ESY0228: Unexpected token, expected ']'. */ diff --git a/ets2panda/test/ast/parser/js/test-member-expression-3.js b/ets2panda/test/ast/parser/js/test-member-expression-3.js index dde6060bd0801433d1f1e8c077f085350f1719dd..64bfa5f6f143bae1bb487949d8dccd1b3e4b54a1 100644 --- a/ets2panda/test/ast/parser/js/test-member-expression-3.js +++ b/ets2panda/test/ast/parser/js/test-member-expression-3.js @@ -15,4 +15,4 @@ "sfs".b[/* @@ label */] -/* @@@ label Error SyntaxError: Unexpected token ']'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ']'. */ diff --git a/ets2panda/test/ast/parser/js/test-missing-catch-argument.js b/ets2panda/test/ast/parser/js/test-missing-catch-argument.js index 948556a5fc75b903ec4656442ed5c42364fb7c61..cdba62e530bc2226aca6ab1d3449e166e8858fc1 100644 --- a/ets2panda/test/ast/parser/js/test-missing-catch-argument.js +++ b/ets2panda/test/ast/parser/js/test-missing-catch-argument.js @@ -27,4 +27,4 @@ finally } -/* @@@ label Error SyntaxError: Unexpected token ')'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/js/test-multi-line-string.js b/ets2panda/test/ast/parser/js/test-multi-line-string.js index ba0a2b04bdbc4ba6f6034fcd2d7badca47ba93b4..d7301e77f8306c0f735e5b66f71291170f9160e2 100644 --- a/ets2panda/test/ast/parser/js/test-multi-line-string.js +++ b/ets2panda/test/ast/parser/js/test-multi-line-string.js @@ -19,5 +19,5 @@ /* @@ label1 */ " -/* @@? 17:1 Error SyntaxError: Newline is not allowed in strings */ -/* @@@ label1 Error SyntaxError: Newline is not allowed in strings */ +/* @@? 17:1 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@@ label1 Error Syntax error ESY0265: Newline is not allowed in strings */ diff --git a/ets2panda/test/ast/parser/js/test-multiple-update-expression.js b/ets2panda/test/ast/parser/js/test-multiple-update-expression.js index 12f31ae41394ce07127e4070326ac8433f73d1e9..5f1621da06be85583077d118ff7625d0c5f5539a 100644 --- a/ets2panda/test/ast/parser/js/test-multiple-update-expression.js +++ b/ets2panda/test/ast/parser/js/test-multiple-update-expression.js @@ -15,4 +15,4 @@ a++ /* @@ label */++b; -/* @@@ label Error SyntaxError: Unexpected token '++'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '++'. */ diff --git a/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js b/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js index 79129a23d05f9e1934e8b4132492f4658debf680..b87fcdf03984af4185ac814d148613ca21614504 100644 --- a/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js +++ b/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js @@ -15,4 +15,4 @@ (null ?? null || null/* @@ label */) -/* @@@ label Error SyntaxError: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ +/* @@@ label Error Syntax error ESY0059: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ diff --git a/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js b/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js index 02ecbbf34b2dd1797f93663cb50acce42c4e21ad..4889ef2189c51a356148005ddf46d41153456dd7 100644 --- a/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js +++ b/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js @@ -15,4 +15,4 @@ (null && null ?? null/* @@ label */) -/* @@@ label Error SyntaxError: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ +/* @@@ label Error Syntax error ESY0059: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ diff --git a/ets2panda/test/ast/parser/js/test-numeric-separator1.js b/ets2panda/test/ast/parser/js/test-numeric-separator1.js index 3aa59dc00976d4ea8d0652cb9c1cdf1041becf77..2f04b7874e33b579ec0bd3e8ca1d5f3fc257a9bd 100644 --- a/ets2panda/test/ast/parser/js/test-numeric-separator1.js +++ b/ets2panda/test/ast/parser/js/test-numeric-separator1.js @@ -15,5 +15,5 @@ 1__1 -/* @@? 17:1 Error SyntaxError: Invalid numeric separator. */ -/* @@? 17:1 Error SyntaxError: Numeric separators are not allowed at the end of numeric literals. */ +/* @@? 17:1 Error Syntax error ESY0254: Invalid numeric separator. */ +/* @@? 17:1 Error Syntax error ESY0250: Numeric separators are not allowed at the end of numeric literals. */ diff --git a/ets2panda/test/ast/parser/js/test-numeric-separator2.js b/ets2panda/test/ast/parser/js/test-numeric-separator2.js index 9d599954e0f0b76b843a0b5049944e07e3c7d04b..562c87563b48587492620fb87556d06d44a30437 100644 --- a/ets2panda/test/ast/parser/js/test-numeric-separator2.js +++ b/ets2panda/test/ast/parser/js/test-numeric-separator2.js @@ -15,4 +15,4 @@ 1111_ -/* @@? 17:1 Error SyntaxError: Numeric separators are not allowed at the end of numeric literals. */ +/* @@? 17:1 Error Syntax error ESY0250: Numeric separators are not allowed at the end of numeric literals. */ diff --git a/ets2panda/test/ast/parser/js/test-object-expression1.js b/ets2panda/test/ast/parser/js/test-object-expression1.js index b81d87164906b4a3bb94419787713159480f9fdd..e81be65c880a28eec26dfd2a334f8da901d66d88 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression1.js +++ b/ets2panda/test/ast/parser/js/test-object-expression1.js @@ -18,4 +18,4 @@ a = { set a(b,c){} /* @@ label */} -/* @@@ label Error SyntaxError: Setter must have exactly one formal parameter. */ +/* @@@ label Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ diff --git a/ets2panda/test/ast/parser/js/test-object-expression2.js b/ets2panda/test/ast/parser/js/test-object-expression2.js index 673247be37776ea8c24e8097aae0f8bf60159b4a..f5a470cebd03766d4c101139973c9850e7d9c2a0 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression2.js +++ b/ets2panda/test/ast/parser/js/test-object-expression2.js @@ -17,9 +17,5 @@ a = { get a[b](){}, } -/* @@? 18:8 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 18:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:10 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 18:13 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 18:14 Error SyntaxError: Unexpected token '}'. */ -/* @@? 18:15 Error SyntaxError: Getter must not have formal parameters. */ +/* @@? 18:10 Error Syntax error ESY0000: , expected */ +/* @@? 18:8 Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/parser/js/test-object-expression3.js b/ets2panda/test/ast/parser/js/test-object-expression3.js index 44f9f8159ae7653eae3e736313472df065747b12..8ecc1bd0a9215afb52a8bf960c982b64a2ba10c8 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression3.js +++ b/ets2panda/test/ast/parser/js/test-object-expression3.js @@ -17,4 +17,4 @@ a = { a/* @@ label */"foo", } -/* @@@ label Error SyntaxError: Unexpected token. */ +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/js/test-object-expression4.js b/ets2panda/test/ast/parser/js/test-object-expression4.js index 7ca28c46e6bea613b8308fb83d2cac0b88b1b63b..77348943020ae102d9d7da04b0c6f092dd279a13 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression4.js +++ b/ets2panda/test/ast/parser/js/test-object-expression4.js @@ -18,4 +18,4 @@ a = { /* @@ label */if, } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/parser/js/test-object-expression5.js b/ets2panda/test/ast/parser/js/test-object-expression5.js index 88182b2aca1a64198cb0e9f14da35fd6648f1a72..01f815ec407b66b7007e0eabfd2e77a815c547de 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression5.js +++ b/ets2panda/test/ast/parser/js/test-object-expression5.js @@ -17,4 +17,4 @@ var a = { a(){super/* @@ label */()} } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ diff --git a/ets2panda/test/ast/parser/js/test-object-proto.js b/ets2panda/test/ast/parser/js/test-object-proto.js index 779e712ae22b7afb0bcdb318b855abc941f82ef2..cbd46788f1fbebbe4d2e2985c03a57d56d639b0b 100644 --- a/ets2panda/test/ast/parser/js/test-object-proto.js +++ b/ets2panda/test/ast/parser/js/test-object-proto.js @@ -24,4 +24,4 @@ var a = { *__proto__(){}, /* @@ label */__proto__: 8, } -/* @@@ label Error SyntaxError: Duplicate __proto__ fields are not allowed in object literals */ +/* @@@ label Error Syntax error ESY0000: Duplicate __proto__ fields are not allowed in object literals */ diff --git a/ets2panda/test/ast/parser/js/test-one-default-export-allowed.js b/ets2panda/test/ast/parser/js/test-one-default-export-allowed.js index be17513d090212f0fa0eb3d57280af7fda5f89eb..4b9a27f1eb3a44156719ffdeb686dc14256ba8ed 100644 --- a/ets2panda/test/ast/parser/js/test-one-default-export-allowed.js +++ b/ets2panda/test/ast/parser/js/test-one-default-export-allowed.js @@ -19,4 +19,10 @@ flags: [module] export default a = 1; export default /* @@ label */b = 2; -/* @@@ label Error SyntaxError: Variable '*default*' has already been declared. */ +/* @@? 20:16 Error Syntax error ESY0279: Cannot find name 'a' to export. */ +/* @@? 20:18 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 20:20 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@@ label Error Syntax error ESY0005: export default is not allowed to export multiple specifiers. */ +/* @@@ label Error Semantic error ESE0374: Only one default export is allowed in a module */ +/* @@? 21:32 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 21:34 Error Syntax error ESY0227: Unexpected token '2'. */ diff --git a/ets2panda/test/ast/parser/js/test-optional-chain.js b/ets2panda/test/ast/parser/js/test-optional-chain.js index cdfd98b73f1980bb1b7ff9a6964c6d12a5fccdb9..751b3c4e8bb5a42d075b2c3022740636bbcf2ea1 100644 --- a/ets2panda/test/ast/parser/js/test-optional-chain.js +++ b/ets2panda/test/ast/parser/js/test-optional-chain.js @@ -15,4 +15,4 @@ a?.a?.a?./* @@ label */`` -/* @@@ label Error SyntaxError: Tagged Template Literals are not allowed in optionalChain. */ +/* @@@ label Error Syntax error ESY0056: Tagged Template Literals are not allowed in optionalChain. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field1.js b/ets2panda/test/ast/parser/js/test-private-field1.js index dd35ab34c96a46598315cb715dde0e89bfe5fe74..2ea92b1a95015cc94e32017f3dd8455e60d8f939 100644 --- a/ets2panda/test/ast/parser/js/test-private-field1.js +++ b/ets2panda/test/ast/parser/js/test-private-field1.js @@ -15,5 +15,5 @@ #a -/* @@? 20:1 Error SyntaxError: Unexpected private identifier. */ -/* @@? 20:1 Error SyntaxError: Unexpected token 'end of stream'. */ +/* @@? 19:1 Error Syntax error ESY0047: Unexpected private identifier. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field10.js b/ets2panda/test/ast/parser/js/test-private-field10.js index e8861c6d35f4469836e6ab7050af554bb2050b53..630596854c2a8c1975c22ec7c6e6933f901930dd 100644 --- a/ets2panda/test/ast/parser/js/test-private-field10.js +++ b/ets2panda/test/ast/parser/js/test-private-field10.js @@ -22,6 +22,6 @@ class A { /* @@ label1 */} } -/* @@@ label Error SyntaxError: Unexpected private identifier. */ -/* @@@ label1 Error SyntaxError: Expected ')', got '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0047: Unexpected private identifier. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '}'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field11.js b/ets2panda/test/ast/parser/js/test-private-field11.js index 997b776d42717ea27cd22adfcf203fe57b9e9e03..b5c8a258b22b5d8fd1b67632d36192e8999e9217 100644 --- a/ets2panda/test/ast/parser/js/test-private-field11.js +++ b/ets2panda/test/ast/parser/js/test-private-field11.js @@ -22,5 +22,5 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected private identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0047: Unexpected private identifier. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field12.js b/ets2panda/test/ast/parser/js/test-private-field12.js index 58ab28d14bee5f367293f43dd799d1b2d0793dc7..d1ce4d67a81ed1d826fac5ab00aed0fc289a8200 100644 --- a/ets2panda/test/ast/parser/js/test-private-field12.js +++ b/ets2panda/test/ast/parser/js/test-private-field12.js @@ -20,4 +20,4 @@ class A { let b = new A(); b./* @@ label */#a; -/* @@@ label Error SyntaxError: Private field 'a' must be declared in an enclosing class */ +/* @@@ label Error Syntax error ESY0000: Private field 'a' must be declared in an enclosing class */ diff --git a/ets2panda/test/ast/parser/js/test-private-field13.js b/ets2panda/test/ast/parser/js/test-private-field13.js index 81c16a20853a8d6accf1805d8acb7d087c8e8d17..37f80b9e6801adfed35d0567b8f028c2f8f43ec7 100644 --- a/ets2panda/test/ast/parser/js/test-private-field13.js +++ b/ets2panda/test/ast/parser/js/test-private-field13.js @@ -23,4 +23,4 @@ class B extends A { } } -/* @@@ label Error SyntaxError: Private field 'a' must be declared in an enclosing class */ +/* @@@ label Error Syntax error ESY0000: Private field 'a' must be declared in an enclosing class */ diff --git a/ets2panda/test/ast/parser/js/test-private-field14.js b/ets2panda/test/ast/parser/js/test-private-field14.js index 24b21c458093f253fba860d27134562af5892fe6..f97c726c0aa7f4616a9d3a3fce84a82c7df1cd03 100644 --- a/ets2panda/test/ast/parser/js/test-private-field14.js +++ b/ets2panda/test/ast/parser/js/test-private-field14.js @@ -18,4 +18,4 @@ class A { get #a() { } /* @@ label */} -/* @@@ label Error SyntaxError: Private field has already been declared. */ +/* @@? 18:11 Error Syntax error ESY0000: A method cannot be named with a private identifier */ diff --git a/ets2panda/test/ast/parser/js/test-private-field15.js b/ets2panda/test/ast/parser/js/test-private-field15.js index b292a8428c834977b6d696db001c499a9851fb89..528a941972c727881a8904a1fca7dcd0ffaaf1ff 100644 --- a/ets2panda/test/ast/parser/js/test-private-field15.js +++ b/ets2panda/test/ast/parser/js/test-private-field15.js @@ -19,4 +19,4 @@ class A { #a; /* @@ label */} -/* @@@ label Error SyntaxError: Private field has already been declared. */ +/* @@? 17:11 Error Syntax error ESY0000: A method cannot be named with a private identifier */ diff --git a/ets2panda/test/ast/parser/js/test-private-field16.js b/ets2panda/test/ast/parser/js/test-private-field16.js index a58effdc72902f13c6f31b46f86e27af94830089..5fcc320eef0db6b9ab8354464f9f974aa2a404a4 100644 --- a/ets2panda/test/ast/parser/js/test-private-field16.js +++ b/ets2panda/test/ast/parser/js/test-private-field16.js @@ -17,4 +17,4 @@ class A extends function () { x = this./* @@ label */#foo } { #foo; } -/* @@@ label Error SyntaxError: Private field 'foo' must be declared in an enclosing class */ +/* @@@ label Error Syntax error ESY0000: Private field 'foo' must be declared in an enclosing class */ diff --git a/ets2panda/test/ast/parser/js/test-private-field2.js b/ets2panda/test/ast/parser/js/test-private-field2.js index c02d9744d79b83e0f652aeae6f1fdbff0427f497..f84bfbed8e36e9f1ea7b223543902e73a3302314 100644 --- a/ets2panda/test/ast/parser/js/test-private-field2.js +++ b/ets2panda/test/ast/parser/js/test-private-field2.js @@ -18,4 +18,4 @@ class A { #a; /* @@ label */} -/* @@@ label Error SyntaxError: Private field has already been declared. */ +/* @@@ label Error Syntax error ESY0154: Private field has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field3.js b/ets2panda/test/ast/parser/js/test-private-field3.js index b771d6c46e509b5d783dd9c0b35c01191c81f4e5..7ada4d7833768fb0e776edc801efa5b07b65d2a4 100644 --- a/ets2panda/test/ast/parser/js/test-private-field3.js +++ b/ets2panda/test/ast/parser/js/test-private-field3.js @@ -17,4 +17,4 @@ class A { # /* @@ label */a; } -/* @@@ label Error SyntaxError: Unexpected token in private field. */ +/* @@@ label Error Syntax error ESY0160: Unexpected token in private field. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field4.js b/ets2panda/test/ast/parser/js/test-private-field4.js index aaafa582fd5b9df98a9410ed6081b781ada1c3e7..1f8b7e6c11b74fb09abef8c38fd374ebd3193c55 100644 --- a/ets2panda/test/ast/parser/js/test-private-field4.js +++ b/ets2panda/test/ast/parser/js/test-private-field4.js @@ -17,5 +17,6 @@ class A { #5; } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Private identifier name can not be number. */ +/* @@? 17:5 Error Syntax error ESY0298: Use 'private' keyword to declare an identifier as private. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token '5'. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field5.js b/ets2panda/test/ast/parser/js/test-private-field5.js index 42d887f36697791f05895c0e34ebe75e3c99cba3..ac28b7a66990b929f26b9218a24e9ccf4d37609f 100644 --- a/ets2panda/test/ast/parser/js/test-private-field5.js +++ b/ets2panda/test/ast/parser/js/test-private-field5.js @@ -17,5 +17,6 @@ class A { #"\"bar\""; } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Private identifier name can not be string. */ +/* @@? 17:5 Error Syntax error ESY0298: Use 'private' keyword to declare an identifier as private. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token '"bar"'. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field6.js b/ets2panda/test/ast/parser/js/test-private-field6.js index 61ad4ec580da94a69e9ba8fb7f87b3787743e9a6..0354352aadf096188a84b875d215898d096df636 100644 --- a/ets2panda/test/ast/parser/js/test-private-field6.js +++ b/ets2panda/test/ast/parser/js/test-private-field6.js @@ -17,5 +17,5 @@ class A { ##; } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Unexpected token. */ +/* @@? 17:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field7.js b/ets2panda/test/ast/parser/js/test-private-field7.js index 89b26dfd6e94631e7e19615f31bf1e5a9ed9dd1b..de704d0a979983f76cf1476668ab9397a4866e33 100644 --- a/ets2panda/test/ast/parser/js/test-private-field7.js +++ b/ets2panda/test/ast/parser/js/test-private-field7.js @@ -18,6 +18,6 @@ class A { } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Unexpected token. */ -/* @@? 17:7 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 17:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:7 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field8.js b/ets2panda/test/ast/parser/js/test-private-field8.js index 0f59c9ee6841a3e027ee117a0ba5ea375d175cf1..528d67dd4c294a9e5e6006d9c90521c8516c2d89 100644 --- a/ets2panda/test/ast/parser/js/test-private-field8.js +++ b/ets2panda/test/ast/parser/js/test-private-field8.js @@ -20,4 +20,4 @@ class A { } } -/* @@@ label Error SyntaxError: Private fields can not be deleted. */ +/* @@@ label Error Syntax error ESY0070: Private fields can not be deleted. */ diff --git a/ets2panda/test/ast/parser/js/test-private-field9.js b/ets2panda/test/ast/parser/js/test-private-field9.js index 2ac3526e83ed5dba2f7cdc39894e677ee2b83309..9fb6fd60f49733be4f33ac23af2abd5de7c0850c 100644 --- a/ets2panda/test/ast/parser/js/test-private-field9.js +++ b/ets2panda/test/ast/parser/js/test-private-field9.js @@ -17,4 +17,5 @@ class A { #constructor() { } } -/* @@? 17:6 Error SyntaxError: Private identifier can not be constructor. */ +/* @@? 17:17 Error Syntax error ESY0000: A method cannot be named with a private identifier */ +/* @@? 17:6 Error Syntax error ESY0267: Private identifier can not be constructor. */ diff --git a/ets2panda/test/ast/parser/js/test-super-expression.js b/ets2panda/test/ast/parser/js/test-super-expression.js index d795b9419616619a95aade13ef803ea429e32be6..4967233d9ee37c81274cb571718065ca7ec207c5 100644 --- a/ets2panda/test/ast/parser/js/test-super-expression.js +++ b/ets2panda/test/ast/parser/js/test-super-expression.js @@ -15,4 +15,4 @@ super/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected super keyword. */ +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ diff --git a/ets2panda/test/ast/parser/js/test-switch-1.js b/ets2panda/test/ast/parser/js/test-switch-1.js index 2fb0a42d31e75442ab5d076df90a389195f15b17..9bcccc6010bd481bb15c100778c846b8e072ef96 100644 --- a/ets2panda/test/ast/parser/js/test-switch-1.js +++ b/ets2panda/test/ast/parser/js/test-switch-1.js @@ -16,9 +16,8 @@ switch -/* @@@ label Error SyntaxError: Expected '(', got 'end of stream'. */ -/* @@@ label Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@@ label Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@@ label Error SyntaxError: Expected '{', got 'end of stream'. */ -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 25:1 Error Syntax error ESY0230: Expected '(', got 'end of stream'. */ +/* @@? 25:1 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 25:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 25:1 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ +/* @@? 25:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/js/test-switch-2.js b/ets2panda/test/ast/parser/js/test-switch-2.js index 626f257980cac5759aab5f778f62b0e1fddff5e3..92a681d0058d095e42f6ca594c26f786f192e5a4 100644 --- a/ets2panda/test/ast/parser/js/test-switch-2.js +++ b/ets2panda/test/ast/parser/js/test-switch-2.js @@ -18,8 +18,7 @@ switch /* @@ label */{ } -/* @@@ label Error SyntaxError: Expected '(', got '{'. */ -/* @@@ label1 Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@@ label1 Error SyntaxError: Expected '{', got 'end of stream'. */ -/* @@@ label1 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label1 */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0230: Expected '(', got '{'. */ +/* @@? 27:1 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 27:1 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ +/* @@? 27:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/js/test-switch-3.js b/ets2panda/test/ast/parser/js/test-switch-3.js index e7f19e9a553baf2af1535356c71ed1d939f510bb..4da54894fe75e4f739846c08b8658f8cf8eb4a46 100644 --- a/ets2panda/test/ast/parser/js/test-switch-3.js +++ b/ets2panda/test/ast/parser/js/test-switch-3.js @@ -18,4 +18,4 @@ switch (/* @@ label */) { } -/* @@@ label Error SyntaxError: Unexpected token ')'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ diff --git a/ets2panda/test/ast/parser/js/test-switch-4.js b/ets2panda/test/ast/parser/js/test-switch-4.js index 69f096163ee559dcdeda8be04b55aeadab479a74..95a09edb8397108b2ac98353e92c4401e92074e9 100644 --- a/ets2panda/test/ast/parser/js/test-switch-4.js +++ b/ets2panda/test/ast/parser/js/test-switch-4.js @@ -20,5 +20,5 @@ switch (alma) { alma +=10; } -/* @@@ label Error SyntaxError: Unexpected token 'identification literal', expected 'case' or 'default'. */ -/* @@@ label Error SyntaxError: Expected ':', got 'identification literal'. */ +/* @@@ label Error Syntax error ESY0231: Unexpected token 'identification literal', expected 'case' or 'default'. */ +/* @@@ label Error Syntax error ESY0230: Expected ':', got 'identification literal'. */ diff --git a/ets2panda/test/ast/parser/js/test-switch-5.js b/ets2panda/test/ast/parser/js/test-switch-5.js index 97f728907ce7d16a43536f772de38f8332b9a699..ce72393b2b66b972fd0fec7182410c009e06d5f0 100644 --- a/ets2panda/test/ast/parser/js/test-switch-5.js +++ b/ets2panda/test/ast/parser/js/test-switch-5.js @@ -19,4 +19,4 @@ switch (alma) { /* @@ label */default: } -/* @@@ label Error SyntaxError: Multiple default clauses. */ +/* @@@ label Error Syntax error ESY0000: A 'default' clause cannot appear more than once in a 'switch' statement */ diff --git a/ets2panda/test/ast/parser/js/test-switch-6.js b/ets2panda/test/ast/parser/js/test-switch-6.js index 0d312b32b4a1a00199ae59a9850e0ad889013687..e5f2cf455c563470d4c10b010669ac596340c253 100644 --- a/ets2panda/test/ast/parser/js/test-switch-6.js +++ b/ets2panda/test/ast/parser/js/test-switch-6.js @@ -17,4 +17,4 @@ switch (a) { case 1: AnimationPlaybackEvent() /* @@ label */case 2: } -/* @@@ label Error SyntaxError: Unexpected token 'case'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'case'. */ diff --git a/ets2panda/test/ast/parser/js/test-template-literal-1.js b/ets2panda/test/ast/parser/js/test-template-literal-1.js index ddae8ff487694a6c463bb2dfda542b4ec35b2761..32c08908d048aca18e35fe12087aec1a5bdc4160 100644 --- a/ets2panda/test/ast/parser/js/test-template-literal-1.js +++ b/ets2panda/test/ast/parser/js/test-template-literal-1.js @@ -13,9 +13,7 @@ * limitations under the License. */ -/* @@? 21:1 Error SyntaxError: Unexpected token, expected '`'. */ -/* @@? 21:2 Error SyntaxError: Unterminated string. */ -/* @@? 21:2 Error SyntaxError: Unexpected token, expected '${' or '`' */ -/* @@? 21:2 Error SyntaxError: Unexpected token, expected '`'. */ - -` +/* @@? 21:1 Error Syntax error ESY0228: Unexpected token, expected '`'. */ +/* @@? 21:2 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 21:2 Error Syntax error ESY0259: Unexpected token, expected '${' or '`' */ +/* @@? 21:2 Error Syntax error ESY0228: Unexpected token, expected '`'. */ diff --git a/ets2panda/test/ast/parser/js/test-template-literal-2.js b/ets2panda/test/ast/parser/js/test-template-literal-2.js index 95d1e9b201c948bb06f1437e8ae9ff9430dcaa1e..b7d226e0e6d05e5edbb8382f9aa44b8f5136ce49 100644 --- a/ets2panda/test/ast/parser/js/test-template-literal-2.js +++ b/ets2panda/test/ast/parser/js/test-template-literal-2.js @@ -16,4 +16,4 @@ fa`${/* @@ label */}` -/* @@@ label Error SyntaxError: Unexpected token '}'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/js/test-throw-statement-without-expression.js b/ets2panda/test/ast/parser/js/test-throw-statement-without-expression.js index cd50ab1ba6ce8b6a770013758d883e6f3d01f4f4..4582cafbb574a8af35549f0c2247a4af35ceb9eb 100644 --- a/ets2panda/test/ast/parser/js/test-throw-statement-without-expression.js +++ b/ets2panda/test/ast/parser/js/test-throw-statement-without-expression.js @@ -16,4 +16,4 @@ throw /* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token ';'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ';'. */ diff --git a/ets2panda/test/ast/parser/js/test-try-catch-lexical-declaration.js b/ets2panda/test/ast/parser/js/test-try-catch-lexical-declaration.js index 8bbd1967351ae964917ad14d6b22dbf1d9602ada..61bdc67edff95068f84e919fb0998c9d29b2f283 100644 --- a/ets2panda/test/ast/parser/js/test-try-catch-lexical-declaration.js +++ b/ets2panda/test/ast/parser/js/test-try-catch-lexical-declaration.js @@ -27,4 +27,4 @@ finally } -/* @@@ label Error SyntaxError: Variable 'e' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'e' has already been declared. */ diff --git a/ets2panda/test/ast/parser/js/test-try-without-catch-and-finally.js b/ets2panda/test/ast/parser/js/test-try-without-catch-and-finally.js index e2a08c6a96b735514da1e00c599ae3e4e0d33418..89c8909c5b559cbd1d42c9e752b12d9c852852a8 100644 --- a/ets2panda/test/ast/parser/js/test-try-without-catch-and-finally.js +++ b/ets2panda/test/ast/parser/js/test-try-without-catch-and-finally.js @@ -16,5 +16,4 @@ try { } -/* @@@ label Error SyntaxError: Missing catch or finally clause. */ -/* @@ label */ \ No newline at end of file +/* @@? 20:1 Error Syntax error ESY0169: Missing catch or finally clause. */ diff --git a/ets2panda/test/ast/parser/js/test-use-strict-1.js b/ets2panda/test/ast/parser/js/test-use-strict-1.js index 2989a7dd8156f8b0ca68adaf1fae3c66426ddb92..72e3b60f5311346f2a18749325854bccb8be86aa 100644 --- a/ets2panda/test/ast/parser/js/test-use-strict-1.js +++ b/ets2panda/test/ast/parser/js/test-use-strict-1.js @@ -18,4 +18,4 @@ var a = 078; -/* @@? 19:9 Error SyntaxError: Implicit octal literal not allowed. */ +/* @@? 19:9 Error Syntax error ESY0257: Implicit octal literal not allowed. */ diff --git a/ets2panda/test/ast/parser/js/test-use-strict-2.js b/ets2panda/test/ast/parser/js/test-use-strict-2.js index 49fd16e93ece38900b051365b874b4ad735060e1..9b8396e58a4e1405106a896783a5783d0442bbfd 100644 --- a/ets2panda/test/ast/parser/js/test-use-strict-2.js +++ b/ets2panda/test/ast/parser/js/test-use-strict-2.js @@ -18,5 +18,5 @@ /* @@ label */with (o) /* @@ label1 */{} -/* @@@ label Error SyntaxError: 'With' is deprecated and not supported any more. */ -/* @@@ label1 Error SyntaxError: Unexpected token '{'. */ +/* @@@ label Error Syntax error ESY0161: 'With' is deprecated and not supported any more. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ diff --git a/ets2panda/test/ast/parser/js/test-wrong-function-decl-1.js b/ets2panda/test/ast/parser/js/test-wrong-function-decl-1.js index 1ea7c667ccd8fe5f2226c4105a9a0626f07ef16d..6981c87b0846220a4168cb76fb651e8af04c7c8b 100644 --- a/ets2panda/test/ast/parser/js/test-wrong-function-decl-1.js +++ b/ets2panda/test/ast/parser/js/test-wrong-function-decl-1.js @@ -16,9 +16,5 @@ function f/* @@ label */{/* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected '('. */ -/* @@@ label1 Error SyntaxError: Unexpected token. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label2 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label2 */ \ No newline at end of file +/* @@@ label1 Error Syntax error ESY0000: Unexpected token, expected an identifier. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/parser/js/test-wrong-function-decl-2.js b/ets2panda/test/ast/parser/js/test-wrong-function-decl-2.js index 34371562577ab5db89f6bfde113f17483f2df9e4..191cd894df5402ca0cde5be9c2d9a649d7bacaba 100644 --- a/ets2panda/test/ast/parser/js/test-wrong-function-decl-2.js +++ b/ets2panda/test/ast/parser/js/test-wrong-function-decl-2.js @@ -16,6 +16,7 @@ function f(a,b,c)/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label1 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label1 */ \ No newline at end of file +/* @@? 17:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:13 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:15 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:17 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ diff --git a/ets2panda/test/ast/parser/js/test-wrong-function-decl-3.js b/ets2panda/test/ast/parser/js/test-wrong-function-decl-3.js index b0af0f4cf64672c25eeb9f2a4de3ff6185c389a3..19b892f51631917dd06dc54f0a82b8c1e228601c 100644 --- a/ets2panda/test/ast/parser/js/test-wrong-function-decl-3.js +++ b/ets2panda/test/ast/parser/js/test-wrong-function-decl-3.js @@ -18,5 +18,5 @@ function f(p1, p2, p3) { a[; } -/* @@? 18:5 Error SyntaxError: Unexpected token ';'. */ -/* @@? 18:5 Error SyntaxError: Unexpected token, expected ']'. */ +/* @@? 18:5 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 18:5 Error Syntax error ESY0228: Unexpected token, expected ']'. */ diff --git a/ets2panda/test/ast/parser/js/test_yield.js b/ets2panda/test/ast/parser/js/test_yield.js index 172fafb5afd8b49d2da7514d6036513caec5dcc3..991d8616ce50ec861ebd31fd5696d5242984c561 100644 --- a/ets2panda/test/ast/parser/js/test_yield.js +++ b/ets2panda/test/ast/parser/js/test_yield.js @@ -15,4 +15,4 @@ function* g(x = yield) {} -/* @@? 16:17 Error SyntaxError: Yield is not allowed in generator parameters. */ +/* @@? 16:17 Error Syntax error ESY0000: Yield is not allowed in generator parameters */ diff --git a/ets2panda/test/ast/parser/js/this-expression.js b/ets2panda/test/ast/parser/js/this-expression.js index 884e65196010ee62a126622aa5a4316a560c97f8..0b1df3926271621e0d1c347d9e482c43d12eb5da 100644 --- a/ets2panda/test/ast/parser/js/this-expression.js +++ b/ets2panda/test/ast/parser/js/this-expression.js @@ -16,5 +16,5 @@ this./* @@ label */"foo"; -/* @@@ label Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@@ label Error SyntaxError: Number, string or computed value property name 'foo' is not allowed, use classes to access data by property names that are identifiers */ +/* @@@ label Error Syntax error ESY0315: Number, string or computed value property name 'foo' is not allowed, use classes to access data by property names that are identifiers */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ diff --git a/ets2panda/test/ast/parser/js/trailing_comma_1.js b/ets2panda/test/ast/parser/js/trailing_comma_1.js index 888adab493601c9471360105aa3d3436714c22e4..604e37d3ade018a1c0b38525f5b3897e888895a7 100644 --- a/ets2panda/test/ast/parser/js/trailing_comma_1.js +++ b/ets2panda/test/ast/parser/js/trailing_comma_1.js @@ -36,15 +36,4 @@ foo(a[0] /* @@ label6 */a[1]/* @@ label7 */) foo(/* @@ label8 */,) -/* @@@ label Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label2 Error SyntaxError: Unexpected token. */ -/* @@@ label3 Error SyntaxError: Unexpected token ','. */ -/* @@@ label4 Error SyntaxError: Unexpected token ','. */ -/* @@@ label5 Error SyntaxError: Unexpected token ','. */ -/* @@@ label6 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@@ label6 Error SyntaxError: Unexpected token 'a'. */ -/* @@@ label7 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label8 Error SyntaxError: Unexpected token ','. */ -/* @@@ label9 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label9 */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0000: A rest parameter must be last in parameter list */ diff --git a/ets2panda/test/ast/parser/js/trailing_comma_2.js b/ets2panda/test/ast/parser/js/trailing_comma_2.js index fa3316363bea3530701714caadb5cc792c35f870..d18edcd469bb2ac2079c74e4f63e6b218fe2aeb4 100644 --- a/ets2panda/test/ast/parser/js/trailing_comma_2.js +++ b/ets2panda/test/ast/parser/js/trailing_comma_2.js @@ -19,4 +19,4 @@ class C { let a = new C(12,) -/* @@@ label1 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_1.js b/ets2panda/test/ast/parser/js/unexpected_token_1.js index d0132c02e2f3c3c0b9166bf21e30e3f79a3fd79d..451f8388e53a8a17cb3d3a901a4d0cfc2ba0348e 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_1.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_1.js @@ -16,6 +16,5 @@ class A /* @@ label */} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ -/* @@@ label1 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label1 */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 21:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_10.js b/ets2panda/test/ast/parser/js/unexpected_token_10.js index 753eb9b61211c7f84ebb142dac38d0b507be2882..2f8328f2c3342cee7c07488637e823e336f206fa 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_10.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_10.js @@ -22,8 +22,4 @@ function foobar( ){} -/* @@? 21:9 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 21:9 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 21:9 Error SyntaxError: Unexpected token, expected ')'. */ +/* @@? 21:9 Error Syntax error ESY0000: A rest parameter cannot have an initializer. */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_2.js b/ets2panda/test/ast/parser/js/unexpected_token_2.js index dc3a13f5b5ae0dacb41f029f635017ebbb43ca03..40fdbd4a7ee0e9ddb74cd11a5cce358a38f9828a 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_2.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_2.js @@ -15,4 +15,4 @@ !(!(((a || b))); -/* @@? 16:16 Error SyntaxError: Expected ')', got ';'. */ +/* @@? 16:16 Error Syntax error ESY0000: Unexpected token, expected ')' */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_3.js b/ets2panda/test/ast/parser/js/unexpected_token_3.js index 59018135dcb77861fbb7669e441e84e065eefad4..a64153c48578ca543bbd4c55f09cbb8349ee1d65 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_3.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_3.js @@ -15,11 +15,4 @@ (...a*b+c)/(d)-e; -/* @@? 16:6 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:6 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:12 Error SyntaxError: Unterminated RegExp. */ -/* @@? 16:18 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:18 Error SyntaxError: Unexpected token 'end of stream'. */ +/* @@? 16:6 Error Syntax error ESY0000: ')' expected */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_4.js b/ets2panda/test/ast/parser/js/unexpected_token_4.js index d2c8f1b4b7fa500391b6fb850ceff7c215851259..02c36da8088de9d8040909200778e60f854cb46a 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_4.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_4.js @@ -14,7 +14,4 @@ */ (...a)/(d)-e; -/* @@? 1:1 Node { - "type": "Program" -} */ -/* @@? 16:7 Error SyntaxError: Unexpected token, expected '=>'. */ +/* @@? 16:7 Error Syntax error ESY0000: Unexpected token */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_5.js b/ets2panda/test/ast/parser/js/unexpected_token_5.js index 277e2391b1e824f4f09f60753c6699a33712387a..45d7dcd48a328e5d423a99aaf8d0cace3a232248 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_5.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_5.js @@ -15,7 +15,4 @@ ()a/(d)-e; -/* @@? 16:3 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:5 Error SyntaxError: Unterminated RegExp. */ -/* @@? 16:11 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:11 Error SyntaxError: Unexpected token 'end of stream'. */ +/* @@? 16:3 Error Syntax error ESY0000: Unexpected token */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_6.js b/ets2panda/test/ast/parser/js/unexpected_token_6.js index add8ae031a6d194e2224b739e20cbb9228a0925b..21e72c8547d552429cd29065a54e8de88d98d654 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_6.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_6.js @@ -15,8 +15,4 @@ async(async b > b) -/* @@? 16:15 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 16:15 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected '=>'. */ +/* @@? 16:15 Error Syntax error ESY0000: Unexpected token, expected '=>' */ diff --git a/ets2panda/test/ast/parser/js/unexpected_token_7.js b/ets2panda/test/ast/parser/js/unexpected_token_7.js index 670d0eb8b9b57762fef071953e0c7ce43b23629a..8b54ddb5d7f8a47c3381b52d9f5ab14c493fd1fc 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_7.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_7.js @@ -18,8 +18,7 @@ class Foo { a: int { this.#bar = 0 -/* @@? 18:6 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 19:11 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 26:1 Error SyntaxError: Private field has already been declared. */ -/* @@? 26:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 18:12 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:11 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 30:1 Error Syntax error ESY0154: Private field has already been declared. */ +/* @@? 30:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ts/InvalidExpressions.ts b/ets2panda/test/ast/parser/ts/InvalidExpressions.ts index a833ab8f087723666ccba472b881ec1d5e693813..6571d8ca8ad249cd4232bad5f16a2e94e03873a0 100644 --- a/ets2panda/test/ast/parser/ts/InvalidExpressions.ts +++ b/ets2panda/test/ast/parser/ts/InvalidExpressions.ts @@ -30,27 +30,22 @@ let x = new Type(a, ...); let x = new Type(1, 2, ; // This expression should be the last to test EOS. -/* @@? 17:1 Error SyntaxError: expected '=>' on the same line after an argument list, got line terminator. */ -/* @@? 20:10 Error SyntaxError: Expected expression, got '=>'. */ -/* @@? 20:10 Error SyntaxError: expected '=>' on the same line after an argument list, got line terminator. */ -/* @@? 22:13 Error SyntaxError: Unexpected token. */ -/* @@? 22:20 Error SyntaxError: Unexpected token. */ -/* @@? 22:24 Error SyntaxError: Unexpected token ':'. */ -/* @@? 22:24 Error SyntaxError: Unexpected token ':'. */ -/* @@? 22:24 Error SyntaxError: Unexpected token ':'. */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:32 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 24:3 Error SyntaxError: Unexpected token '#'. */ -/* @@? 24:5 Error SyntaxError: Unexpected token in private field. */ -/* @@? 24:5 Error SyntaxError: Unexpected token '19'. */ -/* @@? 25:2 Error SyntaxError: Unexpected token '#'. */ -/* @@? 25:7 Error SyntaxError: Unexpected private identifier. */ -/* @@? 27:1 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 27:13 Error SyntaxError: 'new.Target' is not allowed here. */ -/* @@? 28:30 Error SyntaxError: Cannot use new with import(...). */ -/* @@? 29:24 Error SyntaxError: Unexpected token ')'. */ -/* @@? 30:24 Error SyntaxError: Unexpected token ';'. */ -/* @@? 30:24 Error SyntaxError: Unexpected token, expected ',' or ')'. */ +/* @@? 17:1 Error Syntax error ESY0195: expected '=>' on the same line after an argument list, got line terminator. */ +/* @@? 20:10 Error Syntax error ESY0052: Expected expression, got '=>'. */ +/* @@? 20:10 Error Syntax error ESY0195: expected '=>' on the same line after an argument list, got line terminator. */ +/* @@? 22:13 Error Syntax error ESY0000: Unexpected token. */ +/* @@? 22:20 Error Syntax error ESY0000: Unexpected token. */ +/* @@? 22:24 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 22:30 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 22:32 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 24:3 Error Syntax error ESY0227: Unexpected token '#'. */ +/* @@? 24:5 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 24:5 Error Syntax error ESY0227: Unexpected token '19'. */ +/* @@? 25:2 Error Syntax error ESY0227: Unexpected token '#'. */ +/* @@? 25:7 Error Syntax error ESY0047: Unexpected private identifier. */ +/* @@? 27:1 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 27:13 Error Syntax error ESY0073: 'new.Target' is not allowed here. */ +/* @@? 28:30 Error Syntax error ESY0060: Cannot use new with import(...). */ +/* @@? 29:24 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 30:24 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 30:24 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts b/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts index b334b4420c6381b071c550e72f72651e7c196159..4a24516e2ba6acc24c302331eac816c61303358e 100644 --- a/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts +++ b/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts @@ -29,5 +29,5 @@ declare class A { x: number = /* @@ label1 */3; } -/* @@@ label Error SyntaxError: A get accessor must be at least as accessible as the setter. */ -/* @@@ label1 Error SyntaxError: Initializers are not allowed in ambient contexts. */ +/* @@@ label Error Syntax error ESY0205: A get accessor must be at least as accessible as the setter. */ +/* @@@ label1 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/InvalidStatements.ts b/ets2panda/test/ast/parser/ts/InvalidStatements.ts index 77b3f7d2edb80ad59003a86ca5ecd2f498a887fd..7799b04a8bdd815c24b258db3262e90fdbd282ca 100644 --- a/ets2panda/test/ast/parser/ts/InvalidStatements.ts +++ b/ets2panda/test/ast/parser/ts/InvalidStatements.ts @@ -110,55 +110,54 @@ module module2 declare namespace abc {} // This should be the last test to show the absent of the '}'. -/* @@? 20:1 Error SyntaxError: Missing catch or finally clause. */ -/* @@? 21:9 Error SyntaxError: Expected '{', got '('. */ -/* @@? 24:8 Error SyntaxError: Unexpected token ')'. */ -/* @@? 27:13 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 31:14 Error SyntaxError: Abstract methods can only appear within an abstract class. */ -/* @@? 35:12 Error SyntaxError: Only ambient modules can use quoted names. */ -/* @@? 35:22 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 40:5 Error SyntaxError: Duplicated identifier. */ -/* @@? 44:37 Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ -/* @@? 46:5 Error SyntaxError: Decorators are not valid here. */ -/* @@? 52:5 Error SyntaxError: Decorators are not valid here. */ -/* @@? 55:6 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 55:8 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 59:21 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 61:5 Error SyntaxError: Classes may not have a field named 'constructor'. */ -/* @@? 61:16 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 64:23 Error SyntaxError: Identifier expected. */ -/* @@? 68:11 Error SyntaxError: Missing initializer in destructuring declaration. */ -/* @@? 71:5 Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@? 71:7 Error SyntaxError: Unexpected token in enum member. */ -/* @@? 72:5 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 74:9 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 75:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 79:9 Error SyntaxError: Type parameter declaration expected. */ -/* @@? 79:9 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 79:12 Error SyntaxError: Expected '{', got '>'. */ -/* @@? 79:14 Error SyntaxError: Unexpected token. */ -/* @@? 81:22 Error SyntaxError: Required type parameters may not follow optional type parameters. */ -/* @@? 83:9 Error SyntaxError: Type parameter list cannot be empty. */ -/* @@? 86:14 Error SyntaxError: Abstract methods can only appear within an abstract class. */ -/* @@? 86:20 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 88:13 Error SyntaxError: Unexpected modifier. */ -/* @@? 89:15 Error SyntaxError: Unexpected modifier. */ -/* @@? 89:15 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 91:17 Error SyntaxError: 'static' modifier cannot appear on a parameter. */ -/* @@? 94:22 Error SyntaxError: A required parameter cannot follow an optional parameter. */ -/* @@? 95:10 Error SyntaxError: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ -/* @@? 95:29 Error SyntaxError: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ -/* @@? 95:41 Error SyntaxError: Binding 'eval' in strict mode is invalid. */ -/* @@? 95:41 Error SyntaxError: Binding 'arguments' in strict mode is invalid. */ -/* @@? 96:18 Error SyntaxError: Unexpected '?' for parameter. */ -/* @@? 96:26 Error SyntaxError: Invalid destructuring assignment target. */ -/* @@? 96:26 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@? 96:26 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@? 98:29 Error SyntaxError: Invalid destructuring assignment target. */ -/* @@? 99:29 Error SyntaxError: Parameter cannot have question mark and initializer. */ -/* @@? 99:42 Error SyntaxError: await is not allowed in arrow function parameters. */ -/* @@? 102:13 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 105:8 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 106:5 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 110:5 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 165:1 Error SyntaxError: Expected '}', got 'end of stream'. */ +/* @@? 20:1 Error Syntax error ESY0169: Missing catch or finally clause. */ +/* @@? 21:9 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@? 24:8 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 27:13 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ +/* @@? 31:14 Error Syntax error ESY0184: Abstract methods can only appear within an abstract class. */ +/* @@? 35:12 Error Syntax error ESY0181: Only ambient modules can use quoted names. */ +/* @@? 35:22 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 40:5 Error Syntax error ESY0215: Duplicated identifier. */ +/* @@? 44:37 Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ +/* @@? 46:5 Error Syntax error ESY0183: Decorators are not valid here. */ +/* @@? 52:5 Error Syntax error ESY0183: Decorators are not valid here. */ +/* @@? 55:6 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 55:8 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 59:21 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 61:5 Error Syntax error ESY0144: Classes may not have a field named 'constructor'. */ +/* @@? 61:16 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 64:23 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 68:11 Error Syntax error ESY0186: Missing initializer in destructuring declaration. */ +/* @@? 71:5 Error Syntax error ESY0230: Expected '{', got 'identification literal'. */ +/* @@? 71:7 Error Syntax error ESY0178: Unexpected token in enum member. */ +/* @@? 72:5 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 74:9 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 75:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 79:9 Error Syntax error ESY0176: Type parameter declaration expected. */ +/* @@? 79:9 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 79:12 Error Syntax error ESY0230: Expected '{', got '>'. */ +/* @@? 79:14 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 81:22 Error Syntax error ESY0179: Required type parameters may not follow optional type parameters. */ +/* @@? 83:9 Error Syntax error ESY0191: Type parameter list cannot be empty. */ +/* @@? 86:14 Error Syntax error ESY0184: Abstract methods can only appear within an abstract class. */ +/* @@? 86:20 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 88:13 Error Syntax error ESY0153: Unexpected modifier. */ +/* @@? 89:15 Error Syntax error ESY0153: Unexpected modifier. */ +/* @@? 89:15 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 91:17 Error Syntax error ESY0232: 'static' modifier cannot appear on a parameter. */ +/* @@? 94:22 Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ +/* @@? 95:10 Error Syntax error ESY0207: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ +/* @@? 95:29 Error Syntax error ESY0207: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ +/* @@? 95:41 Error Syntax error ESY0190: Binding 'eval' in strict mode is invalid. */ +/* @@? 95:41 Error Syntax error ESY0182: Binding 'arguments' in strict mode is invalid. */ +/* @@? 96:18 Error Syntax error ESY0187: Unexpected '?' for parameter. */ +/* @@? 96:26 Error Syntax error ESY0049: Invalid destructuring assignment target. */ +/* @@? 96:26 Error Syntax error ESY0148: Unexpected ArrowParameter element. */ +/* @@? 98:29 Error Syntax error ESY0049: Invalid destructuring assignment target. */ +/* @@? 99:29 Error Syntax error ESY0216: Parameter cannot have question mark and initializer. */ +/* @@? 99:42 Error Syntax error ESY0046: await is not allowed in arrow function parameters. */ +/* @@? 102:13 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ +/* @@? 105:8 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 106:5 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 110:5 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 237:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ts/catch_or_finally_1.ts b/ets2panda/test/ast/parser/ts/catch_or_finally_1.ts index 8c59f19c69dbb5f8718173aeb690769fad114c38..3f8664f6bbea6071dc4ae8f62e0bfd9b216ed905 100644 --- a/ets2panda/test/ast/parser/ts/catch_or_finally_1.ts +++ b/ets2panda/test/ast/parser/ts/catch_or_finally_1.ts @@ -19,17 +19,13 @@ try {} catch (fgf) {} aaaaaaa /* @@ label5 */{} try /* @@ label6 */[] /* @@ label7 */finally {} -/* @@? 16:22 Error SyntaxError: Missing catch or finally clause. */ -/* @@? 16:46 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:23 Error SyntaxError: Missing catch or finally clause. */ -/* @@? 17:51 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:69 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 17:69 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 18:46 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:20 Error SyntaxError: Expected '{', got '['. */ -/* @@? 20:20 Error SyntaxError: Expected '{', got '['. */ -/* @@? 20:38 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 20:38 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 20:38 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 36:1 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@? 36:1 Error SyntaxError: Missing catch or finally clause. */ +/* @@@ label Error Syntax error ESY0169: Missing catch or finally clause. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label2 Error Syntax error ESY0169: Missing catch or finally clause. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token 'finally'. */ +/* @@@ label5 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label6 Error Syntax error ESY0230: Expected '{', got '['. */ +/* @@@ label7 Error Syntax error ESY0227: Unexpected token 'finally'. */ +/* @@? 37:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ +/* @@? 37:1 Error Syntax error ESY0169: Missing catch or finally clause. */ diff --git a/ets2panda/test/ast/parser/ts/test-as-expression.ts b/ets2panda/test/ast/parser/ts/test-as-expression.ts index 56b3171f4909a54e9bd36589bb617defd038b1e6..3ce3f2fa6bda58d1c20f99f717330e1172e5c4f1 100644 --- a/ets2panda/test/ast/parser/ts/test-as-expression.ts +++ b/ets2panda/test/ast/parser/ts/test-as-expression.ts @@ -15,4 +15,4 @@ var a = 5 as/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor1.ts b/ets2panda/test/ast/parser/ts/test-class-constructor1.ts index 1ccc5e93c322b9b059663a0dc69c60ff1ab244bd..2a02d9631380821d3cee201b87a5931d2af296b0 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor1.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor1.ts @@ -19,4 +19,4 @@ class Foo { a: string; /* @@ label */constructor() { }; } -/* @@@ label Error SyntaxError: Multiple constructor implementations are not allowed. */ +/* @@@ label Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor2.ts b/ets2panda/test/ast/parser/ts/test-class-constructor2.ts index d189cf44caf3742378c6a8532a45e3730c6d23f9..c86887170513f4831ef80f78e46f82f5f22052d6 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor2.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor2.ts @@ -20,5 +20,5 @@ class Foo { b: string; /* @@ label2 */constructor(); } -/* @@@ label1 Error SyntaxError: Multiple constructor implementations are not allowed. */ -/* @@@ label2 Error SyntaxError: Multiple constructor implementations are not allowed. */ +/* @@@ label1 Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ +/* @@@ label2 Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor3.ts b/ets2panda/test/ast/parser/ts/test-class-constructor3.ts index ea2c133598778eb5c50f353318a03c8595a11886..7cb5fd4247bbdfbea5de4e4848b4cbff40364cd4 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor3.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor3.ts @@ -17,5 +17,5 @@ class Foo { constructor ?() { }; } -/* @@? 18:5 Error SyntaxError: Classes may not have a field named 'constructor'. */ -/* @@? 18:17 Error SyntaxError: Unexpected token, expected '('. */ +/* @@? 18:5 Error Syntax error ESY0144: Classes may not have a field named 'constructor'. */ +/* @@? 18:17 Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor5.ts b/ets2panda/test/ast/parser/ts/test-class-constructor5.ts index bbab046f313602cd08d8482e5ec351437850c08d..bdb57d4c5805e8d19b42e0cd6c749b546166a73c 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor5.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor5.ts @@ -18,4 +18,4 @@ class Foo { constructor() { }; /* @@ label */constructor() { }; } -/* @@@ label Error SyntaxError: Multiple constructor implementations are not allowed. */ +/* @@@ label Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton1.ts b/ets2panda/test/ast/parser/ts/test-class-definiton1.ts index c214c788a6370be0a8a049e314969aedeac7968e..b7b5cdb33ffc8b8fe1359a88f124f551c3cfd643 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton1.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton1.ts @@ -17,4 +17,4 @@ class Foo { static /* @@ label */constructor() { }; } -/* @@@ label Error SyntaxError: Static modifier can not appear on a constructor */ +/* @@@ label Error Syntax error ESY0000: Static modifier can not appear on a constructor */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton10.ts b/ets2panda/test/ast/parser/ts/test-class-definiton10.ts index fdec1479394b891d431eb85414d53d9b8f2b96ae..8be3c1c245dcadb7129c307be68db4530e652c66 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton10.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton10.ts @@ -18,4 +18,4 @@ class Foo { a() { } b() { } c() { } private static readonly declare d /* @@ label */e; } -/* @@@ label Error SyntaxError: Unexpected token, expected ';'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton11.ts b/ets2panda/test/ast/parser/ts/test-class-definiton11.ts index f33123bc3c68ac1b99cd31646d2cce7467098aed..5bf5206b7dd2845280d579bb88fce54f7eb8099d 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton11.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton11.ts @@ -18,6 +18,6 @@ class Foo { const a = 3; } -/* @@? 18:11 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:13 Error SyntaxError: Unexpected token. */ -/* @@? 18:15 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 18:11 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:13 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:15 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton12.ts b/ets2panda/test/ast/parser/ts/test-class-definiton12.ts index d041f867ef0b2994fc9e4896c7db749039dc945d..f751b4793d040d7087e76ea82e7733d0b5ba3547 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton12.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton12.ts @@ -18,6 +18,6 @@ class Foo { var a = 3; } -/* @@? 18:9 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:11 Error SyntaxError: Unexpected token. */ -/* @@? 18:13 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 18:9 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:11 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:13 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton13.ts b/ets2panda/test/ast/parser/ts/test-class-definiton13.ts index de5a5f1b3fd6809160893ed5226076d718d747c0..a567cd57ff066259c5172707883b4887c48d0f3a 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton13.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton13.ts @@ -18,6 +18,6 @@ class Foo { let a = 3; } -/* @@? 18:9 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:11 Error SyntaxError: Unexpected token. */ -/* @@? 18:13 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 18:9 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:11 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:13 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton14.ts b/ets2panda/test/ast/parser/ts/test-class-definiton14.ts index 2c1ee6e93d43ef940cd218336177b94bb11e15a0..a6e26dc135ebafe589e6666d3a8858d8767cdd4c 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton14.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton14.ts @@ -18,6 +18,6 @@ class Foo { function a(); } -/* @@? 18:14 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:15 Error SyntaxError: Unexpected token. */ -/* @@? 18:16 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 18:14 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:15 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:16 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton15.ts b/ets2panda/test/ast/parser/ts/test-class-definiton15.ts index c974e0fd1ce38d6b85bb2deb9d638e199c766a5a..0e8847f34ba344dcdec70ebf3181e5304e1f7482 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton15.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton15.ts @@ -18,4 +18,4 @@ class Foo { set /* @@ label */5(k) { } private get 5() { return } } -/* @@@ label Error SyntaxError: A get accessor must be at least as accessible as the setter. */ +/* @@@ label Error Syntax error ESY0205: A get accessor must be at least as accessible as the setter. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton16.ts b/ets2panda/test/ast/parser/ts/test-class-definiton16.ts index 2d97cbc8dd7b9ffdff8241abf44274ae61e5f745..7f9a5cc95fdf3af4719b40603987b4a1140a79b9 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton16.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton16.ts @@ -18,4 +18,4 @@ class Foo { private get /* @@ label */5() { return } protected set 5(k) { } } -/* @@@ label Error SyntaxError: A get accessor must be at least as accessible as the setter. */ +/* @@@ label Error Syntax error ESY0205: A get accessor must be at least as accessible as the setter. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton17.ts b/ets2panda/test/ast/parser/ts/test-class-definiton17.ts index 8b97572a18eab27eeb21295b4bac8f90908ed713..590484e0dfb101541ab80482fc67134796b0b16f 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton17.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton17.ts @@ -17,4 +17,4 @@ class Foo { abstract /* @@ label */a() } -/* @@@ label Error SyntaxError: Abstract methods can only appear within an abstract class. */ +/* @@@ label Error Syntax error ESY0184: Abstract methods can only appear within an abstract class. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton2.ts b/ets2panda/test/ast/parser/ts/test-class-definiton2.ts index d7fc4cecac040f98c9c10e5fca6c3cadd54c7c46..3f76503aa86abe2e9a08f998a0f7db0979e1baf9 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton2.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton2.ts @@ -17,4 +17,4 @@ class Foo { private readonly [a]/* @@ label */(){} } -/* @@@ label Error SyntaxError: Class method can not be declare nor readonly */ +/* @@@ label Error Syntax error ESY0000: Class method can not be declare nor readonly */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton3.ts b/ets2panda/test/ast/parser/ts/test-class-definiton3.ts index 59a930fc943a830de41eaae1967740c8dea14246..5da800dedbbeba7da0aad1fba37f1e9e88eb410d 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton3.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton3.ts @@ -18,5 +18,5 @@ class Foo { static static a; } -/* @@? 18:12 Error SyntaxError: Unexpected modifier. */ -/* @@? 18:12 Error SyntaxError: Duplicated modifier is not allowed. */ +/* @@? 18:12 Error Syntax error ESY0153: Unexpected modifier. */ +/* @@? 18:12 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton4.ts b/ets2panda/test/ast/parser/ts/test-class-definiton4.ts index aca44c435f2460c153049e52306e4321291bf5c7..f353bac91eac18e2e386e7c02b5d1301b1f58c46 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton4.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton4.ts @@ -17,4 +17,4 @@ class Foo { *b/* @@ label */; } -/* @@@ label Error SyntaxError: Expected '(' */ +/* @@@ label Error Syntax error ESY0000: Expected '(' */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton5.ts b/ets2panda/test/ast/parser/ts/test-class-definiton5.ts index acace0fa02745fa84bb898c047382517c013c598..c958ba9511c5e86208be7f550844b84230209993 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton5.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton5.ts @@ -17,4 +17,4 @@ class Foo { readonly /* @@ label */static a = "foo"; } -/* @@@ label Error SyntaxError: Unexpected modifier. */ +/* @@@ label Error Syntax error ESY0153: Unexpected modifier. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton6.ts b/ets2panda/test/ast/parser/ts/test-class-definiton6.ts index 21f5b66d8160a4ace1c8f42cb4862df1409127d5..d2123fd13ccbae0e67171906b11ab718b478d3ee 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton6.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton6.ts @@ -18,4 +18,4 @@ class Foo { private get /* @@ label */5() { return } set 5(k) { } } -/* @@@ label Error SyntaxError: A get accessor must be at least as accessible as the setter. */ +/* @@@ label Error Syntax error ESY0205: A get accessor must be at least as accessible as the setter. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton8.ts b/ets2panda/test/ast/parser/ts/test-class-definiton8.ts index 8472ae50ee4b03f5ff6ee9445d667a5531cf2ad5..bcf138c71457a46aafe0c9f3f1543c36add494f7 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton8.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton8.ts @@ -18,6 +18,6 @@ declare class Foo { a() b() } -/* @@? 18:9 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:10 Error SyntaxError: Unexpected token. */ -/* @@? 18:11 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 18:9 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:10 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:11 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton9.ts b/ets2panda/test/ast/parser/ts/test-class-definiton9.ts index f553f84e330320d30a492812ad1e805acf11615f..7e4e44316794fdbc11f00d1cc72dbbfaf031456d 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton9.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton9.ts @@ -18,4 +18,4 @@ class Foo { a /* @@ label */b; } -/* @@@ label Error SyntaxError: Unexpected token, expected ';'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts index bbe0b20f43d7d4a5d53bb250a3d39b3818a587bc..5dd65b23f11c8e369444c17ba86b216545cccb83 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts @@ -19,4 +19,4 @@ enum Foo { B = "foo", } -/* @@@ label Error SyntaxError: Unexpected token in enum member. */ +/* @@@ label Error Syntax error ESY0178: Unexpected token in enum member. */ diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts index 65153bf5a9520e9c6e35ab8872649264e6e90e3a..cf2664cfd5eb5ce0fa1ffa2d3c238155c80fdaf0 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts @@ -18,5 +18,5 @@ const enum Foo { G = 1, /* @@ label */2, /* @@ label1 */3 } -/* @@@ label Error SyntaxError: Unexpected token in enum member. */ -/* @@@ label1 Error SyntaxError: Unexpected token in enum member. */ +/* @@@ label Error Syntax error ESY0178: Unexpected token in enum member. */ +/* @@@ label1 Error Syntax error ESY0178: Unexpected token in enum member. */ diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts index 6f12c1ed67eb9a90ce2bad6cde7d23c2e4ca9019..70a7649b075fb4307021bda8dbaa9b8ccd202915 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts @@ -19,4 +19,4 @@ const enum Foo { enum Foo {} -/* @@? 20:6 Error SyntaxError: Variable 'Foo' has already been declared. */ +/* @@? 20:6 Error Syntax error ESY0000: Variable 'Foo' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts index e3d003fd16a9da4b2948b4db9d12463841e2d175..1a767e79fb8b4fe3fb884db3c7a9acc5d868bfab 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts @@ -20,4 +20,4 @@ const enum Foo { } -/* @@? 19:12 Error SyntaxError: Variable 'Foo' has already been declared. */ +/* @@? 19:12 Error Syntax error ESY0000: Variable 'Foo' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ts/test-func-decl1.ts b/ets2panda/test/ast/parser/ts/test-func-decl1.ts index 3fcd175a9f2c99caaf8199bf778bfdf60d9baf86..6370e3a9046dc8b80603102d907a2129a6c24907 100644 --- a/ets2panda/test/ast/parser/ts/test-func-decl1.ts +++ b/ets2panda/test/ast/parser/ts/test-func-decl1.ts @@ -18,4 +18,4 @@ function foo() { this./* @@ label */#bar = "baz"; } -/* @@@ label Error SyntaxError: Private field 'bar' must be declared in an enclosing class */ +/* @@@ label Error Syntax error ESY0000: Private field 'bar' must be declared in an enclosing class */ diff --git a/ets2panda/test/ast/parser/ts/test-func-param1.ts b/ets2panda/test/ast/parser/ts/test-func-param1.ts index f16a2aada4015b379c91778ddc177361d66297b7..94b15397775ee0c5752ebbc8584b1c8a56136ded 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param1.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param1.ts @@ -17,4 +17,4 @@ function foo(a, b?, c/* @@ label */) { } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter */ +/* @@@ label Error Syntax error ESY0000: A required parameter cannot follow an optional parameter */ diff --git a/ets2panda/test/ast/parser/ts/test-func-param4.ts b/ets2panda/test/ast/parser/ts/test-func-param4.ts index 4e104b59270ebb9ee8e17420c6779310a6ab5744..79d0b7f8be5abcd371487e7d64d88e60143a30b9 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param4.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param4.ts @@ -17,4 +17,4 @@ class A { get foo(this) { return; } /* @@ label */} -/* @@@ label Error SyntaxError: Getter must not have formal parameters. */ +/* @@@ label Error Syntax error ESY0058: Getter must not have formal parameters. */ diff --git a/ets2panda/test/ast/parser/ts/test-func-param5.ts b/ets2panda/test/ast/parser/ts/test-func-param5.ts index 62eb41dd805eae608a0e74a82abf5e37d38ca35a..074cbfe76d68ddb7235b2aa35058a05cfc88d646 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param5.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param5.ts @@ -17,4 +17,4 @@ class A { constructor(constructor/* @@ label */) { } } -/* @@@ label Error SyntaxError: 'constructor' cannot be used as a parameter property name */ +/* @@@ label Error Syntax error ESY0000: 'constructor' cannot be used as a parameter property name */ diff --git a/ets2panda/test/ast/parser/ts/test-func-param6.ts b/ets2panda/test/ast/parser/ts/test-func-param6.ts index 7f86b48c4b3705a218cf339bb6def540490825bc..a8470eda98f5857c36136a1ee62cb060d98ca34a 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param6.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param6.ts @@ -15,4 +15,4 @@ function foo([]?/* @@ label */) { } -/* @@@ label Error SyntaxError: A binding pattern parameter cannot be optional in an implementation signature. */ +/* @@@ label Error Syntax error ESY0000: A binding pattern parameter cannot be optional in an implementation signature. */ diff --git a/ets2panda/test/ast/parser/ts/test-func-param7.ts b/ets2panda/test/ast/parser/ts/test-func-param7.ts index 6c399c9c5ec675869aa17fb3d3a877158142886d..d99626c1bd1fe01b455a67c4af4de30e7d150bc4 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param7.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param7.ts @@ -15,4 +15,4 @@ function foo(...a/* @@ label */?) { } -/* @@@ label Error SyntaxError: A rest parameter cannot be optional */ +/* @@@ label Error Syntax error ESY0000: A rest parameter cannot be optional */ diff --git a/ets2panda/test/ast/parser/ts/test-func-param8.ts b/ets2panda/test/ast/parser/ts/test-func-param8.ts index 199bf613aa038cbb5eaae130d094c220618c0384..7f61dff0c6efc1c44eb6a8e033f797d9dd214e09 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param8.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param8.ts @@ -15,4 +15,4 @@ function foo(a?/* @@ label */= 5) { } -/* @@@ label Error SyntaxError: Parameter cannot have question mark and initializer */ +/* @@@ label Error Syntax error ESY0000: Parameter cannot have question mark and initializer */ diff --git a/ets2panda/test/ast/parser/ts/test-interface2.ts b/ets2panda/test/ast/parser/ts/test-interface2.ts index 9e3c4b26f6c39782c30d55d4bed86f79ddad8026..7c8b5bc79a3a1b77cd8f4e7814bb0e02d1981c84 100644 --- a/ets2panda/test/ast/parser/ts/test-interface2.ts +++ b/ets2panda/test/ast/parser/ts/test-interface2.ts @@ -15,5 +15,5 @@ interface /* @@ label */5 { } -/* @@@ label Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@@ label Error SyntaxError: Number, string or computed value property name '5' is not allowed, use classes to access data by property names that are identifiers */ +/* @@@ label Error Syntax error ESY0315: Number, string or computed value property name '5' is not allowed, use classes to access data by property names that are identifiers */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ diff --git a/ets2panda/test/ast/parser/ts/test-interface3.ts b/ets2panda/test/ast/parser/ts/test-interface3.ts index d1b5c8ff3cb4e75e8caf0f32991f027ed0f75f68..2de4f6f2a8ccfa715746ee9303e953e051effb1a 100644 --- a/ets2panda/test/ast/parser/ts/test-interface3.ts +++ b/ets2panda/test/ast/parser/ts/test-interface3.ts @@ -18,6 +18,6 @@ interface foo extends 5 { } -/* @@? 17:23 Error SyntaxError: Identifier expected. */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:25 Error SyntaxError: Identifier expected. */ +/* @@? 17:23 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:23 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:25 Error Syntax error ESY0122: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ts/test-intersection1.ts b/ets2panda/test/ast/parser/ts/test-intersection1.ts index 5f7a74d2ee1ec5c31bd1f285adfc7e32b76d201b..3efa0e98dc6dd73ea1354b67f0299b390870707e 100644 --- a/ets2panda/test/ast/parser/ts/test-intersection1.ts +++ b/ets2panda/test/ast/parser/ts/test-intersection1.ts @@ -15,4 +15,4 @@ var a: & /* @@ label */| string; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-intersection2.ts b/ets2panda/test/ast/parser/ts/test-intersection2.ts index 21c9d47287ca2c1c598949dca0e82e97f0d71f19..c67d973a1816fb2c0a525963e3953bc7073707e8 100644 --- a/ets2panda/test/ast/parser/ts/test-intersection2.ts +++ b/ets2panda/test/ast/parser/ts/test-intersection2.ts @@ -15,4 +15,4 @@ var a: & & string; -/* @@? 17:10 Error SyntaxError: Type expected */ +/* @@? 17:10 Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-intersection3.ts b/ets2panda/test/ast/parser/ts/test-intersection3.ts index 10336782821bffc248562cbfc6a858e05a4560ee..6e5806021b1ff9b6af5d73ff222d5aad15adbbef 100644 --- a/ets2panda/test/ast/parser/ts/test-intersection3.ts +++ b/ets2panda/test/ast/parser/ts/test-intersection3.ts @@ -15,4 +15,4 @@ var a: string &/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts index 6640a316670f0087a177ad25bc1116e4b12f5b12..aad6fe3db0c4791c1e5082f683231553983f210a 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts @@ -15,4 +15,4 @@ declare var a = /* @@ label */5; -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts index 13ae8554e52028bb1529dcec03dd9a628a11906e..80c830acb2da28e52cecfd3fa13dcd9c690ec0fe 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts @@ -17,4 +17,4 @@ declare class Foo { public *g/* @@ label */() } -/* @@@ label Error SyntaxError: Generators are not allowed in an ambient context. */ +/* @@@ label Error Syntax error ESY0000: Generators are not allowed in an ambient context. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts index b535684a38b7317f642f4ba690fcc4c8dcdb6839..a8bdeb3b399dac416c4f5441bd67e52a019fcf3b 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts @@ -17,4 +17,4 @@ declare class Foo { public g() /* @@ label */{ }; } -/* @@@ label Error SyntaxError: An implementation cannot be declared in ambient contexts. */ +/* @@@ label Error Syntax error ESY0000: An implementation cannot be declared in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts index 410a1c868d07e8c6257c42ea00f7455dfbd7cec5..79bcf628284890b7c752d097b84e6ee2373c4ec4 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts @@ -17,4 +17,4 @@ declare class Foo { private static a = /* @@ label */3; } -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts index 42a17db689297fff86dcdaada39aaee11baf4043..019ce6e23f88a8b2e2299878deeeed6b1ff10163 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts @@ -17,4 +17,4 @@ class Foo { private static declare a = /* @@ label */3; } -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts index 5d5853b366486156f65f63935291f8eb45d72c87..1f4fde4d7d69806d3d5f9b7c6bd45abecdd47e3e 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts @@ -15,4 +15,4 @@ declare let a = /* @@ label */5; -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts index 67ef724d0daf128ba0fc276e7c60f51604bf3144..802a5fefe5c8898a4a7fd8bfaf9e3551198c68af 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts @@ -15,4 +15,4 @@ declare /* @@ label */a = 5; -/* @@@ label Error SyntaxError: Unexpected token 'a'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'a'. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts index 0afef8fac7321b16b6e0137d50463c15a0e507cb..e0edd7e1561bd8d3075695b4b24a8b0e6b143578 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts @@ -15,4 +15,4 @@ declare function a() /* @@ label */{ }; -/* @@@ label Error SyntaxError: An implementation cannot be declared in ambient contexts. */ +/* @@@ label Error Syntax error ESY0000: An implementation cannot be declared in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts index 6948187728ca194a3c55197db86a063a70c4ad40..742693b55c50ad3fae6185f919fc5c48ebbf2770 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts @@ -17,4 +17,4 @@ declare class Foo { private static get a() /* @@ label */{ return } } -/* @@@ label Error SyntaxError: An implementation cannot be declared in ambient contexts. */ +/* @@@ label Error Syntax error ESY0000: An implementation cannot be declared in ambient contexts. */ diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts index 531c13878bc37bc39f5436409a37439d0e7fe7e5..83302ee57380101bef807ddea77864a5b52bf1e1 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts @@ -17,4 +17,4 @@ declare class Foo { public async g/* @@ label */() } -/* @@@ label Error SyntaxError: 'async' modifier cannot be used in an ambient context. */ +/* @@@ label Error Syntax error ESY0000: 'async' modifier cannot be used in an ambient context. */ diff --git a/ets2panda/test/ast/parser/ts/test-member-expression1.ts b/ets2panda/test/ast/parser/ts/test-member-expression1.ts index 5d8d1a5857ae789f272bc30e9a2675f728158ad1..7651cbec29065607e3642f797a6607686891671f 100644 --- a/ets2panda/test/ast/parser/ts/test-member-expression1.ts +++ b/ets2panda/test/ast/parser/ts/test-member-expression1.ts @@ -17,4 +17,4 @@ var a = {foo : {bar : {baz : 5}}}; a?.foo?.bar?.baz /* @@ label */= a?.foo?.bar?.baz; -/* @@@ label Error SyntaxError: Invalid left-hand side in assignment expression. */ +/* @@@ label Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ diff --git a/ets2panda/test/ast/parser/ts/test-member-expression2.ts b/ets2panda/test/ast/parser/ts/test-member-expression2.ts index afd65877fe129867093f082e311f1a3a18d08428..12372fa452b18980a264615852c117c30c724dc7 100644 --- a/ets2panda/test/ast/parser/ts/test-member-expression2.ts +++ b/ets2panda/test/ast/parser/ts/test-member-expression2.ts @@ -17,4 +17,4 @@ var a = [0, 1, 2, 3, 4]; a?.[0] /* @@ label */= a?.[0]; -/* @@@ label Error SyntaxError: Invalid left-hand side in assignment expression. */ +/* @@@ label Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type1.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type1.ts index 8348e42b3f943f2d3c0075d2602933897b425411..f89700058035e81a7e5b99323a7243ba96364a73 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type1.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type1.ts @@ -15,4 +15,4 @@ type Foo = string extends number /* @@ label */extends string ?number: string; -/* @@@ label Error SyntaxError: '?' expected. */ +/* @@@ label Error Syntax error ESY0000: '?' expected. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type2.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type2.ts index fdff272c557c5a50ca492d4b59d71547cfd6ffbf..14e6c062de4414ef063fec34218b3f44fd635c23 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type2.ts @@ -15,4 +15,4 @@ type Foo = string extends number ? number extends /* @@ label */: string; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type3.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type3.ts index b25013c521ef7c88253fd5def6e8cce6185b922d..b48b48342b0b1e5b7caaf0ac2b982781179a6729 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type3.ts @@ -15,4 +15,4 @@ type Foo = string extends number ? number /* @@ label */string : string; -/* @@@ label Error SyntaxError: ':' expected. */ +/* @@@ label Error Syntax error ESY0000: ':' expected. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type4.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type4.ts index f94f025eb67a0ca34efc44f9547469009107c9fe..b7b0ca192ae0a01198da9819f0af648187da7f6f 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type4.ts @@ -15,4 +15,4 @@ type Foo = string extends number ? number : string extends/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type5.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type5.ts index 7dd7ebaec46f1f7cf6fbb7e4c273c33cac014f3a..ede987a9dd2733cbdbbfe2282dbc31f09db07e5b 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type5.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type5.ts @@ -15,4 +15,4 @@ type Foo = /* @@ label */infer string extends number ? number : string; -/* @@@ label Error SyntaxError: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ +/* @@@ label Error Syntax error ESY0000: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type6.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type6.ts index 1a52162322a8e9d846409de5b2f80db74a9a8099..c87fbefc0e9dcff98f9daefde93b3a7eae44c670 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type6.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type6.ts @@ -15,4 +15,4 @@ type Foo = string extends number ? /* @@ label */infer number : string; -/* @@@ label Error SyntaxError: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ +/* @@@ label Error Syntax error ESY0000: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type7.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type7.ts index 20a4868ef1ee68e723b28931b0890930fffbc35b..699326a122bc06e27d3d1cc366d4d0899b18ca34 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type7.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type7.ts @@ -15,4 +15,4 @@ type Foo = string extends number ? number : /* @@ label */infer string; -/* @@@ label Error SyntaxError: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ +/* @@@ label Error Syntax error ESY0000: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-constructor-type1.ts b/ets2panda/test/ast/parser/ts/test-ts-constructor-type1.ts index d57ad8eef893b79d9961e9242e043b982ce47edd..398c60870fa85de24cdb2e6bbb883d9be50a43a1 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-constructor-type1.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-constructor-type1.ts @@ -15,4 +15,4 @@ var ctor: new (a: number, b: string)/* @@ label */; -/* @@@ label Error SyntaxError: '=>' expected */ +/* @@@ label Error Syntax error ESY0000: '=>' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-constructor-type2.ts b/ets2panda/test/ast/parser/ts/test-ts-constructor-type2.ts index f1987fd9420e1d34cb5df0d0ae369d3c6d8fdd98..c869902110393b2cf41718598c6eb8ec02344a69 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-constructor-type2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-constructor-type2.ts @@ -15,4 +15,4 @@ var ctor: abstract new (a: number, b: string)/* @@ label */; -/* @@@ label Error SyntaxError: '=>' expected */ +/* @@@ label Error Syntax error ESY0000: '=>' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-constructor-type3.ts b/ets2panda/test/ast/parser/ts/test-ts-constructor-type3.ts index 4e021ae027fcd7ffe9620f698daa62ab0914622a..2142331c8d8abb66a6f130e8b3a5de8f0cc8bd3a 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-constructor-type3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-constructor-type3.ts @@ -15,4 +15,4 @@ var ctor1: new /* @@ label */abstract (a: number, b: string) => number; -/* @@@ label Error SyntaxError: '(' expected */ +/* @@@ label Error Syntax error ESY0000: '(' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-constructor-type4.ts b/ets2panda/test/ast/parser/ts/test-ts-constructor-type4.ts index 7a886318544a6d1c03c51a0f5e55eb16b35e1ef8..e83c80b05cff72f4773334de1d3779af6432f7a0 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-constructor-type4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-constructor-type4.ts @@ -15,4 +15,4 @@ var ctor1: abstract /* @@ label */(a: number, b: string) => number; -/* @@@ label Error SyntaxError: Unexpected token '('. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '('. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type1.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type1.ts index 8956e942b3869f03c2b9906e9e512121d58041d6..325a5e2bd4b1f774754fc04664f789bf53100093 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type1.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type1.ts @@ -15,4 +15,4 @@ type Foo = { /* @@ label */+ s readonly[prop in keyof T] }; -/* @@@ label Error SyntaxError: Unexpected token in property key */ +/* @@@ label Error Syntax error ESY0000: Unexpected token in property key */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type2.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type2.ts index f942fa9a45f5dd7adfa964753932243c95fd9dfc..07f465d0fd4d6057da6e81450e7c35453b484d7f 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type2.ts @@ -15,4 +15,4 @@ type Foo = { readonly /* @@ label */+ [prop in keyof T] }; -/* @@@ label Error SyntaxError: Unexpected token in property key */ +/* @@@ label Error Syntax error ESY0000: Unexpected token in property key */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type3.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type3.ts index 1d5b12b45b956079f1cd18c4b10477abe5bbc12e..75ed409f03b97671a4b65575b89840af9f2a09e6 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type3.ts @@ -15,4 +15,4 @@ type Foo = { readonly [prop /* @@ label */keyof T] }; -/* @@@ label Error SyntaxError: Unexpected token, expected ']' */ +/* @@@ label Error Syntax error ESY0000: Unexpected token, expected ']' */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type4.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type4.ts index 05ec5c52295b4b73eb933ef92077e1acad440581..cfbb91224d8778968cafda12a22fbe53cb925b28 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type4.ts @@ -15,4 +15,4 @@ type Foo = { readonly [prop in keyof T /* @@ label */+] }; -/* @@@ label Error SyntaxError: ']' expected */ +/* @@@ label Error Syntax error ESY0000: ']' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type5.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type5.ts index d6bf102d29af97f5f417452c07067284e59b5d27..49eee3418a6ae2abf888fb969e05e02642c425d1 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type5.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type5.ts @@ -15,4 +15,4 @@ type Foo = { readonly [prop in keyof T]+/* @@ label */-? }; -/* @@@ label Error SyntaxError: '?' expected. */ +/* @@@ label Error Syntax error ESY0000: '?' expected. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type6.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type6.ts index 73ecaca55ec3e391640aa5a4c7f2f33f8ab0b4fd..e632127cd6bff1e01938aa6de34874c95530c9ed 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type6.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type6.ts @@ -15,4 +15,4 @@ type Foo = { readonly [prop in keyof T]/* @@ label */3 }; -/* @@@ label Error SyntaxError: ';' expected */ +/* @@@ label Error Syntax error ESY0000: ';' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type7.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type7.ts index bb40875716fd17fde3ba5e9aaf6eb08dc5e634a6..58767c959b605ca4a0f8dbf00b40f05bf8f48cea 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type7.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type7.ts @@ -15,4 +15,4 @@ type Foo = { readonly [prop in keyof T];/* @@ label */3 }; -/* @@@ label Error SyntaxError: '}' expected */ +/* @@@ label Error Syntax error ESY0000: '}' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property1.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property1.ts index 11b7e20a6cf80363a5eef7a7d361796ea1db7bb1..ef3484f681b28fb9d15418114c3c12849ee1f01f 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property1.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property1.ts @@ -15,4 +15,4 @@ function Foo(/* @@ label */public readonly a) { } -/* @@@ label Error SyntaxError: A parameter property is only allowed in a constructor implementation. */ +/* @@@ label Error Syntax error ESY0000: A parameter property is only allowed in a constructor implementation. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property10.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property10.ts index 7e3da99c0d952587ff4ed292f1c38e90bb02519e..c3c1c710eccf221cecb88590017f2c154799040a 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property10.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property10.ts @@ -17,4 +17,4 @@ class Foo { constructor(/* @@ label */private readonly { bar } = { bar: 2 }) { }; } -/* @@@ label Error SyntaxError: A parameter property may not be declared using a binding pattern. */ +/* @@@ label Error Syntax error ESY0000: A parameter property may not be declared using a binding pattern. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property11.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property11.ts index 787e155e627ab203db2b47ede5ea5e2cd5f175cf..097125eaa653243179538cd4c4733d7061160b0a 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property11.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property11.ts @@ -17,4 +17,4 @@ class Foo { constructor(/* @@ label */private readonly [bar]) { }; } -/* @@@ label Error SyntaxError: A parameter property may not be declared using a binding pattern. */ +/* @@@ label Error Syntax error ESY0000: A parameter property may not be declared using a binding pattern. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property12.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property12.ts index c04ef61da54a33b60928ced00c5810fe001c3223..d73856ec8f169622a29218a7ef47f6b198a08064 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property12.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property12.ts @@ -17,4 +17,4 @@ class Foo { constructor(/* @@ label */private readonly { bar }) { }; } -/* @@@ label Error SyntaxError: A parameter property may not be declared using a binding pattern. */ +/* @@@ label Error Syntax error ESY0000: A parameter property may not be declared using a binding pattern. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property2.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property2.ts index 88ff463310966b32d7762c36f46f6f79e5ad3573..67b8c6bc9860a4fc147be4527ed3c658b1207401 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property2.ts @@ -18,4 +18,4 @@ class Foo { constructor() { }; a(/* @@ label */public a) { }; } -/* @@@ label Error SyntaxError: A parameter property is only allowed in a constructor implementation. */ +/* @@@ label Error Syntax error ESY0000: A parameter property is only allowed in a constructor implementation. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property3.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property3.ts index 3aa30e6259fc07cf07be1f2f1f52b674caeeb006..fc6867f7b7cf954cd087910770631e08b8ba3b98 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property3.ts @@ -17,5 +17,5 @@ class Foo { constructor(readonly readonly readonly) { }; } -/* @@? 18:26 Error SyntaxError: Unexpected modifier. */ -/* @@? 18:26 Error SyntaxError: Duplicated modifier is not allowed. */ +/* @@? 18:26 Error Syntax error ESY0153: Unexpected modifier. */ +/* @@? 18:26 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property4.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property4.ts index 770f3f57c296f2497b3923cdae8aa5775eee78ea..b18c4bdd21075850cb48fc8148b1dbb7c5f5b6b0 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property4.ts @@ -17,4 +17,4 @@ class Foo { constructor(private /* @@ label */static readonly readonly) { }; } -/* @@@ label Error SyntaxError: 'static' modifier cannot appear on a parameter. */ +/* @@@ label Error Syntax error ESY0232: 'static' modifier cannot appear on a parameter. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property5.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property5.ts index 149390250b296552a787c5255e8dddc584fea698..590c4b9359e87b10c390904abc6152ece8f7df55 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property5.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property5.ts @@ -17,4 +17,4 @@ class Foo { constructor(private /* @@ label */async readonly readonly) { }; } -/* @@@ label Error SyntaxError: 'async' modifier cannot appear on a parameter. */ +/* @@@ label Error Syntax error ESY0232: 'async' modifier cannot appear on a parameter. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property6.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property6.ts index 7f1e1e5216863d2839167adbe3557dd2e0a18834..a1346c68efbde2ba44a22e83670567b73043d0e5 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property6.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property6.ts @@ -17,4 +17,4 @@ class Foo { constructor(private /* @@ label */declare readonly readonly) { }; } -/* @@@ label Error SyntaxError: 'declare' modifier cannot appear on a parameter. */ +/* @@@ label Error Syntax error ESY0232: 'declare' modifier cannot appear on a parameter. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property7.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property7.ts index ad1d61e32244ad6c6e85c3f62d16f527e5f395e2..ca960fa1ca108862b31b2fd5f991c62dfd7fa2a2 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property7.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property7.ts @@ -17,4 +17,4 @@ class Foo { constructor(private readonly readonly, /* @@ label */private readonly readonly) { }; } -/* @@@ label Error SyntaxError: Variable 'readonly' has already been declared. */ +/* @@@ label Error Syntax error ESY0000: Variable 'readonly' has already been declared. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property8.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property8.ts index 049b276d8e8e8a1aee6c9d964b6c85e1085fee42..b723941cba856c3e42cf4f9fae3231e704b74601 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property8.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property8.ts @@ -17,4 +17,4 @@ class Foo { constructor(/* @@ label */private readonly ...rest) { }; } -/* @@@ label Error SyntaxError: A parameter property cannot be declared using a rest parameter. */ +/* @@@ label Error Syntax error ESY0000: A parameter property cannot be declared using a rest parameter. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property9.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property9.ts index 47a2a3702a14fd97546216bcd6b34aa8a08e7111..7ecee3e0b6218f3cefad46bdbfd95878dd0e129d 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property9.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property9.ts @@ -17,4 +17,4 @@ class Foo { constructor(/* @@ label */private readonly [bar] = [2]) { }; } -/* @@@ label Error SyntaxError: A parameter property may not be declared using a binding pattern. */ +/* @@@ label Error Syntax error ESY0000: A parameter property may not be declared using a binding pattern. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate2.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate2.ts index bbefc72aa7cd39395f06ef30cd674893c30f5261..5e55bd2268cabffdd7153403bd3a94248911be7a 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate2.ts @@ -15,4 +15,4 @@ var var1: (is: number | string) => asserts is/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate3.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate3.ts index e64ab6ac447ba4000e6c7f6e054b75ef0ab4ea3f..50a184aac6ffe90fe17123eb9dbc81f7a3e7ba81 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate3.ts @@ -16,5 +16,5 @@ function function1(is: number | string): asserts is is number /* @@ label */{ /* @@ label1 */return }; -/* @@@ label Error SyntaxError: Unexpected token '{'. */ -/* @@@ label1 Error SyntaxError: return keyword should be used in function body. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label1 Error Syntax error ESY0163: return keyword should be used in function body. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate4.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate4.ts index fb523ea53a74885f8753f10c5a56d843c63999a7..ab89843e4c404f14fc80568f6469936d126e4a4d 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate4.ts @@ -15,4 +15,4 @@ var var1: (is: number | string) => asserts is is /* @@ label */number; -/* @@@ label Error SyntaxError: Unexpected token 'number'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'number'. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate5.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate5.ts index 90738ed82a145ce9b220412bb083f1ee63e5f5a9..ec121464396cac85eddc3883e9f7cd68a0226423 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate5.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate5.ts @@ -16,5 +16,5 @@ function function1(is: number | string): asserts (number | string) /* @@ label */{ /* @@ label1 */return }; -/* @@@ label Error SyntaxError: Unexpected token '{'. */ -/* @@@ label1 Error SyntaxError: return keyword should be used in function body. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label1 Error Syntax error ESY0163: return keyword should be used in function body. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate6.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate6.ts index 203bb87d07d16bc3ca802f18c3d5d8182a25c0ef..0c021ec7b172de54cd56da86dd997f6fc4e730d6 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate6.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate6.ts @@ -16,4 +16,4 @@ var var1: (is: number | string) => asserts /* @@ label */(number | string); -/* @@@ label Error SyntaxError: Unexpected token '('. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '('. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate7.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate7.ts index 57bdabda582eab6ad63f97ee8536b0ed70e64d5c..ac7fd678416513e20d13078c194dfd4c8328391c 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate7.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate7.ts @@ -16,6 +16,6 @@ function function1(is: number | string): (number | string) is /* @@ label */number /* @@ label1 */{ /* @@ label2 */return }; -/* @@@ label Error SyntaxError: Unexpected token 'number'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '{'. */ -/* @@@ label2 Error SyntaxError: return keyword should be used in function body. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label2 Error Syntax error ESY0163: return keyword should be used in function body. */ diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate8.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate8.ts index e85d136f33a69de90104804857541687ee862417..7eff40fb4935e86d3f88647c6de35885406a66ae 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate8.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate8.ts @@ -16,5 +16,5 @@ var var1: (is: number | string) => (number | string) /* @@ label */is /* @@ label1 */number; -/* @@@ label Error SyntaxError: Unexpected token 'is'. */ -/* @@@ label1 Error SyntaxError: Unexpected token 'number'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'is'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'number'. */ diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type1.ts b/ets2panda/test/ast/parser/ts/test-tuple-type1.ts index 65623f6e6f8b80aff515d9b59e388e6e6ceb20cc..54d701645b2778a80909ecd277ee04f221122c24 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type1.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type1.ts @@ -15,4 +15,4 @@ var a: [a: number /* @@ label */string] -/* @@@ label Error SyntaxError: ',' expected. */ +/* @@@ label Error Syntax error ESY0000: ',' expected. */ diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type2.ts b/ets2panda/test/ast/parser/ts/test-tuple-type2.ts index a35f7497449c0a629fdb865ce0aafe3c871e6b0b..cc9d3d4f04fec568abafb1f20330a815bfe2b276 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type2.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type2.ts @@ -15,4 +15,4 @@ var a: [number, /* @@ label */a: string] -/* @@@ label Error SyntaxError: Tuple members must all have names or all not have names */ +/* @@@ label Error Syntax error ESY0000: Tuple members must all have names or all not have names */ diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type3.ts b/ets2panda/test/ast/parser/ts/test-tuple-type3.ts index 50d373ad4345c7dd375c79d1d3b89edb9dc30ec7..b9787936e9bb65197f87f91a0fe00068a3181f7f 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type3.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type3.ts @@ -15,4 +15,4 @@ var a: [/* @@ label */?number] -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type4.ts b/ets2panda/test/ast/parser/ts/test-tuple-type4.ts index 96b803c26cbed50f3fb766da8672f421d5f3b84f..36ea9037b24b450172231fada60ca42598b813b4 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type4.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type4.ts @@ -15,4 +15,4 @@ var a: [a?: number, b/* @@ label */: string] -/* @@@ label Error SyntaxError: A required element cannot follow an optional element */ +/* @@@ label Error Syntax error ESY0000: A required element cannot follow an optional element */ diff --git a/ets2panda/test/ast/parser/ts/test-type-alias1.ts b/ets2panda/test/ast/parser/ts/test-type-alias1.ts index 56857f29567b4d579aba4995502f7f098c1ada30..32660741b74215043ce2042f33972632ed9f003b 100644 --- a/ets2panda/test/ast/parser/ts/test-type-alias1.ts +++ b/ets2panda/test/ast/parser/ts/test-type-alias1.ts @@ -15,4 +15,4 @@ type /* @@ label */5 = number; -/* @@@ label Error SyntaxError: Identifier expected */ +/* @@@ label Error Syntax error ESY0000: Identifier expected */ diff --git a/ets2panda/test/ast/parser/ts/test-type-alias2.ts b/ets2panda/test/ast/parser/ts/test-type-alias2.ts index 29a44170b2c3e83ee3f21f52530289d02cb893d3..495e24216a88d8dc59596a921e1841d5902bda63 100644 --- a/ets2panda/test/ast/parser/ts/test-type-alias2.ts +++ b/ets2panda/test/ast/parser/ts/test-type-alias2.ts @@ -15,4 +15,4 @@ type bar /* @@ label */number; -/* @@@ label Error SyntaxError: '=' expected */ +/* @@@ label Error Syntax error ESY0000: '=' expected */ diff --git a/ets2panda/test/ast/parser/ts/test-type-alias3.ts b/ets2panda/test/ast/parser/ts/test-type-alias3.ts index 58b78a4eda5978bd2a0fbb6f3934b6705eed3132..c43e7eca9f1b2327ece2483918cc2b05da3b38a8 100644 --- a/ets2panda/test/ast/parser/ts/test-type-alias3.ts +++ b/ets2panda/test/ast/parser/ts/test-type-alias3.ts @@ -15,4 +15,4 @@ type foo = /* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ +/* @@@ label Error Syntax error ESY0000: Type expected */ diff --git a/ets2panda/test/ast/parser/ts/test-type-literal1.ts b/ets2panda/test/ast/parser/ts/test-type-literal1.ts index b89c916aefafe34729dbc93754817f6705a33156..983d8f356fa648ed9c377f1c59257b2a521bebf3 100644 --- a/ets2panda/test/ast/parser/ts/test-type-literal1.ts +++ b/ets2panda/test/ast/parser/ts/test-type-literal1.ts @@ -15,4 +15,4 @@ var a: { [a /* @@ label */} -/* @@@ label Error SyntaxError: Unexpected token, expected ']' */ +/* @@@ label Error Syntax error ESY0000: Unexpected token, expected ']' */ diff --git a/ets2panda/test/ast/parser/ts/test-type-literal2.ts b/ets2panda/test/ast/parser/ts/test-type-literal2.ts index c34c624295c9ef8dccd60416cb27019504a63a05..00c92b404a7ef83419bdbccaf376d436773d0d2d 100644 --- a/ets2panda/test/ast/parser/ts/test-type-literal2.ts +++ b/ets2panda/test/ast/parser/ts/test-type-literal2.ts @@ -16,5 +16,5 @@ var a: { new a()} -/* @@? 17:14 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:14 Error SyntaxError: Unexpected token in property key */ +/* @@? 17:14 Error Syntax error ESY0000: Unexpected token in property key */ +/* @@? 17:14 Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/parser/ts/test-type-literal3.ts b/ets2panda/test/ast/parser/ts/test-type-literal3.ts index 67cb855452acf733015a9849d2befa32aaf76c73..e862d6c97e8e8b80b8cf23b6b9e243bc60d9fe94 100644 --- a/ets2panda/test/ast/parser/ts/test-type-literal3.ts +++ b/ets2panda/test/ast/parser/ts/test-type-literal3.ts @@ -15,4 +15,4 @@ var a: { a /* @@ label */new ()} -/* @@@ label Error SyntaxError: Unexpected token, expected ','. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ','. */ diff --git a/ets2panda/test/ast/parser/ts/test-type-query1.ts b/ets2panda/test/ast/parser/ts/test-type-query1.ts index 4c318a3be36eae1921439fe02735405082483e7b..cbdb4a01c081de7871ba8758d565024d989bb124 100644 --- a/ets2panda/test/ast/parser/ts/test-type-query1.ts +++ b/ets2panda/test/ast/parser/ts/test-type-query1.ts @@ -15,4 +15,4 @@ var a: typeof /* @@ label */5; -/* @@@ label Error SyntaxError: Identifier expected. */ +/* @@@ label Error Syntax error ESY0000: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ts/test-type-query2.ts b/ets2panda/test/ast/parser/ts/test-type-query2.ts index 0d818a460f7bfa8a7ccc49b9bfb9564ecc42cb09..a11235a2d1bb766cdeb0734b98ddfc38e77d2455 100644 --- a/ets2panda/test/ast/parser/ts/test-type-query2.ts +++ b/ets2panda/test/ast/parser/ts/test-type-query2.ts @@ -15,5 +15,4 @@ var a: typeof -/* @@@ label Error SyntaxError: Identifier expected. */ -/* @@ label */ \ No newline at end of file +/* @@? 20:1 Error Syntax error ESY0000: Identifier expected. */ diff --git a/ets2panda/test/ast/parser/ts/test_class_constructor.ts b/ets2panda/test/ast/parser/ts/test_class_constructor.ts index d525f7e84258e15e2e94906485ca65c87e3ae902..f2223d5538882ebd9bc0fac5280380dcdfd3ffb1 100644 --- a/ets2panda/test/ast/parser/ts/test_class_constructor.ts +++ b/ets2panda/test/ast/parser/ts/test_class_constructor.ts @@ -17,4 +17,4 @@ class MyClass { /* @@ label */"constructor" = 42; } -/* @@@ label Error SyntaxError: Classes may not have a field named 'constructor'. */ +/* @@@ label Error Syntax error ESY0144: Classes may not have a field named 'constructor'. */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator1.ts b/ets2panda/test/ast/parser/ts/test_decorator1.ts index b9f36f8cb8f76e675db7726a7ca971c1bb1d95d4..b8ba36ed0a8f8b27b74f5c134ef278fc564367a5 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator1.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator1.ts @@ -15,4 +15,4 @@ function foo(/* @@ label */@dec a) { }; -/* @@@ label Error SyntaxError: Decorators are not valid here */ +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator2.ts b/ets2panda/test/ast/parser/ts/test_decorator2.ts index 529242eebedef5763c45f754348428fa4ebfee15..e1a2e5dc34e206831e3be2549126d0ad76bdbc9e 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator2.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator2.ts @@ -18,4 +18,4 @@ class Foo { } -/* @@@ label Error SyntaxError: Decorators are not valid here */ +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator4.ts b/ets2panda/test/ast/parser/ts/test_decorator4.ts index 8f9f96b6bd058e4fba2b6029d1bdb028346d87e5..25708dc65533418ad50e8dc3d18fcf6926047ecc 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator4.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator4.ts @@ -17,4 +17,4 @@ class Foo { /* @@ label */@dec a(); } -/* @@@ label Error SyntaxError: A decorator can only decorate a method implementation, not an overload. */ +/* @@@ label Error Syntax error ESY0000: A decorator can only decorate a method implementation, not an overload. */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator5.ts b/ets2panda/test/ast/parser/ts/test_decorator5.ts index c03cf07a957179d307f774d68e8d396f74676125..9f97bcbd2d23133d97412d8ad922e261fc135737 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator5.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator5.ts @@ -17,4 +17,4 @@ class Foo { /* @@ label */@dec constructor() { }; } -/* @@@ label Error SyntaxError: Decorators are not valid here. */ +/* @@@ label Error Syntax error ESY0183: Decorators are not valid here. */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator6.ts b/ets2panda/test/ast/parser/ts/test_decorator6.ts index 05ca31aae07fcf782b374951a9becf3cd0c16406..de5e2cddc7398168bc070493344984ab3209ae12 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator6.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator6.ts @@ -18,5 +18,5 @@ class Foo { /* @@ label */@dec [a: number]: /* @@ label1 */string; } -/* @@@ label Error SyntaxError: Decorators are not valid here. */ -/* @@@ label1 Error SyntaxError: An index signature must have a type annotation */ +/* @@@ label1 Error Syntax error ESY0000: An index signature must have a type annotation */ +/* @@@ label Error Syntax error ESY0183: Decorators are not valid here. */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator7.ts b/ets2panda/test/ast/parser/ts/test_decorator7.ts index 46fab91f86f529a44b8f81100946b28c86c52b80..05371f7dac50282dcf45d0b669c7f3c393d414eb 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator7.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator7.ts @@ -17,4 +17,4 @@ /* @@ label */@bar export default function foo() { } -/* @@@ label Error SyntaxError: Decorators are not valid here */ +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ diff --git a/ets2panda/test/ast/parser/ts/test_decorator8.ts b/ets2panda/test/ast/parser/ts/test_decorator8.ts index 5b8940b432ec0f30416ad18bac60894872a2abb9..f8731cd14f7713ebb1034b656627ce34d050d6e4 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator8.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator8.ts @@ -17,4 +17,4 @@ /* @@ label */@bar export function foo() { } -/* @@@ label Error SyntaxError: Decorators are not valid here */ +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ diff --git a/ets2panda/test/ast/parser/ts/test_generators.ts b/ets2panda/test/ast/parser/ts/test_generators.ts index 06fe8230f5b9bdb489e9c2b7332c53a712fe9ab9..9b3d972efa1112fb46b36694b474c5895d3fd3f8 100644 --- a/ets2panda/test/ast/parser/ts/test_generators.ts +++ b/ets2panda/test/ast/parser/ts/test_generators.ts @@ -18,5 +18,5 @@ a: yield 1; } -/* @@@ label Error SyntaxError: In strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. */ -/* @@@ label Error SyntaxError: Generators can only be declared at the top level or inside a block. */ +/* @@@ label Error Syntax error ESY0198: In strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. */ +/* @@@ label Error Syntax error ESY0173: Generators can only be declared at the top level or inside a block. */ diff --git a/ets2panda/test/ast/parser/ts/test_insufficient_param.ts b/ets2panda/test/ast/parser/ts/test_insufficient_param.ts index 41ee6d26764c4c0129680f1c94a836e7d79bcae7..fb25a888e765e2324f30e0c61bda2458769b896b 100644 --- a/ets2panda/test/ast/parser/ts/test_insufficient_param.ts +++ b/ets2panda/test/ast/parser/ts/test_insufficient_param.ts @@ -15,4 +15,4 @@ async (()=> {}, a) /* @@ label */=> expression; -/* @@@ label Error SyntaxError: Insufficient formal parameter in arrow function. */ +/* @@@ label Error Syntax error ESY0064: Insufficient formal parameter in arrow function. */ diff --git a/ets2panda/test/ast/parser/ts/test_invalid_left_side.ts b/ets2panda/test/ast/parser/ts/test_invalid_left_side.ts index 555dfa4bbc9176a036fab04fea53a686f098017e..37e9a967333e19e04da30c56efba8eaef5ecf28c 100644 --- a/ets2panda/test/ast/parser/ts/test_invalid_left_side.ts +++ b/ets2panda/test/ast/parser/ts/test_invalid_left_side.ts @@ -15,4 +15,4 @@ ({ a: 1 } = {})/* @@ label */; -/* @@@ label Error SyntaxError: Invalid left-hand side in assignment expression. */ +/* @@@ label Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ diff --git a/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_async_function.ts b/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_async_function.ts index b1817950d806bf176b8b86ffcebde7a626f02d52..0dca897323a61d590ca2054c83f401738373ec5c 100644 --- a/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_async_function.ts +++ b/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_async_function.ts @@ -15,4 +15,4 @@ while (true) async /* @@ label */function a() { }; -/* @@@ label Error SyntaxError: Lexical declaration is not allowed in single statement context. */ +/* @@@ label Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ diff --git a/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_class.ts b/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_class.ts index 823d5add6dfca64c4f35484d600965b3e75bd2fc..99f1d2114e91d737b6c7f682e6f8d9284984b758 100644 --- a/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_class.ts +++ b/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_class.ts @@ -15,4 +15,4 @@ while (true) /* @@ label */class a { }; -/* @@@ label Error SyntaxError: Lexical declaration is not allowed in single statement context. */ +/* @@@ label Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ diff --git a/ets2panda/test/ast/parser/ts/test_module1.ts b/ets2panda/test/ast/parser/ts/test_module1.ts index 7d5b5e89bd0d93137525b5fefe5d31072b0b33ab..91b937e152bcef5cef7e2e9c1fb7bce069f58093 100644 --- a/ets2panda/test/ast/parser/ts/test_module1.ts +++ b/ets2panda/test/ast/parser/ts/test_module1.ts @@ -17,4 +17,4 @@ declare module Foo { /* @@ label */declare var a; } -/* @@@ label Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ +/* @@@ label Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ diff --git a/ets2panda/test/ast/parser/ts/test_module2.ts b/ets2panda/test/ast/parser/ts/test_module2.ts index 84c40c4ac39a01e122dcabc3810c325bddcf571c..04ecdec68463ce0e6739cc8641f3e38f644e008b 100644 --- a/ets2panda/test/ast/parser/ts/test_module2.ts +++ b/ets2panda/test/ast/parser/ts/test_module2.ts @@ -17,4 +17,4 @@ export declare module Foo { /* @@ label */declare var a; } -/* @@@ label Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ +/* @@@ label Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ diff --git a/ets2panda/test/ast/parser/ts/test_module3.ts b/ets2panda/test/ast/parser/ts/test_module3.ts index 3860d86a142e7f5eb2b6b5753c6e150490f0114a..53c520fc8120c0c84a8c39d8329440bfc8dea17f 100644 --- a/ets2panda/test/ast/parser/ts/test_module3.ts +++ b/ets2panda/test/ast/parser/ts/test_module3.ts @@ -17,4 +17,4 @@ declare module Foo { export /* @@ label */declare var a; } -/* @@@ label Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ +/* @@@ label Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ diff --git a/ets2panda/test/ast/parser/ts/test_module4.ts b/ets2panda/test/ast/parser/ts/test_module4.ts index 18bb7931806a0126547a5290b35f67b42447d7c5..debefc26fbd6e0890be0ff69868d8f4e821dd33b 100644 --- a/ets2panda/test/ast/parser/ts/test_module4.ts +++ b/ets2panda/test/ast/parser/ts/test_module4.ts @@ -17,4 +17,4 @@ export declare module Foo { export /* @@ label */declare var a; } -/* @@@ label Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ +/* @@@ label Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ diff --git a/ets2panda/test/ast/parser/ts/test_module5.ts b/ets2panda/test/ast/parser/ts/test_module5.ts index 7356e6b1477496735b70b4094b1df37b2abc4425..61e5022fcea541ec1d300a31663fe1928b588295 100644 --- a/ets2panda/test/ast/parser/ts/test_module5.ts +++ b/ets2panda/test/ast/parser/ts/test_module5.ts @@ -17,4 +17,4 @@ declare module "foo" { import a = require(/* @@ label */bar); } -/* @@@ label Error SyntaxError: String literal expected. */ +/* @@@ label Error Syntax error ESY0000: String literal expected. */ diff --git a/ets2panda/test/ast/parser/ts/test_module6.ts b/ets2panda/test/ast/parser/ts/test_module6.ts index 7c30c6bf5e6aef39a20fef5a6af8940e4583da86..2f7aa9bc6634d878c8ae24b81164e6093704d53c 100644 --- a/ets2panda/test/ast/parser/ts/test_module6.ts +++ b/ets2panda/test/ast/parser/ts/test_module6.ts @@ -17,4 +17,4 @@ declare module "foo" { import a = require("bar"/* @@ label */[0]); } -/* @@@ label Error SyntaxError: ')' expected. */ +/* @@@ label Error Syntax error ESY0000: ')' expected. */ diff --git a/ets2panda/test/ast/parser/ts/test_rest_param_not_last.ts b/ets2panda/test/ast/parser/ts/test_rest_param_not_last.ts index 074a68340c82bed117018e9386bfb5e3db0814f1..1caa3756df1856d4c395fbf3d8985eddb1a14739 100644 --- a/ets2panda/test/ast/parser/ts/test_rest_param_not_last.ts +++ b/ets2panda/test/ast/parser/ts/test_rest_param_not_last.ts @@ -14,4 +14,4 @@ */ const /* @@ label */[...rest, x] = [1, 2, 3]; -/* @@@ label Error SyntaxError: Rest parameter must be the last formal parameter. */ +/* @@@ label Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ diff --git a/ets2panda/test/ast/parser/ts/test_restparam_id_in_dec_context.ts b/ets2panda/test/ast/parser/ts/test_restparam_id_in_dec_context.ts index 327c4c4735770b59b331e556f339d9579d033e58..eb171d141e2063d4a78deb2d822d18d265a337a0 100644 --- a/ets2panda/test/ast/parser/ts/test_restparam_id_in_dec_context.ts +++ b/ets2panda/test/ast/parser/ts/test_restparam_id_in_dec_context.ts @@ -15,4 +15,4 @@ function f({ ...{ x } /* @@ label */}) {} -/* @@@ label Error SyntaxError: RestParameter must be followed by an identifier in declaration contexts */ +/* @@@ label Error Syntax error ESY0156: RestParameter must be followed by an identifier in declaration contexts */ diff --git a/ets2panda/test/ast/parser/ts/test_static_property_prototype.ts b/ets2panda/test/ast/parser/ts/test_static_property_prototype.ts index 2b09f42bf39bfadc4c3645516c5865c295ff764d..73c81f2332394eb94b23fad615075c1580edf893 100644 --- a/ets2panda/test/ast/parser/ts/test_static_property_prototype.ts +++ b/ets2panda/test/ast/parser/ts/test_static_property_prototype.ts @@ -17,4 +17,4 @@ class MyClass { static /* @@ label */prototype = {}; } -/* @@@ label Error SyntaxError: Classes may not have static property named prototype. */ +/* @@@ label Error Syntax error ESY0155: Classes may not have static property named prototype. */ diff --git a/ets2panda/test/ast/parser/ts/test_strict_mode_func.ts b/ets2panda/test/ast/parser/ts/test_strict_mode_func.ts index 7f8e7cd258a0b99d26e1f3291d86727af222b454..452e48d6b172f7c8f05d4d23556bbc166816a4d9 100644 --- a/ets2panda/test/ast/parser/ts/test_strict_mode_func.ts +++ b/ets2panda/test/ast/parser/ts/test_strict_mode_func.ts @@ -16,4 +16,4 @@ a: /* @@ label */function foo() { } -/* @@@ label Error SyntaxError: In strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. */ +/* @@@ label Error Syntax error ESY0198: In strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. */ diff --git a/ets2panda/test/ast/parser/ts/test_this_type1.ts b/ets2panda/test/ast/parser/ts/test_this_type1.ts index be642e88bc64efe83895f90a13e201f0203cbbf1..7f3c2b38a3cfd068a85ad3360d79e8d36628da81 100644 --- a/ets2panda/test/ast/parser/ts/test_this_type1.ts +++ b/ets2panda/test/ast/parser/ts/test_this_type1.ts @@ -15,4 +15,4 @@ var a: /* @@ label */this; -/* @@@ label Error SyntaxError: A 'this' type is available only in a non-static member of a class or interface. */ +/* @@@ label Error Syntax error ESY0000: A 'this' type is available only in a non-static member of a class or interface. */ diff --git a/ets2panda/test/ast/parser/ts/test_this_type2.ts b/ets2panda/test/ast/parser/ts/test_this_type2.ts index 723834f27818aed694e27852c3dec88fe68ab31f..3c75f6623f50725f7b952dc8931d26b5c0d266d1 100644 --- a/ets2panda/test/ast/parser/ts/test_this_type2.ts +++ b/ets2panda/test/ast/parser/ts/test_this_type2.ts @@ -17,4 +17,4 @@ class A { static a: number | /* @@ label */this; } -/* @@@ label Error SyntaxError: A 'this' type is available only in a non-static member of a class or interface. */ +/* @@@ label Error Syntax error ESY0000: A 'this' type is available only in a non-static member of a class or interface. */ diff --git a/ets2panda/test/ast/parser/ts/test_unexpected_token.ts b/ets2panda/test/ast/parser/ts/test_unexpected_token.ts index a611c1c8f5432cbe5e0d6bbe5115995ff099528a..d0b5bd192fb667ee297ac7fb80fa5b1354b91ed5 100644 --- a/ets2panda/test/ast/parser/ts/test_unexpected_token.ts +++ b/ets2panda/test/ast/parser/ts/test_unexpected_token.ts @@ -17,4 +17,4 @@ const obj = { /* @@ label */+: 1 }; -/* @@@ label Error SyntaxError: Unexpected token. */ +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ diff --git a/ets2panda/test/ast/parser/ts/test_yield_escaped.ts b/ets2panda/test/ast/parser/ts/test_yield_escaped.ts index 32f77654e05c8c81465b62b8c4edbac1cdb2b246..f1d5533392f11a31b87070e84352fe46aad7cc86 100644 --- a/ets2panda/test/ast/parser/ts/test_yield_escaped.ts +++ b/ets2panda/test/ast/parser/ts/test_yield_escaped.ts @@ -18,8 +18,8 @@ function* gen() { var /* @@ label */yi\u0065ld /* @@ label1 */= 123; } -/* @@@ label Error SyntaxError: Escape sequences are not allowed in keyword. */ -/* @@@ label Error SyntaxError: Unexpected token. */ -/* @@@ label Error SyntaxError: Unexpected token 'yield'. */ -/* @@@ label Error SyntaxError: Unexpected identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token '='. */ +/* @@@ label Error Syntax error ESY0271: Escape sequences are not allowed in keyword. */ +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'yield'. */ +/* @@@ label Error Syntax error ESY0045: Unexpected identifier. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '='. */ diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_1.ts b/ets2panda/test/ast/parser/ts/trailing_comma_1.ts index 9d968c5565c30f90ccf12a1f8dcb32113bf95bf6..df4cd2dc5f98a2d0d7ae03a77e6b1b1c7f58c6a8 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_1.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_1.ts @@ -17,4 +17,4 @@ function foo(...number: int[]/* @@ label */,): int { return number[0] } -/* @@@ label Error SyntaxError: A rest parameter must be last in parameter list */ +/* @@@ label Error Syntax error ESY0000: A rest parameter must be last in parameter list */ diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_2.ts b/ets2panda/test/ast/parser/ts/trailing_comma_2.ts index 7eb947a90390d4298cac064c2e2801886e7fe18a..41d5aef9ecba0cd7813c4543fcc7ea75c25ec67b 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_2.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_2.ts @@ -19,4 +19,4 @@ class C { let a = new C(12,) // OK -/* @@@ label1 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_3.ts b/ets2panda/test/ast/parser/ts/trailing_comma_3.ts index c30d5c3a7b7fa49b8e45642e9f0eb6259b43a0fd..d02a1c2aea460bf02c7c3733ce85ac70c9db3522 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_3.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_3.ts @@ -17,4 +17,4 @@ function foo3(/* @@ label */, number: int): int { return number } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ +/* @@@ label Error Syntax error ESY0000: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_4.ts b/ets2panda/test/ast/parser/ts/trailing_comma_4.ts index 9518bba08f88322331547821f7352e9f2b231af3..72cf2c2d8b1dea70d259487a6473bc2f90b53036 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_4.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_4.ts @@ -27,10 +27,10 @@ foo(,a[0]) foo(a[0] a[1]) foo(,) -/* @@? 24:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 25:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 26:5 Error SyntaxError: Unexpected token ','. */ -/* @@? 27:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 27:10 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 27:14 Error SyntaxError: Unexpected token ')'. */ -/* @@? 28:5 Error SyntaxError: Unexpected token ','. */ +/* @@? 24:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 25:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 26:5 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 27:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 27:10 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 27:14 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 28:5 Error Syntax error ESY0227: Unexpected token ','. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_10.ts b/ets2panda/test/ast/parser/ts/unexpected_token_10.ts index 4c56f59de64fe5279e6211633b77ad427c474bdc..c7cdcb8cb15ced24d800982a2d7035349618b5ef 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_10.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_10.ts @@ -18,4 +18,4 @@ declare namespace a /* @@ label */let a: int; } -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '{'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_11.ts b/ets2panda/test/ast/parser/ts/unexpected_token_11.ts index 7bcdfead1347524ecae975d84176a9d7f9bfedfd..696691794b7a5fffc5193123ab71cf5cba7722b1 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_11.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_11.ts @@ -19,5 +19,5 @@ class Foo { /* @@ label */constructor/* @@ label1 */?() { }; } -/* @@@ label Error SyntaxError: Classes may not have a field named 'constructor'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected '('. */ +/* @@@ label Error Syntax error ESY0144: Classes may not have a field named 'constructor'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected '('. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_12.ts b/ets2panda/test/ast/parser/ts/unexpected_token_12.ts index 3f98921b899c0806028c5630a897cd8d09ddf11c..9c0e27555ef4f70a06dd8d1b8583c5141e3282ff 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_12.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_12.ts @@ -17,8 +17,4 @@ class Foo { bar! = Int } -/* @@? 17:8 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 1:1 Node { - "type": "Program" -} */ -/* @@? 17:8 Error SyntaxError: Unexpected token, expected ';'. */ +/* @@? 17:8 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_13.ts b/ets2panda/test/ast/parser/ts/unexpected_token_13.ts index a0326ee542b267f7ec844e42e76a1a0eabb119b1..5c62cc6dc5986abf38659a1fee5f2a8b829c29ac 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_13.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_13.ts @@ -17,8 +17,4 @@ function printMagicIndex(arr) { console.log(arr?.[42}); } -/* @@? 17:23 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 1:1 Node { - "type": "Program" -} */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected ']'. */ +/* @@? 17:23 Error Syntax error ESY0228: Unexpected token, expected ']'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_14.ts b/ets2panda/test/ast/parser/ts/unexpected_token_14.ts index 781564443d0097abef9d4827c6a1bf8b1926ef77..88648b5f483c9777bfc02bd5c83f6a46345d6c48 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_14.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_14.ts @@ -16,7 +16,4 @@ export { a as 6, c} from "foo" -/* @@? 16:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 1:1 Node { - "type": "Program" -} */ \ No newline at end of file +/* @@? 16:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_15.ts b/ets2panda/test/ast/parser/ts/unexpected_token_15.ts index dcc9d190891bc112e4d416b67665285f735473d7..fd70b8d684a7d0956b735e58ad2741bfc9552266 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_15.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_15.ts @@ -15,7 +15,4 @@ declare module "foo" -/* @@? 22:1 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 1:1 Node { - "type": "Program" -} */ +/* @@? 21:1 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_16.ts b/ets2panda/test/ast/parser/ts/unexpected_token_16.ts index f742889b5a5020ce02878a0985204e7ecc83ab93..ae427f99b2f0446e57669df344ae42ff010696c7 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_16.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_16.ts @@ -19,4 +19,4 @@ enum foo ( } -/* @@? 16:10 Error SyntaxError: Expected '{', got '('. */ +/* @@? 16:10 Error Syntax error ESY0230: Expected '{', got '('. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_17.ts b/ets2panda/test/ast/parser/ts/unexpected_token_17.ts index d0b5cc4c58683208e398a427e09f1e45b089221f..012592b6551a3708ae791865db349bf4d0b0bb6b 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_17.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_17.ts @@ -18,10 +18,10 @@ abstract /* @@ label */foo/* @@ label1 */(1 /* @@ label2 */> 0/* @@ label3 */) / } -/* @@@ label Error SyntaxError: Abstract methods can only appear within an abstract class. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '('. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@@ label3 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@@ label4 Error SyntaxError: Unexpected token. */ -/* @@@ label5 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@@ label6 Error SyntaxError: Unexpected token, expected an identifier. */ +/* @@@ label6 Error Syntax error ESY0000: Unexpected token, expected an identifier. */ +/* @@@ label Error Syntax error ESY0184: Abstract methods can only appear within an abstract class. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@@ label2 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@@ label3 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@@ label4 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label5 Error Syntax error ESY0228: Unexpected token, expected ';'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_2.ts b/ets2panda/test/ast/parser/ts/unexpected_token_2.ts index 31b139aadf6b976527f62fdbb4c66bb91250a08e..ab751b1de1861b2fce66ea26925bf5259248c417 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_2.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_2.ts @@ -16,4 +16,4 @@ try {} catch (e: Error) {} finally /* @@ label */} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_3.ts b/ets2panda/test/ast/parser/ts/unexpected_token_3.ts index f16aadec6921a5081d7fcf99189fa54ef892eb64..836a49b2c5e2c7724869587b7148e0bc36d47397 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_3.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_3.ts @@ -16,8 +16,4 @@ function 8274() -/* @@? 17:10 Error SyntaxError: Unexpected token, expected function identifier. */ -/* @@? 1:1 Node { - "type": "Program" -} */ -/* @@? 17:10 Error SyntaxError: Unexpected token, expected function identifier. */ +/* @@? 17:10 Error Syntax error ESY0147: Unexpected token, expected function identifier. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_4.ts b/ets2panda/test/ast/parser/ts/unexpected_token_4.ts index 8fc4d10d94a6b0ec6081864bf933e9f9240138fc..fb9f1fa5147255cddf6040f6d46e987cd69c9bbc 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_4.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_4.ts @@ -16,9 +16,9 @@ import {^7foo} from "." -/* @@? 17:9 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:10 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 17:10 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 17:14 Error SyntaxError: Unexpected token '}'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token '.'. */ +/* @@? 17:9 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:10 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 17:10 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 17:11 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 17:14 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token '.'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_5.ts b/ets2panda/test/ast/parser/ts/unexpected_token_5.ts index 9bba340e00884b9dec20835c7c5c2e350116bc4a..5d6a64002fd45366779de6c26a7817e3b8ab4d9e 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_5.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_5.ts @@ -16,5 +16,5 @@ import foo -/* @@? 21:1 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 21:1 Error SyntaxError: Unexpected token, expected string literal. */ +/* @@? 21:1 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 21:1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_6.ts b/ets2panda/test/ast/parser/ts/unexpected_token_6.ts index b5f57ff54abf47a2ceb4411d4a6975faa9092f85..08fea09b16498616682c5b43aefaf5f8c15d8b6c 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_6.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_6.ts @@ -17,5 +17,4 @@ import foo frm from -/* @@@ label Error SyntaxError: Unexpected token, expected string literal. */ -/* @@ label */ \ No newline at end of file +/* @@? 22:1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_7.ts b/ets2panda/test/ast/parser/ts/unexpected_token_7.ts index d8bc503952bf4039c8285bce59c10ea4764d7a62..3f309b1859d9e27f31a9fb374ff0d0a97d2df811 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_7.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_7.ts @@ -17,7 +17,7 @@ export {hehe^, foo} -/* @@? 17:13 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 17:13 Error SyntaxError: Unexpected token '^'. */ -/* @@? 17:14 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:19 Error SyntaxError: Unexpected token '}'. */ +/* @@? 17:13 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 17:13 Error Syntax error ESY0227: Unexpected token '^'. */ +/* @@? 17:14 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_8.ts b/ets2panda/test/ast/parser/ts/unexpected_token_8.ts index 61db49560d6c5e43b10570ee07576eb0a22f5efa..328232a9c8f4c7199fb354e11ffad11cd4b9c17e 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_8.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_8.ts @@ -17,6 +17,5 @@ class B {} class A extends B -/* @@@ label Error SyntaxError: Expected '{', got 'end of stream'. */ -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file +/* @@? 22:1 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ +/* @@? 22:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_9.ts b/ets2panda/test/ast/parser/ts/unexpected_token_9.ts index f3f09596da6a23afa423c78cc140b408cbd3d51e..c078b7f9f9fb5f8216d569f366026f7c0e3190b2 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_9.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_9.ts @@ -18,7 +18,6 @@ declare namespace /* @@ label */^/* @@ label1 */a { let a: int; } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label2 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label2 */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 26:1 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ diff --git a/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt b/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt index 95df6340cd6bcfe40e37d41553ac08b869831b42..4b24d449921b668f9c796a2d3a4a74f5bdad240c 100644 --- a/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt +++ b/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt @@ -614,4 +614,4 @@ } } } -TypeError: Cannot use type 'void' as value. [ConditionalExpressionCallVoidNeg.ets:20:17] +[ConditionalExpressionCallVoidNeg.ets:20:17] Semantic error ESE0078: Cannot use type 'void' as value. diff --git a/ets2panda/test/compiler/ets/FunctionType2-expected.txt b/ets2panda/test/compiler/ets/FunctionType2-expected.txt index 47773f7ec7aad33a6e5524ec45349def9478a460..fdd211f51613af154d8526b76d631438dea1d25b 100644 --- a/ets2panda/test/compiler/ets/FunctionType2-expected.txt +++ b/ets2panda/test/compiler/ets/FunctionType2-expected.txt @@ -806,4 +806,4 @@ } } } -TypeError: Variable 'func' is used before being assigned. [FunctionType2.ets:23:11] +[FunctionType2.ets:23:11] Semantic error ESE0375: Variable 'func' is used before being assigned. diff --git a/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt b/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt index 9798e81dae6b4630f82ea7900bdc3a2e2a3ca49d..05c99495332c3fb76600f1cd10fe321d4dec87b7 100644 --- a/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt +++ b/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt @@ -1293,10 +1293,10 @@ } } } -TypeError: A is abstract therefore cannot be instantiated. [abstractNewClassInstanceExpression.ets:26:14] -SyntaxError: Unexpected token '{'. [abstractNewClassInstanceExpression.ets:26:22] -TypeError: Method foo(): void in B not overriding any method [abstractNewClassInstanceExpression.ets:27:21] -SyntaxError: Label must be followed by a loop statement. [abstractNewClassInstanceExpression.ets:32:11] -SyntaxError: Class cannot be used as object. [abstractNewClassInstanceExpression.ets:32:11] -SyntaxError: Unexpected token '{'. [abstractNewClassInstanceExpression.ets:32:23] -SyntaxError: Unexpected token '}'. [abstractNewClassInstanceExpression.ets:35:1] +[abstractNewClassInstanceExpression.ets:26:14] Semantic error ESE0052: A is abstract therefore cannot be instantiated. +[abstractNewClassInstanceExpression.ets:26:22] Syntax error ESY0227: Unexpected token '{'. +[abstractNewClassInstanceExpression.ets:27:21] Semantic error ESE0136: Method foo(): void in B not overriding any method +[abstractNewClassInstanceExpression.ets:32:11] Syntax error ESY0038: Label must be followed by a loop statement. +[abstractNewClassInstanceExpression.ets:32:11] Syntax error ESY0318: Class cannot be used as object. +[abstractNewClassInstanceExpression.ets:32:23] Syntax error ESY0227: Unexpected token '{'. +[abstractNewClassInstanceExpression.ets:35:1] Syntax error ESY0227: Unexpected token '}'. diff --git a/ets2panda/test/compiler/ets/func-ref-private-expected.txt b/ets2panda/test/compiler/ets/func-ref-private-expected.txt index 37bf0bf103df9b2ec73e9824e5328ccc91ede868..b806349b5eac5be400e7372c468052c885ab40db 100644 --- a/ets2panda/test/compiler/ets/func-ref-private-expected.txt +++ b/ets2panda/test/compiler/ets/func-ref-private-expected.txt @@ -1077,4 +1077,4 @@ } } } -TypeError: Private method is used as value [func-ref-private.ets:24:19] +[func-ref-private.ets:24:19] Semantic error ESE0306: Private method is used as value diff --git a/ets2panda/test/compiler/ets/functions_with_ambiguous_rest_parameter-expected.txt b/ets2panda/test/compiler/ets/functions_with_ambiguous_rest_parameter-expected.txt index 062eb8492bb45228d472c070137916f911d406a3..e38e2326a026aa50c139e88991a47da60a1fd4e7 100644 --- a/ets2panda/test/compiler/ets/functions_with_ambiguous_rest_parameter-expected.txt +++ b/ets2panda/test/compiler/ets/functions_with_ambiguous_rest_parameter-expected.txt @@ -903,6 +903,6 @@ } } } -TypeError: Function foo with this assembly signature already declared. [functions_with_ambiguous_rest_parameter.ets:20:1] -TypeError: Call to `foo` is ambiguous [functions_with_ambiguous_rest_parameter.ets:25:5] -TypeError: Reference to foo is ambiguous [functions_with_ambiguous_rest_parameter.ets:25:5] +[functions_with_ambiguous_rest_parameter.ets:20:1] Semantic error ESE0131: Function foo with this assembly signature already declared. +[functions_with_ambiguous_rest_parameter.ets:25:5] Semantic error ESE0129: Call to `foo` is ambiguous +[functions_with_ambiguous_rest_parameter.ets:25:5] Semantic error ESE0126: Reference to foo is ambiguous diff --git a/ets2panda/test/compiler/ets/generic_arrayaslist-expected.txt b/ets2panda/test/compiler/ets/generic_arrayaslist-expected.txt index 1f93b34eb850cb98a129df20615ccf3a4c521f25..14897472badd317c387b11f4719f3f23d89732f9 100644 --- a/ets2panda/test/compiler/ets/generic_arrayaslist-expected.txt +++ b/ets2panda/test/compiler/ets/generic_arrayaslist-expected.txt @@ -25424,5 +25424,5 @@ } } } -TypeError: Expected 1 arguments, got 3. [generic_arrayaslist.ets:115:9] -TypeError: No matching call signature for assertTrue(Int, Int, "No data to popBack in ArrayAsList!") [generic_arrayaslist.ets:115:9] +[generic_arrayaslist.ets:115:9] Semantic error ESE0124: Expected 1 arguments, got 3. +[generic_arrayaslist.ets:115:9] Semantic error ESE0127: No matching call signature for assertTrue(Int, Int, "No data to popBack in ArrayAsList!") diff --git a/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt b/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt index 84f87a126b659e02cc74a38b8ae2ada0ae5ecf4b..1f5ce32c8071d61dd0763fe11faffee0f0ee5070 100644 --- a/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt +++ b/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt @@ -1834,7 +1834,7 @@ } } } -TypeError: Can't resolve array type [inferTypeOfArray.ets:17:9] -TypeError: Can't resolve array type [inferTypeOfArray.ets:21:9] -TypeError: Indexed access is not supported for such expression type. [inferTypeOfArray.ets:23:1] -TypeError: Indexed access is not supported for such expression type. [inferTypeOfArray.ets:24:1] +[inferTypeOfArray.ets:17:9] Semantic error ESE0301: Can't resolve array type +[inferTypeOfArray.ets:21:9] Semantic error ESE0301: Can't resolve array type +[inferTypeOfArray.ets:23:1] Semantic error ESE0252: Indexed access is not supported for such expression type. +[inferTypeOfArray.ets:24:1] Semantic error ESE0252: Indexed access is not supported for such expression type. diff --git a/ets2panda/test/compiler/js/many_locals_1-expected.txt b/ets2panda/test/compiler/js/many_locals_1-expected.txt index e84e2bd3246841de38603d42cc5c67cdb42838ee..8ed5fb1e35fecffe54f28ef5f58064da360a9cb2 100644 --- a/ets2panda/test/compiler/js/many_locals_1-expected.txt +++ b/ets2panda/test/compiler/js/many_locals_1-expected.txt @@ -1,17032 +1 @@ -{ - "type": "Program", - "statements": [ - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "f2", - "decorators": [], - "loc": { - "start": { - "line": 16, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "ArrowFunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": true, - "params": [], - "body": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "f2", - "decorators": [], - "loc": { - "start": { - "line": 16, - "column": 16, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 18, - "program": "many_locals_1.js" - } - } - }, - "arguments": [], - "optional": false, - "loc": { - "start": { - "line": 16, - "column": 16, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 20, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 16, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 20, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 16, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 20, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 16, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 20, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 16, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 16, - "column": 21, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x0", - "decorators": [], - "loc": { - "start": { - "line": 18, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 18, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 0, - "loc": { - "start": { - "line": 18, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 18, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 18, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 18, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 18, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 18, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x1", - "decorators": [], - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 19, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 1, - "loc": { - "start": { - "line": 19, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 19, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 19, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 19, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 19, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x2", - "decorators": [], - "loc": { - "start": { - "line": 20, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 20, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 2, - "loc": { - "start": { - "line": 20, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 20, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 20, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 20, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 20, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x3", - "decorators": [], - "loc": { - "start": { - "line": 21, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 21, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 3, - "loc": { - "start": { - "line": 21, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 21, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 21, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 21, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 21, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 21, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x4", - "decorators": [], - "loc": { - "start": { - "line": 22, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 22, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 4, - "loc": { - "start": { - "line": 22, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 22, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 22, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 22, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 22, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x5", - "decorators": [], - "loc": { - "start": { - "line": 23, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 23, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 5, - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 23, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 23, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 23, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 23, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x6", - "decorators": [], - "loc": { - "start": { - "line": 24, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 24, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 6, - "loc": { - "start": { - "line": 24, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 24, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 24, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 24, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 24, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 24, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x7", - "decorators": [], - "loc": { - "start": { - "line": 25, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 25, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 7, - "loc": { - "start": { - "line": 25, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 25, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 25, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 25, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 25, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 25, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x8", - "decorators": [], - "loc": { - "start": { - "line": 26, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 26, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 8, - "loc": { - "start": { - "line": 26, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 26, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 26, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 26, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 26, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x9", - "decorators": [], - "loc": { - "start": { - "line": 27, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 27, - "column": 7, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 9, - "loc": { - "start": { - "line": 27, - "column": 10, - "program": "many_locals_1.js" - }, - "end": { - "line": 27, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 27, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 27, - "column": 11, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 27, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 27, - "column": 11, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x10", - "decorators": [], - "loc": { - "start": { - "line": 28, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 28, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 10, - "loc": { - "start": { - "line": 28, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 28, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 28, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 28, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 28, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 28, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x11", - "decorators": [], - "loc": { - "start": { - "line": 29, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 29, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 11, - "loc": { - "start": { - "line": 29, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 29, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 29, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 29, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 29, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 29, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x12", - "decorators": [], - "loc": { - "start": { - "line": 30, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 30, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 12, - "loc": { - "start": { - "line": 30, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 30, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 30, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 30, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 30, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 30, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x13", - "decorators": [], - "loc": { - "start": { - "line": 31, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 31, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 13, - "loc": { - "start": { - "line": 31, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 31, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 31, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 31, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 31, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 31, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x14", - "decorators": [], - "loc": { - "start": { - "line": 32, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 32, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 14, - "loc": { - "start": { - "line": 32, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 32, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 32, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 32, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 32, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 32, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x15", - "decorators": [], - "loc": { - "start": { - "line": 33, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 33, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 15, - "loc": { - "start": { - "line": 33, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 33, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 33, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 33, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 33, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 33, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x16", - "decorators": [], - "loc": { - "start": { - "line": 34, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 34, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 16, - "loc": { - "start": { - "line": 34, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 34, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 34, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 34, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 34, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 34, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x17", - "decorators": [], - "loc": { - "start": { - "line": 35, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 35, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 17, - "loc": { - "start": { - "line": 35, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 35, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 35, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 35, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 35, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 35, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x18", - "decorators": [], - "loc": { - "start": { - "line": 36, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 36, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 18, - "loc": { - "start": { - "line": 36, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 36, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 36, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 36, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 36, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 36, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x19", - "decorators": [], - "loc": { - "start": { - "line": 37, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 37, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 19, - "loc": { - "start": { - "line": 37, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 37, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 37, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 37, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 37, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 37, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x20", - "decorators": [], - "loc": { - "start": { - "line": 38, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 38, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 20, - "loc": { - "start": { - "line": 38, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 38, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 38, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 38, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 38, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 38, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x21", - "decorators": [], - "loc": { - "start": { - "line": 39, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 39, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 21, - "loc": { - "start": { - "line": 39, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 39, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 39, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 39, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 39, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 39, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x22", - "decorators": [], - "loc": { - "start": { - "line": 40, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 40, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 22, - "loc": { - "start": { - "line": 40, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 40, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 40, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 40, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 40, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 40, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x23", - "decorators": [], - "loc": { - "start": { - "line": 41, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 41, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 23, - "loc": { - "start": { - "line": 41, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 41, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 41, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 41, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 41, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 41, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x24", - "decorators": [], - "loc": { - "start": { - "line": 42, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 42, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 24, - "loc": { - "start": { - "line": 42, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 42, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 42, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 42, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 42, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 42, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x25", - "decorators": [], - "loc": { - "start": { - "line": 43, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 43, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 25, - "loc": { - "start": { - "line": 43, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 43, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 43, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 43, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 43, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 43, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x26", - "decorators": [], - "loc": { - "start": { - "line": 44, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 44, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 26, - "loc": { - "start": { - "line": 44, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 44, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 44, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 44, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 44, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 44, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x27", - "decorators": [], - "loc": { - "start": { - "line": 45, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 45, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 27, - "loc": { - "start": { - "line": 45, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 45, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 45, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 45, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 45, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 45, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x28", - "decorators": [], - "loc": { - "start": { - "line": 46, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 46, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 28, - "loc": { - "start": { - "line": 46, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 46, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 46, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 46, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 46, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 46, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x29", - "decorators": [], - "loc": { - "start": { - "line": 47, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 47, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 29, - "loc": { - "start": { - "line": 47, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 47, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 47, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 47, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 47, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 47, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x30", - "decorators": [], - "loc": { - "start": { - "line": 48, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 48, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 30, - "loc": { - "start": { - "line": 48, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 48, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 48, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 48, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 48, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 48, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x31", - "decorators": [], - "loc": { - "start": { - "line": 49, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 49, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 31, - "loc": { - "start": { - "line": 49, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 49, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 49, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 49, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 49, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 49, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x32", - "decorators": [], - "loc": { - "start": { - "line": 50, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 50, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 32, - "loc": { - "start": { - "line": 50, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 50, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 50, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 50, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 50, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 50, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x33", - "decorators": [], - "loc": { - "start": { - "line": 51, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 51, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 33, - "loc": { - "start": { - "line": 51, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 51, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 51, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 51, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 51, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 51, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x34", - "decorators": [], - "loc": { - "start": { - "line": 52, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 52, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 34, - "loc": { - "start": { - "line": 52, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 52, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 52, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 52, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 52, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 52, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x35", - "decorators": [], - "loc": { - "start": { - "line": 53, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 53, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 35, - "loc": { - "start": { - "line": 53, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 53, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 53, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 53, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 53, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 53, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x36", - "decorators": [], - "loc": { - "start": { - "line": 54, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 54, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 36, - "loc": { - "start": { - "line": 54, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 54, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 54, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 54, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 54, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 54, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x37", - "decorators": [], - "loc": { - "start": { - "line": 55, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 55, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 37, - "loc": { - "start": { - "line": 55, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 55, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 55, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 55, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 55, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 55, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x38", - "decorators": [], - "loc": { - "start": { - "line": 56, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 56, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 38, - "loc": { - "start": { - "line": 56, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 56, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 56, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 56, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 56, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 56, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x39", - "decorators": [], - "loc": { - "start": { - "line": 57, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 57, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 39, - "loc": { - "start": { - "line": 57, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 57, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 57, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 57, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 57, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 57, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x40", - "decorators": [], - "loc": { - "start": { - "line": 58, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 58, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 40, - "loc": { - "start": { - "line": 58, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 58, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 58, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 58, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 58, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 58, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x41", - "decorators": [], - "loc": { - "start": { - "line": 59, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 59, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 41, - "loc": { - "start": { - "line": 59, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 59, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 59, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 59, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 59, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 59, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x42", - "decorators": [], - "loc": { - "start": { - "line": 60, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 60, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 42, - "loc": { - "start": { - "line": 60, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 60, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 60, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 60, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 60, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 60, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x43", - "decorators": [], - "loc": { - "start": { - "line": 61, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 61, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 43, - "loc": { - "start": { - "line": 61, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 61, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 61, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 61, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 61, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 61, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x44", - "decorators": [], - "loc": { - "start": { - "line": 62, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 62, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 44, - "loc": { - "start": { - "line": 62, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 62, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 62, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 62, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 62, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 62, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x45", - "decorators": [], - "loc": { - "start": { - "line": 63, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 63, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 45, - "loc": { - "start": { - "line": 63, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 63, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 63, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 63, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 63, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 63, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x46", - "decorators": [], - "loc": { - "start": { - "line": 64, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 64, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 46, - "loc": { - "start": { - "line": 64, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 64, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 64, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 64, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 64, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 64, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x47", - "decorators": [], - "loc": { - "start": { - "line": 65, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 65, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 47, - "loc": { - "start": { - "line": 65, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 65, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 65, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 65, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 65, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 65, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x48", - "decorators": [], - "loc": { - "start": { - "line": 66, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 66, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 48, - "loc": { - "start": { - "line": 66, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 66, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 66, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 66, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 66, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 66, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x49", - "decorators": [], - "loc": { - "start": { - "line": 67, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 67, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 49, - "loc": { - "start": { - "line": 67, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 67, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 67, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 67, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 67, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 67, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x50", - "decorators": [], - "loc": { - "start": { - "line": 68, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 68, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 50, - "loc": { - "start": { - "line": 68, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 68, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 68, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 68, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 68, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 68, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x51", - "decorators": [], - "loc": { - "start": { - "line": 69, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 69, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 51, - "loc": { - "start": { - "line": 69, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 69, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 69, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 69, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 69, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 69, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x52", - "decorators": [], - "loc": { - "start": { - "line": 70, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 70, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 52, - "loc": { - "start": { - "line": 70, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 70, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 70, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 70, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 70, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 70, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x53", - "decorators": [], - "loc": { - "start": { - "line": 71, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 71, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 53, - "loc": { - "start": { - "line": 71, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 71, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 71, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 71, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 71, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 71, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x54", - "decorators": [], - "loc": { - "start": { - "line": 72, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 72, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 54, - "loc": { - "start": { - "line": 72, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 72, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 72, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 72, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 72, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 72, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x55", - "decorators": [], - "loc": { - "start": { - "line": 73, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 73, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 55, - "loc": { - "start": { - "line": 73, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 73, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 73, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 73, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 73, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 73, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x56", - "decorators": [], - "loc": { - "start": { - "line": 74, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 74, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 56, - "loc": { - "start": { - "line": 74, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 74, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 74, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 74, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 74, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 74, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x57", - "decorators": [], - "loc": { - "start": { - "line": 75, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 75, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 57, - "loc": { - "start": { - "line": 75, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 75, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 75, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 75, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 75, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 75, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x58", - "decorators": [], - "loc": { - "start": { - "line": 76, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 76, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 58, - "loc": { - "start": { - "line": 76, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 76, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 76, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 76, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 76, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 76, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x59", - "decorators": [], - "loc": { - "start": { - "line": 77, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 77, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 59, - "loc": { - "start": { - "line": 77, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 77, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 77, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 77, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 77, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 77, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x60", - "decorators": [], - "loc": { - "start": { - "line": 78, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 78, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 60, - "loc": { - "start": { - "line": 78, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 78, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 78, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 78, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 78, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 78, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x61", - "decorators": [], - "loc": { - "start": { - "line": 79, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 79, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 61, - "loc": { - "start": { - "line": 79, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 79, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 79, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 79, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 79, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 79, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x62", - "decorators": [], - "loc": { - "start": { - "line": 80, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 80, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 62, - "loc": { - "start": { - "line": 80, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 80, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 80, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 80, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 80, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 80, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x63", - "decorators": [], - "loc": { - "start": { - "line": 81, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 81, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 63, - "loc": { - "start": { - "line": 81, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 81, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 81, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 81, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 81, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 81, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x64", - "decorators": [], - "loc": { - "start": { - "line": 82, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 82, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 64, - "loc": { - "start": { - "line": 82, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 82, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 82, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 82, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 82, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 82, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x65", - "decorators": [], - "loc": { - "start": { - "line": 83, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 83, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 65, - "loc": { - "start": { - "line": 83, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 83, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 83, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 83, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 83, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 83, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x66", - "decorators": [], - "loc": { - "start": { - "line": 84, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 84, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 66, - "loc": { - "start": { - "line": 84, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 84, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 84, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 84, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 84, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 84, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x67", - "decorators": [], - "loc": { - "start": { - "line": 85, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 85, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 67, - "loc": { - "start": { - "line": 85, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 85, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 85, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 85, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 85, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 85, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x68", - "decorators": [], - "loc": { - "start": { - "line": 86, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 86, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 68, - "loc": { - "start": { - "line": 86, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 86, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 86, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 86, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 86, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 86, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x69", - "decorators": [], - "loc": { - "start": { - "line": 87, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 87, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 69, - "loc": { - "start": { - "line": 87, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 87, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 87, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 87, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 87, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 87, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x70", - "decorators": [], - "loc": { - "start": { - "line": 88, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 88, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 70, - "loc": { - "start": { - "line": 88, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 88, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 88, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 88, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 88, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 88, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x71", - "decorators": [], - "loc": { - "start": { - "line": 89, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 89, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 71, - "loc": { - "start": { - "line": 89, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 89, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 89, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 89, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 89, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 89, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x72", - "decorators": [], - "loc": { - "start": { - "line": 90, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 90, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 72, - "loc": { - "start": { - "line": 90, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 90, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 90, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 90, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 90, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 90, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x73", - "decorators": [], - "loc": { - "start": { - "line": 91, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 91, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 73, - "loc": { - "start": { - "line": 91, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 91, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 91, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 91, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 91, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 91, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x74", - "decorators": [], - "loc": { - "start": { - "line": 92, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 92, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 74, - "loc": { - "start": { - "line": 92, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 92, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 92, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 92, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 92, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 92, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x75", - "decorators": [], - "loc": { - "start": { - "line": 93, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 93, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 75, - "loc": { - "start": { - "line": 93, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 93, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 93, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 93, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 93, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 93, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x76", - "decorators": [], - "loc": { - "start": { - "line": 94, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 94, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 76, - "loc": { - "start": { - "line": 94, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 94, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 94, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 94, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 94, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 94, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x77", - "decorators": [], - "loc": { - "start": { - "line": 95, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 95, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 77, - "loc": { - "start": { - "line": 95, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 95, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 95, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 95, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 95, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 95, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x78", - "decorators": [], - "loc": { - "start": { - "line": 96, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 96, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 78, - "loc": { - "start": { - "line": 96, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 96, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 96, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 96, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 96, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 96, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x79", - "decorators": [], - "loc": { - "start": { - "line": 97, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 97, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 79, - "loc": { - "start": { - "line": 97, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 97, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 97, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 97, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 97, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 97, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x80", - "decorators": [], - "loc": { - "start": { - "line": 98, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 98, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 80, - "loc": { - "start": { - "line": 98, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 98, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 98, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 98, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 98, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 98, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x81", - "decorators": [], - "loc": { - "start": { - "line": 99, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 99, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 81, - "loc": { - "start": { - "line": 99, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 99, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 99, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 99, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 99, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 99, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x82", - "decorators": [], - "loc": { - "start": { - "line": 100, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 100, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 82, - "loc": { - "start": { - "line": 100, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 100, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 100, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 100, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 100, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 100, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x83", - "decorators": [], - "loc": { - "start": { - "line": 101, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 101, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 83, - "loc": { - "start": { - "line": 101, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 101, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 101, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 101, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 101, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 101, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x84", - "decorators": [], - "loc": { - "start": { - "line": 102, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 102, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 84, - "loc": { - "start": { - "line": 102, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 102, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 102, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 102, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 102, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 102, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x85", - "decorators": [], - "loc": { - "start": { - "line": 103, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 103, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 85, - "loc": { - "start": { - "line": 103, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 103, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 103, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 103, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 103, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 103, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x86", - "decorators": [], - "loc": { - "start": { - "line": 104, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 104, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 86, - "loc": { - "start": { - "line": 104, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 104, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 104, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 104, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 104, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 104, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x87", - "decorators": [], - "loc": { - "start": { - "line": 105, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 105, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 87, - "loc": { - "start": { - "line": 105, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 105, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 105, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 105, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 105, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 105, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x88", - "decorators": [], - "loc": { - "start": { - "line": 106, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 106, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 88, - "loc": { - "start": { - "line": 106, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 106, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 106, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 106, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 106, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 106, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x89", - "decorators": [], - "loc": { - "start": { - "line": 107, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 107, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 89, - "loc": { - "start": { - "line": 107, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 107, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 107, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 107, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 107, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 107, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x90", - "decorators": [], - "loc": { - "start": { - "line": 108, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 108, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 90, - "loc": { - "start": { - "line": 108, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 108, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 108, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 108, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 108, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 108, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x91", - "decorators": [], - "loc": { - "start": { - "line": 109, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 109, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 91, - "loc": { - "start": { - "line": 109, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 109, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 109, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 109, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 109, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 109, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x92", - "decorators": [], - "loc": { - "start": { - "line": 110, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 110, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 92, - "loc": { - "start": { - "line": 110, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 110, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 110, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 110, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 110, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 110, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x93", - "decorators": [], - "loc": { - "start": { - "line": 111, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 111, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 93, - "loc": { - "start": { - "line": 111, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 111, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 111, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 111, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 111, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 111, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x94", - "decorators": [], - "loc": { - "start": { - "line": 112, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 112, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 94, - "loc": { - "start": { - "line": 112, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 112, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 112, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 112, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 112, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 112, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x95", - "decorators": [], - "loc": { - "start": { - "line": 113, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 113, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 95, - "loc": { - "start": { - "line": 113, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 113, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 113, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 113, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 113, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 113, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x96", - "decorators": [], - "loc": { - "start": { - "line": 114, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 114, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 96, - "loc": { - "start": { - "line": 114, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 114, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 114, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 114, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 114, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 114, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x97", - "decorators": [], - "loc": { - "start": { - "line": 115, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 115, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 97, - "loc": { - "start": { - "line": 115, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 115, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 115, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 115, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 115, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 115, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x98", - "decorators": [], - "loc": { - "start": { - "line": 116, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 116, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 98, - "loc": { - "start": { - "line": 116, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 116, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 116, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 116, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 116, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 116, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x99", - "decorators": [], - "loc": { - "start": { - "line": 117, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 117, - "column": 8, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 99, - "loc": { - "start": { - "line": 117, - "column": 11, - "program": "many_locals_1.js" - }, - "end": { - "line": 117, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 117, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 117, - "column": 13, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 117, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 117, - "column": 13, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x100", - "decorators": [], - "loc": { - "start": { - "line": 118, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 118, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 100, - "loc": { - "start": { - "line": 118, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 118, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 118, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 118, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 118, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 118, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x101", - "decorators": [], - "loc": { - "start": { - "line": 119, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 119, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 101, - "loc": { - "start": { - "line": 119, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 119, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 119, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 119, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 119, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 119, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x102", - "decorators": [], - "loc": { - "start": { - "line": 120, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 120, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 102, - "loc": { - "start": { - "line": 120, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 120, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 120, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 120, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 120, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 120, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x103", - "decorators": [], - "loc": { - "start": { - "line": 121, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 121, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 103, - "loc": { - "start": { - "line": 121, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 121, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 121, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 121, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 121, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 121, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x104", - "decorators": [], - "loc": { - "start": { - "line": 122, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 122, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 104, - "loc": { - "start": { - "line": 122, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 122, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 122, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 122, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 122, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 122, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x105", - "decorators": [], - "loc": { - "start": { - "line": 123, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 123, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 105, - "loc": { - "start": { - "line": 123, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 123, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 123, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 123, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 123, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 123, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x106", - "decorators": [], - "loc": { - "start": { - "line": 124, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 124, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 106, - "loc": { - "start": { - "line": 124, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 124, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 124, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 124, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 124, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 124, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x107", - "decorators": [], - "loc": { - "start": { - "line": 125, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 125, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 107, - "loc": { - "start": { - "line": 125, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 125, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 125, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 125, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 125, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 125, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x108", - "decorators": [], - "loc": { - "start": { - "line": 126, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 126, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 108, - "loc": { - "start": { - "line": 126, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 126, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 126, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 126, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 126, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 126, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x109", - "decorators": [], - "loc": { - "start": { - "line": 127, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 127, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 109, - "loc": { - "start": { - "line": 127, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 127, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 127, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 127, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 127, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 127, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x110", - "decorators": [], - "loc": { - "start": { - "line": 128, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 128, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 110, - "loc": { - "start": { - "line": 128, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 128, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 128, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 128, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 128, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 128, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x111", - "decorators": [], - "loc": { - "start": { - "line": 129, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 129, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 111, - "loc": { - "start": { - "line": 129, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 129, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 129, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 129, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 129, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 129, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x112", - "decorators": [], - "loc": { - "start": { - "line": 130, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 130, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 112, - "loc": { - "start": { - "line": 130, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 130, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 130, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 130, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 130, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 130, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x113", - "decorators": [], - "loc": { - "start": { - "line": 131, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 131, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 113, - "loc": { - "start": { - "line": 131, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 131, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 131, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 131, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 131, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 131, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x114", - "decorators": [], - "loc": { - "start": { - "line": 132, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 132, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 114, - "loc": { - "start": { - "line": 132, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 132, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 132, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 132, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 132, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 132, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x115", - "decorators": [], - "loc": { - "start": { - "line": 133, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 133, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 115, - "loc": { - "start": { - "line": 133, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 133, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 133, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 133, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 133, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 133, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x116", - "decorators": [], - "loc": { - "start": { - "line": 134, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 134, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 116, - "loc": { - "start": { - "line": 134, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 134, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 134, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 134, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 134, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 134, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x117", - "decorators": [], - "loc": { - "start": { - "line": 135, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 135, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 117, - "loc": { - "start": { - "line": 135, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 135, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 135, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 135, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 135, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 135, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x118", - "decorators": [], - "loc": { - "start": { - "line": 136, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 136, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 118, - "loc": { - "start": { - "line": 136, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 136, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 136, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 136, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 136, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 136, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x119", - "decorators": [], - "loc": { - "start": { - "line": 137, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 137, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 119, - "loc": { - "start": { - "line": 137, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 137, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 137, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 137, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 137, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 137, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x120", - "decorators": [], - "loc": { - "start": { - "line": 138, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 138, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 120, - "loc": { - "start": { - "line": 138, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 138, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 138, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 138, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 138, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 138, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x121", - "decorators": [], - "loc": { - "start": { - "line": 139, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 139, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 121, - "loc": { - "start": { - "line": 139, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 139, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 139, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 139, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 139, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 139, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x122", - "decorators": [], - "loc": { - "start": { - "line": 140, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 140, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 122, - "loc": { - "start": { - "line": 140, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 140, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 140, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 140, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 140, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 140, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x123", - "decorators": [], - "loc": { - "start": { - "line": 141, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 141, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 123, - "loc": { - "start": { - "line": 141, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 141, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 141, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 141, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 141, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 141, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x124", - "decorators": [], - "loc": { - "start": { - "line": 142, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 142, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 124, - "loc": { - "start": { - "line": 142, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 142, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 142, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 142, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 142, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 142, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x125", - "decorators": [], - "loc": { - "start": { - "line": 143, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 143, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 125, - "loc": { - "start": { - "line": 143, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 143, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 143, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 143, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 143, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 143, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x126", - "decorators": [], - "loc": { - "start": { - "line": 144, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 144, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 126, - "loc": { - "start": { - "line": 144, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 144, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 144, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 144, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 144, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 144, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x127", - "decorators": [], - "loc": { - "start": { - "line": 145, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 145, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 127, - "loc": { - "start": { - "line": 145, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 145, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 145, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 145, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 145, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 145, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x128", - "decorators": [], - "loc": { - "start": { - "line": 146, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 146, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 128, - "loc": { - "start": { - "line": 146, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 146, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 146, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 146, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 146, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 146, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x129", - "decorators": [], - "loc": { - "start": { - "line": 147, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 147, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 129, - "loc": { - "start": { - "line": 147, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 147, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 147, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 147, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 147, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 147, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x130", - "decorators": [], - "loc": { - "start": { - "line": 148, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 148, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 130, - "loc": { - "start": { - "line": 148, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 148, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 148, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 148, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 148, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 148, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x131", - "decorators": [], - "loc": { - "start": { - "line": 149, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 149, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 131, - "loc": { - "start": { - "line": 149, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 149, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 149, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 149, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 149, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 149, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x132", - "decorators": [], - "loc": { - "start": { - "line": 150, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 150, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 132, - "loc": { - "start": { - "line": 150, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 150, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 150, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 150, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 150, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 150, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x133", - "decorators": [], - "loc": { - "start": { - "line": 151, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 151, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 133, - "loc": { - "start": { - "line": 151, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 151, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 151, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 151, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 151, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 151, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x134", - "decorators": [], - "loc": { - "start": { - "line": 152, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 152, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 134, - "loc": { - "start": { - "line": 152, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 152, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 152, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 152, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 152, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 152, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x135", - "decorators": [], - "loc": { - "start": { - "line": 153, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 153, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 135, - "loc": { - "start": { - "line": 153, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 153, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 153, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 153, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 153, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 153, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x136", - "decorators": [], - "loc": { - "start": { - "line": 154, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 154, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 136, - "loc": { - "start": { - "line": 154, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 154, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 154, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 154, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 154, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 154, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x137", - "decorators": [], - "loc": { - "start": { - "line": 155, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 155, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 137, - "loc": { - "start": { - "line": 155, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 155, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 155, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 155, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 155, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 155, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x138", - "decorators": [], - "loc": { - "start": { - "line": 156, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 156, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 138, - "loc": { - "start": { - "line": 156, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 156, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 156, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 156, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 156, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 156, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x139", - "decorators": [], - "loc": { - "start": { - "line": 157, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 157, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 139, - "loc": { - "start": { - "line": 157, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 157, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 157, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 157, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 157, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 157, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x140", - "decorators": [], - "loc": { - "start": { - "line": 158, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 158, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 140, - "loc": { - "start": { - "line": 158, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 158, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 158, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 158, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 158, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 158, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x141", - "decorators": [], - "loc": { - "start": { - "line": 159, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 159, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 141, - "loc": { - "start": { - "line": 159, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 159, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 159, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 159, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 159, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 159, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x142", - "decorators": [], - "loc": { - "start": { - "line": 160, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 160, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 142, - "loc": { - "start": { - "line": 160, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 160, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 160, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 160, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 160, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 160, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x143", - "decorators": [], - "loc": { - "start": { - "line": 161, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 161, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 143, - "loc": { - "start": { - "line": 161, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 161, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 161, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 161, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 161, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 161, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x144", - "decorators": [], - "loc": { - "start": { - "line": 162, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 162, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 144, - "loc": { - "start": { - "line": 162, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 162, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 162, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 162, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 162, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 162, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x145", - "decorators": [], - "loc": { - "start": { - "line": 163, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 163, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 145, - "loc": { - "start": { - "line": 163, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 163, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 163, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 163, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 163, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 163, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x146", - "decorators": [], - "loc": { - "start": { - "line": 164, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 164, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 146, - "loc": { - "start": { - "line": 164, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 164, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 164, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 164, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 164, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 164, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x147", - "decorators": [], - "loc": { - "start": { - "line": 165, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 165, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 147, - "loc": { - "start": { - "line": 165, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 165, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 165, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 165, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 165, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 165, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x148", - "decorators": [], - "loc": { - "start": { - "line": 166, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 166, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 148, - "loc": { - "start": { - "line": 166, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 166, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 166, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 166, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 166, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 166, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x149", - "decorators": [], - "loc": { - "start": { - "line": 167, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 167, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 149, - "loc": { - "start": { - "line": 167, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 167, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 167, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 167, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 167, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 167, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x150", - "decorators": [], - "loc": { - "start": { - "line": 168, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 168, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 150, - "loc": { - "start": { - "line": 168, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 168, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 168, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 168, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 168, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 168, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x151", - "decorators": [], - "loc": { - "start": { - "line": 169, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 169, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 151, - "loc": { - "start": { - "line": 169, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 169, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 169, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 169, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 169, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 169, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x152", - "decorators": [], - "loc": { - "start": { - "line": 170, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 170, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 152, - "loc": { - "start": { - "line": 170, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 170, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 170, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 170, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 170, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 170, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x153", - "decorators": [], - "loc": { - "start": { - "line": 171, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 171, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 153, - "loc": { - "start": { - "line": 171, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 171, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 171, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 171, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 171, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 171, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x154", - "decorators": [], - "loc": { - "start": { - "line": 172, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 172, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 154, - "loc": { - "start": { - "line": 172, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 172, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 172, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 172, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 172, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 172, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x155", - "decorators": [], - "loc": { - "start": { - "line": 173, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 173, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 155, - "loc": { - "start": { - "line": 173, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 173, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 173, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 173, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 173, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 173, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x156", - "decorators": [], - "loc": { - "start": { - "line": 174, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 174, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 156, - "loc": { - "start": { - "line": 174, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 174, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 174, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 174, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 174, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 174, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x157", - "decorators": [], - "loc": { - "start": { - "line": 175, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 175, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 157, - "loc": { - "start": { - "line": 175, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 175, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 175, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 175, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 175, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 175, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x158", - "decorators": [], - "loc": { - "start": { - "line": 176, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 176, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 158, - "loc": { - "start": { - "line": 176, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 176, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 176, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 176, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 176, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 176, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x159", - "decorators": [], - "loc": { - "start": { - "line": 177, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 177, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 159, - "loc": { - "start": { - "line": 177, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 177, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 177, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 177, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 177, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 177, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x160", - "decorators": [], - "loc": { - "start": { - "line": 178, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 178, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 160, - "loc": { - "start": { - "line": 178, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 178, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 178, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 178, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 178, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 178, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x161", - "decorators": [], - "loc": { - "start": { - "line": 179, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 179, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 161, - "loc": { - "start": { - "line": 179, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 179, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 179, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 179, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 179, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 179, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x162", - "decorators": [], - "loc": { - "start": { - "line": 180, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 180, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 162, - "loc": { - "start": { - "line": 180, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 180, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 180, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 180, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 180, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 180, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x163", - "decorators": [], - "loc": { - "start": { - "line": 181, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 181, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 163, - "loc": { - "start": { - "line": 181, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 181, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 181, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 181, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 181, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 181, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x164", - "decorators": [], - "loc": { - "start": { - "line": 182, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 182, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 164, - "loc": { - "start": { - "line": 182, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 182, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 182, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 182, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 182, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 182, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x165", - "decorators": [], - "loc": { - "start": { - "line": 183, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 183, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 165, - "loc": { - "start": { - "line": 183, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 183, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 183, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 183, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 183, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 183, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x166", - "decorators": [], - "loc": { - "start": { - "line": 184, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 184, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 166, - "loc": { - "start": { - "line": 184, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 184, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 184, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 184, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 184, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 184, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x167", - "decorators": [], - "loc": { - "start": { - "line": 185, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 185, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 167, - "loc": { - "start": { - "line": 185, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 185, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 185, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 185, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 185, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 185, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x168", - "decorators": [], - "loc": { - "start": { - "line": 186, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 186, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 168, - "loc": { - "start": { - "line": 186, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 186, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 186, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 186, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 186, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 186, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x169", - "decorators": [], - "loc": { - "start": { - "line": 187, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 187, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 169, - "loc": { - "start": { - "line": 187, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 187, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 187, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 187, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 187, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 187, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x170", - "decorators": [], - "loc": { - "start": { - "line": 188, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 188, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 170, - "loc": { - "start": { - "line": 188, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 188, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 188, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 188, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 188, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 188, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x171", - "decorators": [], - "loc": { - "start": { - "line": 189, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 189, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 171, - "loc": { - "start": { - "line": 189, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 189, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 189, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 189, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 189, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 189, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x172", - "decorators": [], - "loc": { - "start": { - "line": 190, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 190, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 172, - "loc": { - "start": { - "line": 190, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 190, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 190, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 190, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 190, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 190, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x173", - "decorators": [], - "loc": { - "start": { - "line": 191, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 191, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 173, - "loc": { - "start": { - "line": 191, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 191, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 191, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 191, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 191, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 191, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x174", - "decorators": [], - "loc": { - "start": { - "line": 192, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 192, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 174, - "loc": { - "start": { - "line": 192, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 192, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 192, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 192, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 192, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 192, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x175", - "decorators": [], - "loc": { - "start": { - "line": 193, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 193, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 175, - "loc": { - "start": { - "line": 193, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 193, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 193, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 193, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 193, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 193, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x176", - "decorators": [], - "loc": { - "start": { - "line": 194, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 194, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 176, - "loc": { - "start": { - "line": 194, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 194, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 194, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 194, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 194, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 194, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x177", - "decorators": [], - "loc": { - "start": { - "line": 195, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 195, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 177, - "loc": { - "start": { - "line": 195, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 195, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 195, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 195, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 195, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 195, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x178", - "decorators": [], - "loc": { - "start": { - "line": 196, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 196, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 178, - "loc": { - "start": { - "line": 196, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 196, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 196, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 196, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 196, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 196, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x179", - "decorators": [], - "loc": { - "start": { - "line": 197, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 197, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 179, - "loc": { - "start": { - "line": 197, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 197, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 197, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 197, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 197, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 197, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x180", - "decorators": [], - "loc": { - "start": { - "line": 198, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 198, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 180, - "loc": { - "start": { - "line": 198, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 198, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 198, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 198, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 198, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 198, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x181", - "decorators": [], - "loc": { - "start": { - "line": 199, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 199, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 181, - "loc": { - "start": { - "line": 199, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 199, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 199, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 199, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 199, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 199, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x182", - "decorators": [], - "loc": { - "start": { - "line": 200, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 200, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 182, - "loc": { - "start": { - "line": 200, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 200, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 200, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 200, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 200, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 200, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x183", - "decorators": [], - "loc": { - "start": { - "line": 201, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 201, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 183, - "loc": { - "start": { - "line": 201, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 201, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 201, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 201, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 201, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 201, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x184", - "decorators": [], - "loc": { - "start": { - "line": 202, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 202, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 184, - "loc": { - "start": { - "line": 202, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 202, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 202, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 202, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 202, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 202, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x185", - "decorators": [], - "loc": { - "start": { - "line": 203, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 203, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 185, - "loc": { - "start": { - "line": 203, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 203, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 203, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 203, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 203, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 203, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x186", - "decorators": [], - "loc": { - "start": { - "line": 204, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 204, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 186, - "loc": { - "start": { - "line": 204, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 204, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 204, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 204, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 204, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 204, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x187", - "decorators": [], - "loc": { - "start": { - "line": 205, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 205, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 187, - "loc": { - "start": { - "line": 205, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 205, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 205, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 205, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 205, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 205, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x188", - "decorators": [], - "loc": { - "start": { - "line": 206, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 206, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 188, - "loc": { - "start": { - "line": 206, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 206, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 206, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 206, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 206, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 206, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x189", - "decorators": [], - "loc": { - "start": { - "line": 207, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 207, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 189, - "loc": { - "start": { - "line": 207, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 207, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 207, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 207, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 207, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 207, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x190", - "decorators": [], - "loc": { - "start": { - "line": 208, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 208, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 190, - "loc": { - "start": { - "line": 208, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 208, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 208, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 208, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 208, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 208, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x191", - "decorators": [], - "loc": { - "start": { - "line": 209, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 209, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 191, - "loc": { - "start": { - "line": 209, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 209, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 209, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 209, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 209, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 209, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x192", - "decorators": [], - "loc": { - "start": { - "line": 210, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 210, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 192, - "loc": { - "start": { - "line": 210, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 210, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 210, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 210, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 210, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 210, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x193", - "decorators": [], - "loc": { - "start": { - "line": 211, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 211, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 193, - "loc": { - "start": { - "line": 211, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 211, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 211, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 211, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 211, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 211, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x194", - "decorators": [], - "loc": { - "start": { - "line": 212, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 212, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 194, - "loc": { - "start": { - "line": 212, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 212, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 212, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 212, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 212, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 212, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x195", - "decorators": [], - "loc": { - "start": { - "line": 213, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 213, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 195, - "loc": { - "start": { - "line": 213, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 213, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 213, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 213, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 213, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 213, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x196", - "decorators": [], - "loc": { - "start": { - "line": 214, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 214, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 196, - "loc": { - "start": { - "line": 214, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 214, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 214, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 214, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 214, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 214, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x197", - "decorators": [], - "loc": { - "start": { - "line": 215, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 215, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 197, - "loc": { - "start": { - "line": 215, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 215, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 215, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 215, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 215, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 215, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x198", - "decorators": [], - "loc": { - "start": { - "line": 216, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 216, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 198, - "loc": { - "start": { - "line": 216, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 216, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 216, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 216, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 216, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 216, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x199", - "decorators": [], - "loc": { - "start": { - "line": 217, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 217, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 199, - "loc": { - "start": { - "line": 217, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 217, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 217, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 217, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 217, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 217, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x200", - "decorators": [], - "loc": { - "start": { - "line": 218, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 218, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 200, - "loc": { - "start": { - "line": 218, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 218, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 218, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 218, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 218, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 218, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x201", - "decorators": [], - "loc": { - "start": { - "line": 219, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 219, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 201, - "loc": { - "start": { - "line": 219, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 219, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 219, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 219, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 219, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 219, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x202", - "decorators": [], - "loc": { - "start": { - "line": 220, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 220, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 202, - "loc": { - "start": { - "line": 220, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 220, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 220, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 220, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 220, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 220, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x203", - "decorators": [], - "loc": { - "start": { - "line": 221, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 221, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 203, - "loc": { - "start": { - "line": 221, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 221, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 221, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 221, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 221, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 221, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x204", - "decorators": [], - "loc": { - "start": { - "line": 222, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 222, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 204, - "loc": { - "start": { - "line": 222, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 222, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 222, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 222, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 222, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 222, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x205", - "decorators": [], - "loc": { - "start": { - "line": 223, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 223, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 205, - "loc": { - "start": { - "line": 223, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 223, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 223, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 223, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 223, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 223, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x206", - "decorators": [], - "loc": { - "start": { - "line": 224, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 224, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 206, - "loc": { - "start": { - "line": 224, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 224, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 224, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 224, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 224, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 224, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x207", - "decorators": [], - "loc": { - "start": { - "line": 225, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 225, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 207, - "loc": { - "start": { - "line": 225, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 225, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 225, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 225, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 225, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 225, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x208", - "decorators": [], - "loc": { - "start": { - "line": 226, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 226, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 208, - "loc": { - "start": { - "line": 226, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 226, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 226, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 226, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 226, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 226, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x209", - "decorators": [], - "loc": { - "start": { - "line": 227, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 227, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 209, - "loc": { - "start": { - "line": 227, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 227, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 227, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 227, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 227, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 227, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x210", - "decorators": [], - "loc": { - "start": { - "line": 228, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 228, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 210, - "loc": { - "start": { - "line": 228, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 228, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 228, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 228, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 228, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 228, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x211", - "decorators": [], - "loc": { - "start": { - "line": 229, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 229, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 211, - "loc": { - "start": { - "line": 229, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 229, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 229, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 229, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 229, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 229, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x212", - "decorators": [], - "loc": { - "start": { - "line": 230, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 230, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 212, - "loc": { - "start": { - "line": 230, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 230, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 230, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 230, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 230, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 230, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x213", - "decorators": [], - "loc": { - "start": { - "line": 231, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 231, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 213, - "loc": { - "start": { - "line": 231, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 231, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 231, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 231, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 231, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 231, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x214", - "decorators": [], - "loc": { - "start": { - "line": 232, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 232, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 214, - "loc": { - "start": { - "line": 232, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 232, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 232, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 232, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 232, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 232, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x215", - "decorators": [], - "loc": { - "start": { - "line": 233, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 233, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 215, - "loc": { - "start": { - "line": 233, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 233, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 233, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 233, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 233, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 233, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x216", - "decorators": [], - "loc": { - "start": { - "line": 234, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 234, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 216, - "loc": { - "start": { - "line": 234, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 234, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 234, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 234, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 234, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 234, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x217", - "decorators": [], - "loc": { - "start": { - "line": 235, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 235, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 217, - "loc": { - "start": { - "line": 235, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 235, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 235, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 235, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 235, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 235, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x218", - "decorators": [], - "loc": { - "start": { - "line": 236, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 236, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 218, - "loc": { - "start": { - "line": 236, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 236, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 236, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 236, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 236, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 236, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x219", - "decorators": [], - "loc": { - "start": { - "line": 237, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 237, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 219, - "loc": { - "start": { - "line": 237, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 237, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 237, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 237, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 237, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 237, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x220", - "decorators": [], - "loc": { - "start": { - "line": 238, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 238, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 220, - "loc": { - "start": { - "line": 238, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 238, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 238, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 238, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 238, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 238, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x221", - "decorators": [], - "loc": { - "start": { - "line": 239, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 239, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 221, - "loc": { - "start": { - "line": 239, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 239, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 239, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 239, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 239, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 239, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x222", - "decorators": [], - "loc": { - "start": { - "line": 240, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 240, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 222, - "loc": { - "start": { - "line": 240, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 240, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 240, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 240, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 240, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 240, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x223", - "decorators": [], - "loc": { - "start": { - "line": 241, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 241, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 223, - "loc": { - "start": { - "line": 241, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 241, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 241, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 241, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 241, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 241, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x224", - "decorators": [], - "loc": { - "start": { - "line": 242, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 242, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 224, - "loc": { - "start": { - "line": 242, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 242, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 242, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 242, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 242, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 242, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x225", - "decorators": [], - "loc": { - "start": { - "line": 243, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 243, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 225, - "loc": { - "start": { - "line": 243, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 243, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 243, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 243, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 243, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 243, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x226", - "decorators": [], - "loc": { - "start": { - "line": 244, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 244, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 226, - "loc": { - "start": { - "line": 244, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 244, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 244, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 244, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 244, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 244, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x227", - "decorators": [], - "loc": { - "start": { - "line": 245, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 245, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 227, - "loc": { - "start": { - "line": 245, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 245, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 245, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 245, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 245, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 245, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x228", - "decorators": [], - "loc": { - "start": { - "line": 246, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 246, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 228, - "loc": { - "start": { - "line": 246, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 246, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 246, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 246, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 246, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 246, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x229", - "decorators": [], - "loc": { - "start": { - "line": 247, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 247, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 229, - "loc": { - "start": { - "line": 247, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 247, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 247, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 247, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 247, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 247, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x230", - "decorators": [], - "loc": { - "start": { - "line": 248, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 248, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 230, - "loc": { - "start": { - "line": 248, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 248, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 248, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 248, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 248, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 248, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x231", - "decorators": [], - "loc": { - "start": { - "line": 249, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 249, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 231, - "loc": { - "start": { - "line": 249, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 249, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 249, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 249, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 249, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 249, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x232", - "decorators": [], - "loc": { - "start": { - "line": 250, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 250, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 232, - "loc": { - "start": { - "line": 250, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 250, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 250, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 250, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 250, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 250, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x233", - "decorators": [], - "loc": { - "start": { - "line": 251, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 251, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 233, - "loc": { - "start": { - "line": 251, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 251, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 251, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 251, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 251, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 251, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x234", - "decorators": [], - "loc": { - "start": { - "line": 252, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 252, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 234, - "loc": { - "start": { - "line": 252, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 252, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 252, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 252, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 252, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 252, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x235", - "decorators": [], - "loc": { - "start": { - "line": 253, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 253, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 235, - "loc": { - "start": { - "line": 253, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 253, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 253, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 253, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 253, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 253, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x236", - "decorators": [], - "loc": { - "start": { - "line": 254, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 254, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 236, - "loc": { - "start": { - "line": 254, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 254, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 254, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 254, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 254, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 254, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x237", - "decorators": [], - "loc": { - "start": { - "line": 255, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 255, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 237, - "loc": { - "start": { - "line": 255, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 255, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 255, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 255, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 255, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 255, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x238", - "decorators": [], - "loc": { - "start": { - "line": 256, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 256, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 238, - "loc": { - "start": { - "line": 256, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 256, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 256, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 256, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 256, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 256, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x239", - "decorators": [], - "loc": { - "start": { - "line": 257, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 257, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 239, - "loc": { - "start": { - "line": 257, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 257, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 257, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 257, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 257, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 257, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x240", - "decorators": [], - "loc": { - "start": { - "line": 258, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 258, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 240, - "loc": { - "start": { - "line": 258, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 258, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 258, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 258, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 258, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 258, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x241", - "decorators": [], - "loc": { - "start": { - "line": 259, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 259, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 241, - "loc": { - "start": { - "line": 259, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 259, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 259, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 259, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 259, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 259, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x242", - "decorators": [], - "loc": { - "start": { - "line": 260, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 260, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 242, - "loc": { - "start": { - "line": 260, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 260, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 260, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 260, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 260, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 260, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x243", - "decorators": [], - "loc": { - "start": { - "line": 261, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 261, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 243, - "loc": { - "start": { - "line": 261, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 261, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 261, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 261, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 261, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 261, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x244", - "decorators": [], - "loc": { - "start": { - "line": 262, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 262, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 244, - "loc": { - "start": { - "line": 262, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 262, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 262, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 262, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 262, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 262, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x245", - "decorators": [], - "loc": { - "start": { - "line": 263, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 263, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 245, - "loc": { - "start": { - "line": 263, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 263, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 263, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 263, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 263, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 263, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x246", - "decorators": [], - "loc": { - "start": { - "line": 264, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 264, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 246, - "loc": { - "start": { - "line": 264, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 264, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 264, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 264, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 264, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 264, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x247", - "decorators": [], - "loc": { - "start": { - "line": 265, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 265, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 247, - "loc": { - "start": { - "line": 265, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 265, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 265, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 265, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 265, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 265, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x248", - "decorators": [], - "loc": { - "start": { - "line": 266, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 266, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 248, - "loc": { - "start": { - "line": 266, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 266, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 266, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 266, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 266, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 266, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x249", - "decorators": [], - "loc": { - "start": { - "line": 267, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 267, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 249, - "loc": { - "start": { - "line": 267, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 267, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 267, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 267, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 267, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 267, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x250", - "decorators": [], - "loc": { - "start": { - "line": 268, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 268, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 250, - "loc": { - "start": { - "line": 268, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 268, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 268, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 268, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 268, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 268, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x251", - "decorators": [], - "loc": { - "start": { - "line": 269, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 269, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 251, - "loc": { - "start": { - "line": 269, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 269, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 269, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 269, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 269, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 269, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x252", - "decorators": [], - "loc": { - "start": { - "line": 270, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 270, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 252, - "loc": { - "start": { - "line": 270, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 270, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 270, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 270, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 270, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 270, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x253", - "decorators": [], - "loc": { - "start": { - "line": 271, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 271, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 253, - "loc": { - "start": { - "line": 271, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 271, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 271, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 271, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 271, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 271, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x254", - "decorators": [], - "loc": { - "start": { - "line": 272, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 272, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 254, - "loc": { - "start": { - "line": 272, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 272, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 272, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 272, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 272, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 272, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "x255", - "decorators": [], - "loc": { - "start": { - "line": 273, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 273, - "column": 9, - "program": "many_locals_1.js" - } - } - }, - "init": { - "type": "NumberLiteral", - "value": 255, - "loc": { - "start": { - "line": 273, - "column": 12, - "program": "many_locals_1.js" - }, - "end": { - "line": 273, - "column": 15, - "program": "many_locals_1.js" - } - } - }, - "loc": { - "start": { - "line": 273, - "column": 5, - "program": "many_locals_1.js" - }, - "end": { - "line": 273, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "kind": "let", - "loc": { - "start": { - "line": 273, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 273, - "column": 15, - "program": "many_locals_1.js" - } - } - } - ], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "many_locals_1.js" - }, - "end": { - "line": 275, - "column": 1, - "program": "many_locals_1.js" - } - } -} +Fatal error F0011: js extension is not supported within current build diff --git a/ets2panda/test/parser/as/test_decorators1-expected.txt b/ets2panda/test/parser/as/test_decorators1-expected.txt index 2f688ddaa421c963aa67397c3b7a5f9282612223..98801b7a4be770f12e8c1c847b8eb6770c7fe60d 100644 --- a/ets2panda/test/parser/as/test_decorators1-expected.txt +++ b/ets2panda/test/parser/as/test_decorators1-expected.txt @@ -149,3 +149,4 @@ } } } +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_interface-expected.txt b/ets2panda/test/parser/as/test_interface-expected.txt index 2d1cb7d5f5dba26d67ab2d02917d6c342f19a7a7..177ee944d8789db33752128641b584f49367972c 100644 --- a/ets2panda/test/parser/as/test_interface-expected.txt +++ b/ets2panda/test/parser/as/test_interface-expected.txt @@ -1084,3 +1084,4 @@ } } } +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_object_literal-expected.txt b/ets2panda/test/parser/as/test_object_literal-expected.txt index ed61791126b507ab51f5cea7ab8ea77d3d0b65a5..a54f28f1bbc9da579ee3382ee26e142fec44491d 100644 --- a/ets2panda/test/parser/as/test_object_literal-expected.txt +++ b/ets2panda/test/parser/as/test_object_literal-expected.txt @@ -292,3 +292,4 @@ } } } +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_type_annotation-expected.txt b/ets2panda/test/parser/as/test_type_annotation-expected.txt index 7ebeb95012eaccb032046dc79aadda9e0156b7e2..885b43037b87a05c816f741d08e067f866feec3f 100644 --- a/ets2panda/test/parser/as/test_type_annotation-expected.txt +++ b/ets2panda/test/parser/as/test_type_annotation-expected.txt @@ -1103,3 +1103,4 @@ } } } +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/ets/import_tests/import_several_2-expected.txt b/ets2panda/test/parser/ets/import_tests/import_several_2-expected.txt index 2019883103987e51539caa85ced8cee8f9e0d998..9f7357c5fdc8dbff135367bf7159d10c3f3b87ff 100755 --- a/ets2panda/test/parser/ets/import_tests/import_several_2-expected.txt +++ b/ets2panda/test/parser/ets/import_tests/import_several_2-expected.txt @@ -599,3 +599,4 @@ } } } +Warning: 'foo' has already imported [/home/kaskov/Documents/panda/ets_frontend/ets2panda/test/parser/ets/import_tests/import_several_2.ets:15:623] diff --git a/ets2panda/test/parser/ets/import_tests/import_several_7-expected.txt b/ets2panda/test/parser/ets/import_tests/import_several_7-expected.txt index 473fb64084bb9d96b59f5261efa54cea30ee5dfe..a44bee09a2e321304a73bdb5c8901f8994a90d84 100755 --- a/ets2panda/test/parser/ets/import_tests/import_several_7-expected.txt +++ b/ets2panda/test/parser/ets/import_tests/import_several_7-expected.txt @@ -891,3 +891,4 @@ } } } +Warning: 'foo' is explicitly used with alias several times [/home/kaskov/Documents/panda/ets_frontend/ets2panda/test/parser/ets/import_tests/import_several_7.ets:15:630] diff --git a/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_1-expected.txt b/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_1-expected.txt index 84d7af505e68429c1180d589a86dacc75bd2770e..96de89baa3980a3ba36e897cb465a014171e47ce 100755 --- a/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_1-expected.txt +++ b/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_1-expected.txt @@ -570,4 +570,4 @@ } } } -TypeError: Variable 'a' has already been declared. [subpackage_module_2.ets:19:12] +[subpackage_module_2.ets:19:12] Semantic error ESE0351: Variable 'a' has already been declared. diff --git a/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_2-expected.txt b/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_2-expected.txt index dd6e5693b36261c84eb126fe02727d52048d2638..859ed04956a09600e3d58e4297d42342438c8492 100755 --- a/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_2-expected.txt +++ b/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_2-expected.txt @@ -570,4 +570,4 @@ } } } -TypeError: Variable 'a' has already been declared. [subpackage_module_1.ets:19:12] +[subpackage_module_1.ets:19:12] Semantic error ESE0351: Variable 'a' has already been declared. diff --git a/ets2panda/test/parser/ets/instanceof-expected.txt b/ets2panda/test/parser/ets/instanceof-expected.txt index c3275656e5f45653d8d418c3d4d0fab4d7c73458..8e6b8775e61a9e94eceae7b96fae3cff444b2ad3 100644 --- a/ets2panda/test/parser/ets/instanceof-expected.txt +++ b/ets2panda/test/parser/ets/instanceof-expected.txt @@ -1052,4 +1052,4 @@ } } } -Warning: Type parameter is erased from type 'Array' when used in instanceof expression. [instanceof.ets:1:1] +[instanceof.ets:1:1] Warning W0015: Type parameter is erased from type 'Array' when used in instanceof expression. diff --git a/ets2panda/test/parser/ets/interfaces-expected.txt b/ets2panda/test/parser/ets/interfaces-expected.txt index ae8b0466926bdee06a387daabe7bd86156a3dd23..0670e167ee2773cb367774a0fe83a0d62cd4bed4 100644 --- a/ets2panda/test/parser/ets/interfaces-expected.txt +++ b/ets2panda/test/parser/ets/interfaces-expected.txt @@ -1486,4 +1486,4 @@ } } } -TypeError: 'nopnop' is an instance property of 'I0' [interfaces.ets:22:28] +[interfaces.ets:22:28] Semantic error ESE0208: 'nopnop' is an instance property of 'I0' diff --git a/ets2panda/test/parser/ets/literals-expected.txt b/ets2panda/test/parser/ets/literals-expected.txt index 080be2aefb44adf85841a1d9a39a0c1b34644dd6..479fbcde1d8163f55fb85f6f6ba0a64bcf29d063 100644 --- a/ets2panda/test/parser/ets/literals-expected.txt +++ b/ets2panda/test/parser/ets/literals-expected.txt @@ -1600,4 +1600,4 @@ } } } -TypeError: Can't resolve array type [literals.ets:35:15] +[literals.ets:35:15] Semantic error ESE0301: Can't resolve array type diff --git a/ets2panda/test/parser/ets/re_export/import_10-expected.txt b/ets2panda/test/parser/ets/re_export/import_10-expected.txt index a4098ad70b375c18e9a6a34a0508ffb8c2894e73..395f8df6ff1e01ffe686b93abcd304ffc41a0841 100644 --- a/ets2panda/test/parser/ets/re_export/import_10-expected.txt +++ b/ets2panda/test/parser/ets/re_export/import_10-expected.txt @@ -374,4 +374,4 @@ } } } -TypeError: Ambiguous export 'foo' [re_export_4.ets:16:8] +[re_export_4.ets:16:8] Semantic error ESE0362: Ambiguous export 'foo' diff --git a/ets2panda/test/parser/ets/re_export/re_export_4-expected.txt b/ets2panda/test/parser/ets/re_export/re_export_4-expected.txt index 26a9e8d39dd52f8847eb7b37142e939759d9fa9d..04b3b23f4d4677880638c9de42096221dbca5e95 100644 --- a/ets2panda/test/parser/ets/re_export/re_export_4-expected.txt +++ b/ets2panda/test/parser/ets/re_export/re_export_4-expected.txt @@ -471,4 +471,4 @@ } } } -TypeError: Ambiguous export 'foo' [re_export_4.ets:16:8] +[re_export_4.ets:16:8] Semantic error ESE0362: Ambiguous export 'foo' diff --git a/ets2panda/test/parser/ets/test_type_alias6-expected.txt b/ets2panda/test/parser/ets/test_type_alias6-expected.txt index 417fe11ce08b11a60ba03b9a766142e994154e72..da015de7f6b5caa7352c867d4b83123af22ee67b 100644 --- a/ets2panda/test/parser/ets/test_type_alias6-expected.txt +++ b/ets2panda/test/parser/ets/test_type_alias6-expected.txt @@ -445,6 +445,6 @@ } } } -TypeError: Variable 'x' has already been declared. [test_type_alias6.ets:17:5] -TypeError: Type name 'x' used in the wrong context [test_type_alias6.ets:17:5] -TypeError: Type 'Double' cannot be assigned to type 'Int' [test_type_alias6.ets:17:9] +[test_type_alias6.ets:17:5] Semantic error ESE0351: Variable 'x' has already been declared. +[test_type_alias6.ets:17:5] Semantic error ESE0144: Type name 'x' used in the wrong context +[test_type_alias6.ets:17:9] Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' diff --git a/ets2panda/test/parser/ets/type_alias_1-expected.txt b/ets2panda/test/parser/ets/type_alias_1-expected.txt index 7997bdfa5df3e3240c725939e0c1640043515270..1c812736c1c0ed9105d64195623c18bc10821c5b 100644 --- a/ets2panda/test/parser/ets/type_alias_1-expected.txt +++ b/ets2panda/test/parser/ets/type_alias_1-expected.txt @@ -539,4 +539,4 @@ } } } -TypeError: Variable 'Matrix' has already been declared. [type_alias_1.ets:18:5] +[type_alias_1.ets:18:5] Semantic error ESE0351: Variable 'Matrix' has already been declared. diff --git a/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json b/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json index 8dd7ddc8c1ce87ac427e2988afaa5e0243ed6bc9..c470cbfb722bf855bb6d8b10915924f3e418fc8b 100644 --- a/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json +++ b/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json @@ -1,5 +1,5 @@ { "returncode": 1, - "stdout": "Fatal error: Invalid ArkTsConfig: incorrect-include/arktsconfig.json\nArkTS config error: The 'include' must have array type\n", - "stderr": "" + "stdout": "", + "stderr": "Fatal error F0013: Invalid ArkTsConfig: incorrect-include/arktsconfig.json\nArkTS config error EAC0010: The 'include' must have array type\n" } diff --git a/ets2panda/test/tsconfig/test-decl/check-export-decl/expected.json b/ets2panda/test/tsconfig/test-decl/check-export-decl/expected.json index bf996e3c554d26e9477c168b68ebc4d5eb400287..2979888f061ee669dbd02fc4136d0a7563f180f5 100644 --- a/ets2panda/test/tsconfig/test-decl/check-export-decl/expected.json +++ b/ets2panda/test/tsconfig/test-decl/check-export-decl/expected.json @@ -1,5 +1,5 @@ { "returncode": 1, - "stdout": "SyntaxError: Export keyword without declare shouldn't be used in declaration module. [index.ets:16:8]\n", - "stderr": "" + "stdout": "", + "stderr": "[index.ets:16:8] Syntax error ESY0296: Export keyword without declare shouldn't be used in declaration module.\n" } \ No newline at end of file diff --git a/ets2panda/test/tsconfig/test-decl/check-extend-dynamic/expected.json b/ets2panda/test/tsconfig/test-decl/check-extend-dynamic/expected.json index cb2d2fb848428f68098158800f6380c1984663cb..18fe261e81524f5f3616e0a421c0ac085c349105 100644 --- a/ets2panda/test/tsconfig/test-decl/check-extend-dynamic/expected.json +++ b/ets2panda/test/tsconfig/test-decl/check-extend-dynamic/expected.json @@ -1,5 +1,5 @@ { "returncode": 1, - "stdout": "TypeError: Class D shouldn't extend dynamic class. [main.ets:18:19]\n", - "stderr": "" + "stdout": "", + "stderr": "[main.ets:18:19] Type error ESE0102: Class D shouldn't extend dynamic class.\n" } \ No newline at end of file diff --git a/ets2panda/test/tsconfig/test-decl/typecheck-decl/expected.json b/ets2panda/test/tsconfig/test-decl/typecheck-decl/expected.json index c11295340f2ad403bac9b1a921451118c5e12ebc..165eb7d798c687b27b7fc47aaffed307c9805e21 100644 --- a/ets2panda/test/tsconfig/test-decl/typecheck-decl/expected.json +++ b/ets2panda/test/tsconfig/test-decl/typecheck-decl/expected.json @@ -1,5 +1,5 @@ { "returncode": 1, - "stdout": "TypeError: Type 'Int' is not compatible with type 'String' at property 'location' [main.ets:19:28]\nTypeError: Operator '!=' cannot be applied to types 'String' and 'Int'. [main.ets:21:9]\n", - "stderr": "" + "stdout": "", + "stderr": "[main.ets:19:28] Type error ESE0120: Type 'Int' is not compatible with type 'String' at property 'location'\n[main.ets:21:9] TypeError ESE0105: Operator '!=' cannot be applied to types 'String' and 'Int'.\n" } \ No newline at end of file diff --git a/ets2panda/util/diagnostic.cpp b/ets2panda/util/diagnostic.cpp index 4ca94c5c81dfbf2c42beff1ea36be3794247ed42..eb65cdb3a29f085d4a0e11c82ab669234c6954dd 100644 --- a/ets2panda/util/diagnostic.cpp +++ b/ets2panda/util/diagnostic.cpp @@ -158,9 +158,9 @@ const char *DiagnosticTypeToString(DiagnosticType type) case DiagnosticType::FATAL: return "Fatal error"; case DiagnosticType::SYNTAX: - return "SyntaxError"; + return "Syntax error"; case DiagnosticType::SEMANTIC: - return "TypeError"; + return "Semantic error"; case DiagnosticType::WARNING: return "Warning"; case DiagnosticType::PLUGIN_WARNING: @@ -182,6 +182,45 @@ const char *DiagnosticTypeToString(DiagnosticType type) } } +const char *DiagnosticTypeToCharSymbol(DiagnosticType type) +{ + switch (type) { + case DiagnosticType::FATAL: + return "F"; + case DiagnosticType::SYNTAX: + return "ESY"; + case DiagnosticType::SEMANTIC: + return "ESE"; + case DiagnosticType::WARNING: + return "W"; + case DiagnosticType::PLUGIN_WARNING: + return "WP"; + case DiagnosticType::PLUGIN_ERROR: + return "EP"; + case DiagnosticType::DECLGEN_ETS2TS_ERROR: + return "ED"; + case DiagnosticType::DECLGEN_ETS2TS_WARNING: + return "WD"; + case DiagnosticType::ISOLATED_DECLGEN: + return "EID"; + case DiagnosticType::ARKTS_CONFIG_ERROR: + return "EAC"; + case DiagnosticType::SUGGESTION: + return "S"; + default: + ES2PANDA_UNREACHABLE(); + } +} + +std::string DiagnosticBase::ToStringUniqueNumber() const +{ + const size_t minWigthNumber = 4; + std::string uniqueNumber = std::to_string(GetId()); + int precision = minWigthNumber - std::min(minWigthNumber, uniqueNumber.size()); + uniqueNumber.insert(0, precision, '0'); + return std::string {DiagnosticTypeToCharSymbol(Type())} + uniqueNumber; +} + DiagnosticBase::DiagnosticBase(const lexer::SourcePosition &pos) { if (pos.Program() != nullptr) { diff --git a/ets2panda/util/diagnostic.h b/ets2panda/util/diagnostic.h index 3c82dc536ab2faccd4a5359c1f2c7db4387a9764..5481a51e42e6f88891d40df70c49d5c2401d85fe 100644 --- a/ets2panda/util/diagnostic.h +++ b/ets2panda/util/diagnostic.h @@ -100,6 +100,8 @@ public: return offset_; } + std::string ToStringUniqueNumber() const; + private: std::string file_; size_t line_ {}; diff --git a/ets2panda/util/diagnostic/semantic.yaml b/ets2panda/util/diagnostic/semantic.yaml index 920b835f6f19d4cb4ee7ca93c538b30e1092e7df..246db55b5d034d6dc7754d0d85209b4616505886 100644 --- a/ets2panda/util/diagnostic/semantic.yaml +++ b/ets2panda/util/diagnostic/semantic.yaml @@ -1428,7 +1428,7 @@ semantic: - name: VOID_VALUE id: 78 - message: "Cannot use type 'void' as value. " + message: "Cannot use type 'void' as value." - name: WRONG_OPERAND_TYPE_FOR_BINARY_EXPRESSION id: 346 diff --git a/ets2panda/util/diagnosticEngine.cpp b/ets2panda/util/diagnosticEngine.cpp index ce2147a3f7453cff2bdfa626d009bfda7b38d4a4..e8be21095322f7474751761ac79d7bf50c1c39f8 100644 --- a/ets2panda/util/diagnosticEngine.cpp +++ b/ets2panda/util/diagnosticEngine.cpp @@ -24,17 +24,20 @@ namespace ark::es2panda::util { void CLIDiagnosticPrinter::Print(const DiagnosticBase &diagnostic, std::ostream &out) const { - out << DiagnosticTypeToString(diagnostic.Type()) << ": " << diagnostic.Message(); + // Message collected and printed once to avoid spliting printed message in case multithreading execution + std::ostringstream stream; if (!diagnostic.File().empty()) { - out << " [" << util::BaseName(diagnostic.File()) << ":" << diagnostic.Line() << ":" << diagnostic.Offset() - << "]"; + stream << "[" << util::BaseName(diagnostic.File()) << ":" << diagnostic.Line() << ":" << diagnostic.Offset() + << "] "; } - out << std::endl; + stream << DiagnosticTypeToString(diagnostic.Type()) << " " << diagnostic.ToStringUniqueNumber() << ": " + << diagnostic.Message() << std::endl; + out << stream.str(); } void CLIDiagnosticPrinter::Print(const DiagnosticBase &diagnostic) const { - Print(diagnostic, std::cout); + Print(diagnostic, std::cerr); } const DiagnosticStorage &DiagnosticEngine::GetDiagnosticStorage(DiagnosticType type) diff --git a/ets2panda/util/options.cpp b/ets2panda/util/options.cpp index dbb5e1fbee52249f632b57df0dd2b8e7f290e9fa..02f6b94ea503252198baf9c0b731081cd389df75 100644 --- a/ets2panda/util/options.cpp +++ b/ets2panda/util/options.cpp @@ -336,14 +336,11 @@ bool Options::DetermineExtension() return true; } std::string sourceFileExtension = SourceFileName().substr(SourceFileName().find_last_of('.') + 1); -#ifdef ENABLE_AFTER_21192 - // NOTE(mkaskov): Enable after #21192 if (!SourceFileName().empty() && WasSetExtension() && gen::Options::GetExtension() != sourceFileExtension) { - diagnosticEngine_.LogDiagnostic( - diagnostic::EXTENSION_MISMATCH, - {std::string_view(sourceFileExtension), std::string_view(gen::Options::GetExtension())}); + diagnosticEngine_.LogDiagnostic(diagnostic::EXTENSION_MISMATCH, + DiagnosticMessageParams {std::string_view(sourceFileExtension), + std::string_view(gen::Options::GetExtension())}); } -#endif // ENABLE_AFTER_21192 // Note: the file suffix `.ets` is a valid suffix for compiler, which is equivalent to `.ets` sourceFileExtension = sourceFileExtension == "ets" ? "ets" : sourceFileExtension; auto tempExtension = WasSetExtension() ? gen::Options::GetExtension() : sourceFileExtension;