diff --git a/ets2panda/parser/ETSparser.cpp b/ets2panda/parser/ETSparser.cpp index bcaf53d1c5246463dbdcb924cf2d9facfd4196c9..7f43a170c0e4595b9f9b5224b42cfe517386808d 100644 --- a/ets2panda/parser/ETSparser.cpp +++ b/ets2panda/parser/ETSparser.cpp @@ -1516,8 +1516,7 @@ void ETSParser::ParseNamedSpecifiesDefaultImport(ArenaVector *result, - ArenaVector *resultExportDefault, - const std::string &fileName) + ArenaVector *resultExportDefault) { if (Lexer()->GetToken().Type() != lexer::TokenType::LITERAL_IDENT) { ir::Expression *constantExpression = ParseUnaryOrPrefixUpdateExpression(); @@ -1556,7 +1555,7 @@ bool ETSParser::ParseNamedSpecifiesImport(ArenaVector *re ES2PANDA_ASSERT(specifier != nullptr); specifier->SetRange({imported->Start(), local->End()}); - util::Helpers::CheckImportedName(*result, specifier, fileName); + util::Helpers::CheckImportedName(*result, specifier, DiagnosticEngine()); result->emplace_back(specifier); return true; @@ -1597,7 +1596,7 @@ SpecifiersInfo ETSParser::ParseNamedSpecifiers(const ir::ImportKinds importKind) if (!IsDefaultImport()) { typeKeywordOnSpecifier = false; - return ParseNamedSpecifiesImport(&result, &resultExportDefault, fileName); + return ParseNamedSpecifiesImport(&result, &resultExportDefault); } ParseNamedSpecifiesDefaultImport(&resultDefault, fileName); typeKeywordOnSpecifier = false; diff --git a/ets2panda/parser/ETSparser.h b/ets2panda/parser/ETSparser.h index 4e78635efdaf3f7e9b74d4e127e61381350de7b8..ad56a0fbd3f8fd6c65f92c44923b681cfcbd3731 100644 --- a/ets2panda/parser/ETSparser.h +++ b/ets2panda/parser/ETSparser.h @@ -201,8 +201,7 @@ private: void ParseNamedSpecifiesDefaultImport(ArenaVector *resultDefault, const std::string &fileName); bool ParseNamedSpecifiesImport(ArenaVector *result, - ArenaVector *resultExportDefault, - const std::string &fileName); + ArenaVector *resultExportDefault); SpecifiersInfo ParseNamedSpecifiers(const ir::ImportKinds importKind); ir::ExportNamedDeclaration *ParseSingleExport(ir::ModifierFlags modifiers); ir::ExportNamedDeclaration *ParseSingleExportForAnonymousConst(ir::ModifierFlags modifiers); diff --git a/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets b/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets index 52168f2026b0f3974bbdd610b99f22dcf2af51d0..66cfc26b28fd14638c1d3efe87c619f3a9d6797f 100644 --- a/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets +++ b/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets @@ -61,13 +61,14 @@ 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. */ + +/* @@? 47:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 47:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 50:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 50:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 53:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 53:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 56:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 56:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 60:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 60:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ \ No newline at end of file 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..1f9018655dd573d2af2db47ab4022fa6832287c7 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,9 @@ 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'. */ + +/* @@? 18:7 Error Semantic error ESE0371: Cannot find type 'e'. */ +/* @@? 18:17 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 18:29 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 25:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file 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..34f258f144403c0a637bad30b1e6ddd16bbb145c 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,9 @@ 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'. */ + +/* @@? 18:7 Error Semantic error ESE0371: Cannot find type 'e'. */ +/* @@? 18:17 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 18:29 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 25:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets b/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets index 7e3feec7a61195e2ddb1839dea824c9e1a2230ea..83900a0d6f347cb7b11fb2cded06f00aee88e8a0 100644 --- a/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets +++ b/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets @@ -43,24 +43,25 @@ 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:38 Error TypeError: Type 'Int' cannot be assigned to type 'Byte' */ -/* @@? 17:64 Error TypeError: Type 'Int' cannot be assigned to type 'Byte' */ -/* @@? 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 */ -/* @@? 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:38 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'Byte' */ +/* @@? 17:64 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'Byte' */ +/* @@? 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 */ +/* @@? 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 */ \ No newline at end of file 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..1c2b173c6fd420883e37ce30c23f37936ae9b82d 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. */ \ No newline at end of file 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..0d13c05dad7eb917cef23550c1815efafaccb593 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'. */ \ No newline at end of file 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..3b7f332a3a5ac1433fa9ff616acf6b96e4cf8ce7 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,11 @@ 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' */ \ No newline at end of file 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..5060ce56fcb3258c66d77453e1c7424e8411fa8e 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,11 @@ 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' */ \ No newline at end of file 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..34e74de14c004a4f704bcc27049f94b8d085a1fb 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. */ \ No newline at end of file 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..0c40e8fc168aed830ac71cf785ed48e02dde52b7 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,5 @@ // 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. */ \ No newline at end of file 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..a08daeb3c85bd3211146cb6c159a9ab94ea0292f 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,5 @@ 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. */ \ No newline at end of file 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..2a101efbc3b4eb19eca885d3baae8fee3ee23f34 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,5 @@ 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 */ \ No newline at end of file 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..2f1a7579fac1de231582f915bac37aeaf863f97a 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,7 @@ 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' */ \ No newline at end of file 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..ade46bac5e60ee9ba1e2e7be62978e931a6c609f 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,5 @@ 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. */ \ No newline at end of file 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..35b386e3172c198efaf4c28a162752e3e7525eae 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,8 @@ 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 */ \ No newline at end of file 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..cb0dd6004022101dbf4e8083bef7bfd16469b8d9 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,6 @@ 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. */ \ No newline at end of file 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 a3b59aa70c4cb1f2905259a5ce3dd72320a0e670..50b71e178180dfd1ff0e37b757ab9d40bc379962 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 '((p1: Double, ...p2: FixedArray) => void)' cannot be assigned to type '((p1: String, ...p2: FixedArray) => void)' */ -/* @@? 18:48 Error TypeError: Type '((...p1: FixedArray) => void)' cannot be assigned to type '((...p1: FixedArray) => Double)' */ -/* @@? 20:58 Error TypeError: Type '((p1: Double, ...p2: FixedArray) => String)' cannot be assigned to type '((p1: String, ...p2: FixedArray) => String)' */ +/* @@? 16:56 Error Semantic error ESE0318: Type '(p1: Double, ...p2: FixedArray) => void' cannot be assigned to type '(p1: String, ...p2: FixedArray) => void' */ +/* @@? 18:48 Error Semantic error ESE0318: Type '(...p1: FixedArray) => void' cannot be assigned to type '(...p1: FixedArray) => Double' */ +/* @@? 20:58 Error Semantic error ESE0318: Type '(p1: Double, ...p2: FixedArray) => String' cannot be assigned to type '(p1: String, ...p2: FixedArray) => String' */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/most_specific_method_with_empty_rest_param.ets b/ets2panda/test/ast/compiler/ets/FixedArray/most_specific_method_with_empty_rest_param.ets index 05c91630b4f9070b50bc20129ec3aa6acbf5fc47..fe0f12d506ab973271befd0a886cf22d5d37c033 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/most_specific_method_with_empty_rest_param.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/most_specific_method_with_empty_rest_param.ets @@ -26,3 +26,5 @@ function main() { let c: C = new C() c.met() } +/* @@? 27:5 Error Semantic error ESE0129: Call to `met` is ambiguous */ +/* @@? 27:5 Error Semantic error ESE0126: Reference to met is ambiguous */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets b/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets index 7a854d51d55471c6035ba01bc81cb527c559c8e7..310f141e39adae0ec0584570a16dd9d4386c40af 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets @@ -24,4 +24,5 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: 'fun' type does not exist. */ + +/* @@@ label Error Semantic error ESE0070: 'fun' type does not exist. */ \ No newline at end of file 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..6dd15b535870d285d6364effe76b3d163ef4d2de 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets index 0a237c3d9bbeb800d71ac7af98b59c2990843f9a..532a51c301662d1aac712e6922e6a85e7c0ba21f 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets @@ -22,4 +22,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets index 91e5197257d684686df1d0051e9ca93757005e4c..11dd4786e4df9c59d7a5aa592ccbd7faf57f761e 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets @@ -18,4 +18,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets index a3f7fcbe7d814d4ec2d35378cc4a9144de6619e8..8755ae843934b54beee3cbe4882d1ad2b4e41dcb 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets @@ -18,4 +18,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets b/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets index de366a4ce9c8977af5dafbc712422a52ccb5c62b..6b3416c5b385bcf5616441d106df86c2ab4bec9b 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets @@ -21,9 +21,10 @@ 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. */ \ No newline at end of file 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..7ec5eda21a2d7ae941a8ccab2d1697e2e039adc4 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,13 @@ 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 ']'. */ \ No newline at end of file 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..e8d78fe783d4e239a0af3d76f7e511e75d3bb477 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,13 @@ 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 ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets index 93fac978914f250b1021c0d0dbd1dfcc7e6efb10..826ce064ebb1af0f0dc36a60e6cbd8e3036d4fe4 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets @@ -51,10 +51,11 @@ 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. */ \ No newline at end of file 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..3b577256db6f94951799b42dd2137350aa4665c1 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/union_subtyping_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/union_subtyping_neg.ets index ee093b8b105916362453ed31d7f5934951e419bd..f223c6584ca8c7b224999b58dcdc2b2d1900da04 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/union_subtyping_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/union_subtyping_neg.ets @@ -22,4 +22,5 @@ let b: FixedArray = [new B(), new B()] let cOnly: FixedArray = b -/* @@? 23:28 Error TypeError: Type 'FixedArray' cannot be assigned to type 'FixedArray' */ + +/* @@? 23:28 Error Semantic error ESE0318: Type 'FixedArray' cannot be assigned to type 'FixedArray' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets b/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets index eef306e686bcfd4523e7ecaae7ba1d023ba732c3..60209a6d3efec5324eeb08f2ffaa43235ac06878 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets @@ -37,5 +37,6 @@ function main() { let a = (new A).b } -/* @@? 16:13 Error TypeError: Unresolved reference b */ -/* @@? 37:21 Error TypeError: Property 'b' does not exist on type 'A' */ + +/* @@? 16:13 Error Semantic error ESE0143: Unresolved reference b */ +/* @@? 37:21 Error Semantic error ESE0087: Property 'b' does not exist on type 'A' */ \ No newline at end of file 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..65601f0db1fddc0d78e48696348e31f2f0b8f005 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,18 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FunctionType1.ets b/ets2panda/test/ast/compiler/ets/FunctionType1.ets index e8d1d5c16e5f364f68cf2193d734278b5e81592e..9e72fae51538e82db96ae195d53ab714d63ec723 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType1.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType1.ets @@ -26,4 +26,4 @@ function main(): void { func = /* @@ label */klass.a; } -/* @@@ label Error TypeError: Type '(p1: Int, p2: Int) => int' cannot be assigned to type '(p1: Int, p2: Int) => void' */ +/* @@@ label Error Semantic error ESE0318: Type '(p1: Int, p2: Int) => Int' cannot be assigned to type '(p1: Int, p2: Int) => void' */ diff --git a/ets2panda/test/ast/compiler/ets/FunctionType10.ets b/ets2panda/test/ast/compiler/ets/FunctionType10.ets index 478a8d6732d6d0aa6d449d15acf4980ad6c9fbc2..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..8ddedbf9cf82709f5df73357f8acd2251b6664e8 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType3.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType3.ets @@ -23,5 +23,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FunctionType5.ets b/ets2panda/test/ast/compiler/ets/FunctionType5.ets index f2d64bff1f6a7a665a2b3a08019fd0d7fe6aa670..fa6ba33ec871b07eba68abdb155d1af2237616c4 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType5.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType5.ets @@ -18,4 +18,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FunctionType8.ets b/ets2panda/test/ast/compiler/ets/FunctionType8.ets index 9cc89b03a747c9cf1c5615cb39ccf0b57f01a0e4..548456b7739ac3a924fbfabbf06e4cc9db0d3b93 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType8.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType8.ets @@ -36,5 +36,9 @@ function main(): void { instance.cb(1, 2); } -/* @@? 36:3 Error TypeError: Expected 1 arguments, got 2. */ -/* @@? 36:3 Error TypeError: No matching call signature for (int, int) */ + +/* @@? 22:34 Warning Warning W0010: The instance field initializer expression cannot use the this. */ +/* @@? 30:26 Warning Warning W0010: The instance field initializer expression cannot use the this. */ +/* @@? 30:31 Error Semantic error ESE0307: Overloaded method is used as value */ +/* @@? 36:3 Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@? 36:3 Error Semantic error ESE0127: No matching call signature for (Int, Int) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FunctionType9.ets b/ets2panda/test/ast/compiler/ets/FunctionType9.ets index acca71fd797608676d07375928d73a2327c82174..cda31fe9d06339a03cff9a47adbf35bdbb254df0 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType9.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType9.ets @@ -30,4 +30,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets b/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets index 3f64bda07d045c37056f9502464d36fbdcbcb0aa..a03c7c7697f67b3deef0f0bc9c7fdaadbb4b9990 100644 --- a/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets +++ b/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets @@ -16,6 +16,7 @@ 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 '{'. */ \ No newline at end of file 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..d4ed0ebc056eacdb8a35411f88f88838b370da06 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,6 @@ 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 */ + +/* @@? 17:38 Error Semantic error ESE0288: Cannot make a static reference to the non-static type B */ +/* @@? 17:41 Error Semantic error ESE0288: Cannot make a static reference to the non-static type C */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets b/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets index f5bc78e6d615240a3622f2d826156ced55b26ee5..e25fc321f60cd4be5d68a4cba9bd93876044d34b 100755 --- a/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets +++ b/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets @@ -23,7 +23,8 @@ 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:1 Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@? 23:1 Error Semantic error ESE0127: No matching call signature for foo(...) */ +/* @@? 23:15 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 23:17 Error Syntax error ESY0228: Unexpected token, expected ':'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/MultiPropertyWithSameName.ets b/ets2panda/test/ast/compiler/ets/MultiPropertyWithSameName.ets index 3c7d4737be6c08d653a939fd752b78946e9ababd..5be2f2cfcc47c6fde9f873d7fe0c5d4e5583536f 100644 --- a/ets2panda/test/ast/compiler/ets/MultiPropertyWithSameName.ets +++ b/ets2panda/test/ast/compiler/ets/MultiPropertyWithSameName.ets @@ -34,7 +34,7 @@ let c: A = { } -/* @@? 22:5 Error TypeError: An object literal cannot have multiple properties with the same name. */ -/* @@? 27:5 Error TypeError: An object literal cannot have multiple properties with the same name. */ -/* @@? 28:5 Error TypeError: An object literal cannot have multiple properties with the same name. */ -/* @@? 33:5 Error TypeError: An object literal cannot have multiple properties with the same name. */ + +/* @@? 20:5 Error Semantic error ESE0100: An object literal cannot have multiple properties with the same name. */ +/* @@? 25:5 Error Semantic error ESE0100: An object literal cannot have multiple properties with the same name. */ +/* @@? 31:5 Error Semantic error ESE0100: An object literal cannot have multiple properties with the same name. */ \ No newline at end of file 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..48bd221f2289d5a25bc764d7596448bf43d04277 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,5 @@ class C { } } -/* @@@ label Error TypeError: Private method is used as value */ + +/* @@@ label Error Semantic error ESE0306: Private method is used as value */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets index 0cae5d18a7c057823b44ef1ea811dea80572ef69..b15b0da1b36375ad72648d4244433c44e9741594 100644 --- a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets @@ -37,4 +37,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets index 73db0e88aac5800417321f72e873488a0cc4d7e9..eeae91f8b4060a87f110eacc2885b05d02afca1d 100644 --- a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets @@ -20,4 +20,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets b/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets index 26506215d980ea86deaaa9c63956a4cd8b396564..0e080d287aecff6b8407adc2a601c1f85ae8a97b 100755 --- a/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets +++ b/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets @@ -18,14 +18,14 @@ __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'. */ +/* @@? 31:79 Error Syntax error ESY0211: Invalid left-hand side in 'for' statement: must have a single binding. */ +/* @@? 31:79 Error Syntax error ESY0230: Expected ';', got 'end of stream'. */ +/* @@? 31:79 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 31:79 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 31:79 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 31:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 31:79 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 31:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/Partial_utility_type_0.ets b/ets2panda/test/ast/compiler/ets/Partial_utility_type_0.ets index b72c198c605052e4f6589d7b3d89bd93663db680..0255d36a7bcadc6a4c88dce865ec72fc8667dedb 100644 --- a/ets2panda/test/ast/compiler/ets/Partial_utility_type_0.ets +++ b/ets2panda/test/ast/compiler/ets/Partial_utility_type_0.ets @@ -25,8 +25,9 @@ function foo() { } -/* @@? 20:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 21:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 22:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 23:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 24:20 Error TypeError: T in Partial must be a class or an interface type. */ + +/* @@? 20:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 21:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 22:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 23:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 24:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/PromiseAllSettledRejectIgnored.ets b/ets2panda/test/ast/compiler/ets/PromiseAllSettledRejectIgnored.ets index db53e7267ea62d5e3296ec20f8e7dbf290d25537..5af5ea982982aa4626b5b6f9b6fc1a9302893aea 100644 --- a/ets2panda/test/ast/compiler/ets/PromiseAllSettledRejectIgnored.ets +++ b/ets2panda/test/ast/compiler/ets/PromiseAllSettledRejectIgnored.ets @@ -55,5 +55,5 @@ Promise.allSettled(thenable).then((values: PromiseSettledResult' is not compatible with the enclosing method's return type 'PromiseLike|Awaited>' */ -/* @@? 27:16 Error TypeError: Type 'Promise' is not compatible with the enclosing method's return type 'PromiseLike|Awaited>' */ \ No newline at end of file +/* @@? 19:16 Error Semantic error ESE0091: Type 'Promise' is not compatible with the enclosing method's return type 'PromiseLike|Awaited>' */ +/* @@? 27:16 Error Semantic error ESE0091: Type 'Promise' is not compatible with the enclosing method's return type 'PromiseLike|Awaited>' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/Required_utility_type_0.ets b/ets2panda/test/ast/compiler/ets/Required_utility_type_0.ets index 00fd2a2a6e27e1da5b191c8875782731d22a791c..1a61a4cd3b10a94789c39febb4b8987c3855b096 100644 --- a/ets2panda/test/ast/compiler/ets/Required_utility_type_0.ets +++ b/ets2panda/test/ast/compiler/ets/Required_utility_type_0.ets @@ -26,8 +26,9 @@ function foo() { -/* @@? 20:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 21:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 22:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 23:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 24:20 Error TypeError: T in Partial must be a class or an interface type. */ + +/* @@? 20:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 21:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 22:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 23:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 24:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ \ No newline at end of file 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..6f9f6be8e41a02748f2614ce4a401b7c065271e4 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,5 @@ 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 */ \ No newline at end of file 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..719eba3abb82f7c9da94a04ad0626a0f0078a5e9 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,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets b/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets index a9d2d105b913c887d1ca0200111656e03c392279..5787c0578d8de9c5a08200f67c9a43f68cbb2c01 100644 --- a/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets +++ b/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets @@ -18,6 +18,7 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/absent_return_statement.ets b/ets2panda/test/ast/compiler/ets/absent_return_statement.ets index aff155f691dd2da0215b8f81f2894ac1aadac959..d707497594882899910ec534a91d0bc3a6cbbc71 100644 --- a/ets2panda/test/ast/compiler/ets/absent_return_statement.ets +++ b/ets2panda/test/ast/compiler/ets/absent_return_statement.ets @@ -37,9 +37,10 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_function.ets b/ets2panda/test/ast/compiler/ets/ambient_function.ets index 7f20bea7e3be6d1b0e1abfbbdf848db4ecef2343..3f54f0706f0551739883577d8a5949521f648f48 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_function.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_function.ets @@ -24,5 +24,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets b/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets index 18ef053143ca187bfd39175f2cddfeaa705280ae..aa12320fe2f39bbd2a97c7b9cf3ca2366e7dde8e 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets @@ -21,4 +21,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets b/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets index c9c395e184ddb10beedab22dc3eb488cad068306..79afe8ab8ec0865d008d9f49194eddbd14ee35f8 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets @@ -20,4 +20,5 @@ 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'. */ \ No newline at end of file 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..51663ee250dbdc67371ef42c6d5d21d69b036eae 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,5 @@ 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. */ \ No newline at end of file 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..1765798d48e5d8a427275f797cfdb6bcd7e289a8 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,5 @@ class B { } } -/* @@@ label Error TypeError: Property 'a' might not have been initialized. */ + +/* @@@ label Error Semantic error ESE0280: Property 'a' might not have been initialized. */ \ No newline at end of file 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 99739fc83fd8b0a3172775106f6ff4c041cc6ec3..259243fa420bfa158f60b17a6b2d24fb16ef1eb1 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets @@ -25,7 +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: Identifier expected, got 'default'. */ -/* @@? 25:7 Error SyntaxError: Identifier expected, got 'default'. */ + +/* @@? 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 ESY0224: Identifier expected, got 'default'. */ +/* @@? 25:7 Error Syntax error ESY0224: Identifier expected, got 'default'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets index 089b58848d9657ee65e50f15476e962504aedf12..492f36d77f2377c4c3739df711f42a7b9e70b000 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets index 172846252da1d1e3eb84c16f197b37a7d25dfb97..a1581ee89bd88223868e41b5f0489fc544023b69 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets @@ -19,5 +19,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets index 54ec3ecb64138dbb0058b11a67f065ac127d8860..0de705b38a4b4da1321d004d8aa88a77f5ace7c6 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets index 22b20fdb661e543f2e6a4d3b3d7eb7921f2704b1..81a285ecb183a7af65f0b20716e6ed7d896c3b53 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets index 8512fcfc1304cf47479f13ad0ed0e0ca692d8f81..f0bbefa3747c9b9dd4e40f30ce108e18b74bb47c 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets @@ -19,7 +19,8 @@ declare namespace MySpace{ } } -/* @@? 18:15 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 18:17 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:17 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 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 ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 19:5 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets index 0a5814bdbae639d25308df75578c5f8ec409c59f..11a35971b04ee709dd01f1649e75909d7f7ab4d7 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets index 94b0e3aa73a923e86f92e2591eaa954946c8ea5e..25c68018947ffa1eacf13df97b8db11e2ba7d382 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets @@ -20,5 +20,6 @@ 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. */ \ No newline at end of file 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..ff960c39ba9c9d2d7b23108ee1f99ee4bef987fc 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets b/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets index 0b8027d62db380e7bd44dc4c3a726376ce6a802a..197cd342fa83000c72bacd1a5b537c8678bf624b 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambiguous_signature02.ets b/ets2panda/test/ast/compiler/ets/ambiguous_signature02.ets index 3bfe8693adb232c667d3f4cbaf94b1dca6da3b35..a2652f168ad10115265fe1af706068af00e741c5 100644 --- a/ets2panda/test/ast/compiler/ets/ambiguous_signature02.ets +++ b/ets2panda/test/ast/compiler/ets/ambiguous_signature02.ets @@ -22,4 +22,3 @@ function f(x: string, y?: A, z?: B) {} f("1") -/* @@? 23:1 Error TypeError: Reference to f is ambiguous */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/anno_required_fields.ets b/ets2panda/test/ast/compiler/ets/anno_required_fields.ets index 3791299398ac689ef2f36c845c9db3fd5315a60a..e1c2942257f172d471b64c9ff7ae0e0f38fb6061 100644 --- a/ets2panda/test/ast/compiler/ets/anno_required_fields.ets +++ b/ets2panda/test/ast/compiler/ets/anno_required_fields.ets @@ -22,6 +22,7 @@ @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. */ \ No newline at end of file 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..c3e4c0f16fb4e90c324aa15547dfebdc074b468b 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,6 @@ { } -/* @@? 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. */ \ No newline at end of file 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..7935528ee3971e15394aa6ad2ad0a4e5a3636bb9 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,7 @@ 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. */ \ No newline at end of file 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..dcdf0637aa7001f32d27c73e08f3a1d148bd66aa 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,8 @@ } -/* @@? 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. */ \ No newline at end of file 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..57a208e9a9cfd27ec35e9e0a586bccc96d38ba61 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,6 @@ @/* @@ 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. */ \ No newline at end of file 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..31dcfae08d08cdd82fe90b5ebed30ec165a98c3a 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. */ \ No newline at end of file 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..9a58123ebf4209643d0e023738a447975fd4f074 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'. */ \ No newline at end of file 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..d7aab9f6482ada5eaa6845804b8a1d3426b51f47 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. */ \ No newline at end of file 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..c636e3354ea7ba4c0597ca784b6f4304027b6d10 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,6 @@ 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. */ \ No newline at end of file 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..c1374a9518636dffd454dc2406c4695a5bf412c4 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,11 @@ 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' */ \ No newline at end of file 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..1e2f478742f647a95c5c9c1247104c8235b60c43 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. */ \ No newline at end of file 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..c9b16f5a1cc7a6f248a02dcce4d3f0a47802e1c1 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,5 @@ 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. */ \ No newline at end of file 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..b5fef282d6b8af3571e085fd3f36ff314f86ed28 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. */ \ No newline at end of file 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..007eb4a9eddbd75df5a11d10bc9a4de38fd44379 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,6 @@ 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. */ \ No newline at end of file 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..272a7d90b0bac5206201e557a132011f8ac00882 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,6 @@ 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. */ \ No newline at end of file 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..31450ba3291e39cd9c99ba8996653d5395cff777 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,5 @@ 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. */ \ No newline at end of file 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..96d718bb3590b373f5cb89a25654e1ab161204f6 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,7 @@ 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. */ \ No newline at end of file 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..6b40ea969b9038a9ea56f46a417121870e0adc8c 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. */ \ No newline at end of file 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..152e9f0b833678d288eecdac56d7e8d296f2458a 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. */ \ No newline at end of file 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..c8be704e6e135b5b6dc3a3a45eb39389952462c7 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,5 @@ 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. */ \ No newline at end of file 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..b5cdd4e07cd942b457cb14658ca60c8fb04e83ad 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. */ \ No newline at end of file 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..f5d76e9ea079c2b16c69c42c7b12b057944b8e6a 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,5 @@ 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. */ \ No newline at end of file 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..b85360c30e3865d35b08afff1082dd98f8da4471 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,8 @@ 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 */ \ No newline at end of file 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..878e812e10645a3e8214916e8bf9a463d1c541ea 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,6 @@ class MyAnno { @/* @@ label */MyAnno() class B{} -/* @@@ label Error TypeError: 'MyAnno' is not an annotation. */ + +/* @@@ label Error Semantic error ESE0067: 'MyAnno' is not an annotation. */ \ No newline at end of file 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..3e1c56b37b9122c656811e521203f06863278979 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,6 @@ 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. */ \ No newline at end of file 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..7df45ebec8db1a4245a8463656fc5f0cb0dfdd64 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,6 @@ @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' */ \ No newline at end of file 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..a55eb29eb127f6dffd69504d52ee05c0f73e783f 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,8 @@ @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'. */ \ No newline at end of file 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..79326f945181f192330e793b08cafa431ba78ceb 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,11 @@ 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' */ \ No newline at end of file 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..3802c2d678672d8ac8f5c15086690e7333884391 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,6 @@ 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. */ \ No newline at end of file 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..04f21a6e51c9507d2d6b2fccd2a17705ab6c5e10 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. */ \ No newline at end of file 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..def4b96a0e53b9b8d9d8f153ca3edbbc896c1cce 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. */ \ No newline at end of file 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..1c2e8ce0da86a568548f35bea9a4a62c9320e420 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,5 @@ 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. */ \ No newline at end of file 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..4babadc59326c4d70f0f4b03c056089f0d02940b 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,5 @@ 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. */ \ No newline at end of file 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..c18446627721bf7f0e48e0bb9bd1781a65f00fa2 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,5 @@ 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. */ \ No newline at end of file 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..7d62c1def8a0077540a3f7a0cb8169c6561cafb2 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,5 @@ 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. */ \ No newline at end of file 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..43c09a230ca035a4bbf806a5e6892989dde4a02b 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. */ \ No newline at end of file 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..647cd6532dde69fd07392fc3dcf83edff5ebb5c6 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. */ \ No newline at end of file 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..afb6bd280d3f6efe18a60093a3dac40c3c7d02ee 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,7 @@ 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. */ \ No newline at end of file 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..c16c2810de8afa88275561aa40d6bb2d6c26e052 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,6 @@ 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. */ \ No newline at end of file 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..1cd5c5c19cdf153b21dc0252dda9439604c04238 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,5 @@ 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. */ \ No newline at end of file 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..c050566c748a89576b9a3ecf44d2a4e5f3b3368b 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,5 @@ @/* @@ 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. */ \ No newline at end of file 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 7dcd2ce4b267fd5e268e10ea7a88f77503795c0a..adad96c5b686a6b257611bc4d7b5e036356c474d 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,5 @@ let a = new A(); let show = @Anno()@/* @@ label */Anno(this: A): string => { return "Hello," + this.name; } -/* @@? 21:34 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. */ \ No newline at end of file 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..1ee7c83e12b24a8d67ef151e6f88ea7f4cd34ee8 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,5 @@ 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. */ \ No newline at end of file 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..a0a8ceeef4cd79e0b5394ea94c4d2ec3c2fe0a29 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,5 @@ 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. */ \ No newline at end of file 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..ca892619203b72cf62293426756d9494167cf306 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,6 @@ 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. */ \ No newline at end of file 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..36126dc981b0761a43678ade60629a4b9d4721ac 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,6 @@ 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. */ \ No newline at end of file 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..8673630d9811bbb38d7e925eeb5599182303e757 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,6 @@ 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. */ \ No newline at end of file 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..6af3d4728fdd6279b8d01d75fb30f8a0fbe7f5c1 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,6 @@ 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. */ \ No newline at end of file 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..244fda6e3ad38c25f95f78b06d8980447e5f503a 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,7 @@ 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. */ \ No newline at end of file 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..6ae2d4650654857dab5bf29222a8bf0905913ff6 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,7 @@ 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. */ \ No newline at end of file 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..a4c1d750941ac2cf64899d73fd9afcbde2d3a9ff 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,6 @@ 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. */ \ No newline at end of file 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..52e90c57b2c78b0d64ea915a889d2e538e1353f5 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,8 @@ 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. */ \ No newline at end of file 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..46e193b632bb0599d2092673ab28dfad9743dda1 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,6 @@ /* @@ 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 */ \ No newline at end of file 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..8edf592e26fd1f0915c42c6fbdac651a4d567c84 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,6 @@ 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. */ \ No newline at end of file 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..f6cb1b08f4779688fe9f8ad3157e9e7627247474 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,9 @@ 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. */ \ No newline at end of file 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..5a719395c8ee579756658dcd52f59d1f7f8f4b89 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,8 @@ 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. */ \ No newline at end of file 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..629ac4606c51961dfcf39ddc5db1c55a9265fbbf 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. */ \ No newline at end of file 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..c540ef334f934de4ff72536be1e610328f639fc8 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. */ \ No newline at end of file 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..571360de5782e13ea9347f655c682aeac149bf1a 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,6 @@ 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. */ \ No newline at end of file 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..5ef87d8a3c71140ca12ebffee23a75e3e2224e9d 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,9 @@ 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. */ \ No newline at end of file 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..bcdc7dd61bdb18332b8df2bf2f18e53b3207dbb7 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,7 @@ 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. */ \ No newline at end of file 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..c6af79236b7b0f7f8a551b6ff37815b2c2eb7fde 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,7 @@ 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. */ \ No newline at end of file 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..78a411e0dc91fd2863114c30f4f4eacfafdb0212 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,9 @@ 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. */ \ No newline at end of file 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..86de91dc171135161ad7dfdca7f022fb358df8da 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,6 @@ @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' */ \ No newline at end of file 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..056a39d07c28ddd434be09ee6e1a58d9cb38280a 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,5 @@ class A {} @interface A { } -/* @@? 18:12 Error TypeError: Variable 'A' has already been declared. */ + +/* @@? 18:12 Error Semantic error ESE0351: Variable 'A' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_as_negative_case.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_as_negative_case.ets index 3de515f15a42261ebafdcfc39ea78be12b5a0e54..db5a80ff35da3e2e01b149161dce1f06a9b9820e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_as_negative_case.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_as_negative_case.ets @@ -20,6 +20,8 @@ class A {} } -/* @@? 18:18 Error TypeError: Cannot cast type 'Int' to 'String' */ -/* @@? 19:15 Error TypeError: Cannot cast type 'Int' to 'A' */ -/* @@? 19:15 Error TypeError: Type 'A' cannot be assigned to type 'Int' */ \ No newline at end of file +/* @@? 18:18 Error Semantic error ESE0326: Cannot cast type 'Int' to 'String' */ +/* @@? 18:18 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 19:15 Error Semantic error ESE0326: Cannot cast type 'Int' to 'A' */ +/* @@? 19:15 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'Int' */ +/* @@? 19:15 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file 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..e6011e21bc487760eac0110e031a27154d121edb 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'. */ \ No newline at end of file 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 a6857d8207acf7996053fcbcdc131577e4000459..34248174d03f90e412862380b47a97c9cdd5cc50 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,6 @@ let array: @Anno @Anno Int[][] let deepArray: @Anno @Anno Number[][][][][] -/* @@? 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. */ + +/* @@? 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. */ \ No newline at end of file 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..58f3361f0623d5137fc1f443032b96a1d698e72c 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,7 @@ // 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 */ \ No newline at end of file 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..7205703ffb95c3f4db6ac59be345dffdd2a33ab2 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,9 @@ @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'. */ \ No newline at end of file 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..2b7955369bf196d20f0793dbcc7f3aecbdc4f421 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. */ \ No newline at end of file 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..6ea5e6eb32a3685d49b45ab375e9a5cc59146f46 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,10 @@ 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. */ \ No newline at end of file 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..8b886a6cbe98e4bda956e55c76dc4ab3d72b57ca 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,8 @@ 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. */ \ No newline at end of file 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..b74bc343889c4f4e0b2d0281b9b97b6592f9a2b8 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. */ \ No newline at end of file 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..a84fd3882447722bb28fe38e00d9b52c3562b5eb 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. */ \ No newline at end of file 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..8d795b6564219d5196af60ead13746027d1d1c66 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. */ \ No newline at end of file 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..996c22fca83a44f6898e6463b730405e5720ed6c 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. */ \ No newline at end of file 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..e81ac4dfc7c17dc7067e63193e2c683d0f3d169e 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. */ \ No newline at end of file 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..4ba5629b3514c910d69f4497fab9f2ad1d3b9e1d 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,11 @@ 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. */ \ No newline at end of file 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..5b2aaec8a67b1d6915255de19647c964b4124ec7 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. */ \ No newline at end of file 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..e22666e11be9490a9651c51dc60f45f5adb7ca13 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,12 @@ 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. */ \ No newline at end of file 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..9efa606697e5eca23a572056520d5db25163d404 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,7 @@ 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. */ \ No newline at end of file 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..aee9f4d46f2548fd1a6b43c10738be60654ce84a 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. */ \ No newline at end of file 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..2f789d2e467c9868506982561b847a51740e7c3a 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,5 @@ // 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. */ \ No newline at end of file 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..3c2071a3a3ab2179d19a07db98078af3edba0f1d 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. */ \ No newline at end of file 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..ca745828cafd950f007fef74e3b5cba15aaca959 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,13 @@ 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. */ \ No newline at end of file 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..bd846f0df195d7ea7f14f80ad49c71d435c82a06 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation.ets index c0c0a3d0d64d82a0e32aa57b8de1cdd39a3b2a6c..536938697dad61c752ccee9c83fd69f305b50874 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation.ets @@ -20,21 +20,21 @@ class A{ foo(){} } -/* @@? 16:22 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 16:22 Error SyntaxError: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:22 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 16:22 Error SyntaxError: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:22 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 16:23 Error SyntaxError: Identifier expected, got ','. */ -/* @@? 16:24 Error SyntaxError: Number, string or computed value property name '2' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:24 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 16:24 Error SyntaxError: Number, string or computed value property name '2' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:24 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 16:25 Error SyntaxError: Identifier expected, got ','. */ -/* @@? 16:26 Error SyntaxError: Number, string or computed value property name '3' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:26 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 16:26 Error SyntaxError: Number, string or computed value property name '3' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:26 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 16:27 Error SyntaxError: Identifier expected, got ']'. */ -/* @@? 16:28 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 19:6 Error TypeError: Annotation 'MyValue' requires multiple fields to be specified. */ \ No newline at end of file +/* @@? 16:22 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 16:22 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 */ +/* @@? 16:22 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 16:22 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 */ +/* @@? 16:22 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 16:23 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 16:24 Error Syntax error ESY0315: Number, string or computed value property name '2' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 16:24 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 16:24 Error Syntax error ESY0315: Number, string or computed value property name '2' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 16:24 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 16:25 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 16:26 Error Syntax error ESY0315: Number, string or computed value property name '3' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 16:26 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 16:26 Error Syntax error ESY0315: Number, string or computed value property name '3' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 16:26 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 16:27 Error Syntax error ESY0224: Identifier expected, got ']'. */ +/* @@? 16:28 Error Syntax error ESY0224: Identifier expected, got '}'. */ +/* @@? 19:6 Error Semantic error ESE0043: Annotation 'MyValue' requires multiple fields to be specified. */ \ No newline at end of file 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..7fd488aa4009092c6cbfdcebb941ce84a621b3fa 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,6 @@ @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:2 Error Semantic error ESE0371: Cannot find type 'ns'. */ +/* @@? 16:5 Error Semantic error ESE0070: 'Anno' type does not exist. */ +/* @@? 16:5 Error Semantic error ESE0067: 'Anno' is not an annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/array_index.ets b/ets2panda/test/ast/compiler/ets/array_index.ets index b56d97710ad4fcb598a55d88d864b79e8e98cb23..ac300611368178259604d552758c5937806bc30a 100644 --- a/ets2panda/test/ast/compiler/ets/array_index.ets +++ b/ets2panda/test/ast/compiler/ets/array_index.ets @@ -15,4 +15,5 @@ const a: Char[] = new Char[n = 10]; -/* @@? 16:28 Error TypeError: Unresolved reference n */ + +/* @@? 16:28 Error Semantic error ESE0143: Unresolved reference n */ \ No newline at end of file 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..9a0a6a33852e1dd2a0cf66aa6ec120aa6529883f 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/array_type_as_param.ets b/ets2panda/test/ast/compiler/ets/array_type_as_param.ets index b8f173ad201c7128f7ec9d9c9a738b34b44f6811..fe8c57b5053c2c48df4fc7139c20065ce65f55d3 100644 --- a/ets2panda/test/ast/compiler/ets/array_type_as_param.ets +++ b/ets2panda/test/ast/compiler/ets/array_type_as_param.ets @@ -22,5 +22,5 @@ function main(){ foo(number[]) } -/* @@? 21:16 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 22:9 Error SyntaxError: Unexpected token 'number'. */ \ No newline at end of file +/* @@? 21:16 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 22:9 Error Syntax error ESY0227: Unexpected token 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/array_type_as_value.ets b/ets2panda/test/ast/compiler/ets/array_type_as_value.ets index 20dbca68adef30f2cdd781b94fd59efa3e08763b..ee28717d51e710ce1721d6d03969c91ceceb78f1 100644 --- a/ets2panda/test/ast/compiler/ets/array_type_as_value.ets +++ b/ets2panda/test/ast/compiler/ets/array_type_as_value.ets @@ -24,10 +24,10 @@ function main(){ let v4 = long[] || false } -/* @@? 19:15 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 20:23 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 21:8 Error SyntaxError: Unexpected token 'Int'. */ -/* @@? 22:11 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 23:5 Error SyntaxError: Missing condition in while statement */ -/* @@? 23:14 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 24:14 Error SyntaxError: Unexpected token 'long'. */ \ No newline at end of file +/* @@? 19:15 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 20:23 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 21:8 Error Syntax error ESY0227: Unexpected token 'Int'. */ +/* @@? 22:11 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 23:5 Error Syntax error ESY0301: Missing condition in while statement */ +/* @@? 23:14 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 24:14 Error Syntax error ESY0227: Unexpected token 'long'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/array_type_test.ets b/ets2panda/test/ast/compiler/ets/array_type_test.ets index c9d5e6de74a2a78ac3481c6952467ba89fb72af4..0bb394a3e573ab03c8f52cd502f04d9b8f58d593 100644 --- a/ets2panda/test/ast/compiler/ets/array_type_test.ets +++ b/ets2panda/test/ast/compiler/ets/array_type_test.ets @@ -22,4 +22,5 @@ function hee(opt: Options): [string, number, boolean] { return menuList; } -/* @@? 21:63 Error TypeError: Initializer has 0 elements, but tuple requires 3 */ + +/* @@? 21:63 Error Semantic error ESE0231: Initializer has 0 elements, but tuple requires 3 */ \ No newline at end of file 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..8880a29242ce9c918e6fabb095ac982697c600ef 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,19 @@ 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. */ \ No newline at end of file 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..a86958db1f49cd665ce4f13af35267704a77f7ac 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,36 @@ 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 ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 24:36 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets b/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets index 91fded93d9c33814603d73376c0e9e817877ec95..aace4212c85280ba6f39c1f4bda0f3a247fc1113 100644 --- a/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets +++ b/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets @@ -17,5 +17,5 @@ let foo: (P: string, Q: string) => void foo((value: Object): void => { }, (err: Error): void => { }) -/* @@? 18:1 Error TypeError: No matching call signature for (((p1: Object) => void), ((p1: Error) => void)) */ -/* @@? 18:5 Error TypeError: Type '((p1: Object) => void)' is not compatible with type 'String' at index 1 */ +/* @@? 18:1 Error Semantic error ESE0127: No matching call signature for ((p1: Object) => void, (p1: Error) => void) */ +/* @@? 18:5 Error Semantic error ESE0046: Type '(p1: Object) => void' is not compatible with type 'String' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/assert_bad.ets b/ets2panda/test/ast/compiler/ets/assert_bad.ets index d22c1d7fabf1463493e59a51c2d8370f9739df30..64c388465ff02070f4bb799cabd87f8844d26d77 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/assign_const.ets b/ets2panda/test/ast/compiler/ets/assign_const.ets index 150e93078fba6d138db5456d9106038e3519a10a..2db58907ef781491ee237e9bed19a211b8baaba9 100644 --- a/ets2panda/test/ast/compiler/ets/assign_const.ets +++ b/ets2panda/test/ast/compiler/ets/assign_const.ets @@ -18,4 +18,5 @@ function main(): void { /* @@ label */c = c + 1; } -/* @@@ label Error TypeError: Cannot assign to a constant variable c */ + +/* @@@ label Error Semantic error ESE4001: Cannot assign to a constant variable c */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/async-function-expression1.ets b/ets2panda/test/ast/compiler/ets/async-function-expression1.ets index de02a742451ceee41853731115e253ec22a218be..3682efb05333af4a8d87406f8044d9d7aa159bf0 100644 --- a/ets2panda/test/ast/compiler/ets/async-function-expression1.ets +++ b/ets2panda/test/ast/compiler/ets/async-function-expression1.ets @@ -46,9 +46,10 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/async-function-expression2.ets b/ets2panda/test/ast/compiler/ets/async-function-expression2.ets index c4fef79dcf25a122cf68f790e788854816ff7fc9..6263c656ac3f0f0b3e51269d9239716ec3edb1c9 100644 --- a/ets2panda/test/ast/compiler/ets/async-function-expression2.ets +++ b/ets2panda/test/ast/compiler/ets/async-function-expression2.ets @@ -46,21 +46,22 @@ 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 ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/async_import_3.ets b/ets2panda/test/ast/compiler/ets/async_import_3.ets index 165c0f7649eae9371dcacc8dcc7727cab09fdee8..a790c61d455c9a29719ba208e16710bad78ec243 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' */ \ No newline at end of file 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..8e0348faebf1f0638bf02a46a97bc784d47e811c 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,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/awaited_assignability_2_neg.ets b/ets2panda/test/ast/compiler/ets/awaited_assignability_2_neg.ets index eba08ed8791b144bc13f774734dae19ff0345c85..cd5ed02ecde84314adab5bb2ae83fa8f393987ef 100644 --- a/ets2panda/test/ast/compiler/ets/awaited_assignability_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/awaited_assignability_2_neg.ets @@ -18,4 +18,4 @@ async function aw(p: Promise, cb: (v: T) => void) { cb(x) } -/* @@? 17:16 Error TypeError: Type 'Awaited' cannot be assigned to type 'T' */ \ No newline at end of file +/* @@? 17:16 Error Semantic error ESE0318: Type 'Awaited' cannot be assigned to type 'T' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/awaited_assignability_neg.ets b/ets2panda/test/ast/compiler/ets/awaited_assignability_neg.ets index 680c93f3280b78250ba89fb295247f77cdca67f9..47847628ac116024a701b04b43baba38e16752bd 100644 --- a/ets2panda/test/ast/compiler/ets/awaited_assignability_neg.ets +++ b/ets2panda/test/ast/compiler/ets/awaited_assignability_neg.ets @@ -18,5 +18,5 @@ async function aw(p: Promise, cb: (v: T) => void) { cb(x) } -/* @@? 18:5 Error TypeError: No matching call signature for (Awaited) */ -/* @@? 18:8 Error TypeError: Type 'Awaited' is not compatible with type 'T' at index 1 */ \ No newline at end of file +/* @@? 18:5 Error Semantic error ESE0127: No matching call signature for (Awaited) */ +/* @@? 18:8 Error Semantic error ESE0046: Type 'Awaited' is not compatible with type 'T' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/awaited_utility_type.ets b/ets2panda/test/ast/compiler/ets/awaited_utility_type.ets index d9f5bc86dd9b0fcbd0810f91440e3667424daeab..c153cfc35ecc1e5686110269a58ad8ab6d61ba18 100644 --- a/ets2panda/test/ast/compiler/ets/awaited_utility_type.ets +++ b/ets2panda/test/ast/compiler/ets/awaited_utility_type.ets @@ -25,4 +25,4 @@ let a: A = "a" let valueB: B = true let valueD: D = 123 -/* @@? 23:22 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Promise|Promise' */ \ No newline at end of file + /* @@? 23:22 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Promise|Promise' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/awaited_with_array.ets b/ets2panda/test/ast/compiler/ets/awaited_with_array.ets index 644cf02a40d41dfa4f113c7fd4f7874e5a2d38f0..60653601b73ad3e63bff58aa59cce8942d5b0c6e 100644 --- a/ets2panda/test/ast/compiler/ets/awaited_with_array.ets +++ b/ets2panda/test/ast/compiler/ets/awaited_with_array.ets @@ -18,4 +18,5 @@ type AwaitedArray = Awaited const results: AwaitedArray = ["hello"] -/* @@? 19:32 Error TypeError: Array element at index 0 with type '"hello"' is not compatible with the target array element type 'Promise' */ + +/* @@? 19:32 Error Semantic error ESE0227: Array element at index 0 with type '"hello"' is not compatible with the target array element type 'Promise' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/bad_call_setter.ets b/ets2panda/test/ast/compiler/ets/bad_call_setter.ets index 0e68c90948a0b0e4020b1ba1fc04c6a4ea1b623b..086d98c5264bfb8c3f588afca3f95625967b4ca6 100644 --- a/ets2panda/test/ast/compiler/ets/bad_call_setter.ets +++ b/ets2panda/test/ast/compiler/ets/bad_call_setter.ets @@ -28,7 +28,8 @@ 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' */ + +/* @@? 23:5 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 23:9 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 23:10 Error Semantic error ESE0351: Variable 'text' has already been declared. */ +/* @@? 23:17 Error Semantic error ESE0145: Property 's' must be accessed through 'this' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets b/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets index 5ea74fcbfbb52378b2eb73e17770394c9f01cea3..6074586487aa5d262918d4fd6731d3d5705a8851 100644 --- a/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets +++ b/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets @@ -38,13 +38,14 @@ 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. */ \ No newline at end of file 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..f0b410a3f8888cfac40262debc95ad2f16763200 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets b/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets index 4bee69637bc0a64837cb1169e070ffe61136a56f..6caa3915c1b908f2e27b2fd5fd18608f86be521a 100644 --- a/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets +++ b/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets @@ -15,8 +15,9 @@ /* @@ 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:102 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 23:102 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 23:102 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 23:102 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets b/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets index 06330f44ea82f42d2cf03ba182961b3349d62dbd..9b5f040f34b20003cd8481f479d79a4db34a7bbf 100644 --- a/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets +++ b/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets @@ -15,10 +15,11 @@ 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:32 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 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:32 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 16:40 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:41 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file 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..f7e9e452896c92c85e09320fbad23c3e25f2b9ea 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,6 @@ } } -/* @@? 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/boxingConversion4.ets b/ets2panda/test/ast/compiler/ets/boxingConversion4.ets index 4b463095b76371a963337ddb9cdfc57b6faf4dd8..1795a2c5a0bd8fb994a58d9cd39c6f132267f010 100644 --- a/ets2panda/test/ast/compiler/ets/boxingConversion4.ets +++ b/ets2panda/test/ast/compiler/ets/boxingConversion4.ets @@ -23,5 +23,6 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/break_target.ets b/ets2panda/test/ast/compiler/ets/break_target.ets index a3af3dd42cc82fe6f855569972b9bb4a7f8bba4b..d5edbdbf0982747b342f517c79c84b68e795219b 100644 --- a/ets2panda/test/ast/compiler/ets/break_target.ets +++ b/ets2panda/test/ast/compiler/ets/break_target.ets @@ -21,4 +21,5 @@ target: while(true) { } } -/* @@? 19:13 Error TypeError: Continue or break target can't be outside the function */ + +/* @@? 19:13 Error Semantic error ESE49316: Continue or break target can't be outside the function */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/broken_getter.ets b/ets2panda/test/ast/compiler/ets/broken_getter.ets index 3651757ed87afe7bb557c1d93c8ba7e07ff27afe..6a4b5db8dadce9f4b96928dd95f0807317da1887 100644 --- a/ets2panda/test/ast/compiler/ets/broken_getter.ets +++ b/ets2panda/test/ast/compiler/ets/broken_getter.ets @@ -17,12 +17,12 @@ class A { is.$_get(this.length = 1).toDouble() } -/* @@? 17:7 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:7 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:13 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:18 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:18 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:29 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:30 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:39 Error TypeError: Only abstract or native methods can't have body. */ \ No newline at end of file +/* @@? 17:7 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:7 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:13 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:18 Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ +/* @@? 17:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:29 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:30 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:39 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/broken_partial_type.ets b/ets2panda/test/ast/compiler/ets/broken_partial_type.ets index fa0c63286510b256487f20b8db1b5ecb48cf7748..728daa28624a5607ed5a225ab2a243c3de69b6e5 100644 --- a/ets2panda/test/ast/compiler/ets/broken_partial_type.ets +++ b/ets2panda/test/ast/compiler/ets/broken_partial_type.ets @@ -38,11 +38,11 @@ function createEntityA(): EntityUnion { } -/* @@? 26:3 Error TypeError: kind(): ((() => *ERROR_TYPE*))|undefined in Partial cannot override kind(): ((() => Kind))|undefined in Partial because overriding return type is not compatible with the other return type. */ -/* @@? 26:3 Error TypeError: Method kind(): ((() => *ERROR_TYPE*))|undefined in Partial not overriding any method */ -/* @@? 26:3 Error TypeError: kind(): (() => *ERROR_TYPE*) in EntityA cannot override kind(): (() => Kind) in Entity because overriding return type is not compatible with the other return type. */ -/* @@? 26:3 Error TypeError: Method kind(): (() => *ERROR_TYPE*) in EntityA not overriding any method */ -/* @@? 26:20 Error TypeError: 'A' type does not exist. */ -/* @@? 30:3 Error TypeError: kind(): (() => *ERROR_TYPE*) in EntityB cannot override kind(): (() => Kind) in Entity because overriding return type is not compatible with the other return type. */ -/* @@? 30:3 Error TypeError: Method kind(): (() => *ERROR_TYPE*) in EntityB not overriding any method */ -/* @@? 30:20 Error TypeError: 'B' type does not exist. */ +/* @@? 26:3 Error Semantic error ESE0141: kind(): (() => *ERROR_TYPE*)|undefined in Partial cannot override kind(): (() => Kind)|undefined in Partial because overriding return type is not compatible with the other return type. */ +/* @@? 26:3 Error Semantic error ESE0136: Method kind(): (() => *ERROR_TYPE*)|undefined in Partial not overriding any method */ +/* @@? 26:3 Error Semantic error ESE0141: kind(): () => *ERROR_TYPE* in EntityA cannot override kind(): () => Kind in Entity because overriding return type is not compatible with the other return type. */ +/* @@? 26:3 Error Semantic error ESE0136: Method kind(): () => *ERROR_TYPE* in EntityA not overriding any method */ +/* @@? 26:20 Error Semantic error ESE0070: 'A' type does not exist. */ +/* @@? 30:3 Error Semantic error ESE0141: kind(): () => *ERROR_TYPE* in EntityB cannot override kind(): () => Kind in Entity because overriding return type is not compatible with the other return type. */ +/* @@? 30:3 Error Semantic error ESE0136: Method kind(): () => *ERROR_TYPE* in EntityB not overriding any method */ +/* @@? 30:20 Error Semantic error ESE0070: 'B' type does not exist. */ diff --git a/ets2panda/test/ast/compiler/ets/broken_setter.ets b/ets2panda/test/ast/compiler/ets/broken_setter.ets index 9330afc1737c32002ffde4b3079d3823fd1548f3..1fd5436667886b1f9709cebb04b2864bbd49ba46 100644 --- a/ets2panda/test/ast/compiler/ets/broken_setter.ets +++ b/ets2panda/test/ast/compiler/ets/broken_setter.ets @@ -27,6 +27,6 @@ class A{ function foo(p:Partial){} -/* @@? 23:5 Error SyntaxError: Setter must have exactly one formal parameter. */ -/* @@? 23:5 Error TypeError: Function p is already declared. */ -/* @@? 24:21 Warning Warning: Reading the value of the property inside its getter may lead to an endless loop. */ \ No newline at end of file +/* @@? 23:5 Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ +/* @@? 23:5 Error Semantic error ESE0130: Function p is already declared. */ +/* @@? 24:21 Warning Warning W0023: Reading the value of the property inside its getter may lead to an endless loop. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets b/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets index 9c4ec53ad739e45888b7d93afc7c2439e82cf254..05ea18888e74abcea5e205210c3dc2660fdaeb52 100755 --- a/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets +++ b/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets @@ -17,21 +17,21 @@ 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:1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 16:7 Error Syntax error ESY0227: Unexpected token 'MyClass'. */ +/* @@? 16:7 Error Semantic error ESE0143: Unresolved reference MyClass */ +/* @@? 16:15 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:3 Error Semantic error ESE0143: Unresolved reference compare */ +/* @@? 17:17 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 17:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:19 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:27 Error Syntax error ESY0227: Unexpected token 'index'. */ +/* @@? 17:33 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:33 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:39 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:41 Error Syntax error ESY0227: Unexpected token 'arr'. */ +/* @@? 17:46 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:46 Error Semantic error ESE0140: No matching call signature with trailing lambda */ +/* @@? 17:59 Error Syntax error ESY0228: Unexpected token, expected '('. */ \ No newline at end of file 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..7e334bec069d9ff23274c1f36945ca8a8ad71e37 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,5 @@ function main(){ let a = new A./* @@ label */foo(123) } -/* @@@ label Error TypeError: Invalid type reference. */ + +/* @@@ label Error Semantic error ESE0299: Invalid type reference. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/call_signature.ets b/ets2panda/test/ast/compiler/ets/call_signature.ets index ae2f208c22f3b429eb7e17cfb0dc4ca80c823e59..2b127f6031ea8c65cdc0d47984116e872e4845c3 100644 --- a/ets2panda/test/ast/compiler/ets/call_signature.ets +++ b/ets2panda/test/ast/compiler/ets/call_signature.ets @@ -27,11 +27,12 @@ class Proxy { ) } -/* @@? 17:25 Error TypeError: Cannot find type 'T'. */ -/* @@? 19:22 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 21:28 Error TypeError: Cannot find type 'MethodCreate'. */ -/* @@? 22:13 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 22:32 Error TypeError: Cannot find type 'AbortController'. */ -/* @@? 24:61 Error SyntaxError: Identifier expected, got ')'. */ -/* @@? 26:9 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 27:5 Error SyntaxError: Unexpected token ')'. */ + +/* @@? 17:25 Error Semantic error ESE0371: Cannot find type 'T'. */ +/* @@? 19:22 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 21:28 Error Semantic error ESE0371: Cannot find type 'MethodCreate'. */ +/* @@? 22:13 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 22:32 Error Semantic error ESE0371: Cannot find type 'AbortController'. */ +/* @@? 24:61 Error Syntax error ESY0224: Identifier expected, got ')'. */ +/* @@? 26:9 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 27:5 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/call_signature_error.ets b/ets2panda/test/ast/compiler/ets/call_signature_error.ets index 8ec272c4893662db5f0d5284f7fbe4089092332a..f95a91401513bbcb89aa169646ceac3da47deebc 100644 --- a/ets2panda/test/ast/compiler/ets/call_signature_error.ets +++ b/ets2panda/test/ast/compiler/ets/call_signature_error.ets @@ -17,5 +17,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/check_spreadElement.ets b/ets2panda/test/ast/compiler/ets/check_spreadElement.ets index 69f13c49a7233439470f4d94ed06dcb94a10e042..58fee0b116bcbc5a3a14365954f62aa02b9b1587 100644 --- a/ets2panda/test/ast/compiler/ets/check_spreadElement.ets +++ b/ets2panda/test/ast/compiler/ets/check_spreadElement.ets @@ -15,7 +15,8 @@ [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:1 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 16:2 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 16:5 Error Semantic error ESE0143: Unresolved reference b */ +/* @@? 16:11 Error Semantic error ESE0143: Unresolved reference rest */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets b/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets index 5315c5449bd9fa267cfa1d3add030a94c393eb66..63f64ee10df6f45d3ee7218c347a5041cd1bbbda 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/circular_inheritance.ets b/ets2panda/test/ast/compiler/ets/circular_inheritance.ets index 3039b89682e9263866006ecda10437ce01a462a1..e593f65527d9867ff703a6519d26ae48b746bb3b 100644 --- a/ets2panda/test/ast/compiler/ets/circular_inheritance.ets +++ b/ets2panda/test/ast/compiler/ets/circular_inheritance.ets @@ -26,5 +26,6 @@ class cls implements I1 { foo2():void {} } -/* @@? 16:11 Error TypeError: Cyclic inheritance involving I1. */ + +/* @@? 16:11 Error Semantic error ESE0310: Cyclic inheritance involving I1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets b/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets index d6f8d2deb534611f9ac63a263092579616287874..38cda332c9d3ec52bec19931b5297ece1873a195 100644 --- a/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets +++ b/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets @@ -30,5 +30,6 @@ class C extends A { } } -/* @@? 16:7 Error TypeError: Cyclic inheritance involving A. */ + +/* @@? 16:7 Error Semantic error ESE0310: Cyclic inheritance involving A. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/circular_inheritance_parameter.ets b/ets2panda/test/ast/compiler/ets/circular_inheritance_parameter.ets index a7bb4cc136be5cf3d8292fc2a3adf98291cbeb08..be26704c5cad46e1ddecb5210f579975bbee4343 100644 --- a/ets2panda/test/ast/compiler/ets/circular_inheritance_parameter.ets +++ b/ets2panda/test/ast/compiler/ets/circular_inheritance_parameter.ets @@ -17,5 +17,6 @@ class D{ f7(x: string, y: D.f7){} } -/* @@? 16:8 Error TypeError: Circular dependency detected for identifier: D */ -/* @@? 17:22 Error TypeError: 'f7' type does not exist. */ + +/* @@? 16:8 Error Semantic error ESE0308: Circular dependency detected for identifier: D */ +/* @@? 17:22 Error Semantic error ESE0070: 'f7' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/circular_unfold.ets b/ets2panda/test/ast/compiler/ets/circular_unfold.ets index 6fabd26be970ccdd8a3f6a791be482626d9d6c39..72481ce3d5a1f6059bf4362bf0b4d2b3a4d8781b 100644 --- a/ets2panda/test/ast/compiler/ets/circular_unfold.ets +++ b/ets2panda/test/ast/compiler/ets/circular_unfold.ets @@ -19,7 +19,8 @@ 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. */ + +/* @@? 17:11 Error Semantic error ESE0308: Circular dependency detected for identifier: a */ +/* @@? 17:15 Error Semantic error ESE0365: Variable 'a' is accessed before it's initialization. */ +/* @@? 18:11 Error Semantic error ESE0308: Circular dependency detected for identifier: b */ +/* @@? 18:15 Error Semantic error ESE0365: Variable 'b' is accessed before it's initialization. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/circular_variable_init.ets b/ets2panda/test/ast/compiler/ets/circular_variable_init.ets index 106ae6f38c818d601bdcd1f7bf051cdb7cf83397..3c9e49159c73623e3bc3cfe7de38901d2cc3c572 100644 --- a/ets2panda/test/ast/compiler/ets/circular_variable_init.ets +++ b/ets2panda/test/ast/compiler/ets/circular_variable_init.ets @@ -43,13 +43,14 @@ function main() { let maind = mainc; } -/* @@? 17:16 Warning Warning: The instance field initializer expression cannot use the this. */ -/* @@? 18:12 Error TypeError: Circular dependency detected for identifier: b */ -/* @@? 18:16 Warning Warning: The instance field initializer expression cannot use the this. */ -/* @@? 23:19 Error TypeError: Circular dependency detected for identifier: b */ -/* @@? 31:15 Error TypeError: Unresolved reference globalb */ -/* @@? 34:5 Error TypeError: Circular dependency detected for identifier: globald */ -/* @@? 37:7 Error TypeError: Circular dependency detected for identifier: constb */ -/* @@? 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 */ + +/* @@? 17:16 Warning Warning W0010: The instance field initializer expression cannot use the this. */ +/* @@? 18:12 Error Semantic error ESE0308: Circular dependency detected for identifier: b */ +/* @@? 18:16 Warning Warning W0010: The instance field initializer expression cannot use the this. */ +/* @@? 23:19 Error Semantic error ESE0308: Circular dependency detected for identifier: b */ +/* @@? 31:15 Error Semantic error ESE0143: Unresolved reference globalb */ +/* @@? 34:5 Error Semantic error ESE0308: Circular dependency detected for identifier: globald */ +/* @@? 37:7 Error Semantic error ESE0308: Circular dependency detected for identifier: constb */ +/* @@? 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets b/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets index 89afebb59c28b0d63991ab1418a38b63acca1d11..c2a4f658bc6c8f060e248e320b49c733ba7ece48 100644 --- a/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets @@ -29,25 +29,26 @@ 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: 'this' cannot be referenced from a static context */ -/* @@? 28:14 Error TypeError: Property 'x' does not exist on type 'ETSGLOBAL' */ -/* @@? 30:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 23:23 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 24:9 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 24:9 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 24:9 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 24:9 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:20 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 24:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 24:23 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 24:31 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 24:34 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 24:36 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 24:38 Error Semantic error ESE0143: Unresolved reference caches */ +/* @@? 25:21 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@? 25:21 Error Semantic error ESE0127: No matching construct signature for class_cyclic_constructor.A(...tuple) */ +/* @@? 25:30 Error Semantic error ESE0143: Unresolved reference tuple */ +/* @@? 26:31 Error Semantic error ESE0087: Property 'bar' does not exist on type 'A' */ +/* @@? 27:5 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 27:7 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 28:9 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 28:14 Error Semantic error ESE0087: Property 'x' does not exist on type 'ETSGLOBAL' */ +/* @@? 30:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/class_field_accessor_name_conflict.ets b/ets2panda/test/ast/compiler/ets/class_field_accessor_name_conflict.ets index 143c4fd61e4d30839729c326f29eee08bfb433cb..36e28d145cf1b10d2b8e6179a013b198a04e3188 100644 --- a/ets2panda/test/ast/compiler/ets/class_field_accessor_name_conflict.ets +++ b/ets2panda/test/ast/compiler/ets/class_field_accessor_name_conflict.ets @@ -28,4 +28,4 @@ get id(this : Process) : number /* @@ label */{ return this.id; } -/* @@@ label Error TypeError: The extension accessor or extension function 'id' has the same name with field of class Process */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0079: The extension accessor or extension function 'id' has the same name with field of class Process */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/class_inheritance.ets b/ets2panda/test/ast/compiler/ets/class_inheritance.ets index 78e049e51ac5a9b226a4d896a97546d51ebd127e..f7b518318a3e79d1d9e4aca37423046e05bb1271 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/class_literal.ets b/ets2panda/test/ast/compiler/ets/class_literal.ets index 6162acc11169e5bab28a982fc4ae3a2e44a22601..25bb42e5d8866a877b7f50c62936b5b1973d5e22 100644 --- a/ets2panda/test/ast/compiler/ets/class_literal.ets +++ b/ets2panda/test/ast/compiler/ets/class_literal.ets @@ -22,4 +22,5 @@ let rectangle = class { width: number; } -/* @@? 26:1 Error TypeError: Class literal is not yet supported. */ + +/* @@? 26:82 Error Semantic error ESE0020: Class literal is not yet supported. */ \ No newline at end of file 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..86f6c62add87650ab10d56fca9869c3edb3a0cc1 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. */ \ No newline at end of file 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 2926286b817fccaa6a16213dcdb5454341873c23..e09472b5a34932314f9e4878fee35d798c11441a 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,15 @@ 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: Namespace 'buffer' cannot be used as a type. */ + +/* @@? 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 ESE0158: Namespace 'buffer' cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets b/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets index 4f419d33d4438b4b395457fc8365a9d31fd174ef..24935e94d4150fe24b9920fe4b816236978e6a70 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets b/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets index d852f652917f4b46fc2edd7d7a331cfb3038dd20..e50588c6ad5d5ab4e59e99566946b04b47ef6b54 100644 --- a/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets +++ b/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets @@ -16,9 +16,10 @@ // (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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets index ece14278ce1e0ea0ce2eb5cc1836602e5dc6e2fe..ce1545d230f6794f7d8140d48d2c8ba220d0e7f4 100644 --- a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets +++ b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets @@ -16,4 +16,5 @@ const constExpr = "123" let variable: constExpr = 42 -/* @@? 17:15 Error TypeError: Cannot find type 'constExpr'. */ + +/* @@? 17:15 Error Semantic error ESE0371: Cannot find type 'constExpr'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets index 60cb72873ec79bf0374872f317c91ea67f254a95..b3746cf0a86ecf4f6c4560a8ebb32071d3fca783 100644 --- a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets +++ b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets @@ -28,6 +28,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets index ba90d65351785c6f913951fcc97bb6ccce6730b7..e605f7e719d8b0c55d502f3450e4b03498d9741a 100644 --- a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets +++ b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets @@ -20,5 +20,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence01.ets b/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence01.ets index 7317988cd7d970e2846351140271eb6c7c544d00..ea944e6ec92de5a4d01d363ca7f299dddbc8ce82 100644 --- a/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence01.ets +++ b/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence01.ets @@ -15,4 +15,5 @@ const a = a + 1; -/* @@? 16:7 Error TypeError: Circular dependency detected for identifier: a */ + +/* @@? 16:7 Error Semantic error ESE0308: Circular dependency detected for identifier: a */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence02.ets b/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence02.ets index 0d9c74857504829127a03ba2d85370ab7158fd8e..7fcb878ab4bb1d5f9c779c008dce4cd5875b7ef7 100644 --- a/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence02.ets +++ b/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence02.ets @@ -20,4 +20,5 @@ const e = f + 1; const f = g + 1; const g = b + 1; -/* @@? 17:7 Error TypeError: Circular dependency detected for identifier: c */ + +/* @@? 17:7 Error Semantic error ESE0308: Circular dependency detected for identifier: c */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets b/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets index 7c11d04fe1e14a98d804b7adc948ac2816871b47..9b47df01a287e0309f29df630eb6f120516c30c6 100644 --- a/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets +++ b/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets @@ -22,9 +22,10 @@ const a = +(flag) const b = -(flag) const c = ~(flag) -/* @@? 21:11 Error TypeError: Wrong operand type for unary expression */ -/* @@? 21:12 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ -/* @@? 22:11 Error TypeError: Wrong operand type for unary expression */ -/* @@? 22:12 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ -/* @@? 23:11 Error TypeError: Wrong operand type for unary expression */ -/* @@? 23:12 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ + +/* @@? 21:11 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 21:12 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ +/* @@? 22:11 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 22:12 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ +/* @@? 23:11 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 23:12 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/constantExpressionLowering_2.ets b/ets2panda/test/ast/compiler/ets/constantExpressionLowering_2.ets index 3a2315963a7e7b8eb1af5ce0349a3e4be1699e15..5c9ee43ff8abe3387c663dacf3b9229348a782ce 100644 --- a/ets2panda/test/ast/compiler/ets/constantExpressionLowering_2.ets +++ b/ets2panda/test/ast/compiler/ets/constantExpressionLowering_2.ets @@ -17,5 +17,6 @@ enum CCCCCCCCC {} CCCCCCCCC[foo()].foo(); -/* @@? 18:11 Error TypeError: Unresolved reference foo */ -/* @@? 18:18 Error TypeError: Property 'foo' does not exist on type 'String' */ + +/* @@? 18:11 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 18:18 Error Semantic error ESE0087: Property 'foo' does not exist on type 'String' */ \ No newline at end of file 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..473a0d26c10048dce54b7b7b9d58319157072aed 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,6 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: Unresolved reference MathPartialSums */ -/* @@@ label Error TypeError: Only constant expression allowed for element access on tuples. */ + +/* @@@ label Error Semantic error ESE0143: Unresolved reference MathPartialSums */ +/* @@@ label Error Semantic error ESE0199: Only constant expression allowed for element access on tuples. */ \ No newline at end of file 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..78a86e7df16f428ed4892832d51c2ac0f722aed5 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. */ \ No newline at end of file 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..28358f6bc67037111e7d813df61dd5371b58c032 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,5 @@ 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' */ \ No newline at end of file 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..e3e7210394075051da78cb150696e7aa17900aaa 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,6 @@ 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' */ \ No newline at end of file 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..9732e49d04c54637f1ca8836e81d395136769f5d 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,10 @@ 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 */ \ No newline at end of file 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..7d3050e5c409abafa4c975d4b34c0d59d888c2da 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,5 @@ function main(): void { uglifruit(); */ } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ + +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/conversions/implicit/float_literal_implicit_conversion.ets b/ets2panda/test/ast/compiler/ets/conversions/implicit/float_literal_implicit_conversion.ets index 8b5e3b529a48f9bf65736c6a6fc6ec8053461d24..de9f4a5a42fdb48da30fe6b0fbf366c1ed3216e2 100644 --- a/ets2panda/test/ast/compiler/ets/conversions/implicit/float_literal_implicit_conversion.ets +++ b/ets2panda/test/ast/compiler/ets/conversions/implicit/float_literal_implicit_conversion.ets @@ -38,9 +38,9 @@ d = 5 d = 5.0 d = 5.f -/* @@@ label_i1 Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ -/* @@@ label_i2 Error TypeError: Type 'Float' cannot be assigned to type 'Int' */ -/* @@@ label_i3 Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ -/* @@@ label_i4 Error TypeError: Type 'Float' cannot be assigned to type 'Int' */ -/* @@@ label_i5 Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ -/* @@@ label_i6 Error TypeError: Type 'Float' cannot be assigned to type 'Int' */ \ No newline at end of file +/* @@@ label_i1 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ +/* @@@ label_i2 Error Semantic error ESE0318: Type 'Float' cannot be assigned to type 'Int' */ +/* @@@ label_i3 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ +/* @@@ label_i4 Error Semantic error ESE0318: Type 'Float' cannot be assigned to type 'Int' */ +/* @@@ label_i5 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ +/* @@@ label_i6 Error Semantic error ESE0318: Type 'Float' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/debugger-statement.ets b/ets2panda/test/ast/compiler/ets/debugger-statement.ets index 0f2f52cc71b62cdcaa15bba42ed472a4e2832de4..1f8b595334c33046a7938511d4e1b328962eba65 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! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declaration_merging.ets b/ets2panda/test/ast/compiler/ets/declaration_merging.ets index b553f41948fd1da83fef303b788c009d1f0cf3c9..ab1a425c6b0f0db31eb508bbf54752bdf2b7636a 100644 --- a/ets2panda/test/ast/compiler/ets/declaration_merging.ets +++ b/ets2panda/test/ast/compiler/ets/declaration_merging.ets @@ -27,6 +27,6 @@ } } -/* @@? 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! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declareNameSpace.ets b/ets2panda/test/ast/compiler/ets/declareNameSpace.ets index a077650b6af3a6402d7d04709cbcfa9f1b99ff5f..470234ae28ffb4d51bfbcb4cffb47315abae4fb4 100644 --- a/ets2panda/test/ast/compiler/ets/declareNameSpace.ets +++ b/ets2panda/test/ast/compiler/ets/declareNameSpace.ets @@ -24,5 +24,6 @@ declare namespace A { } -/* @@@ label Error TypeError: Variable 'c' has already been declared. */ + +/* @@@ label Error Semantic error ESE0351: Variable 'c' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets index 3ba2dfbb74eb2fb78e457e85c01bc1a5dfee7b5d..7aaa8e992ffa1a717bbd7f4a001c5155e589ae5d 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets @@ -15,7 +15,8 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets index ba03a78da1d25d035ed1071fe7ca7f1039c75d69..71e1268d81ded92f3ce5e494befd34930ca29acf 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets @@ -21,4 +21,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets index ee618b7cbe8c02d83036de67d9bd6db5e0b1d711..36d80a0267c13a4435d8c2821ac26ef6c81221f8 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets @@ -22,5 +22,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets index 76fdc63e58a654c1e154b920bab032e16ce05c35..bd3982848bd1e5af3da0624162b4b9f053318c5a 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets @@ -21,5 +21,6 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets index 0b54a5df0f2ab504e466b38470ddcd6e2707e4ae..e2811395d94740379d3900c0b94a31f585c63402 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets @@ -16,5 +16,6 @@ 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' */ \ No newline at end of file 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..c46453bcf906fc192fc7e35d9b170b42efc8eb91 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,5 @@ 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. */ \ No newline at end of file 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..20633dee9b44d36a044953e60c2f96353804f190 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,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/default_param_declare.ets b/ets2panda/test/ast/compiler/ets/default_param_declare.ets index 491faa15e8776f434ca3093296d3895001dfa6aa..0617a38e7aa92aead12f6c6a0bee637ce80d9180 100644 --- a/ets2panda/test/ast/compiler/ets/default_param_declare.ets +++ b/ets2panda/test/ast/compiler/ets/default_param_declare.ets @@ -17,5 +17,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/default_param_lambda.ets b/ets2panda/test/ast/compiler/ets/default_param_lambda.ets index 278627b0f1077bcf94f0ea8694140a942f843ac9..79cb56bbf6b392fa26f6a1d0967aa2f80348a84c 100644 --- a/ets2panda/test/ast/compiler/ets/default_param_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/default_param_lambda.ets @@ -17,4 +17,5 @@ function main() { let f : (a: string) => void = (/* @@ label */a = "aaa") => {} } -/* @@@ label Error SyntaxError: Parameter declaration should have an explicit type annotation. */ + +/* @@@ label Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/default_test/export_default.ets b/ets2panda/test/ast/compiler/ets/default_test/export_default.ets index 6bc32fae02eba6627bd2f4189efe545c620c0f2d..96cbaba8f8f46aad35e0fa260a4d0b23249a79d2 100644 --- a/ets2panda/test/ast/compiler/ets/default_test/export_default.ets +++ b/ets2panda/test/ast/compiler/ets/default_test/export_default.ets @@ -18,9 +18,10 @@ export { val as default }; export { default } from '.'; -/* @@? 19:8 Error TypeError: Only one default export is allowed in a module */ -/* @@? 19:18 Error SyntaxError: Unexpected token, expected 'as'. */ -/* @@? 19:18 Error SyntaxError: Unexpected token '}'. */ -/* @@? 19:20 Error SyntaxError: Cannot find name 'from' to export. */ -/* @@? 19:20 Error SyntaxError: Cannot find name 'gensym%%_anonymous_const' to export. */ -/* @@? 19:25 Error SyntaxError: Unexpected token, expected ',' or '}'. */ + +/* @@? 19:8 Error Semantic error ESE0374: Only one default export is allowed in a module */ +/* @@? 19:18 Error Syntax error ESY0095: Unexpected token, expected 'as'. */ +/* @@? 19:18 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 19:20 Error Syntax error ESY0279: Cannot find name 'from' to export. */ +/* @@? 19:20 Error Syntax error ESY0279: Cannot find name 'gensym%%_anonymous_const' to export. */ +/* @@? 19:25 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ \ No newline at end of file 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..62167942a6ae626e4e5b47327478225c1ad2d881 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,13 @@ 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:9 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:16 Error Semantic error ESE0398: Default type of type parameter has circular dependency. */ +/* @@? 17:22 Error Semantic error ESE0070: 'f' type does not exist. */ +/* @@? 17:23 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 17:24 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 17:25 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:25 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:25 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token '>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/deleteOperator_n.ets b/ets2panda/test/ast/compiler/ets/deleteOperator_n.ets index b426389b4b18e33ae46f4ff9f69ac2657cad1b2b..38679a792e5e34815ca6c5f550b8ab3c3ce5f5c5 100644 --- a/ets2panda/test/ast/compiler/ets/deleteOperator_n.ets +++ b/ets2panda/test/ast/compiler/ets/deleteOperator_n.ets @@ -20,5 +20,5 @@ class Point { let p = new Point() delete p.y -/* @@? 21:1 Error TypeError: Types cannot be modified at runtime with 'delete'. */ -/* @@? 21:8 Error SyntaxError: Unexpected token 'p'. */ \ No newline at end of file +/* @@? 21:1 Error Semantic error ESE55815: Types cannot be modified at runtime with 'delete'. */ +/* @@? 21:8 Error Syntax error ESY0227: Unexpected token 'p'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/division-by-zero.ets b/ets2panda/test/ast/compiler/ets/division-by-zero.ets index 85b5646d7379a7b59dfce0302410fec31e18c792..e237d4876a87a3c35e6e1de5ee41cacccb9ba97d 100644 --- a/ets2panda/test/ast/compiler/ets/division-by-zero.ets +++ b/ets2panda/test/ast/compiler/ets/division-by-zero.ets @@ -20,7 +20,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/dynamic-field-declaration.ets b/ets2panda/test/ast/compiler/ets/dynamic-field-declaration.ets index ad2a27ac6c01065f51dfdc606850ad286339e0cc..e5aa950b9500972feca28748aaae39efd5236cf0 100644 --- a/ets2panda/test/ast/compiler/ets/dynamic-field-declaration.ets +++ b/ets2panda/test/ast/compiler/ets/dynamic-field-declaration.ets @@ -20,4 +20,12 @@ class Point { let p: Point = {x: 1, y: 2} console.log(p["x"]) -/* @@? 21:13 Error TypeError: Object type doesn't have proper index access method. */ \ No newline at end of file +/* @@? 21:1 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` */ +/* @@? 21:1 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` */ +/* @@? 21:1 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` */ +/* @@? 21:1 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` */ +/* @@? 21:1 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` */ +/* @@? 21:1 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` */ +/* @@? 21:1 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` */ +/* @@? 21:1 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` */ +/* @@? 21:13 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/dynamic_optional_decl.ets b/ets2panda/test/ast/compiler/ets/dynamic_optional_decl.ets new file mode 100644 index 0000000000000000000000000000000000000000..9812ca0a2ae045e4e04437c2ef15d612221481f0 --- /dev/null +++ b/ets2panda/test/ast/compiler/ets/dynamic_optional_decl.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024-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. + */ + +import { optional_foo, A } from "dynamic_import_tests/modules/module" + +function main() { + optional_foo(); + optional_foo(undefined); + optional_foo(new A(10.0, "abc") as A|undefined); + (new A(10.0, "abc")).optional_foo(); + (new A(10.0, "abc")).optional_foo(123.); +} +/* + * Copyright (c) 2024-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. + */ + +import { optional_foo, A } from "dynamic_import_tests/modules/module" + +function main() { + optional_foo(); + optional_foo(undefined); + optional_foo(new A(10.0, "abc") as A|undefined); + (new A(10.0, "abc")).optional_foo(); + (new A(10.0, "abc")).optional_foo(123.); +} +/* @@? 40: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. */ +/* @@? 42:1 Error Semantic error ESE0130: Function main is already declared. */ +/* @@? 42:10 Error Semantic error ESE0373: Main overload is not enabled */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets b/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets index 09828e793277d00ece590dd6d438a2dd971ec0b9..f2e375eecb7e392d17552b1630455d10e58a8374 100644 --- a/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets +++ b/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets @@ -21,6 +21,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/empty_array_expression.ets b/ets2panda/test/ast/compiler/ets/empty_array_expression.ets index ea4da1ee58457a7dcc19febe4c36a1db766ecc03..27c88d7ffc5c24624d0be2724cb5ec159f0cc81f 100644 --- a/ets2panda/test/ast/compiler/ets/empty_array_expression.ets +++ b/ets2panda/test/ast/compiler/ets/empty_array_expression.ets @@ -30,11 +30,12 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets b/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets index 80163182816856e82a7c3e58a536d9d9e106ee05..09278a393f75dfaf7130da66a7e5f298ed697e2c 100644 --- a/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets +++ b/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets @@ -16,4 +16,5 @@ let tuple: [string,number] = /* @@ label */[] -/* @@@ label Error TypeError: Initializer has 0 elements, but tuple requires 2 */ + +/* @@@ label Error Semantic error ESE0231: Initializer has 0 elements, but tuple requires 2 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/enum-double-to-int.ets b/ets2panda/test/ast/compiler/ets/enum-double-to-int.ets index 98e3d2373327f7860623ba08579b09dfc3bfe3dd..11028d992d307d55052765c39c6dda52c83363e3 100644 --- a/ets2panda/test/ast/compiler/ets/enum-double-to-int.ets +++ b/ets2panda/test/ast/compiler/ets/enum-double-to-int.ets @@ -24,5 +24,5 @@ function main(): void { let c2: int = /* @@ label2 */Color.Red + Color.Green; } -/* @@@ label1 Error TypeError: Type 'Color' cannot be assigned to type 'Int' */ -/* @@@ label2 Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0318: Type 'Color' cannot be assigned to type 'Int' */ +/* @@@ label2 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets b/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets index 456bb88409431a29e385cc77ecf07b9cfda0806f..345c66d5b0b4a3b2654c69c42898ab367adacfb3 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. */ \ No newline at end of file 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..5f2fd81d53a3c1475397a07bd404d923effbba59 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,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/enumConversions.ets b/ets2panda/test/ast/compiler/ets/enumConversions.ets index 353ca83e8fccc42181af47b2b18dd800dfbe3530..cedec5008390791737d1ad18960006375a71cd80 100644 --- a/ets2panda/test/ast/compiler/ets/enumConversions.ets +++ b/ets2panda/test/ast/compiler/ets/enumConversions.ets @@ -31,5 +31,6 @@ 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. */ \ No newline at end of file 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..5e67ba4c64cf23c6fc8ce7c2f9b95c8039df76fb 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 */ \ No newline at end of file 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..157370d45213d3968cc1997ec178dfad9cba73db 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,16 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/enum_not_as_obj.ets b/ets2panda/test/ast/compiler/ets/enum_not_as_obj.ets index ed77ff5a5ddb70013dc9bce37be2b69242c7129b..9ada72e1c83db63cc63889f99bd8435f8aae69a4 100644 --- a/ets2panda/test/ast/compiler/ets/enum_not_as_obj.ets +++ b/ets2panda/test/ast/compiler/ets/enum_not_as_obj.ets @@ -16,6 +16,6 @@ enum Colorset {Red, Green,Blue}; const result = JSON.stringify(Colorset); console.log("Hello",result); -/* @@? 15:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:16 Error TypeError: No matching call signature for stringify(Colorset) */ -/* @@? 16:31 Error TypeError: Class or interface or enum 'Colorset' cannot be used as object */ \ No newline at end of file +/* @@? 15:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:16 Error Semantic error ESE0127: No matching call signature for stringify(Colorset) */ +/* @@? 16:31 Error Semantic error ESE0294: Class or interface or enum 'Colorset' cannot be used as object */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/enum_not_constant_var.ets b/ets2panda/test/ast/compiler/ets/enum_not_constant_var.ets index 4e8de04927902450c06edab1068f8b4189b4f64b..17a811ff93a8169302f7fb3fdb1afacf7bb0bd9d 100644 --- a/ets2panda/test/ast/compiler/ets/enum_not_constant_var.ets +++ b/ets2panda/test/ast/compiler/ets/enum_not_constant_var.ets @@ -20,5 +20,5 @@ enum Color { Red = /* @@ label */b, } -/* @@@ label Error SyntaxError: Only constant expression is expected in the field */ -/* @@@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets index 724f1b214d7440fb7cb51be7ce9d6102d2e0641b..0dc9535f8af77cd4ce268694963a51ec193e52de 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets @@ -20,4 +20,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets index f187202a424ce9c528d4b2d1bc2843427593efcd..fe2f8ae8417191c1d3390a4491da5850c7ed4ba8 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets @@ -20,4 +20,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets index 59b78a19fdcfaa2fd6b4d433c891e3c1e4861871..c95990207509cae6805006a14ff559db2d146840 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets @@ -20,4 +20,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString3.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString3.ets index b6dcf3b0b77fb8c3ae32e0cd2eaeecf0709f5bc2..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 381f31b80c7f3052565175022fe16b3b8617c720..5e8f5384619a7bed423f6907740b677cb17b1bbf 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 80d63188d69802e6a5570460e812f4427be952e8..7de1eb1b4821ea1aecd6cec3c10a2230598ea33b 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 '((p1: A) => A|null)' cannot be assigned to type '(((p1: A) => A|null))|null' */ +/* @@@ label Error Semantic error ESE0318: Type '(p1: A) => A|null' cannot be assigned to type '((p1: A) => A|null)|null' */ diff --git a/ets2panda/test/ast/compiler/ets/export_type_class_multiple_times.ets b/ets2panda/test/ast/compiler/ets/export_type_class_multiple_times.ets index 4a2147118c7545d83f849190cc7f84a2319c0ff6..fb480485b344798681eaa69a1d3120adf6b2d9eb 100644 --- a/ets2panda/test/ast/compiler/ets/export_type_class_multiple_times.ets +++ b/ets2panda/test/ast/compiler/ets/export_type_class_multiple_times.ets @@ -19,4 +19,5 @@ export type {A} export type MyA = A export type {MyA} -/* @@? 16:1 Warning Warning: Duplicated export aliases for 'MyA'. */ + +/* @@? 20:13 Warning Warning W0000: Duplicated export aliases for 'MyA'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/export_type_interface_multiple_times.ets b/ets2panda/test/ast/compiler/ets/export_type_interface_multiple_times.ets index c714b60e24ca21ee91891a307510645039df3154..7a44df5084964f17f98ac3e69506c049b6e66bc9 100644 --- a/ets2panda/test/ast/compiler/ets/export_type_interface_multiple_times.ets +++ b/ets2panda/test/ast/compiler/ets/export_type_interface_multiple_times.ets @@ -18,3 +18,4 @@ interface I {} export type {I} export type MyI = I export type {MyI} +/* @@? 20:13 Warning Warning W0000: Duplicated export aliases for 'MyI'. */ \ No newline at end of file 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/expression/this_expression/undefined_class_for_this_1.ets b/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_1.ets index 4b1fd444fd52fa35d0072b01985e404dc75830c0..fe002d649578038bdd7136555ea8dac17930cc45 100644 --- a/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_1.ets +++ b/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_1.ets @@ -23,9 +23,7 @@ let fecthResult = await checkAsyncDelay(async (): Promise< AA.B > => { return await this.photoAccessHelper.getAssets(options); }, 'getPhotoAssetByUri --> getAssets'); -/* @@? 19:25 Error TypeError: Unresolved reference checkAsyncDelay */ -/* @@? 19:25 Error TypeError: 'await' expressions require Promise object as argument. */ -/* @@? 20:10 Error TypeError: Bad operand type, the type of the operand must be boolean type. */ -/* @@? 21:16 Error TypeError: Type 'undefined' is not compatible with the enclosing method's return type 'Promise>' */ -/* @@? 23:18 Error TypeError: 'await' expressions require Promise object as argument. */ -/* @@? 1:1 Error TypeError: Cannot reference 'this' in this context. */ + +/* @@? 19:19 Error Semantic error ESE0303: Type '*ERROR_TYPE*' can not be awaited, it is not a Promise. */ +/* @@? 19:25 Error Semantic error ESE0143: Unresolved reference checkAsyncDelay */ +/* @@? 19:25 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_2.ets b/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_2.ets index 388f3e55c980d29f40ca316cf9ed6241617aa12e..0c6a017636c2bf38dab4968697f6741cb504db65 100644 --- a/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_2.ets +++ b/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_2.ets @@ -16,5 +16,5 @@ let a = this.photo }) - /* @@? 15:11 Error TypeError: Unresolved reference ca */ - /* @@? 1:1 Error TypeError: Cannot reference 'this' in this context. */ \ No newline at end of file + /* @@? 15:11 Error Semantic error ESE0143: Unresolved reference ca */ +/* @@? 15:11 Error Semantic error ESE0289: This expression is not callable. */ \ 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..f7f087306aa14ebb0cfcafba4b9fb73e890e636e 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,7 @@ 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. */ \ No newline at end of file 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..cc0838994d5b8c239b1a85dff5ca972345346340 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,5 @@ 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. */ \ No newline at end of file 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..cc0838994d5b8c239b1a85dff5ca972345346340 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,5 @@ 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. */ \ No newline at end of file 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..5473c575c01c10257ff557bae42ae838298de217 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,6 @@ 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 */ \ No newline at end of file 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..b92a1075827a9f4f76575dd8200d56c56e5c4fca 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,8 @@ 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 */ \ No newline at end of file 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..ff5b51fa6ed9b895bfc8b8aff6c6c321d5f24a55 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,6 @@ 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 */ \ No newline at end of file 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..6ff731a39daf1dbbd1c163c8b2534d2e5e646875 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,6 @@ 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 */ \ No newline at end of file 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..9d6d615da9b7ad3dea2f1a31c095438b8b8822ee 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,6 @@ 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 */ \ No newline at end of file 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..75be6c2e4dc229442828161018231ab96e94b8e1 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,6 @@ 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 */ \ No newline at end of file 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..3712da31e479f6e6f721be329c37eeff1959c765 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,6 @@ 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 */ \ No newline at end of file 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..9b470577e42c8b87bd52160dbdc54421c6ed773e 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,6 @@ 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. */ \ No newline at end of file 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..633daef5b09af62ec3f3665dcb5e43b94703f864 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,5 @@ 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 */ \ No newline at end of file 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..590c589db9a167d588d56d634e816fa394eae07b 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 */ \ No newline at end of file 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..a1dcee3b8950e291f9e4e79036a140f9fa774787 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,8 @@ 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. */ \ No newline at end of file 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..0047d6f762e127f38e2a8ac53f45ad1fefc0dfaf 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,8 @@ 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. */ \ No newline at end of file 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..cf545ae60555c1e171ec0d1f0028f26732ef2b01 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,5 @@ 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. */ \ No newline at end of file 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..2f5bda68b0b90ac3e9cea8bef530d49230a7ec44 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,7 @@ 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. */ \ No newline at end of file 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..687dff1148bc34144a3fcae49f236acce15424ea 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,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsFunctionCall.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsFunctionCall.ets index fb2573f0f8a4032f01582a4e1b5e7cb4bab6ec2d..ba14e22c2a5f0fef2ea5bf6be4c5ffa8b7f37719 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsFunctionCall.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsFunctionCall.ets @@ -33,4 +33,5 @@ function main() { /* @@ label */name(b); } -/* @@@ label Error TypeError: Extension accessor can't be used as a method call or function call. */ + +/* @@@ label Error Semantic error ESE0059: Extension accessor can't be used as a method call or function call. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsMethodCall.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsMethodCall.ets index 59cbcd7495c042443fa295c234f514b98026d9e7..6b67befca660bf414c0e40f8f5af582a6143dfd4 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsMethodCall.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsMethodCall.ets @@ -33,4 +33,5 @@ function main() { /* @@ label */b.name(); } -/* @@@ label Error TypeError: Type 'String' has no call signatures. */ + +/* @@@ label Error Semantic error ESE0059: Extension accessor can't be used as a method call or function call. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsFunctionCall.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsFunctionCall.ets index 77a1a77494e48f18f210be4680ee25b5019e7bd4..22a4cda2bf5b6ebf5480526b4597fbe086e3a4f6 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsFunctionCall.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsFunctionCall.ets @@ -33,4 +33,5 @@ function main() { /* @@ label */name(b, "test"); } -/* @@@ label Error TypeError: Extension accessor can't be used as a method call or function call. */ + +/* @@@ label Error Semantic error ESE0059: Extension accessor can't be used as a method call or function call. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsMethodCall.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsMethodCall.ets index ab2f0df3cbddc494876c45f2aebe8432f6f3d6ed..c0e1a55047ef0897f10e32f3fc201f17861b5f85 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsMethodCall.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsMethodCall.ets @@ -33,4 +33,5 @@ function main() { /* @@ label */b.name("test"); } -/* @@@ label Error TypeError: Type 'String' has no call signatures. */ + +/* @@@ label Error Semantic error ESE0059: Extension accessor can't be used as a method call or function call. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_crash.ets b/ets2panda/test/ast/compiler/ets/extension_crash.ets index 4cea736a025dceffd04c645e0d6f52efe5ac0157..e373c63914bab9663d0c9f6e34452bfb4797c8c2 100644 --- a/ets2panda/test/ast/compiler/ets/extension_crash.ets +++ b/ets2panda/test/ast/compiler/ets/extension_crash.ets @@ -20,9 +20,10 @@ 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:8 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:13 Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ +/* @@? 17:13 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:13 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:18 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_class_lambda_member.ets b/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_class_lambda_member.ets index 1b1404916bb6b4cb2d3cf0efdd11b001a5fdc74c..a19a52d4705b52baf0b999a7d5b43dd61f918661 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_class_lambda_member.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_class_lambda_member.ets @@ -26,4 +26,5 @@ let a = new A; a.foo = foo; console.log(a.foo()) -/* @@@ label Error TypeError: The extension accessor or extension function 'foo' has the same name with field of class A */ + +/* @@@ label Error Semantic error ESE0079: The extension accessor or extension function 'foo' has the same name with field of class A */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_interface_lambda_member.ets b/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_interface_lambda_member.ets index 3325e48e65ecf3ea48477067c5c953d43cd9b51b..37e1d2cef415b724cc0985cd1fdb336e8c2206c0 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_interface_lambda_member.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_interface_lambda_member.ets @@ -28,5 +28,5 @@ let a:A = { }; console.log(a.foo()) -/* @@@ label Error TypeError: The extension function 'foo' has the same name with public method in class A */ -/* @@@ label1 Error TypeError: Type '((p1: A) => String)' is not compatible with type '(() => String)' at property 'foo' */ +/* @@@ label Error Semantic error ESE0081: The extension function 'foo' has the same name with public method in class A */ +/* @@@ label1 Error Semantic error ESE0319: Type '(p1: A) => String' is not compatible with type '() => String' at property 'foo' */ 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..0a9685f3f638e9bb2b3ddfc8a4e91cb97c4e1e20 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,6 @@ 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 */ \ No newline at end of file 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..f673fc9d083577cf7f6464cc89895f1493cce469 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,5 @@ 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. */ \ No newline at end of file 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..5f86c867f99a01a5e1de77200ff22be5a6b9d15c 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,6 @@ 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 */ \ No newline at end of file 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..542a9ea5f96c58279eb8c463a72653ae9fc23761 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,13 @@ 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' */ \ No newline at end of file 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..6f100a970c58ffaa91f3f205598f586f7b48293c 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,13 @@ 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` */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for name(Int) */ \ No newline at end of file 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..084be609f14970879d643d37b51add92f246c80d 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,5 @@ 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. */ \ No newline at end of file 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..61bb7840bbf880e9defc359212582869ebd7d053 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,6 @@ 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. */ +/* @@@ label Error Semantic error ESE0371: Cannot find type 'Fruit'. */ \ No newline at end of file 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..ef142295a3fab4906a6834e2baf17139acd3f0ad 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,7 @@ 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) */ \ No newline at end of file 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..d09d42bb4bd6347d2e711d497745c8fbfff2266f 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,5 @@ enum Fruit { size = 4 }; return 1; } -/* @@@ label Error TypeError: Extension function can only defined for class, interface or array. */ + +/* @@@ label Error Semantic error ESE0082: Extension function can only defined for class, interface or array. */ \ No newline at end of file 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..9f30ff57a91f092fb518b507f32445ff929646cd 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,5 @@ class Fruit {} function price(this/* @@label */) {} -/* @@@ label Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ + +/* @@@ label Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ \ No newline at end of file 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..c40bfc8d69f11a5458b2d9b9e768a866faf46a28 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,5 @@ class Fruit {} function price(a: number, this: Fruit/* @@label */) {} -/* @@@ label Error SyntaxError: Function Parameter 'this' must be the first. */ + +/* @@@ label Error Syntax error ESY0158: Function Parameter 'this' must be the first. */ \ No newline at end of file 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 55fa226621d8229bbeb85bb5294b7f6ad54b16d1..ef022b8925260f36b72d4aa80e8415bcd84844d9 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:54 Error TypeError: The extension function 'valueOf' has the same name with public method in class Double */ +/* @@? 16:54 Error Semantic error ESE0081: The extension function 'valueOf' has the same name with public method in 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..56d26d5c98b0a547a125adb68281ec820ad4d284 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,5 @@ 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' */ \ No newline at end of file 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..ca1fa4702cc56aedd4f1b89e94e1eaa3c6d15918 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,6 @@ 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' */ + +/* @@@ 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. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'Array' */ \ No newline at end of file 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..753e5a3b9397a369a8dacb7386dae4a9c3854416 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,6 @@ 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' */ + +/* @@@ 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. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'B|A' */ \ No newline at end of file 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..cb1e1310a08dd6ef70b20f6060177cba4e31c7a5 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,7 @@ 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' */ + +/* @@@ 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. */ +/* @@@ label 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' */ \ No newline at end of file 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..10d96636bdf462d0c91f6b333eaf823752ffeae0 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,6 @@ 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. */ + +/* @@@ 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. */ +/* @@@ label Error Semantic error ESE0281: A 'this' cannot be used as a part of union type. */ \ No newline at end of file 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..b282fad5117f546873913f1df17dc5da6e2b5e49 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,7 @@ 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' */ + +/* @@@ 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. */ +/* @@@ label 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' */ \ No newline at end of file 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..531c2ac80b29b615d177217cb5e3b1ae76bc1159 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,5 @@ 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 */ \ No newline at end of file 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..6466bc7d803a146c988c8a7cecf8151990dcc628 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,6 @@ 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 */ + +/* @@@ label1 Error Semantic error ESE0081: The extension function 'sweetness1' has the same name with public method in class B */ +/* @@@ label2 Error Semantic error ESE0081: The extension function 'price' has the same name with public method in class B */ \ No newline at end of file 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..0a449a409efc8661fba7f2608a9d4d284d9fb636 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,5 @@ 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. */ \ No newline at end of file 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..900732fff19fc2a356741eed1468718930365c76 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,5 @@ 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' */ \ No newline at end of file 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..90fde98677167338fd5947766ca5adddd0745389 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,5 @@ class Banana { } -/* @@@ label Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ + +/* @@@ label Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ \ No newline at end of file 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 c816d682626151701aeac2501698df44ec97e12b..dee6894f354502dfd35eaf30944d1e3de3afca09 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets @@ -42,9 +42,10 @@ 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 foo("abc") */ -/* @@@ 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 foo("abc") */ +/* @@@ 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) */ \ No newline at end of file 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..06e946c93ef4e9167890a2eb730534a958b446ba 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,7 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets b/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets index 7e8ca5089a1f6d1ff8b825c7f5fd432b68120dad..8785fa2a6b1a37b452c31656efc7314739cec60b 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets @@ -35,5 +35,6 @@ 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) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/constructor.ets b/ets2panda/test/ast/compiler/ets/first_match/constructor.ets index db1517374ca74696a0a2f24ee0220c9095ff0a55..4387d3de32e792c672ea4dc69cc55a5dc3919503 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/constructor.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/constructor.ets @@ -46,7 +46,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/function_same_name.ets b/ets2panda/test/ast/compiler/ets/first_match/function_same_name.ets index a5face17f5371fa11faa01e0cd196a3f7e2095c3..18d68f0cf3f942d62e0c466ea5662a57b02fdbc2 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/function_same_name.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/function_same_name.ets @@ -23,5 +23,6 @@ function foo(a:number){} function foo2(a:string){} overload /* @@ label2 */foo{foo2} -/* @@@ label Error TypeError: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ -/* @@@ label2 Error TypeError: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ + +/* @@@ label Error Semantic error ESE0397: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ +/* @@@ label2 Error Semantic error ESE0397: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ \ No newline at end of file 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..3046d11fdb503cb29fc595f227e621355ca862e1 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,16 @@ 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 '}'. */ \ No newline at end of file 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..27fe4dfbcce1209485492a15cb04910bb7ec36d6 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,14 @@ 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 ')'. */ \ No newline at end of file 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..3d66b2afa493f6d8ec41b126ce78f3c0fa379d33 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,8 @@ 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. */ \ No newline at end of file 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..f4653eddc86e797cc04907ef5454c8f8bd38162a 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,6 @@ 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. */ \ No newline at end of file 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..0b67a6a94a9bb2038c38d0f1a8f19e3757feed51 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,10 @@ 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:19 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:19 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 16:20 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 16:20 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 16:21 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:22 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file 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..36645167027d302c49d87148637d288225fd2cf9 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,11 @@ 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 ','. */ \ No newline at end of file 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..637f5e70c5e53e9fa7e02184a6e86b3317a147fd 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,11 @@ 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 ','. */ \ No newline at end of file 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..1fa2f7ffbb721a1b9a5913848b093501cef1f8b8 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,26 @@ 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 ESY0227: Unexpected token ','. */ +/* @@? 21:30 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:35 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:35 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 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 '}'. */ \ No newline at end of file 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..803835143129fa6f6a7928abfd517de5fe109fb6 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,6 @@ 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. */ \ No newline at end of file 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..7f9bf9bc9cf44aba0904f7bf0daee8f0a6521227 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,6 @@ 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). */ \ No newline at end of file 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..bab060e371bef4ea7b560b3af3fb70cab0333aa6 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,8 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/namespace.ets b/ets2panda/test/ast/compiler/ets/first_match/namespace.ets index 562555e43fd2f058a7686cb22849741a9e8b7c6c..8173daf68c5e16c8693273062c9ca580bcd590e3 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/namespace.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/namespace.ets @@ -61,12 +61,13 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/override.ets b/ets2panda/test/ast/compiler/ets/first_match/override.ets index 2bb8873b99c8a87f93037886e0143eae01387a02..f81218e80668880f07ab64888f3b97a38b01001e 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/override.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/override.ets @@ -36,4 +36,5 @@ 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 */ \ No newline at end of file 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..62d2914a128687603d071a364a46b4e0d96e13f5 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/for_of.ets b/ets2panda/test/ast/compiler/ets/for_of.ets index eba0bf72a01448f42152f13ac183fc770373a154..cb29d9aaaeb0e2659ddf2f3f71d0930a089b9cdd 100644 --- a/ets2panda/test/ast/compiler/ets/for_of.ets +++ b/ets2panda/test/ast/compiler/ets/for_of.ets @@ -15,4 +15,4 @@ for(let of; ;){ } -/* @@? for_of.ets:16:9 Error SyntaxError: Variable must be initialized or it's type must be declared. */ \ No newline at end of file +/* @@? 16:9 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ \ No newline at end of file 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..427bfe5d5b26e9bbe9ea3655758dee226f98657a 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,5 @@ 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. */ \ No newline at end of file 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..e1f614a290fb3552762780edc937fec20eb16c09 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,5 @@ 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. */ \ No newline at end of file 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..6867ae662df9667b491f605761676e32e1271a71 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,5 @@ 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. */ \ No newline at end of file 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..de6a761236136b084f658ccd99e143af27136364 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,5 @@ 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. */ \ No newline at end of file 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..28f2662b2d67a43582e00385c4e90a431dba2f65 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,8 @@ 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. */ \ No newline at end of file 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..1972207706262cd4e8080f61592d7e25a3f95e09 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. */ \ No newline at end of file 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..5a56d2d2e23aee601990398dd47f1120fbb31179 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,6 @@ 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. */ \ No newline at end of file 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..ba4dd30a7d6296423b7be61ad739be21e07cb25b 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. */ \ No newline at end of file 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..67a95990d9401162e8176ead640a8a3b2651d463 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/func_as_param.ets b/ets2panda/test/ast/compiler/ets/func_as_param.ets index 38e38baccd5ec7f7b56fe9e57f7d5a681d76b505..6af02a76707123f344d027be903f121d6114fe01 100644 --- a/ets2panda/test/ast/compiler/ets/func_as_param.ets +++ b/ets2panda/test/ast/compiler/ets/func_as_param.ets @@ -114,3 +114,6 @@ function main(): void { } +/* @@? 30:19 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 30:19 Error Semantic error ESE0127: No matching construct signature for std.core.Char(String) */ +/* @@? 30:28 Error Semantic error ESE0046: Type 'String' is not compatible with type 'Char' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/function_namespace.ets b/ets2panda/test/ast/compiler/ets/function_namespace.ets index 218177cc0576f25a40a0bc47a2be2213941a7d5f..0ee22418fc264d4ac48057e42dc1ae6a849fdfeb 100644 --- a/ets2panda/test/ast/compiler/ets/function_namespace.ets +++ b/ets2panda/test/ast/compiler/ets/function_namespace.ets @@ -17,8 +17,9 @@ 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:79 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 25:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/function_property.ets b/ets2panda/test/ast/compiler/ets/function_property.ets index e0ca9949621a5f30e7c3afb54435133470626f1d..e1a81fd89d318b997b677e743999be7054417a27 100644 --- a/ets2panda/test/ast/compiler/ets/function_property.ets +++ b/ets2panda/test/ast/compiler/ets/function_property.ets @@ -19,4 +19,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/function_signature.ets b/ets2panda/test/ast/compiler/ets/function_signature.ets index 1a516601825d7ffa8052117ce023a471493a9ce0..25615ea070f6496463c2eb29f9394469ee77ab97 100644 --- a/ets2panda/test/ast/compiler/ets/function_signature.ets +++ b/ets2panda/test/ast/compiler/ets/function_signature.ets @@ -17,9 +17,10 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/function_signature_mismatch.ets b/ets2panda/test/ast/compiler/ets/function_signature_mismatch.ets index 60e656cd74978369d1aae53f85b65ad2acd49cd9..aec48b9bb7a9d2cd76ec990a9e08920999a4222d 100644 --- a/ets2panda/test/ast/compiler/ets/function_signature_mismatch.ets +++ b/ets2panda/test/ast/compiler/ets/function_signature_mismatch.ets @@ -32,5 +32,6 @@ function main() { container.returnThisMember(); } -/* @@? 16:33 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 28:23 Error TypeError: Function name 'returnThisMember' used in the wrong context */ + +/* @@? 16:33 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 28:23 Error Semantic error ESE0144: Function name 'returnThisMember' used in the wrong context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets b/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets index 8734e65743f3a8700b207d37b2dbfff33e45a9c1..97dfef832bc9655a794d1637fa53dccc55c49e4b 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 '((p1: A) => A)' cannot be assigned to type '((p1: B) => B)' */ +/* @@@ label Error Semantic error ESE0318: Type '(p1: A) => A' cannot be assigned to type '(p1: 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 cc521bd32606ca60b310d2c9b93f8a5fafe1a37f..fbf5ec22afcf1c7faf2ddb94a523bd45b953e7a6 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 '((p1: B) => B)' cannot be assigned to type '((p1: A) => A)' */ +/* @@@ label Error Semantic error ESE0318: Type '(p1: B) => B' cannot be assigned to type '(p1: A) => A' */ diff --git a/ets2panda/test/ast/compiler/ets/function_typeerror.ets b/ets2panda/test/ast/compiler/ets/function_typeerror.ets index 969d9217bec1a4d83e9ad8686bc2e71a6b3ebe39..6f2e3812af33883b628ec8a0ecb374f61044f3bc 100644 --- a/ets2panda/test/ast/compiler/ets/function_typeerror.ets +++ b/ets2panda/test/ast/compiler/ets/function_typeerror.ets @@ -35,21 +35,22 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets b/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets index c85cff638a433b70fc6ea49c2c22a3176c708d76..dae490ca912a232dbf6a4e346fa7cc6331744ba7 100644 --- a/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets +++ b/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets @@ -28,9 +28,10 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets b/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets index 39746c2c669e9fcf75817c5b03e4fdc2845bf62d..e38515482a6b15b602b131db5c125a032efe9ac7 100644 --- a/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets +++ b/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets @@ -17,13 +17,14 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets index 63fb0322b11fe1da063d382c4195d76a4e7a4ca2..4f2972a867bbcbdc4251ecb42be1211d41129bc3 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets @@ -16,10 +16,11 @@ // 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:79 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 26:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets index 08bf93ddf630f27c5accb8a58f2d0d4cbd8ba160..802db30d8b51e092b9d353a453c3f9ecbc3ba11f 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets @@ -16,7 +16,8 @@ // 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 '@@'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets index eff6fa17ba130e470d740431c838955d1a41bd3f..62f4f0bfb641dadd317cc0f48cb85a4b9c0f7f34 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets @@ -16,5 +16,6 @@ // 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 '@@'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets index f3b80f5accdf87cfe4c100707ab1fe084746f04b..a875ef90fe24bdf890ba710999201feb0f9168e9 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets @@ -14,11 +14,12 @@ */ // 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 '`'. */ -abcdefghijklmnopqrstuvwxyzABC`DEF\n� \ No newline at end of file + +abcdefghijklmnopqrstuvwxyzABC`DEF\n�/* @@? 19:1 Error Semantic error ESE0143: Unresolved reference abcdefghijklmnopqrstuvwxyzABC */ +/* @@? 19:30 Error Syntax error ESY0227: Unexpected token '`'. */ +/* @@? 20:61 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@? 20:61 Error Syntax error ESY0227: Unexpected token '. */'. */ +/* @@? 21:78 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@? 23:78 Error Syntax error ESY0224: Identifier expected, got '*'. */ +/* @@? 23:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */'. */'. */ \ 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..b8ccdce3c5fad62cbb9b5d0352da85e1db853f9e 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets @@ -17,6 +17,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest5.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest5.ets index 9cb89706ef70927ee5147b881d59002a23499cff..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..70fca712c571de275e6d722185a04519187aae80 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest6.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest6.ets @@ -21,5 +21,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets index 11b245f328fa6e74d25d02acdd8746d4cf4c3955..5110df8bfd7e0bf49c8d65f6fcb87efabcab6f75 100644 --- a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets @@ -22,4 +22,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets index d12d67284b5a12d1a2967e8f79e05e205b429e4e..a978c0e6e775ac5e4ff5bdf5da8b04a8d65b0dc4 100644 --- a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets @@ -22,4 +22,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets index fd7eed0b9edf505a81a665ea8fc1c3afe705f05a..97ead20716ed7c0840c7f6e6f0a3f1a1155522f3 100644 --- a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets +++ b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets @@ -22,5 +22,6 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_callback.ets b/ets2panda/test/ast/compiler/ets/generic_callback.ets index d009418b7b28a6daab9c1ea322f5ade2a062bd0b..4ba79a8aad017ce1ebdf3e4b1e470c1f93341bba 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(((p1: 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(((p1: A) => A)) */ -/* @@? 19:9 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 19:23 Error TypeError: Type '((p1: A) => A)' is not compatible with type '((p1: Int, p2: Int, p3: Array) => A)' at index 1 */ -/* @@? 19:23 Error TypeError: Type '((p1: A) => A)' is not compatible with type '((p1: Int, p2: Int, p3: ReadonlyArray) => A)' at index 1 */ -/* @@? 19:23 Error TypeError: Type '((p1: A) => A)' is not compatible with type '((p1: Int, p2: Int, p3: Array) => A)' at index 1 */ -/* @@? 19:23 Error TypeError: Type '((p1: A) => A)' is not compatible with type '((p1: Int, p2: Int, p3: ReadonlyArray) => A)' at index 1 */ +/* @@? 19:9 Error Semantic error ESE0127: No matching call signature for map((p1: 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((p1: A) => A) */ +/* @@? 19:9 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(p1: A) => A' is not compatible with type '(p1: Int, p2: Int, p3: Array) => A' at index 1 */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(p1: A) => A' is not compatible with type '(p1: Int, p2: Int, p3: ReadonlyArray) => A' at index 1 */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(p1: A) => A' is not compatible with type '(p1: Int, p2: Int, p3: Array) => A' at index 1 */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(p1: A) => A' is not compatible with type '(p1: Int, p2: Int, p3: 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..1c8d667b695c6f08d96668cec0744b1438fa9437 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,5 @@ 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. */ \ No newline at end of file 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..2189ac159e1e04c87dcde6df3b7bac828d404266 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,5 @@ 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. */ \ No newline at end of file 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..6fd08e1f6fcfc01eb62fff04a3cbfd81e9250088 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,6 @@ 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 */ \ No newline at end of file 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..ac8b9aea0a85b386cdeff5a0d7a777f9d4a2d8dc 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,5 @@ function main() { /* @@ label */fn() } -/* @@@ label Error TypeError: No matching call signature */ + +/* @@@ label Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_method_with_default_short_neg.ets b/ets2panda/test/ast/compiler/ets/generic_method_with_default_short_neg.ets index ee7b46aabf12ce6f2b615ef62edc6067333cf5d8..cfa2fd4aac6e6cb9ea7a711622985cf9393df023 100644 --- a/ets2panda/test/ast/compiler/ets/generic_method_with_default_short_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_method_with_default_short_neg.ets @@ -25,4 +25,5 @@ function main(): void { arktest.assertEQ(result, 0 as short); } -/* @@? 17:32 Error TypeError: Cannot cast type 'Int' to 'X' */ + +/* @@? 17:32 Error Semantic error ESE0326: Cannot cast type 'Int' to 'X' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_method_with_promise_return_neg.ets b/ets2panda/test/ast/compiler/ets/generic_method_with_promise_return_neg.ets index 5676324ca1bd8a50b06d652ccbd11136630673ca..11f4e6af95c178eaa163e52292eaf0fa5298e528 100644 --- a/ets2panda/test/ast/compiler/ets/generic_method_with_promise_return_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_method_with_promise_return_neg.ets @@ -26,5 +26,6 @@ function main(): void { }); } -/* @@? 18:15 Error TypeError: Type 'Promise<*ERROR_TYPE*>' is not compatible with the enclosing method's return type 'Promise' */ -/* @@? 18:31 Error TypeError: Cannot cast type 'Int' to 'X' */ + +/* @@? 18:15 Error Semantic error ESE0091: Type 'Promise<*ERROR_TYPE*>' is not compatible with the enclosing method's return type 'Promise' */ +/* @@? 18:31 Error Semantic error ESE0326: Cannot cast type 'Int' to 'X' */ \ No newline at end of file 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..9ecf3141b8a730e500191a120c28d686b71d273e 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,5 @@ 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 */ \ No newline at end of file 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..d1e58460ca8242de2a6159fcf464e4a9630c4432 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,5 @@ 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 */ \ No newline at end of file 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..0be9075ed96420d0a3a62f1af25ec99d6fe55721 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,5 @@ 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. */ \ No newline at end of file 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..53e76b4ad96a996f9d9ebb98fc8f2503cff8da8e 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,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_2.ets b/ets2panda/test/ast/compiler/ets/generic_variance_2.ets index be03b15a71f4a77eb20ff2d87bf28eb9a4d86b29..ee6b2fe1165bf43243bedb68518f8be5af91f7cc 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_2.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_2.ets @@ -22,4 +22,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_3.ets b/ets2panda/test/ast/compiler/ets/generic_variance_3.ets index 827eee769a70266b8617ef9c376f4a573468288a..70e5e13562aa656d0c284b65692650e175212b7c 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_3.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_3.ets @@ -22,4 +22,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_4.ets b/ets2panda/test/ast/compiler/ets/generic_variance_4.ets index 53bb2466a9fecf6f345b99c70fabfdab7e69aaeb..3cd030768e0ff2f358da7ba89a4b2b5aa61d839a 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_4.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_4.ets @@ -22,4 +22,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_5.ets b/ets2panda/test/ast/compiler/ets/generic_variance_5.ets index 51d455618c3a9e806423afc8685c9fefc8d628bc..413cf2af8f78f09cb4a4036fedd8e66d045cfa58 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_5.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_5.ets @@ -22,4 +22,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets b/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets index 39760bba1cacef8a2c802660c5b162dfa7886fdc..f2fc96a775605d1dc8fa3dc3611c1da45f707d22 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 '((p1: Int, p2: String, p3: String) => String)' is not compatible with type '((p1: Int, p2: String, p3: Int) => String)' at index 1 */ +/* @@@ label Error Semantic error ESE0046: Type '(p1: Int, p2: String, p3: String) => String' is not compatible with type '(p1: Int, p2: String, p3: 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..17351b69a5ca8fd9137bcee7ce89e056ef9820ff 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,5 @@ function main(): void { } } -/* @@@ label Error TypeError: Constant expression required */ + +/* @@@ label Error Semantic error ESE0163: Constant expression required */ \ No newline at end of file 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..75ef0fde308e02526fd82bb1fe899eae01371eeb 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,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/getType.ets b/ets2panda/test/ast/compiler/ets/getType.ets index beeb87771d0ba08a2148838851a2bbb4bcd54c39..44d4aed1756b8cccd8d7b485dae81687e40fa484 100644 --- a/ets2panda/test/ast/compiler/ets/getType.ets +++ b/ets2panda/test/ast/compiler/ets/getType.ets @@ -15,13 +15,14 @@ declare type type_tuple_union = [string, boolean, number] | (this.mnum === other.mnum && this.mden === other.mden )[] -/* @@? 15:62 Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 15:66 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 15:67 Error TypeError: Unresolved reference mnum */ -/* @@? 15:76 Error TypeError: Unresolved reference other */ -/* @@? 15:90 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 15:95 Error TypeError: Property 'mden' does not exist on type 'ETSGLOBAL' */ -/* @@? 16:1 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:3 Error SyntaxError: Unexpected token ']'. */ -/* @@? 28:1 Error SyntaxError: Unexpected token, expected ']'. */ + +/* @@? 15:62 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. */ +/* @@? 15:66 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 15:67 Error Semantic error ESE0143: Unresolved reference mnum */ +/* @@? 15:76 Error Semantic error ESE0143: Unresolved reference other */ +/* @@? 15:90 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 15:95 Error Semantic error ESE0087: Property 'mden' does not exist on type 'ETSGLOBAL' */ +/* @@? 16:1 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:3 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 28:76 Error Syntax error ESY0228: Unexpected token, expected ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets b/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets index 82dcc47f2adfd2ede7dcd2b92bdff6080e368db3..f4649e051368398e3138dcbc092128c55ded3210 100644 --- a/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets +++ b/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets @@ -27,4 +27,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets b/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets index 09d7a9ab24ea9f474b522a8d35321313b962c6c7..374468c7fc0a4c75ec949e4b49f0685e129ffd4d 100644 --- a/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets +++ b/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets @@ -34,4 +34,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/greater_than_neg.ets b/ets2panda/test/ast/compiler/ets/greater_than_neg.ets index f5dea30ef16a64a5319578985f633e47b29c8704..4ad7b24a3c4b06d4d17dd23fb5e2c2118d28d5d5 100644 --- a/ets2panda/test/ast/compiler/ets/greater_than_neg.ets +++ b/ets2panda/test/ast/compiler/ets/greater_than_neg.ets @@ -16,7 +16,8 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference1.ets b/ets2panda/test/ast/compiler/ets/identifierReference1.ets index 13df0cf58b231bda3d52d113c0fc7d11c0c711f0..eb4052c8caee5701f4d1fc7b09e8f3a3e7c01544 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference1.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference1.ets @@ -49,6 +49,7 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference10.ets b/ets2panda/test/ast/compiler/ets/identifierReference10.ets index bb75765d532f7330f56161213ea840dcb21813f6..b8ff30ac5f770618f7a050f7b1390aefa5303b37 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference10.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference10.ets @@ -25,4 +25,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference11.ets b/ets2panda/test/ast/compiler/ets/identifierReference11.ets index 2d0de4caff48e4c8b213f94069f510ca1d7a1d6f..321e340b8f5217798d6c96f03e7da1820307a3bd 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference11.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference11.ets @@ -23,4 +23,5 @@ class A { } } -/* @@@ label Error TypeError: Unresolved reference foo */ + +/* @@@ label Error Semantic error ESE0143: Unresolved reference foo */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference12.ets b/ets2panda/test/ast/compiler/ets/identifierReference12.ets index 1c34cf4214e39791ff58b24b218d0d53505ab981..a15056fbd6e0c31ae7a0f1be62f8d0f11327c689 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference12.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference12.ets @@ -25,4 +25,5 @@ class A { } } -/* @@@ label Error TypeError: Type 'Int' has no call signatures. */ + +/* @@@ label Error Semantic error ESE0002: Type 'Int' has no call signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference13.ets b/ets2panda/test/ast/compiler/ets/identifierReference13.ets index 2271863d17d950f9bd7f76fb66c64ed86d0e271f..ea78297572ebdff05224780d80178356939b55d8 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference13.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference13.ets @@ -25,4 +25,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference15.ets b/ets2panda/test/ast/compiler/ets/identifierReference15.ets index 4a7f86a7cc63f4d736c8af16cdaee1e4dd708d5b..99693ad7b95a7ea76d3506e563898ca0cfaca2e2 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference15.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference15.ets @@ -33,6 +33,7 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference16.ets b/ets2panda/test/ast/compiler/ets/identifierReference16.ets index aefc534f96224ee5e6560910e73b0cef63d5c7c9..7f09dd80903063926df1247f1d8a6f1d3f3e4500 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference16.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference16.ets @@ -43,6 +43,7 @@ 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) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference2.ets b/ets2panda/test/ast/compiler/ets/identifierReference2.ets index 3ee1d5748378d9d01ced5c74cf219365b7f2401a..239993f6e9f4df0bd03d2c1647b6fbd6f9643ab4 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference2.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference2.ets @@ -15,4 +15,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference3.ets b/ets2panda/test/ast/compiler/ets/identifierReference3.ets index ddc353921b26c4b613eb7e4677dcf07b414af3f2..bf499611a2e947f5e98cc75ff3c6813a8553416b 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference3.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference3.ets @@ -21,4 +21,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference5.ets b/ets2panda/test/ast/compiler/ets/identifierReference5.ets index 0bf988779949e502dad4eb46ef3a730fd7f54f3d..5588dcbd4d5fc11fd7b17f7575c7fb3b1b4446c0 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference5.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference5.ets @@ -32,4 +32,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference6.ets b/ets2panda/test/ast/compiler/ets/identifierReference6.ets index 42207403133ec1bca9c26e7363267c45939d5cbe..fb8c232eaceb5e84bc3f9e586a5e8b3a22de5055 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference6.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference6.ets @@ -23,6 +23,7 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference7.ets b/ets2panda/test/ast/compiler/ets/identifierReference7.ets index d2b4110f65973998a54197e162d1378bbb5cc327..c826bafa0aa4b69433dbf5226a18acb272d3693e 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference7.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference7.ets @@ -27,5 +27,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference8.ets b/ets2panda/test/ast/compiler/ets/identifierReference8.ets index 0a7509f35b599dc5ba95ab790267f92e32ea8202..85a44b8d0b337933a43870748bcd3dbceb9cf348 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference8.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference8.ets @@ -25,4 +25,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference9.ets b/ets2panda/test/ast/compiler/ets/identifierReference9.ets index 3021ebf7a1953f57ccd1e53d8ba2ba11c4805025..780bd6616b1c5667d2cfbdd26e06ddc9a6093b3f 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference9.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference9.ets @@ -25,4 +25,5 @@ class A { } } -/* @@? 24:5 Error TypeError: Class methods cannot be overwritten. */ + +/* @@? 24:5 Error Semantic error ESE0394: Class methods cannot be overwritten. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/illegal_exponentiation_1.ets b/ets2panda/test/ast/compiler/ets/illegal_exponentiation_1.ets index a8329c7756d674f08a196560055221e9742f9ed4..45f980e963fa78ee491adbceff883751b8628279 100644 --- a/ets2panda/test/ast/compiler/ets/illegal_exponentiation_1.ets +++ b/ets2panda/test/ast/compiler/ets/illegal_exponentiation_1.ets @@ -17,4 +17,5 @@ function main() { let x = -1 ** 1.0; } -/* @@? 17:11 Error TypeError: Exponent must be an integer if base is less than 0. */ + +/* @@? 17:11 Error Semantic error ESE22843: Exponent must be an integer if base is less than 0. */ \ No newline at end of file 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..078fccb14dbde88398b7e6245149c60e8f49ba20 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,5 @@ /* @@ 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. */ \ No newline at end of file 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..f7be69e0b6aba85f6a6c712d0e99bed8ddd15847 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,5 @@ /* @@ 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. */ \ No newline at end of file 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..eac9e87bde10316eaadff5ee2bf526a3384f2716 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,6 @@ 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 */ \ No newline at end of file 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..8bb1436406ba4393ce1d0c16362c12da4b003282 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,9 @@ 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 */ \ No newline at end of file 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..1fd495ae45df07fb78001df8cd451cad44f545ad 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,9 @@ 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 */ \ No newline at end of file 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..47178ca7554cc45db035de2ebda22aabbdedd353 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,5 @@ 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' */ \ No newline at end of file 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..1ff7f1d1963970de4df32e0ceb60a7a85dcb4abf 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,5 @@ 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' */ \ No newline at end of file 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..ec0a48244f7ff7e69ec38ebe6e013971de454e4d 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,5 @@ 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. */ \ No newline at end of file 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..a5bcbfef9d713894a0010d5164be9db14dfd13c7 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,5 @@ 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. */ \ No newline at end of file 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..984778d9bb1a1b97f356cb18a5b19bcf8e5ab87b 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,8 @@ 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 */ \ No newline at end of file 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..8ff002a86c8654e855e8ba2a9fa3e68d879d1d5d 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,15 @@ 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_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_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_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 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. */ \ No newline at end of file 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..d8b0ad9d48cf0792146474c844ac3a24f96acead 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,15 @@ 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_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_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_module_with_semantic_error.ets:18:14 Error TypeError: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ +/* @@? 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 Semantic error ESE0318: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ \ No newline at end of file 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..b076c733acfe3bc3a8ed612969b04dd0c6a15661 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,15 @@ 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_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_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_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 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 */ \ No newline at end of file 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..7954e7f303c29b9137aa2a43bdbb7b31c58b3b43 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,15 @@ 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_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_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_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 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. */ \ No newline at end of file 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..4ccca1ac967663e5fafd7e61b60a4d8f3b24d6a0 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,9 @@ 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 */ \ No newline at end of file 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..afa900c4ab942912c778431087da2eb5838126a8 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'. */ \ No newline at end of file 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..3f516baf6f907d2a793fe234e3c9ad803add806b 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'. */ \ No newline at end of file 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..8fc588c2e6431ecbe1721c2c9cd8f12c6051f10c 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'. */ \ No newline at end of file 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..ccf6e1a9983676eebd766073cc59baf56e060531 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'. */ \ No newline at end of file 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..d264596a5c255884410ae21fa861fad559617b2e 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'. */ \ No newline at end of file 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..554abdffe905f0b4c0ba205b9414308953992cb6 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'. */ \ No newline at end of file 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..52ed15189572d042bffc03570ee1198207632d8f 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'. */ \ No newline at end of file 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..16eedb24820559f7c70cd48b11962190e152c34c 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'. */ \ No newline at end of file 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..17875b0e794310cdbc7bd829f44c32da59d052bc 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. */ \ No newline at end of file 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 22fc4900fc5427570af2a78e3533a0056a1839cf..4b2243e55397ff278eb411f82d025c9f6db5eb23 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,5 +16,6 @@ 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. */ -/* @@? eitest_import_all_4_ne.ets:17:24 Error TypeError: 'B' type does not exist. */ + +/* @@? 17:13 Error Semantic error ESE0070: 'B' type does not exist. */ +/* @@? 17:24 Error Semantic error ESE0070: 'B' type does not exist. */ \ No newline at end of file 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..5b4ff29bb5c9ec2094dab1fc752a12c436c12489 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 */ \ No newline at end of file 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..b0cae593cbe3209fda6107012aabc643fb8dcf4b 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'. */ \ No newline at end of file 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..1ac67c040d6dee627f337e1dcddaaa9369b967db 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 */ \ No newline at end of file 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..622873bcb9c49cc164078638e69fa85d6b05d88c 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,5 @@ 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 */ \ No newline at end of file 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..53aecccc17bb6445d97d69d7ead9ad76ffcce34f 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 */ + +/* @@? 19:12 Error Semantic error ESE0091: Type '"A"' is not compatible with the enclosing method's return type 'Int' */ +/* @@? 21:21 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 21:21 Error Semantic error ESE0128: No matching construct signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/re_export.ets b/ets2panda/test/ast/compiler/ets/import_export/re_export.ets index 7988832afb1f655cb3e409aa39f3cfab95434aa9..79d405d6d35cd2784b5bf5c7bae664c2a3686bf9 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/re_export.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/re_export.ets @@ -13,4 +13,4 @@ * limitations under the License. */ -export { A, A as B } from "./eitest_export_A_1" \ No newline at end of file +export { A, A as B } from "./eitest_export_A_1"/* @@? 16:13 Warning Warning W125428: 'A' has already imported */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/export_multi_error.ets b/ets2panda/test/ast/compiler/ets/import_tests/export_multi_error.ets index 1bcecf5a368b19c18e591af97df0c7138912a6c6..30c474dc285191a1284553e86c0dadc68db7d7dc 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/export_multi_error.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/export_multi_error.ets @@ -57,7 +57,9 @@ export default function TestFunc(): void {} export default function TestFuncToo(): void {} /*-----------------*/ -/* @@? 16:10 Error SyntaxError: Cannot find name 'foo' to export. */ -/* @@? 27:14 Error SyntaxError: Cannot export two different names with the same export alias name 'foo2'. */ -/* @@? 56:16 Error TypeError: Only one default export is allowed in a module */ -/* @@? 57:16 Error TypeError: Only one default export is allowed in a module */ + +/* @@? 46:13 Warning Warning W0000: Duplicated export aliases for 'MyI'. */ +/* @@? 16:10 Error Syntax error ESY0279: Cannot find name 'foo' to export. */ +/* @@? 27:14 Error Syntax error ESY0344: Cannot export two different names with the same export alias name 'foo2'. */ +/* @@? 56:16 Error Semantic error ESE0374: Only one default export is allowed in a module */ +/* @@? 57:16 Error Semantic error ESE0374: Only one default export is allowed in a module */ \ No newline at end of file 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..f27c87e44dfb2144da8874bd3758d4d2e6237af2 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,10 @@ 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 */ -// 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. */ + +/* @@? 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'. */ \ No newline at end of file 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..ede1576bf4971448a8792752639dd8cd76d74650 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,7 @@ 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. */ \ No newline at end of file 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..e00dd88ea02ca43424362b5595cd380081e4a052 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,15 @@ 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 */ -// 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'. */ -// 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) */ +/* @@? 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. */ + +/* @@? 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) */ +/* @@? 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) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/master_file.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/master_file.ets index 47707baa9fc2b8f74afc422f020b42de8f29e1f8..810d1ee454c42f29cbda87ad34e254726ef98dbe 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/master_file.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/master_file.ets @@ -17,18 +17,25 @@ import { moreImportantInfo, notInit, notExist } from "./package_with_errors" console.log(notExist) -/* @@? 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 ')'. */ -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ +/* @@? 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 ')'. */ -/* @@? package_with_errors_1.ets:19:32 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? package_with_errors_1.ets:19:32 Error TypeError: Cannot cast type 'String' to 'double' */ +/* @@? 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_1.ets:19:32 Error Semantic error ESE0326: Cannot cast type 'String' to 'Double' */ -/* @@? master_file.ets:16:54 Error TypeError: Cannot find imported element 'notExist' */ -/* @@? master_file.ets:18:13 Error TypeError: Unresolved reference notExist */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0143: Unresolved reference foo */ + +/* @@? master_file.ets:16:54 Error Semantic error ESE0356: Cannot find imported element 'notExist' */ +/* @@? master_file.ets:18:1 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` */ +/* @@? master_file.ets:18:1 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` */ +/* @@? master_file.ets:18:1 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` */ +/* @@? master_file.ets:18:1 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` */ +/* @@? master_file.ets:18:1 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` */ +/* @@? master_file.ets:18:1 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` */ +/* @@? master_file.ets:18:1 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` */ +/* @@? master_file.ets:18:1 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` */ +/* @@? master_file.ets:18:13 Error Semantic error ESE0143: Unresolved reference notExist */ \ No newline at end of file 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 417776eca0f51ca7b33f730512d41d0df9dfddd1..67b584badd86838d06553428ef22e487ef75cb0e 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,11 +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. */ -/* @@? package_with_errors_1.ets:19:32 Error TypeError: Cannot cast type 'String' to 'Double' */ -/* @@? 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. */ -/* @@? 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 ')'. */ + +/* @@? 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 Semantic error ESE0326: Cannot cast type 'String' to 'Double' */ + +/* @@? 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 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 ')'. */ \ No newline at end of file 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..ebaa3ef1d4177f316f072d84047fdbaebc4f7a7d 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,6 @@ 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. */ \ No newline at end of file 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 cb95afc31ae8eefb69bf155351d49e1c6f400200..d47cbc621605b212227c4c0d05aab9a4ce98d15a 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,11 +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 ')'. */ -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 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_1.ets:19:32 Error TypeError: Cannot cast type 'String' to 'Double' */ + +/* @@? 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 Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ + +/* @@? 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 Semantic error ESE0326: Cannot cast type 'String' to 'Double' */ \ No newline at end of file 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 58ca5496f158e7f60cf2fed3ec0ccbd14da31485..2d353e0db38c1cc10914564219fe093c7c033f96 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,11 +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 ')'. */ -/* @@? distant_package.ets:22:22 Error SyntaxError: 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_2.ets:19:16 Error TypeError: Unresolved reference foo */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: This expression is not callable. */ + +/* @@? 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 Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ + +/* @@? 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 Semantic error ESE0143: Unresolved reference foo */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file 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..e74be9301e4b1db01425ab951b44a5777e9666e8 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,5 @@ 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. */ \ No newline at end of file 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..d90c45fafcaadd318957b8f37a4b0cd656624941 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,5 @@ 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. */ \ No newline at end of file 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..7ff3d40b07f66ac38c0efa44a9b0d8453f05ba94 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_1.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_1.ets index 3262d1a8397c9f94e46088aded27755baab15a52..c61cb1916441f0f2aded29658979c2d553b683a9 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_1.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_1.ets @@ -22,3 +22,5 @@ export { A as a1, A as a2 } +/* @@? 21:3 Warning Warning W32596: 'foo' is explicitly used with alias several times */ +/* @@? 23:3 Warning Warning W32596: 'A' is explicitly used with alias several times */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_2.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_2.ets index 54f88f12e3d075c93af321b165798e14331e755c..1eb6cb8d678fe61056031e52083ed476831c70be 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_2.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_2.ets @@ -25,3 +25,6 @@ export { a as a3, a as a4 } +/* @@? 22:3 Warning Warning W32596: 'foo' is explicitly used with alias several times */ +/* @@? 24:3 Warning Warning W32596: 'A' is explicitly used with alias several times */ +/* @@? 26:3 Warning Warning W32596: 'a' is explicitly used with alias several times */ \ No newline at end of file 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..7a91c43979cc072f3872c7d4acbedbb3a6732b35 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,5 @@ 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' */ \ No newline at end of file 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..2e431fcb3cd275a56e044cac3b941fe11b92fb3d 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,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_1.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_1.ets index f3d2d5d4dce9f50757031609c6b892db8e539ee0..5a6640ab1c81055a4cad4c890ac8c1c021efbbcf 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_1.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_1.ets @@ -20,4 +20,5 @@ f1() f2() let c: A = new A() let c1: A = new a1() -let c2: A = new a2() \ No newline at end of file +let c2: A = new a2()/* @@? export_type_several_times_1.ets:21:3 Warning Warning W32596: 'foo' is explicitly used with alias several times */ +/* @@? export_type_several_times_1.ets:23:3 Warning Warning W32596: 'A' is explicitly used with alias several times */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_2.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_2.ets index 91be1a73dbe8f87fd4b7b6696793289ce2f3f1bf..dca0f4128afbb97d48f7cd9501e828f40d4fbaa5 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_2.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_2.ets @@ -20,4 +20,6 @@ f2() let c1: a1 = new a1() let c2: a2 = new a2() c1 = a3 -c2 = a4 \ No newline at end of file +c2 = a4/* @@? export_type_several_times_2.ets:22:3 Warning Warning W32596: 'foo' is explicitly used with alias several times */ +/* @@? export_type_several_times_2.ets:24:3 Warning Warning W32596: 'A' is explicitly used with alias several times */ +/* @@? export_type_several_times_2.ets:26:3 Warning Warning W32596: 'a' is explicitly used with alias several times */ \ No newline at end of file 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..8c0a14a1f11e92bbcbea0dc51c071f3fcb7c9d10 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,10 @@ 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' */ + +/* @@? export_type_several_times_2.ets:22:3 Warning Warning W32596: 'foo' is explicitly used with alias several times */ +/* @@? export_type_several_times_2.ets:24:3 Warning Warning W32596: 'A' is explicitly used with alias several times */ +/* @@? export_type_several_times_2.ets:26:3 Warning Warning W32596: 'a' is explicitly used with alias several times */ + +/* @@? import_same_type_form_alias_3.ets:16:10 Error Semantic error ESE0356: Cannot find imported element 'foo' */ +/* @@? import_same_type_form_alias_3.ets:16:23 Error Semantic error ESE0356: Cannot find imported element 'A' */ \ No newline at end of file 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..80aca4501f1a27809f6406ebea3dc4d283c008b6 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,5 @@ 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. */ \ No newline at end of file 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..0c363025e4331d6000986f22dbb64822e9cc7a9c 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,5 @@ 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. */ \ No newline at end of file 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..a1f5d053c4d7bcfcfa718c1272d9715ba0c1a4ae 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,5 @@ 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. */ \ No newline at end of file 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..6c8c677cd3672952542cc1df0c686d94c50d6d24 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,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/incorrect_call_getter.ets b/ets2panda/test/ast/compiler/ets/incorrect_call_getter.ets index 185cf0b6c91ace141307b387fd8653210bb43836..0679bc2abb70cae554a15acd30d9e36843124687 100644 --- a/ets2panda/test/ast/compiler/ets/incorrect_call_getter.ets +++ b/ets2panda/test/ast/compiler/ets/incorrect_call_getter.ets @@ -30,8 +30,8 @@ export class ConM implements inter { } } -/* @@? 22:10 Error TypeError: 'The special predefined method '$_get' shouldn't have void return type. */ -/* @@? 25:36 Error TypeError: ConM is not abstract and does not override abstract method gett(k: Double): Double in inter */ -/* @@? 29:9 Error TypeError: No matching indexing signature for $_get(((p1: Double) => Double)) */ -/* @@? 29:22 Error TypeError: Type '((p1: Double) => Double)' is not compatible with type 'Double' at index 1 */ -/* @@? 29:22 Error TypeError: Cannot find index access method with the required signature. */ +/* @@? 22:10 Error Semantic error ESE0093: 'The special predefined method '$_get' shouldn't have void return type. */ +/* @@? 25:36 Error Semantic error ESE0190: ConM is not abstract and does not override abstract method gett(k: Double): Double in inter */ +/* @@? 29:9 Error Semantic error ESE0127: No matching indexing signature for $_get((p1: Double) => Double) */ +/* @@? 29:22 Error Semantic error ESE0046: Type '(p1: Double) => Double' is not compatible with type 'Double' at index 1 */ +/* @@? 29:22 Error Semantic error ESE0251: Cannot find index access method with the required signature. */ diff --git a/ets2panda/test/ast/compiler/ets/index_callExpression.ets b/ets2panda/test/ast/compiler/ets/index_callExpression.ets index 9ce5b1325db51497b41e08d9934b3cd8bae8d1e5..a26e94fec43610f0afc777d7b7684cf7eab14ed2 100644 --- a/ets2panda/test/ast/compiler/ets/index_callExpression.ets +++ b/ets2panda/test/ast/compiler/ets/index_callExpression.ets @@ -17,6 +17,7 @@ function testInfo() { DataView => ""[main]() } -/* @@? 17:5 Error TypeError: The type of parameter 'DataView' cannot be inferred */ -/* @@? 17:17 Error TypeError: Type 'String' has no call signatures. */ -/* @@? 17:20 Error TypeError: Function name 'main' used in the wrong context */ + +/* @@? 17:5 Error Semantic error ESE0132: The type of parameter 'DataView' cannot be inferred */ +/* @@? 17:17 Error Semantic error ESE0002: Type 'String' has no call signatures. */ +/* @@? 17:20 Error Semantic error ESE0144: Function name 'main' used in the wrong context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets b/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets index c4664c65f9cf5e0a697f63f35e31d162ac6309ce..76eff0967cc505478a1961a27e2af02ba62af73b 100644 --- a/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets +++ b/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets @@ -24,5 +24,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets index d886e32944bab02a919a0cb54c1b1d8a5d69a69d..161ec8aad332fff9fbbf13eba2e3c7f35dca1732 100644 --- a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets +++ b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets @@ -18,8 +18,9 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets index c8400f2b115b5afbbb436508b24fe92ad03769ad..991ad18830ccba39fb4f010820a9207f3d0c9926 100644 --- a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets +++ b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets @@ -16,6 +16,7 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets b/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets index ee3013210a45448f54f1288f7cd96621377b6810..4ebfef877ca74395114a521d86558d23916be6cb 100644 --- a/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets +++ b/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets @@ -18,10 +18,11 @@ export const byteInf: /* @@ dst_type2 */byte = /* @@ value2 */1.0 / 0.0 export const shortInf: /* @@ dst_type3 */short = /* @@ value3 */1.0 / 0.0 -/* @@? 16:42 Error TypeError: Invalid destination type for floating-point constant value */ -/* @@? 16:65 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@? 17:42 Error TypeError: Invalid destination type for floating-point constant value */ -/* @@? 17:64 Error TypeError: Type 'Double' cannot be assigned to type 'Byte' */ -/* @@? 18:42 Error TypeError: Invalid destination type for floating-point constant value */ -/* @@? 18:65 Error TypeError: Type 'Double' cannot be assigned to type 'Short' */ + +/* @@@ dst_type1 Error Semantic error ESE0344: Invalid destination type for floating-point constant value */ +/* @@@ value1 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ dst_type2 Error Semantic error ESE0344: Invalid destination type for floating-point constant value */ +/* @@@ value2 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Byte' */ +/* @@@ dst_type3 Error Semantic error ESE0344: Invalid destination type for floating-point constant value */ +/* @@@ value3 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Short' */ \ No newline at end of file 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..13650161f59a0183d52018f39134d9d33dd34b5a 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,5 @@ 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. */ \ No newline at end of file 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..1d78051e77b4e63542326eefd2545a429d1a0274 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,5 @@ 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. */ \ No newline at end of file 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..90cb154a57a5c1557791cab84995091a9482f94b 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,5 @@ 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. */ \ No newline at end of file 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..5428d0660942683f375306fd60a992b6cb46093e 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,5 @@ /* @@ 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. */ \ No newline at end of file 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..fa2f8f03273dd352637e35fd720e53f2ea380e1b 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,6 @@ 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:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file 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..a42394fce3d439a863d0bb7e7c8a59b966872323 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,7 @@ 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:76 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 21:76 Error Syntax error ESY0228: Unexpected token, expected ')'. */ \ No newline at end of file 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..82693d9ee226585b4b51614d32fa2d6b5367def8 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,5 @@ /* @@ label */initmodule('./module_to_init.ets') -/* @@@ label Error TypeError: Unresolved reference initmodule */ + +/* @@@ label Error Semantic error ESE0143: Unresolved reference initmodule */ \ No newline at end of file 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..2ab0f92c951dc0f1469a80b887cee72635a25e34 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets b/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets index 630cd8cdfcbf54c2ed70e538bf17b5be3ae95718..1f527e531f2b164a45d770bdd5f1e4bf5460b430 100644 --- a/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets +++ b/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets @@ -23,8 +23,9 @@ 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'. */ +/* @@? 17:10 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 17:13 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:13 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 20:3 Error Syntax error ESY0034: Only one static block is allowed in one namespace or class. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets b/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets index 72657a795cc5e958e2f37decc515e1b9b6b1f05b..4633a328f1cccde7553d82d1c5274bc647963066 100644 --- a/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets +++ b/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets @@ -23,14 +23,15 @@ function fn(i: I) { return new i("hello") } -/* @@? 19:5 Error SyntaxError: Identifier expected, got 'new'. */ -/* @@? 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: Identifier expected, got 'end of stream'. */ -/* @@? 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: Identifier expected, got 'end of stream'. */ -/* @@? 20:1 Error SyntaxError: Invalid Type. */ -/* @@? 23:16 Error TypeError: Cannot find type 'i'. */ + +/* @@? 19:5 Error Syntax error ESY0224: Identifier expected, got 'new'. */ +/* @@? 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 ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 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 ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 20:1 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 23:16 Error Semantic error ESE0371: Cannot find type 'i'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets b/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets index 2d32350377f2b4b0b42f6124dbecf907a793baa8..61d41c0b9d7d85b11671620ffd33c5e9905867e5 100644 --- a/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets +++ b/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets @@ -23,4 +23,5 @@ 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 */ \ No newline at end of file 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 23b238851c8b1daa535d53fbca2566b57cb31b2b..acd053bd51a6490830ecf1d2b8f452a3f6caf126 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: Identifier expected, got 'string'. */ -/* @@? 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 ESY0224: Identifier expected, got 'string'. */ +/* @@? 18:3 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_class_implement.ets b/ets2panda/test/ast/compiler/ets/interface_class_implement.ets index 41591ce4089dd86e86832407cbfa58594684c120..33cff3c4b1fd428efc662d512de145298a023255 100644 --- a/ets2panda/test/ast/compiler/ets/interface_class_implement.ets +++ b/ets2panda/test/ast/compiler/ets/interface_class_implement.ets @@ -20,4 +20,5 @@ 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 */ + +/* @@? 19:22 Error Semantic error ESE0188: A is not abstract and does not implement getter for X property in AA */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_class_implement_extend.ets b/ets2panda/test/ast/compiler/ets/interface_class_implement_extend.ets index afa9486646466460e5f108d2f3bd33d13a6725d4..fe253e5829846cc8b31f7e2f8b2cbeae41302236 100644 --- a/ets2panda/test/ast/compiler/ets/interface_class_implement_extend.ets +++ b/ets2panda/test/ast/compiler/ets/interface_class_implement_extend.ets @@ -23,5 +23,6 @@ class extendA extends A{ } -/* @@? 19:22 Error TypeError: A is not abstract and does not implement getter for X property in AA */ -/* @@? 22:24 Error TypeError: extendA is not abstract and does not implement getter for X property in AA */ + +/* @@? 19:22 Error Semantic error ESE0188: A is not abstract and does not implement getter for X property in AA */ +/* @@? 22:24 Error Semantic error ESE0188: extendA is not abstract and does not implement getter for X property in AA */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_field.ets b/ets2panda/test/ast/compiler/ets/interface_field.ets index c13f647f1097924fe676b33c4585b2adee3391fc..30c05c0b89db919be5ec76ba7fca23eedf3cef81 100644 --- a/ets2panda/test/ast/compiler/ets/interface_field.ets +++ b/ets2panda/test/ast/compiler/ets/interface_field.ets @@ -22,12 +22,24 @@ interface Todo { return {...todo, ...fieldToUpdate }; } -/* @@? 17:17 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:19 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:19 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:19 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:22 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 18:22 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 21:5 Error SyntaxError: Identifier expected, got 'function'. */ -/* @@? 22:16 Error TypeError: need to specify target type for class composite */ -/* @@? 34:1 Error SyntaxError: Unexpected token, expected '}'. */ +/* @@? 17:17 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:19 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:19 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:22 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 18:22 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 21:14 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 21:14 Error Syntax error ESY0224: Identifier expected, got 'identification literal'. */ +/* @@? 21:25 Error Semantic error ESE0371: Cannot find type 'todo'. */ +/* @@? 21:29 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 21:29 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 21:34 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 21:36 Error Semantic error ESE0371: Cannot find type 'fieldToUpdate'. */ +/* @@? 21:49 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 21:49 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 21:64 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 21:66 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 21:66 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 21:66 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 22:16 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 46:1 Error Syntax error ESY0228: Unexpected token, expected '}'. */ diff --git a/ets2panda/test/ast/compiler/ets/interface_literal.ets b/ets2panda/test/ast/compiler/ets/interface_literal.ets index 81abf38433fd699d44e761ef6cce2ef8f83c1812..b8bd53e6d44c3efbf6495990e0ad4650e31fe8b0 100644 --- a/ets2panda/test/ast/compiler/ets/interface_literal.ets +++ b/ets2panda/test/ast/compiler/ets/interface_literal.ets @@ -28,4 +28,5 @@ function main() { arktest.assertEQ(r, 5); } -/* @@@ label Error TypeError: Class or interface methods cannot be initialized within an object literal. */ + +/* @@@ label Error Semantic error ESE0074: Class or interface methods cannot be initialized within an object literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment0.ets b/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment0.ets index fb08582a043505cf12a14b95739f748eb276ae25..1bfa7469e58346c9949e9bf6815ca0316b31369f 100644 --- a/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment0.ets +++ b/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment0.ets @@ -21,4 +21,5 @@ function createA(): A{ return /* @@ label */{}; } -/* @@@ label Error TypeError: Non-optional property 'name' in type 'A' is missing in object literal. */ + +/* @@@ label Error Semantic error ESE0400: Non-optional property 'name' in type 'A' is missing in object literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment1.ets b/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment1.ets index 3dc305d1ea201da9dc2b75be86d59045fd842c20..2a5e0f6106ea9faf5c6da4e240ef060f46bae18a 100644 --- a/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment1.ets +++ b/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment1.ets @@ -24,6 +24,7 @@ interface X { function foo(x: X) {} foo(/* @@ label */{}) -/* @@@ label Error TypeError: Non-optional property 'a' in type 'X' is missing in object literal. */ -/* @@@ label Error TypeError: Non-optional property 'nm' in type 'X' is missing in object literal. */ -/* @@@ label Error TypeError: Non-optional property 'id' in type 'X' is missing in object literal. */ + +/* @@@ label Error Semantic error ESE0400: Non-optional property 'a' in type 'X' is missing in object literal. */ +/* @@@ label Error Semantic error ESE0400: Non-optional property 'nm' in type 'X' is missing in object literal. */ +/* @@@ label Error Semantic error ESE0400: Non-optional property 'id' in type 'X' is missing in object literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment2.ets b/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment2.ets index ffe940d1f51460f1ff0d27041ac2037f1d2163cc..408514b1fa967eee13081106b1be1e607869551d 100644 --- a/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment2.ets +++ b/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment2.ets @@ -32,5 +32,6 @@ interface X extends Y, Z { function foo(x: X) {} foo(/* @@ label */{}) -/* @@@ label Error TypeError: Non-optional property 'c' in super type 'Z' of type 'X' is missing in object literal. */ -/* @@@ label Error TypeError: Non-optional property 'b' in super type 'Y' of type 'X' is missing in object literal. */ + +/* @@@ label Error Semantic error ESE0401: Non-optional property 'c' in super type 'Z' of type 'X' is missing in object literal. */ +/* @@@ label Error Semantic error ESE0401: Non-optional property 'b' in super type 'Y' of type 'X' is missing in object literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_partial.ets b/ets2panda/test/ast/compiler/ets/interface_partial.ets index f3f836c47b1a14c13b0265dba3a438f2ffd6c519..5e7650afe8c80e17800696753ae439e0897dc53e 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_property_scope.ets b/ets2panda/test/ast/compiler/ets/interface_property_scope.ets index ed2b2c03b05a30488ae5a26ecaa140c0e5f0461c..f9b917995fd0fa6ed968b0cb853a6212c91e0187 100644 --- a/ets2panda/test/ast/compiler/ets/interface_property_scope.ets +++ b/ets2panda/test/ast/compiler/ets/interface_property_scope.ets @@ -18,10 +18,11 @@ 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: Identifier expected, got 'end of stream'. */ -/* @@? 18:76 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 19:1 Error SyntaxError: Invalid Type. */ + +/* @@? 16:2 Error Semantic error ESE0371: Cannot find type 'Anno'. */ +/* @@? 18:6 Error Semantic error ESE0371: Cannot find type 'Anno'. */ +/* @@? 18:11 Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ +/* @@? 18:45 Error Syntax error ESY0230: Expected ')', got ','. */ +/* @@? 18:45 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 18:76 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 19:1 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets index 260287ee8be8c7b82885277472210700cc56ef59..c215aa7c5a0b4eec626b3d7e1ea51978bc978854 100644 --- a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets +++ b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets @@ -34,5 +34,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets index 75c6af1ac9d660e384e24d9e0cb4058ac09ecedf..ce4bc6c154a862ea127e7acc153933df0535ff2d 100644 --- a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets +++ b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets @@ -34,5 +34,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets b/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets index 4a53c7b8605b6e5f34eb4563ca7b938b8cb899ba..230e51fa5ceb6750309467db5afa9e59cac719b7 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets @@ -23,4 +23,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets b/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets index c3f4fde638851a88ae829914daa350c79de75fe2..8623eed2c7e7f3e0047ba6999bcfddf503a15d98 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets @@ -26,5 +26,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets b/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets index dad9d78408895ea1a8b00ece94e957b2bed4e3a8..57c29a20f9851ee24c54b07c52def6e462b91245 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets @@ -21,4 +21,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets index 966bca830e5d056e84a030ff4456df392c05bc50..9db29e57c79fce70319a97aba7116825de1307f4 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets @@ -30,5 +30,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets index c406f86f399ac7ed8345888492e85079694ff92f..f297e8a33bd5d6002ce19e84ae377a1639151ba4 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets @@ -30,5 +30,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets index 1dee731ac20dd68488bccfa52ab2e23179d5766e..3ace764b331199fa9f68d4ddfd2ff33229f3eea0 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets @@ -22,4 +22,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets index 1dee731ac20dd68488bccfa52ab2e23179d5766e..3ace764b331199fa9f68d4ddfd2ff33229f3eea0 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets @@ -22,4 +22,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets index 639026ee3f49a909cf7a1b50db09ba9539a84859..f24697490bec21fdd4f47f69b5ec9ce50ea499b9 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets @@ -22,4 +22,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets index 4150dacde6760baa454644346afc4e2dce6d4c02..2b1fb65f5cb17acf44c171591d692050843a53f7 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets @@ -24,4 +24,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets index dc02b67ec10ea1cf558e02327488151127d62af8..040648bb2dc401342ec24f8b740b6d84daf59b49 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets @@ -24,4 +24,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets index dc02b67ec10ea1cf558e02327488151127d62af8..040648bb2dc401342ec24f8b740b6d84daf59b49 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets @@ -24,4 +24,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets index c2c56037a8d77cb58099ebeb1243b3451c35c89b..d52b024502a66401d46495aa051e1c0e0bb0c36a 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets @@ -24,4 +24,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets index 07c477480d2a9b8f6069d939a9d0e80e3d2c399c..06c0feeb8b94bdcbd283a6390afa3ac9e5fa6fde 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets @@ -24,4 +24,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets index a4057a41356bbfa41b469aa08ded29899d8bb8df..e715f6536c3619eb21fe92602e83f3745b4b3780 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets @@ -24,4 +24,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets index f517470b8dda872cb3f495b00b8c435035b386f0..8db957800185b61a365704a360fc4a29845414a0 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets @@ -25,5 +25,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets index 511ee961f9e200c9f2b685f6f2ab8297c7f5fa23..dac801c056afd30961be4df58fce4e182bda1353 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets @@ -35,6 +35,7 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets index 575b66b45373ee271a72c3c47e64679275dfe475..ce8750c00d526f5b287fb2faf4ffdc48f365a85d 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets @@ -23,5 +23,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets index 64d7e24678733f955e044498a2e13075e72d7c75..9a1b1c2985bbea66708719410ff7b47a16024ff5 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets @@ -27,9 +27,10 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets index 1dbd8709db2ad0c6692391e76ad6f02d9cac48e3..bfa34421a866c43af6f64ac05ddc99f48bbb9df4 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets @@ -38,6 +38,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets index a83be828c680e800ee95596a770e50453fee75b9..08159aae30652b79060e7d4366c24dbea51afe76 100644 --- a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets @@ -24,4 +24,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets index e05cbd8ccddf23be55a0c6d4c8476507e6b88aac..6a33237f29322e9b573dde3b56f36f79ddd9c918 100644 --- a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets @@ -25,5 +25,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets index eeaa22daaa3be3ac557d17a03cd89c106fbbd1c4..4aff844da245149ee146b279146e2a067381489d 100644 --- a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets +++ b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets @@ -35,6 +35,7 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets b/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets index 14f2dbbba75c0962f18f779e8cfb20e5f98ccfb7..a15490b2b241793c45edf53e1a456d1947f4e978 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets @@ -17,11 +17,12 @@ 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:13 Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ +/* @@? 17:14 Error Syntax error ESY0077: Invalid character. */ +/* @@? 17:14 Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ +/* @@? 17:15 Error Syntax error ESY0077: Invalid character. */ +/* @@? 17:15 Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ +/* @@? 17:16 Error Syntax error ESY0077: Invalid character. */ +/* @@? 17:16 Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_0.ets b/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_0.ets index eaf899d40ce736f4e64719fe4919d3b676c2395e..0373736b7c5facc347a54d35e9a8f08a1b1488cb 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_0.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_0.ets @@ -17,4 +17,5 @@ function foo() { let x = 1 as T; } -/* @@? 17:13 Error TypeError: Cannot cast type 'Int' to 'T' */ + +/* @@? 17:13 Error Semantic error ESE0326: Cannot cast type 'Int' to 'T' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_1.ets b/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_1.ets index 030e6da0b06a8c20bc58d7100e22d6e31199acce..071f1869bd24fe7432b87cc6a4191ef396c83a53 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_1.ets @@ -17,4 +17,5 @@ function foo() { let x = 1 as (T | U); } -/* @@? 17:13 Error TypeError: Cannot cast type 'Int' to 'T|U' */ + +/* @@? 17:13 Error Semantic error ESE0326: Cannot cast type 'Int' to 'T|U' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_2.ets b/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_2.ets index 728f82f7f6b29c0eec9cdb4010f5054f0447828c..38718f7c44cb3b7529dbb787c9d38cca8942ba66 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_2.ets @@ -15,4 +15,5 @@ function foo(v: X = 1 as (X | Y)){} -/* @@? 16:55 Error TypeError: Cannot cast type 'Int' to 'X|Y' */ + +/* @@? 16:55 Error Semantic error ESE0326: Cannot cast type 'Int' to 'X|Y' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets b/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets index 082a7347c6f729257514aa07347da03dc9bc3cd8..8b9bec9eec26bf6d561e0ecca1ba9672b9881717 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets @@ -16,5 +16,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets index 2f3707f2acf87959d1beed916ef47f23830e600c..09a5f0466bfea39ba611e7cf651df5fa1ff53cd6 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets @@ -23,5 +23,6 @@ namespace C{ } } -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 28:1 Error SyntaxError: Unexpected token. */ + +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 28:62 Error Syntax error ESY0016: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets index c7941e4248b1d7fc9f997fb803fba3db4fd1d678..4f03a76a57c7789620a271c9c5718a8d93db1536 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets @@ -19,4 +19,5 @@ } } -/* @@@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_object.ets b/ets2panda/test/ast/compiler/ets/invalid_object.ets index 72a416d9babb12f1ed778e81d35da164dbd11fda..2d5c329da0862ecf49c6b694182b5994b5c7d075 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 or enum '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 or enum '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 ')'. */ \ No newline at end of file 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..87c2e9ace2c9cb15ff37a7960a6793b8f4871db3 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,12 @@ 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:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:21 Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ +/* @@? 17:21 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:23 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets b/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets index 0ef867033bb85c3592807d5eb5e3dc68aa48014a..e625bc9110ccd1a050aa8a5c95988349ea78d3c4 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets @@ -37,8 +37,9 @@ 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' */ \ No newline at end of file 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..7f478c6c18be8f9b2dcd92434605f43582c81446 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,8 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_token.ets b/ets2panda/test/ast/compiler/ets/invalid_token.ets index 0d30da416f29ef79a62fb6ce05896035530a5498..8ebd0321aa6eaf2502d088ba2841d8a70459170d 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_token.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_token.ets @@ -17,7 +17,8 @@ class A { bit1: int =< 2 } -/* @@? 17:18 Error SyntaxError: Number, string or computed value property name '2' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 17:18 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 17:18 Error SyntaxError: Unexpected token '2'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token, expected '>'. */ + +/* @@? 17:18 Error Syntax error ESY0315: Number, string or computed value property name '2' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 17:18 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 18:1 Error Syntax error ESY0228: Unexpected token, expected '>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_trailing_lambda_call.ets b/ets2panda/test/ast/compiler/ets/invalid_trailing_lambda_call.ets index 809db2982bd6913f758065d709a71d777fb7df48..3853346a5297da3e69519854a912f8c6047689ae 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_trailing_lambda_call.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_trailing_lambda_call.ets @@ -25,15 +25,15 @@ foo3(){} foo4(){} foo5(){} -/* @@? 17:17 Error SyntaxError: 'Required' is reserved and cannot be used as a variable/type name */ -/* @@? 18:17 Error SyntaxError: 'Partial' is reserved and cannot be used as a variable/type name */ -/* @@? 19:17 Error SyntaxError: 'Readonly' is reserved and cannot be used as a variable/type name */ -/* @@? 20:17 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 23:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:1 Error TypeError: No matching call signature */ -/* @@? 24:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 24:1 Error TypeError: No matching call signature */ -/* @@? 25:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 25:1 Error TypeError: No matching call signature */ -/* @@? 26:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 26:1 Error TypeError: No matching call signature */ \ No newline at end of file +/* @@? 17:17 Error Syntax error ESY0242: 'Required' is reserved and cannot be used as a variable/type name */ +/* @@? 18:17 Error Syntax error ESY0242: 'Partial' is reserved and cannot be used as a variable/type name */ +/* @@? 19:17 Error Syntax error ESY0242: 'Readonly' is reserved and cannot be used as a variable/type name */ +/* @@? 20:17 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 23:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:1 Error Semantic error ESE0128: No matching call signature */ +/* @@? 24:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 24:1 Error Semantic error ESE0128: No matching call signature */ +/* @@? 25:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 25: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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets b/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets index f4850751e54e1f9d72894560bd436e6a932569d9..67b714801a8e03eb30e4025b75dff54a2242b5d9 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets @@ -20,6 +20,7 @@ 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. */ \ No newline at end of file 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..ac904afadb66635b206410bff247dc852aff5cc3 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets b/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets index 5edd48126e4922f1439ab8a08ec0c2294b004999..cc5b58397030936635505881224c481e6172d498 100644 --- a/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets +++ b/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets @@ -23,41 +23,42 @@ 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'. */ \ No newline at end of file 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..a01c125932ee5587c771bf5df11301b9295ac958 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,6 @@ 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'. */ \ No newline at end of file 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..f17ca3ee17f9aedf97d47cd092b22349e9d9b217 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,6 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentType.ets b/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentType.ets index abfe1aa2f333b92b103ca2f324524f288977800b..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..de283faf8413d92c57a10d2279ee499938076f0c 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentTypeInfunction.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentTypeInfunction.ets @@ -22,4 +22,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets b/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets index 9aec88b59a32f69d0df6754c5ad5c618a5a53fb6..423ed7e036283886a3964995e44cdc167bf23343 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 '((p1: Int) => void)' cannot be assigned to type '((p1: String) => void)' */ +/* @@@ label Error Semantic error ESE0318: Type '(p1: Int) => void' cannot be assigned to type '(p1: String) => void' */ diff --git a/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets b/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets index 80a0e01511a336aaef39c6ce3bdd93b9de0deb31..fc4c489e21907830e01c0c97ae310663078cbb16 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets @@ -25,4 +25,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets b/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets index bfd7f381cf4d94025fa1d7a14600d33beb3e8e62..799a2441cc0485d89d9119e4b220d3aa6af5ce98 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets @@ -39,5 +39,6 @@ function main(): void { /* @@ label */a.foo(1)(1, /* @@ label1 */"foo"); } -/* @@@ label Error TypeError: No matching call signature for (Int, "foo") */ -/* @@@ label1 Error TypeError: Type '"foo"' is not compatible with type 'Int' at index 2 */ + +/* @@@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_infer_type/lambda_param_type_cannot_be_determined.ets b/ets2panda/test/ast/compiler/ets/lambda_infer_type/lambda_param_type_cannot_be_determined.ets index c97d4a4f45a2602c63e4c50ca15e6328ea31e7b5..3a33c48495852597f53e3e5864dd8a352401986d 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_infer_type/lambda_param_type_cannot_be_determined.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_infer_type/lambda_param_type_cannot_be_determined.ets @@ -19,4 +19,3 @@ function main() { /* @@ label */foo((value) => {}) } -/* @@@ label Error TypeError: No matching call signature for foo((p1: *ERROR_TYPE*) => void) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_override.ets b/ets2panda/test/ast/compiler/ets/lambda_override.ets index f48a63238c12fc801387720540122a7685dc9fe8..47481ef6376c3b619157b54d78ae406ce21b3326 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_override.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_override.ets @@ -20,5 +20,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_1.ets b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_1.ets index ee105ffb916e2ef8b67590580ffb0d7c72c8081d..b3fedb6ed76143481f8769c707d099ac2fa597e6 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_1.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_1.ets @@ -19,4 +19,5 @@ p.then(obj => { const result = typeof obj?.prop; }); -/* @@? 19:27 Error TypeError: Value is possibly nullish. */ + +/* @@? 19:27 Error Semantic error ESE0010: Value is possibly nullish. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_2.ets b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_2.ets index 0ee1d1d128d47fa1bf626bfdb738df1205ba46a9..ab51ed2efd4e952bf2facfa52cab9561df4f6763 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_2.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_2.ets @@ -22,4 +22,5 @@ function main() { }); } -/* @@? 20:23 Error TypeError: Value is possibly nullish. */ + +/* @@? 20:23 Error Semantic error ESE0010: Value is possibly nullish. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_3.ets b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_3.ets index 5283c804c9b483468e9e0107928996c1f0289a30..52bbc385085a055f2538e1450c313922d5262b35 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_3.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_3.ets @@ -19,4 +19,5 @@ p.then(obj => { const result = typeof obj.prop; }); -/* @@? 19:27 Error TypeError: Value is possibly nullish. */ + +/* @@? 19:27 Error Semantic error ESE0010: Value is possibly nullish. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_4.ets b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_4.ets index c7cadbc5773aaad386df081076586966fcaf44c8..7000d7325b285cb2fab11cf2d0f3618a3518215c 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_4.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_4.ets @@ -19,4 +19,5 @@ p.then(obj => { const result = typeof obj.prop; }); -/* @@? 19:31 Error TypeError: Property 'prop' does not exist on type 'String' */ + +/* @@? 19:31 Error Semantic error ESE0087: Property 'prop' does not exist on type 'String' */ \ No newline at end of file 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 94f3539dbcde85ae1e446d61916032933879c3f3..0613c58625c20d88024107f818901eeadb4ed29b 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 '((p1: Double, p2: Boolean, p3: never) => void)' is not compatible with type '((p1: never, p2: never, ...p3: Array) => void)' at index 1 */ +/* @@? 18:10 Error Semantic error ESE0046: Type '(p1: Double, p2: Boolean, p3: never) => void' is not compatible with type '(p1: never, p2: never, ...p3: Array) => void' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets b/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets index df37a25252f22e7dcc689138d732de6a67459b16..91bec53f85fb8859adb52786dfe999d0d5960a98 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 '((p1: Double, ...p2: Array) => void)' cannot be assigned to type '((p1: String, ...p2: Array) => void)' */ -/* @@? 18:38 Error TypeError: Type '((...p1: Array) => void)' cannot be assigned to type '((...p1: Array) => Double)' */ -/* @@? 20:48 Error TypeError: Type '((p1: Double, ...p2: Array) => String)' cannot be assigned to type '((p1: String, ...p2: Array) => String)' */ +/* @@? 16:46 Error Semantic error ESE0318: Type '(p1: Double, ...p2: Array) => void' cannot be assigned to type '(p1: String, ...p2: Array) => void' */ +/* @@? 18:38 Error Semantic error ESE0318: Type '(...p1: Array) => void' cannot be assigned to type '(...p1: Array) => Double' */ +/* @@? 20:48 Error Semantic error ESE0318: Type '(p1: Double, ...p2: Array) => String' cannot be assigned to type '(p1: String, ...p2: Array) => String' */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_param_bad.ets b/ets2panda/test/ast/compiler/ets/lambda_type_param_bad.ets index a078910d43ba189b0602091f658dccebe953985b..cd57f5cfab247555188f5854a85ecfbc452713fd 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_param_bad.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_param_bad.ets @@ -28,4 +28,4 @@ class A { } } -/* @@? 19:40 Error TypeError: Type '((p1: String) => void)' is not compatible with type '((p1: Double) => void)' at index 1 */ +/* @@? 19:40 Error Semantic error ESE0046: Type '(p1: String) => void' is not compatible with type '(p1: Double) => void' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/ExtensionFunctypeUncompatible.ets b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/ExtensionFunctypeUncompatible.ets index 7ef5539f5ace3a1cac1dfd6b9f8f45d18bf0e5fd..4a9b351bf36412e8fc903e65366e7c4dd5859f90 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/ExtensionFunctypeUncompatible.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/ExtensionFunctypeUncompatible.ets @@ -34,6 +34,7 @@ bb = /* @@ label1 */db; bb = /* @@ label2 */dd; bd = /* @@ label3 */db; -/* @@@ label1 Error TypeError: Type '(p1: Derived) => Base' cannot be assigned to type '(p1: Base) => Base' */ -/* @@@ label2 Error TypeError: Type '(p1: Derived) => Derived' cannot be assigned to type '(p1: Base) => Base' */ -/* @@@ label3 Error TypeError: Type '(p1: Derived) => Base' cannot be assigned to type '(p1: Base) => Derived' */ + +/* @@@ label1 Error Semantic error ESE0318: Type '(=t: Derived) => Base' cannot be assigned to type '(=t: Base) => Base' */ +/* @@@ label2 Error Semantic error ESE0318: Type '(=t: Derived) => Derived' cannot be assigned to type '(=t: Base) => Base' */ +/* @@@ label3 Error Semantic error ESE0318: Type '(=t: Derived) => Base' cannot be assigned to type '(=t: Base) => Derived' */ \ No newline at end of file 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..95f174c5d1921a1ce994bb58ea1a8504290f911e 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,6 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated.ets b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated.ets index eab917e75ae900905e634fadc4445338f2092206..d3dae1d99322566d46bc82f3e09cc2150cc2cd91 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated.ets @@ -20,4 +20,5 @@ class A { /* @@ label1 */foo(n: number, g: (this: B) => void) {} } -/* @@@ label1 Error TypeError: Function foo is already declared. */ + +/* @@@ label1 Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated2.ets b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated2.ets index 6ca8fa0fc255b63585d46e5e7313e65656e9df13..0abddffb7199b9973ae819908b34e9b4f15a3e8d 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated2.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated2.ets @@ -18,4 +18,5 @@ class A {} function foo(this: A, f: (this: A) => void) {} /* @@ label1 */function foo(this: A, f: (this: B) => void) {} -/* @@@ label1 Error TypeError: Function foo is already declared. */ + +/* @@@ label1 Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ \ No newline at end of file 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..a299c6c31543d544ae93dfb1913030ec2f092027 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,5 @@ 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 */ \ No newline at end of file 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..332738ecfd20cd9bfca6122a921d00050b0a02fa 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! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/localTypeAlias.ets b/ets2panda/test/ast/compiler/ets/localTypeAlias.ets index 406e90965e049f7f67c9fbfd6975ca9a4198ea38..dd219b5e4f9e63e6e3447f19ffe17bb9a16d5ef0 100644 --- a/ets2panda/test/ast/compiler/ets/localTypeAlias.ets +++ b/ets2panda/test/ast/compiler/ets/localTypeAlias.ets @@ -76,30 +76,31 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/local_enum02.ets b/ets2panda/test/ast/compiler/ets/local_enum02.ets index 43b006318a74b9acfae22a330d6f9e6b6214b542..04fa324e56f8e1187188df8135b716c2f4859715 100644 --- a/ets2panda/test/ast/compiler/ets/local_enum02.ets +++ b/ets2panda/test/ast/compiler/ets/local_enum02.ets @@ -25,5 +25,6 @@ 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 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Foo' to 'Int' will be removed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/local_enum03.ets b/ets2panda/test/ast/compiler/ets/local_enum03.ets index 0b08ef92588064ddf597463ac384112d9380b789..7db4b80e5869df7dd8cc0532443dfa573872cf38 100644 --- a/ets2panda/test/ast/compiler/ets/local_enum03.ets +++ b/ets2panda/test/ast/compiler/ets/local_enum03.ets @@ -22,5 +22,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/manyLocalsParamRegUsage.ets b/ets2panda/test/ast/compiler/ets/manyLocalsParamRegUsage.ets new file mode 100644 index 0000000000000000000000000000000000000000..b0c681e0f5f24afaefcc7237d6493e5d5e6bdbd9 --- /dev/null +++ b/ets2panda/test/ast/compiler/ets/manyLocalsParamRegUsage.ets @@ -0,0 +1,2174 @@ +/* + * Copyright (c) 2023-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. + */ + +class Mat4 { + constructor( + m0: double, + m1: double, + m2: double, + m3: double, + m4: double, + m5: double, + m6: double, + m7: double, + m8: double, + m9: double, + m10: double, + m11: double, + m12: double, + m13: double, + m14: double, + m15: double, + m16: double, + m17: double, + m18: double, + m19: double, + m20: double, + m21: double, + m22: double, + m23: double, + m24: double, + m25: double, + m26: double, + m27: double, + m28: double, + m29: double, + m30: double, + m31: double, + m32: double, + m33: double, + m34: double, + m35: double, + m36: double, + m37: double, + m38: double, + m39: double, + m40: double, + m41: double, + m42: double, + m43: double, + m44: double, + m45: double, + m46: double, + m47: double, + m48: double, + m49: double, + m50: double, + m51: double, + m52: double, + m53: double, + m54: double, + m55: double, + m56: double, + m57: double, + m58: double, + m59: double, + m60: double, + m61: double, + m62: double, + m63: double, + m64: double, + m65: double, + m66: double, + m67: double, + m68: double, + m69: double, + m70: double, + m71: double, + m72: double, + m73: double, + m74: double, + m75: double, + m76: double, + m77: double, + m78: double, + m79: double, + m80: double, + m81: double, + m82: double, + m83: double, + m84: double, + m85: double, + m86: double, + m87: double, + m88: double, + m89: double, + m90: double, + m91: double, + m92: double, + m93: double, + m94: double, + m95: double, + m96: double, + m97: double, + m98: double, + m99: double, + m100: double, + m101: double, + m102: double, + m103: double, + m104: double, + m105: double, + m106: double, + m107: double, + m108: double, + m109: double, + m110: double, + m111: double, + m112: double, + m113: double, + m114: double, + m115: double, + m116: double, + m117: double, + m118: double, + m119: double, + m120: double, + m121: double, + m122: double, + m123: double, + m124: double, + m125: double, + m126: double, + m127: double, + m128: double, + m129: double, + m130: double, + m131: double, + m132: double, + m133: double, + m134: double, + m135: double, + m136: double, + m137: double, + m138: double, + m139: double, + m140: double, + m141: double, + m142: double, + m143: double, + m144: double, + m145: double, + m146: double, + m147: double, + m148: double, + m149: double, + m150: double, + m151: double, + m152: double, + m153: double, + m154: double, + m155: double, + m156: double, + m157: double, + m158: double, + m159: double, + m160: double, + m161: double, + m162: double, + m163: double, + m164: double, + m165: double, + m166: double, + m167: double, + m168: double, + m169: double, + m170: double, + m171: double, + m172: double, + m173: double, + m174: double, + m175: double, + m176: double, + m177: double, + m178: double, + m179: double, + m180: double, + m181: double, + m182: double, + m183: double, + m184: double, + m185: double, + m186: double, + m187: double, + m188: double, + m189: double, + m190: double, + m191: double, + m192: double, + m193: double, + m194: double, + m195: double, + m196: double, + m197: double, + m198: double, + m199: double, + m200: double, + m201: double, + m202: double, + m203: double, + m204: double, + m205: double, + m206: double, + m207: double, + m208: double, + m209: double, + m210: double, + m211: double, + m212: double, + m213: double, + m214: double, + m215: double, + m216: double, + m217: double, + m218: double, + m219: double, + m220: double, + m221: double, + m222: double, + m223: double, + m224: double, + m225: double, + m226: double, + m227: double, + m228: double, + m229: double, + m230: double, + m231: double, + m232: double, + m233: double, + m234: double, + m235: double, + m236: double, + m237: double, + m238: double, + m239: double, + m240: double, + m241: double, + m242: double, + m243: double, + m244: double, + m245: double, + m246: double, + m247: double, + m248: double, + m249: double, + m250: double, + m251: double, + m252: double, + m253: double, + m254: double, + m255: double + ) {} +} + +function func(): void {} + +class ParticleSystem { + public f: int; + public m = new Mat4( + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ); + + foo() { + let x0 = 0; + let x1 = 1; + let x2 = 2; + let x3 = 3; + let x4 = 4; + let x5 = 5; + let x6 = 6; + let x7 = 7; + let x8 = 8; + let x9 = 9; + let x10 = 10; + let x11 = 11; + let x12 = 12; + let x13 = 13; + let x14 = 14; + let x15 = 15; + let x16 = 16; + let x: () => Mat4 = (): Mat4 => { + return this.m; + } + } + + bar() { + let x0 = 0 + let x1 = 0 + let x2 = 0 + let x3 = 0 + let x4 = 0 + let x5 = 0 + let x6 = 0 + let x7 = 0 + let x8 = 0 + let x9 = 0 + let x10 = 0 + let x11 = 0 + let x12 = 0 + let x13 = 0 + let x14 = 0 + let x15 = 0 + let x16 = 0 + let x17 = 0 + let x18 = 0 + let x19 = 0 + let x20 = 0 + let x21 = 0 + let x22 = 0 + let x23 = 0 + let x24 = 0 + let x25 = 0 + let x26 = 0 + let x27 = 0 + let x28 = 0 + let x29 = 0 + let x30 = 0 + let x31 = 0 + let x32 = 0 + let x33 = 0 + let x34 = 0 + let x35 = 0 + let x36 = 0 + let x37 = 0 + let x38 = 0 + let x39 = 0 + let x40 = 0 + let x41 = 0 + let x42 = 0 + let x43 = 0 + let x44 = 0 + let x45 = 0 + let x46 = 0 + let x47 = 0 + let x48 = 0 + let x49 = 0 + let x50 = 0 + let x51 = 0 + let x52 = 0 + let x53 = 0 + let x54 = 0 + let x55 = 0 + let x56 = 0 + let x57 = 0 + let x58 = 0 + let x59 = 0 + let x60 = 0 + let x61 = 0 + let x62 = 0 + let x63 = 0 + let x64 = 0 + let x65 = 0 + let x66 = 0 + let x67 = 0 + let x68 = 0 + let x69 = 0 + let x70 = 0 + let x71 = 0 + let x72 = 0 + let x73 = 0 + let x74 = 0 + let x75 = 0 + let x76 = 0 + let x77 = 0 + let x78 = 0 + let x79 = 0 + let x80 = 0 + let x81 = 0 + let x82 = 0 + let x83 = 0 + let x84 = 0 + let x85 = 0 + let x86 = 0 + let x87 = 0 + let x88 = 0 + let x89 = 0 + let x90 = 0 + let x91 = 0 + let x92 = 0 + let x93 = 0 + let x94 = 0 + let x95 = 0 + let x96 = 0 + let x97 = 0 + let x98 = 0 + let x99 = 0 + let x100 = 0 + let x101 = 0 + let x102 = 0 + let x103 = 0 + let x104 = 0 + let x105 = 0 + let x106 = 0 + let x107 = 0 + let x108 = 0 + let x109 = 0 + let x110 = 0 + let x111 = 0 + let x112 = 0 + let x113 = 0 + let x114 = 0 + let x115 = 0 + let x116 = 0 + let x117 = 0 + let x118 = 0 + let x119 = 0 + let x120 = 0 + let x121 = 0 + let x122 = 0 + let x123 = 0 + let x124 = 0 + let x125 = 0 + let x126 = 0 + let x127 = 0 + let x128 = 0 + let x129 = 0 + let x130 = 0 + let x131 = 0 + let x132 = 0 + let x133 = 0 + let x134 = 0 + let x135 = 0 + let x136 = 0 + let x137 = 0 + let x138 = 0 + let x139 = 0 + let x140 = 0 + let x141 = 0 + let x142 = 0 + let x143 = 0 + let x144 = 0 + let x145 = 0 + let x146 = 0 + let x147 = 0 + let x148 = 0 + let x149 = 0 + let x150 = 0 + let x151 = 0 + let x152 = 0 + let x153 = 0 + let x154 = 0 + let x155 = 0 + let x156 = 0 + let x157 = 0 + let x158 = 0 + let x159 = 0 + let x160 = 0 + let x161 = 0 + let x162 = 0 + let x163 = 0 + let x164 = 0 + let x165 = 0 + let x166 = 0 + let x167 = 0 + let x168 = 0 + let x169 = 0 + let x170 = 0 + let x171 = 0 + let x172 = 0 + let x173 = 0 + let x174 = 0 + let x175 = 0 + let x176 = 0 + let x177 = 0 + let x178 = 0 + let x179 = 0 + let x180 = 0 + let x181 = 0 + let x182 = 0 + let x183 = 0 + let x184 = 0 + let x185 = 0 + let x186 = 0 + let x187 = 0 + let x188 = 0 + let x189 = 0 + let x190 = 0 + let x191 = 0 + let x192 = 0 + let x193 = 0 + let x194 = 0 + let x195 = 0 + let x196 = 0 + let x197 = 0 + let x198 = 0 + let x199 = 0 + let x200 = 0 + let x201 = 0 + let x202 = 0 + let x203 = 0 + let x204 = 0 + let x205 = 0 + let x206 = 0 + let x207 = 0 + let x208 = 0 + let x209 = 0 + let x210 = 0 + let x211 = 0 + let x212 = 0 + let x213 = 0 + let x214 = 0 + let x215 = 0 + let x216 = 0 + let x217 = 0 + let x218 = 0 + let x219 = 0 + let x220 = 0 + let x221 = 0 + let x222 = 0 + let x223 = 0 + let x224 = 0 + let x225 = 0 + let x226 = 0 + let x227 = 0 + let x228 = 0 + let x229 = 0 + let x230 = 0 + let x231 = 0 + let x232 = 0 + let x233 = 0 + let x234 = 0 + let x235 = 0 + let x236 = 0 + let x237 = 0 + let x238 = 0 + let x239 = 0 + let x240 = 0 + let x241 = 0 + let x242 = 0 + let x243 = 0 + let x244 = 0 + let x245 = 0 + let x246 = 0 + let x247 = 0 + let x248 = 0 + let x249 = 0 + let x250 = 0 + let x251 = 0 + let x252 = 0 + let x253 = 0 + let x254 = 0 + let x255 = 0 + let x = this.f + this.f = 0 + } +} + +function foo(p1: int, p2: int): int { + let x0 = 0 + let x1 = 0 + let x2 = 0 + let x3 = 0 + let x4 = 0 + let x5 = 0 + let x6 = 0 + let x7 = 0 + let x8 = 0 + let x9 = 0 + let x10 = 0 + let x11 = 0 + let x12 = 0 + let x13 = 0 + let x14 = 0 + let x15 = 0 + let x16 = 0 + let x17 = 0 + let x18 = 0 + let x19 = 0 + let x20 = 0 + let x21 = 0 + let x22 = 0 + let x23 = 0 + let x24 = 0 + let x25 = 0 + let x26 = 0 + let x27 = 0 + let x28 = 0 + let x29 = 0 + let x30 = 0 + let x31 = 0 + let x32 = 0 + let x33 = 0 + let x34 = 0 + let x35 = 0 + let x36 = 0 + let x37 = 0 + let x38 = 0 + let x39 = 0 + let x40 = 0 + let x41 = 0 + let x42 = 0 + let x43 = 0 + let x44 = 0 + let x45 = 0 + let x46 = 0 + let x47 = 0 + let x48 = 0 + let x49 = 0 + let x50 = 0 + let x51 = 0 + let x52 = 0 + let x53 = 0 + let x54 = 0 + let x55 = 0 + let x56 = 0 + let x57 = 0 + let x58 = 0 + let x59 = 0 + let x60 = 0 + let x61 = 0 + let x62 = 0 + let x63 = 0 + let x64 = 0 + let x65 = 0 + let x66 = 0 + let x67 = 0 + let x68 = 0 + let x69 = 0 + let x70 = 0 + let x71 = 0 + let x72 = 0 + let x73 = 0 + let x74 = 0 + let x75 = 0 + let x76 = 0 + let x77 = 0 + let x78 = 0 + let x79 = 0 + let x80 = 0 + let x81 = 0 + let x82 = 0 + let x83 = 0 + let x84 = 0 + let x85 = 0 + let x86 = 0 + let x87 = 0 + let x88 = 0 + let x89 = 0 + let x90 = 0 + let x91 = 0 + let x92 = 0 + let x93 = 0 + let x94 = 0 + let x95 = 0 + let x96 = 0 + let x97 = 0 + let x98 = 0 + let x99 = 0 + let x100 = 0 + let x101 = 0 + let x102 = 0 + let x103 = 0 + let x104 = 0 + let x105 = 0 + let x106 = 0 + let x107 = 0 + let x108 = 0 + let x109 = 0 + let x110 = 0 + let x111 = 0 + let x112 = 0 + let x113 = 0 + let x114 = 0 + let x115 = 0 + let x116 = 0 + let x117 = 0 + let x118 = 0 + let x119 = 0 + let x120 = 0 + let x121 = 0 + let x122 = 0 + let x123 = 0 + let x124 = 0 + let x125 = 0 + let x126 = 0 + let x127 = 0 + let x128 = 0 + let x129 = 0 + let x130 = 0 + let x131 = 0 + let x132 = 0 + let x133 = 0 + let x134 = 0 + let x135 = 0 + let x136 = 0 + let x137 = 0 + let x138 = 0 + let x139 = 0 + let x140 = 0 + let x141 = 0 + let x142 = 0 + let x143 = 0 + let x144 = 0 + let x145 = 0 + let x146 = 0 + let x147 = 0 + let x148 = 0 + let x149 = 0 + let x150 = 0 + let x151 = 0 + let x152 = 0 + let x153 = 0 + let x154 = 0 + let x155 = 0 + let x156 = 0 + let x157 = 0 + let x158 = 0 + let x159 = 0 + let x160 = 0 + let x161 = 0 + let x162 = 0 + let x163 = 0 + let x164 = 0 + let x165 = 0 + let x166 = 0 + let x167 = 0 + let x168 = 0 + let x169 = 0 + let x170 = 0 + let x171 = 0 + let x172 = 0 + let x173 = 0 + let x174 = 0 + let x175 = 0 + let x176 = 0 + let x177 = 0 + let x178 = 0 + let x179 = 0 + let x180 = 0 + let x181 = 0 + let x182 = 0 + let x183 = 0 + let x184 = 0 + let x185 = 0 + let x186 = 0 + let x187 = 0 + let x188 = 0 + let x189 = 0 + let x190 = 0 + let x191 = 0 + let x192 = 0 + let x193 = 0 + let x194 = 0 + let x195 = 0 + let x196 = 0 + let x197 = 0 + let x198 = 0 + let x199 = 0 + let x200 = 0 + let x201 = 0 + let x202 = 0 + let x203 = 0 + let x204 = 0 + let x205 = 0 + let x206 = 0 + let x207 = 0 + let x208 = 0 + let x209 = 0 + let x210 = 0 + let x211 = 0 + let x212 = 0 + let x213 = 0 + let x214 = 0 + let x215 = 0 + let x216 = 0 + let x217 = 0 + let x218 = 0 + let x219 = 0 + let x220 = 0 + let x221 = 0 + let x222 = 0 + let x223 = 0 + let x224 = 0 + let x225 = 0 + let x226 = 0 + let x227 = 0 + let x228 = 0 + let x229 = 0 + let x230 = 0 + let x231 = 0 + let x232 = 0 + let x233 = 0 + let x234 = 0 + let x235 = 0 + let x236 = 0 + let x237 = 0 + let x238 = 0 + let x239 = 0 + let x240 = 0 + let x241 = 0 + let x242 = 0 + let x243 = 0 + let x244 = 0 + let x245 = 0 + let x246 = 0 + let x247 = 0 + let x248 = 0 + let x249 = 0 + let x250 = 0 + let x251 = 0 + let x252 = 0 + let x253 = 0 + let x254 = 0 + let x255 = 0 + return p1 + p2 +} + +/* + * Copyright (c) 2023-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. + */ + +class Mat4 { + constructor( + m0: double, + m1: double, + m2: double, + m3: double, + m4: double, + m5: double, + m6: double, + m7: double, + m8: double, + m9: double, + m10: double, + m11: double, + m12: double, + m13: double, + m14: double, + m15: double, + m16: double, + m17: double, + m18: double, + m19: double, + m20: double, + m21: double, + m22: double, + m23: double, + m24: double, + m25: double, + m26: double, + m27: double, + m28: double, + m29: double, + m30: double, + m31: double, + m32: double, + m33: double, + m34: double, + m35: double, + m36: double, + m37: double, + m38: double, + m39: double, + m40: double, + m41: double, + m42: double, + m43: double, + m44: double, + m45: double, + m46: double, + m47: double, + m48: double, + m49: double, + m50: double, + m51: double, + m52: double, + m53: double, + m54: double, + m55: double, + m56: double, + m57: double, + m58: double, + m59: double, + m60: double, + m61: double, + m62: double, + m63: double, + m64: double, + m65: double, + m66: double, + m67: double, + m68: double, + m69: double, + m70: double, + m71: double, + m72: double, + m73: double, + m74: double, + m75: double, + m76: double, + m77: double, + m78: double, + m79: double, + m80: double, + m81: double, + m82: double, + m83: double, + m84: double, + m85: double, + m86: double, + m87: double, + m88: double, + m89: double, + m90: double, + m91: double, + m92: double, + m93: double, + m94: double, + m95: double, + m96: double, + m97: double, + m98: double, + m99: double, + m100: double, + m101: double, + m102: double, + m103: double, + m104: double, + m105: double, + m106: double, + m107: double, + m108: double, + m109: double, + m110: double, + m111: double, + m112: double, + m113: double, + m114: double, + m115: double, + m116: double, + m117: double, + m118: double, + m119: double, + m120: double, + m121: double, + m122: double, + m123: double, + m124: double, + m125: double, + m126: double, + m127: double, + m128: double, + m129: double, + m130: double, + m131: double, + m132: double, + m133: double, + m134: double, + m135: double, + m136: double, + m137: double, + m138: double, + m139: double, + m140: double, + m141: double, + m142: double, + m143: double, + m144: double, + m145: double, + m146: double, + m147: double, + m148: double, + m149: double, + m150: double, + m151: double, + m152: double, + m153: double, + m154: double, + m155: double, + m156: double, + m157: double, + m158: double, + m159: double, + m160: double, + m161: double, + m162: double, + m163: double, + m164: double, + m165: double, + m166: double, + m167: double, + m168: double, + m169: double, + m170: double, + m171: double, + m172: double, + m173: double, + m174: double, + m175: double, + m176: double, + m177: double, + m178: double, + m179: double, + m180: double, + m181: double, + m182: double, + m183: double, + m184: double, + m185: double, + m186: double, + m187: double, + m188: double, + m189: double, + m190: double, + m191: double, + m192: double, + m193: double, + m194: double, + m195: double, + m196: double, + m197: double, + m198: double, + m199: double, + m200: double, + m201: double, + m202: double, + m203: double, + m204: double, + m205: double, + m206: double, + m207: double, + m208: double, + m209: double, + m210: double, + m211: double, + m212: double, + m213: double, + m214: double, + m215: double, + m216: double, + m217: double, + m218: double, + m219: double, + m220: double, + m221: double, + m222: double, + m223: double, + m224: double, + m225: double, + m226: double, + m227: double, + m228: double, + m229: double, + m230: double, + m231: double, + m232: double, + m233: double, + m234: double, + m235: double, + m236: double, + m237: double, + m238: double, + m239: double, + m240: double, + m241: double, + m242: double, + m243: double, + m244: double, + m245: double, + m246: double, + m247: double, + m248: double, + m249: double, + m250: double, + m251: double, + m252: double, + m253: double, + m254: double, + m255: double + ) {} +} + +function func(): void {} + +class ParticleSystem { + public f: int; + public m = new Mat4( + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ); + + foo() { + let x0 = 0; + let x1 = 1; + let x2 = 2; + let x3 = 3; + let x4 = 4; + let x5 = 5; + let x6 = 6; + let x7 = 7; + let x8 = 8; + let x9 = 9; + let x10 = 10; + let x11 = 11; + let x12 = 12; + let x13 = 13; + let x14 = 14; + let x15 = 15; + let x16 = 16; + let x: () => Mat4 = (): Mat4 => { + return this.m; + } + } + + bar() { + let x0 = 0 + let x1 = 0 + let x2 = 0 + let x3 = 0 + let x4 = 0 + let x5 = 0 + let x6 = 0 + let x7 = 0 + let x8 = 0 + let x9 = 0 + let x10 = 0 + let x11 = 0 + let x12 = 0 + let x13 = 0 + let x14 = 0 + let x15 = 0 + let x16 = 0 + let x17 = 0 + let x18 = 0 + let x19 = 0 + let x20 = 0 + let x21 = 0 + let x22 = 0 + let x23 = 0 + let x24 = 0 + let x25 = 0 + let x26 = 0 + let x27 = 0 + let x28 = 0 + let x29 = 0 + let x30 = 0 + let x31 = 0 + let x32 = 0 + let x33 = 0 + let x34 = 0 + let x35 = 0 + let x36 = 0 + let x37 = 0 + let x38 = 0 + let x39 = 0 + let x40 = 0 + let x41 = 0 + let x42 = 0 + let x43 = 0 + let x44 = 0 + let x45 = 0 + let x46 = 0 + let x47 = 0 + let x48 = 0 + let x49 = 0 + let x50 = 0 + let x51 = 0 + let x52 = 0 + let x53 = 0 + let x54 = 0 + let x55 = 0 + let x56 = 0 + let x57 = 0 + let x58 = 0 + let x59 = 0 + let x60 = 0 + let x61 = 0 + let x62 = 0 + let x63 = 0 + let x64 = 0 + let x65 = 0 + let x66 = 0 + let x67 = 0 + let x68 = 0 + let x69 = 0 + let x70 = 0 + let x71 = 0 + let x72 = 0 + let x73 = 0 + let x74 = 0 + let x75 = 0 + let x76 = 0 + let x77 = 0 + let x78 = 0 + let x79 = 0 + let x80 = 0 + let x81 = 0 + let x82 = 0 + let x83 = 0 + let x84 = 0 + let x85 = 0 + let x86 = 0 + let x87 = 0 + let x88 = 0 + let x89 = 0 + let x90 = 0 + let x91 = 0 + let x92 = 0 + let x93 = 0 + let x94 = 0 + let x95 = 0 + let x96 = 0 + let x97 = 0 + let x98 = 0 + let x99 = 0 + let x100 = 0 + let x101 = 0 + let x102 = 0 + let x103 = 0 + let x104 = 0 + let x105 = 0 + let x106 = 0 + let x107 = 0 + let x108 = 0 + let x109 = 0 + let x110 = 0 + let x111 = 0 + let x112 = 0 + let x113 = 0 + let x114 = 0 + let x115 = 0 + let x116 = 0 + let x117 = 0 + let x118 = 0 + let x119 = 0 + let x120 = 0 + let x121 = 0 + let x122 = 0 + let x123 = 0 + let x124 = 0 + let x125 = 0 + let x126 = 0 + let x127 = 0 + let x128 = 0 + let x129 = 0 + let x130 = 0 + let x131 = 0 + let x132 = 0 + let x133 = 0 + let x134 = 0 + let x135 = 0 + let x136 = 0 + let x137 = 0 + let x138 = 0 + let x139 = 0 + let x140 = 0 + let x141 = 0 + let x142 = 0 + let x143 = 0 + let x144 = 0 + let x145 = 0 + let x146 = 0 + let x147 = 0 + let x148 = 0 + let x149 = 0 + let x150 = 0 + let x151 = 0 + let x152 = 0 + let x153 = 0 + let x154 = 0 + let x155 = 0 + let x156 = 0 + let x157 = 0 + let x158 = 0 + let x159 = 0 + let x160 = 0 + let x161 = 0 + let x162 = 0 + let x163 = 0 + let x164 = 0 + let x165 = 0 + let x166 = 0 + let x167 = 0 + let x168 = 0 + let x169 = 0 + let x170 = 0 + let x171 = 0 + let x172 = 0 + let x173 = 0 + let x174 = 0 + let x175 = 0 + let x176 = 0 + let x177 = 0 + let x178 = 0 + let x179 = 0 + let x180 = 0 + let x181 = 0 + let x182 = 0 + let x183 = 0 + let x184 = 0 + let x185 = 0 + let x186 = 0 + let x187 = 0 + let x188 = 0 + let x189 = 0 + let x190 = 0 + let x191 = 0 + let x192 = 0 + let x193 = 0 + let x194 = 0 + let x195 = 0 + let x196 = 0 + let x197 = 0 + let x198 = 0 + let x199 = 0 + let x200 = 0 + let x201 = 0 + let x202 = 0 + let x203 = 0 + let x204 = 0 + let x205 = 0 + let x206 = 0 + let x207 = 0 + let x208 = 0 + let x209 = 0 + let x210 = 0 + let x211 = 0 + let x212 = 0 + let x213 = 0 + let x214 = 0 + let x215 = 0 + let x216 = 0 + let x217 = 0 + let x218 = 0 + let x219 = 0 + let x220 = 0 + let x221 = 0 + let x222 = 0 + let x223 = 0 + let x224 = 0 + let x225 = 0 + let x226 = 0 + let x227 = 0 + let x228 = 0 + let x229 = 0 + let x230 = 0 + let x231 = 0 + let x232 = 0 + let x233 = 0 + let x234 = 0 + let x235 = 0 + let x236 = 0 + let x237 = 0 + let x238 = 0 + let x239 = 0 + let x240 = 0 + let x241 = 0 + let x242 = 0 + let x243 = 0 + let x244 = 0 + let x245 = 0 + let x246 = 0 + let x247 = 0 + let x248 = 0 + let x249 = 0 + let x250 = 0 + let x251 = 0 + let x252 = 0 + let x253 = 0 + let x254 = 0 + let x255 = 0 + let x = this.f + this.f = 0 + } +} + +function foo(p1: int, p2: int): int { + let x0 = 0 + let x1 = 0 + let x2 = 0 + let x3 = 0 + let x4 = 0 + let x5 = 0 + let x6 = 0 + let x7 = 0 + let x8 = 0 + let x9 = 0 + let x10 = 0 + let x11 = 0 + let x12 = 0 + let x13 = 0 + let x14 = 0 + let x15 = 0 + let x16 = 0 + let x17 = 0 + let x18 = 0 + let x19 = 0 + let x20 = 0 + let x21 = 0 + let x22 = 0 + let x23 = 0 + let x24 = 0 + let x25 = 0 + let x26 = 0 + let x27 = 0 + let x28 = 0 + let x29 = 0 + let x30 = 0 + let x31 = 0 + let x32 = 0 + let x33 = 0 + let x34 = 0 + let x35 = 0 + let x36 = 0 + let x37 = 0 + let x38 = 0 + let x39 = 0 + let x40 = 0 + let x41 = 0 + let x42 = 0 + let x43 = 0 + let x44 = 0 + let x45 = 0 + let x46 = 0 + let x47 = 0 + let x48 = 0 + let x49 = 0 + let x50 = 0 + let x51 = 0 + let x52 = 0 + let x53 = 0 + let x54 = 0 + let x55 = 0 + let x56 = 0 + let x57 = 0 + let x58 = 0 + let x59 = 0 + let x60 = 0 + let x61 = 0 + let x62 = 0 + let x63 = 0 + let x64 = 0 + let x65 = 0 + let x66 = 0 + let x67 = 0 + let x68 = 0 + let x69 = 0 + let x70 = 0 + let x71 = 0 + let x72 = 0 + let x73 = 0 + let x74 = 0 + let x75 = 0 + let x76 = 0 + let x77 = 0 + let x78 = 0 + let x79 = 0 + let x80 = 0 + let x81 = 0 + let x82 = 0 + let x83 = 0 + let x84 = 0 + let x85 = 0 + let x86 = 0 + let x87 = 0 + let x88 = 0 + let x89 = 0 + let x90 = 0 + let x91 = 0 + let x92 = 0 + let x93 = 0 + let x94 = 0 + let x95 = 0 + let x96 = 0 + let x97 = 0 + let x98 = 0 + let x99 = 0 + let x100 = 0 + let x101 = 0 + let x102 = 0 + let x103 = 0 + let x104 = 0 + let x105 = 0 + let x106 = 0 + let x107 = 0 + let x108 = 0 + let x109 = 0 + let x110 = 0 + let x111 = 0 + let x112 = 0 + let x113 = 0 + let x114 = 0 + let x115 = 0 + let x116 = 0 + let x117 = 0 + let x118 = 0 + let x119 = 0 + let x120 = 0 + let x121 = 0 + let x122 = 0 + let x123 = 0 + let x124 = 0 + let x125 = 0 + let x126 = 0 + let x127 = 0 + let x128 = 0 + let x129 = 0 + let x130 = 0 + let x131 = 0 + let x132 = 0 + let x133 = 0 + let x134 = 0 + let x135 = 0 + let x136 = 0 + let x137 = 0 + let x138 = 0 + let x139 = 0 + let x140 = 0 + let x141 = 0 + let x142 = 0 + let x143 = 0 + let x144 = 0 + let x145 = 0 + let x146 = 0 + let x147 = 0 + let x148 = 0 + let x149 = 0 + let x150 = 0 + let x151 = 0 + let x152 = 0 + let x153 = 0 + let x154 = 0 + let x155 = 0 + let x156 = 0 + let x157 = 0 + let x158 = 0 + let x159 = 0 + let x160 = 0 + let x161 = 0 + let x162 = 0 + let x163 = 0 + let x164 = 0 + let x165 = 0 + let x166 = 0 + let x167 = 0 + let x168 = 0 + let x169 = 0 + let x170 = 0 + let x171 = 0 + let x172 = 0 + let x173 = 0 + let x174 = 0 + let x175 = 0 + let x176 = 0 + let x177 = 0 + let x178 = 0 + let x179 = 0 + let x180 = 0 + let x181 = 0 + let x182 = 0 + let x183 = 0 + let x184 = 0 + let x185 = 0 + let x186 = 0 + let x187 = 0 + let x188 = 0 + let x189 = 0 + let x190 = 0 + let x191 = 0 + let x192 = 0 + let x193 = 0 + let x194 = 0 + let x195 = 0 + let x196 = 0 + let x197 = 0 + let x198 = 0 + let x199 = 0 + let x200 = 0 + let x201 = 0 + let x202 = 0 + let x203 = 0 + let x204 = 0 + let x205 = 0 + let x206 = 0 + let x207 = 0 + let x208 = 0 + let x209 = 0 + let x210 = 0 + let x211 = 0 + let x212 = 0 + let x213 = 0 + let x214 = 0 + let x215 = 0 + let x216 = 0 + let x217 = 0 + let x218 = 0 + let x219 = 0 + let x220 = 0 + let x221 = 0 + let x222 = 0 + let x223 = 0 + let x224 = 0 + let x225 = 0 + let x226 = 0 + let x227 = 0 + let x228 = 0 + let x229 = 0 + let x230 = 0 + let x231 = 0 + let x232 = 0 + let x233 = 0 + let x234 = 0 + let x235 = 0 + let x236 = 0 + let x237 = 0 + let x238 = 0 + let x239 = 0 + let x240 = 0 + let x241 = 0 + let x242 = 0 + let x243 = 0 + let x244 = 0 + let x245 = 0 + let x246 = 0 + let x247 = 0 + let x248 = 0 + let x249 = 0 + let x250 = 0 + let x251 = 0 + let x252 = 0 + let x253 = 0 + let x254 = 0 + let x255 = 0 + return p1 + p2 +} + +/* @@? 1100:7 Error Semantic error ESE0351: Variable 'Mat4' has already been declared. */ +/* @@? 1100:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 1361:1 Error Semantic error ESE0130: Function func is already declared. */ +/* @@? 1363:7 Error Semantic error ESE0351: Variable 'ParticleSystem' has already been declared. */ +/* @@? 1363:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 1909:1 Error Semantic error ESE0130: Function foo is already declared. */ \ No newline at end of file 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..e5106ae031a5993fcf6e088a0c1e253165a21bd6 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,10 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/method-assignment.ets b/ets2panda/test/ast/compiler/ets/method-assignment.ets index 8bf46b3b8dda5d946381769cc48228a96d5c63f8..70969eb0ecbefff402121cfa1fb561172125811b 100644 --- a/ets2panda/test/ast/compiler/ets/method-assignment.ets +++ b/ets2panda/test/ast/compiler/ets/method-assignment.ets @@ -47,10 +47,11 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/method-assignment_01.ets b/ets2panda/test/ast/compiler/ets/method-assignment_01.ets index e572ac69815632aed7ffc03ff74b38256c06a75f..6e3084a41834829e581905882cbfcdbc25ae56ac 100644 --- a/ets2panda/test/ast/compiler/ets/method-assignment_01.ets +++ b/ets2panda/test/ast/compiler/ets/method-assignment_01.ets @@ -38,4 +38,5 @@ function main() { } } -/* @@@ label Error TypeError: Class methods cannot be overwritten. */ + +/* @@@ label Error Semantic error ESE0394: Class methods cannot be overwritten. */ \ No newline at end of file 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..86769c6089048062bdf7c0656f22fdeda1aea86b 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,5 @@ 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` */ \ No newline at end of file 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..184c7a5491892876522f0ec9946f3aeaea25d347 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,5 @@ 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` */ \ No newline at end of file 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..68839514d878d1a3172e6b9414ee493123ab71d1 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,5 @@ 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` */ \ No newline at end of file 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..581a43af022359a3598f0c520a06d31588865133 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,6 @@ 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` */ \ No newline at end of file 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..0eab7c56c7f5f472b824c42a4bbc3015061acefe 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,7 @@ 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` */ \ No newline at end of file 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..555ab1fa70a7e915207fda94fb10f9d34d9114a7 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,18 @@ 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:8 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:14 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:18 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:27 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 18:9 Error Semantic error ESE0143: Unresolved reference v */ +/* @@? 18:10 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 18:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:12 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 18:15 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:16 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 18:18 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@? 18:23 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/method_error_identifier.ets b/ets2panda/test/ast/compiler/ets/method_error_identifier.ets index 4ccc87265748fcb23d0d70e5fcd589d70efe5b7c..1fc272323af98245ea6ef09dbf4dca60c592814f 100644 --- a/ets2panda/test/ast/compiler/ets/method_error_identifier.ets +++ b/ets2panda/test/ast/compiler/ets/method_error_identifier.ets @@ -20,11 +20,12 @@ 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 */ + +/* @@? 16:1 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@? 16:6 Error Syntax error ESY0227: Unexpected token 'function'. */ +/* @@? 16:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:5 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 19:21 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 20:5 Error Semantic error ESE0351: Variable 'callback1' has already been declared. */ +/* @@? 20:17 Error Semantic error ESE0143: Unresolved reference callback1 */ +/* @@? 20:30 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/missing_CTE_access_private.ets b/ets2panda/test/ast/compiler/ets/missing_CTE_access_private.ets index d37040e3380b5cb6f0b29678d209f0b1a020e71c..e6a7876a16709cf1fafdccf2cc173873977b854c 100644 --- a/ets2panda/test/ast/compiler/ets/missing_CTE_access_private.ets +++ b/ets2panda/test/ast/compiler/ets/missing_CTE_access_private.ets @@ -26,5 +26,6 @@ function main(): void { A.val = 1 } -/* @@? 25:23 Error TypeError: Signature val(): Double is not visible here. */ -/* @@? 26:7 Error TypeError: Signature val(i: Double): void is not visible here. */ + +/* @@? 25:23 Error Semantic error ESE0139: Signature val(): Double is not visible here. */ +/* @@? 26:7 Error Semantic error ESE0139: Signature val(i: Double): void is not visible here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/missing_CTE_access_protected.ets b/ets2panda/test/ast/compiler/ets/missing_CTE_access_protected.ets index fb1fd6164735e48aad35f2fcaf14f8823c2493cd..cde9fc1984fc93e7eab84cea513b8c73d2a5a45b 100644 --- a/ets2panda/test/ast/compiler/ets/missing_CTE_access_protected.ets +++ b/ets2panda/test/ast/compiler/ets/missing_CTE_access_protected.ets @@ -26,5 +26,6 @@ function main(): void { A.val = 1 } -/* @@? 25:23 Error TypeError: Signature val(): Double is not visible here. */ -/* @@? 26:7 Error TypeError: Signature val(i: Double): void is not visible here. */ + +/* @@? 25:23 Error Semantic error ESE0139: Signature val(): Double is not visible here. */ +/* @@? 26:7 Error Semantic error ESE0139: Signature val(i: Double): void is not visible here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets b/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets index 8668545833a47c7add9ef2b98e3799d24db5ed21..6bfb9e1c2f322020c2d37ceabb82de502e3bb650 100644 --- a/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets +++ b/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets @@ -24,4 +24,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets b/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets index 4ff78ff8d24bd56ff06a61e9987cbecc43b8636a..2f3049c3a00509457e16ad0bb71e34a5a5991afa 100644 --- a/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets +++ b/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets @@ -30,4 +30,5 @@ 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 */ \ No newline at end of file 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 28f72a3b38e091de51b2ab1f7ab3cd66e6988b54..3d213b858e3ae1b947634bb516ff99406153eab8 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,5 @@ function main() { c.met() } -/* @@? 20:12 Error TypeError: Function met with this assembly signature already declared. */ + +/* @@? 20:12 Error Semantic error ESE0131: Function met with this assembly signature already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets index fae775ab98240d0dfea0f359ec31bb21a4b6d5aa..dfe67966cbdb2feb9e3ad39559d6cdcdcfe972fa 100644 --- a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets +++ b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets @@ -25,5 +25,6 @@ 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 */ \ No newline at end of file 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..32c1489f6293da2aaa031688c859a325b3c0dff5 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets b/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets index 7650215aa64b566b915174ad7903c0cc950b19fc..135c21e703fabb5cb0051bba2af070a6bc6f6e5a 100644 --- a/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets +++ b/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets @@ -21,5 +21,6 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets b/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets index 0d6b629fdcde5f67aea7e4bce2c4c0ae628d71e9..f65c8d9e0dcab5e458d580bf067dbf45e9377093 100644 --- a/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets +++ b/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets @@ -26,11 +26,12 @@ 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:5 Error TypeError: Wrong type of operands for binary expression */ -/* @@? 27:22 Error SyntaxError: Unexpected token. */ -/* @@? 37: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:5 Error Semantic error ESE0346: Wrong type of operands for binary expression */ +/* @@? 27:22 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 37:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_class_decl.ets b/ets2panda/test/ast/compiler/ets/namespace_class_decl.ets index 2cc3edecb5c61fb2f3d33b2a400e3ac6e0ecf0fe..5735a03aad02b35a837c77547b77b250d03a75ba 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_class_decl.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_class_decl.ets @@ -60,15 +60,16 @@ function retC() { let d = new testing2.ArrayLike(); } -/* @@? 26:13 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 26:17 Error SyntaxError: Unexpected token '.'. */ -/* @@? 26:25 Error SyntaxError: Field type annotation expected. */ -/* @@? 26:25 Error SyntaxError: Unexpected token '.'. */ -/* @@? 26:37 Error SyntaxError: Field type annotation expected. */ -/* @@? 26:37 Error SyntaxError: Unexpected token '--'. */ -/* @@? 36:29 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 37:37 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 38:35 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 39:33 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 45:34 Error TypeError: Type 'Array' cannot be assigned to type 'ConcatArray' */ -/* @@? 46:32 Error TypeError: Type 'Array' cannot be assigned to type 'ArrayLike' */ + +/* @@? 26:13 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 26:17 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 26:25 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 26:25 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 26:37 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 26:37 Error Syntax error ESY0227: Unexpected token '--'. */ +/* @@? 36:29 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 37:37 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 38:35 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 39:33 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 45:34 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'ConcatArray' */ +/* @@? 46:32 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'ArrayLike' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets b/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets index 5b5f4986f71c2771f73c26c79bdf12b7f6672ed6..f5d734fdae6b170e5aedde965486d9225a3cca49 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets @@ -20,6 +20,7 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets b/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets index 3d09af97b64693d9db9c21c8edb2dd25dc263ed3..57842ea660fa4ad1463056088a740e512965f2a2 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets b/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets index d019c77f6ee3a4e7892b8bf6ecf7d51d3ab7492f..4b9729ea8951696ece3ed2986b3861586cf3ae60 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets @@ -41,9 +41,10 @@ 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. */ \ No newline at end of file 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..a188d11183636834a0545f75997f825b9273db69 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,5 @@ namespace NS { } } -/* @@@ label Error TypeError: Property 'ss' is used before being assigned. */ + +/* @@@ label Error Semantic error ESE0375: Property 'ss' is used before being assigned. */ \ No newline at end of file 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..424517bae9fe7efcd063062ac143c99d25a79b2a 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' */ \ No newline at end of file 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..5fef65c9855eb5e737ea176f37f7803c9d27c54b 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 */ \ No newline at end of file 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..ad0f678a04a009e7e2e2ed5acecdf1e42daead56 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,6 @@ 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! */ \ No newline at end of file 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..6304ca4020cc8e77ebdaa98bd3f10aa9ade6b75c 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. */ \ No newline at end of file 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..3943c96de165ed659ac5f244c1ef383be9e6f571 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,8 @@ 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 */ \ No newline at end of file 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..cba434b13607aac7a9e19f474faefe6ef46873dd 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,5 @@ 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. */ \ No newline at end of file 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..e7457efffba9742091a1aba1d63fb8299ff067be 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' */ \ No newline at end of file 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..e07a2be7d06be9eabb335f9dcca2a743c251d429 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' */ \ No newline at end of file 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..c7df581f7dcc5abc22a7584cad8f79f8b26f03f0 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,5 @@ 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' */ \ No newline at end of file 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..9c856c922ea5ce8be76ad55b240a860b2714422c 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,5 @@ 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' */ \ No newline at end of file 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..9a2745e3e57631f25ce36489d9047fc55d0c0b76 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,5 @@ 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. */ \ No newline at end of file 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..052ef63719a786a48e24e1da0cad7686c4bd3316 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. */ \ No newline at end of file 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..bec5ac0897199ed9f26cab17f5b5eb2dc2c0e0a3 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,6 @@ 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. */ \ No newline at end of file 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..8f0af22104383fec049547123562b8fcd8dff6aa 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,6 @@ 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. */ \ No newline at end of file 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..5f4efa71473adc3da25a840ea573b6cac9b122ad 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,5 @@ 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. */ \ No newline at end of file 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..07b60663555844a9fcb9f8bf5c95bf71d3d3da98 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,7 @@ 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. */ \ No newline at end of file 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..ae6ac59a35a86eb806be7ac8997b89447529127a 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. */ \ No newline at end of file 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..6c90d45750790ebfde5de098da044a910d2ced7f 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. */ \ No newline at end of file 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..200fb21be0a6d87628f7d0f54980c20c1ede3b75 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,5 @@ 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. */ \ No newline at end of file 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..da943de4189ad1ac7bfc7f5dce78a515312ee04b 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. */ \ No newline at end of file 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..9d3002af874132c3f5790bfc8c0ab54d731dafcb 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,5 @@ 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. */ \ No newline at end of file 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..6c6e67c5e672ade7eabb2afccea30f2ff8d61b2c 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,6 @@ 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. */ \ No newline at end of file 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..4805e4c2bfec0ca4423e6fd8b572721e3ec35924 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,7 @@ 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. */ \ No newline at end of file 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..8f8c556fc832f2cfc618ac42e239897f5f8852f3 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,6 @@ 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. */ \ No newline at end of file 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..76c049e993a7651621ed2f225bad9877164db4d5 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' */ \ No newline at end of file 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..2b7fb2d12070af02a1ea38eced0a95a4c9153cc9 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets index 21ffae50b654eb4803d1eec19672674004f30ce4..236aed163e4436d9e52bc032501e4912fe98a020 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets b/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets index f38f0c8d9deab4aa9c5463a0313c20dbb497607f..9679cc0493398387438f6334df26afe628c251f0 100644 --- a/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets @@ -16,12 +16,13 @@ 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:3 Error Semantic error ESE0204: No matching call signature for constructor */ +/* @@? 17:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:64 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:64 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:65 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:66 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 17:72 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 28:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/negative_typo_1.ets b/ets2panda/test/ast/compiler/ets/negative_typo_1.ets index a50b132cbe178f2847ca4e1a4703031927213d8c..991b593bf09e0d6a85ece8bc88ec88e2f352ee64 100644 --- a/ets2panda/test/ast/compiler/ets/negative_typo_1.ets +++ b/ets2panda/test/ast/compiler/ets/negative_typo_1.ets @@ -17,7 +17,8 @@ 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:7 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 */ + +/* @@? 17:3 Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ +/* @@? 17:7 Error Semantic error ESE0371: Cannot find type 'ring'. */ +/* @@? 17:18 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 17:19 Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 0 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/never_type_cast.ets b/ets2panda/test/ast/compiler/ets/never_type_cast.ets index fe13b872f6e5cd6f397c8274a2570f0affe4b079..5ebe5b0051506e1a1463cb5d0826e3c57f30665d 100644 --- a/ets2panda/test/ast/compiler/ets/never_type_cast.ets +++ b/ets2panda/test/ast/compiler/ets/never_type_cast.ets @@ -24,4 +24,5 @@ function foo() { } foo(); -/* @@? 21:17 Error TypeError: Cannot cast type 'Boolean' to 'String|Double|null' */ + +/* @@? 21:17 Error Semantic error ESE0326: Cannot cast type 'Boolean' to 'String|Double|null' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets b/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets index c09b2b929efaaece573ff4ddb3281f85c102bb40..7196e4abd274325fbc2b18bec0876ff1bd52e2c5 100644 --- a/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets +++ b/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets @@ -24,4 +24,5 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: 'fun' type does not exist. */ + +/* @@@ label Error Semantic error ESE0070: 'fun' type does not exist. */ \ No newline at end of file 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..6c543e822cb9b7ce6e597c157f8a18ba90bc2799 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,11 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/noInOperator.ets b/ets2panda/test/ast/compiler/ets/noInOperator.ets index 27aa68a1ccfc0200e99df36f86cc1f831246ce6c..558ae6e4111819f4afba103aea604ddd9d7f32f3 100644 --- a/ets2panda/test/ast/compiler/ets/noInOperator.ets +++ b/ets2panda/test/ast/compiler/ets/noInOperator.ets @@ -21,6 +21,7 @@ let b = "name" /* @@ label1 */in p let c = "name" /* @@ label2 */in {name: 1, some: 2} let d = 2 /* @@ label3 */in [44, 55] -/* @@@ label1 Error SyntaxError: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ -/* @@@ label2 Error SyntaxError: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ -/* @@@ label3 Error SyntaxError: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ + +/* @@@ label1 Error Syntax error ESY105822: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ +/* @@@ label2 Error Syntax error ESY105822: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ +/* @@@ label3 Error Syntax error ESY105822: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/noIsOperator.ets b/ets2panda/test/ast/compiler/ets/noIsOperator.ets index 01aab8be00bebc248ad84b18a2ac294668c3e25c..8a1591f733a24dd69e24100a973d8bcac9109a27 100644 --- a/ets2panda/test/ast/compiler/ets/noIsOperator.ets +++ b/ets2panda/test/ast/compiler/ets/noIsOperator.ets @@ -17,4 +17,5 @@ function isString(test: string): test /* @@ label */is string { return typeof test === "string"; } -/* @@@ label Error SyntaxError: 'is' operator is not supported. Use 'instanceof' instead to check whether a variable is instance of a given type and use 'as' operator to cast to the appropriate type! */ + +/* @@@ label Error Syntax error ESY169587: 'is' operator is not supported. Use 'instanceof' instead to check whether a variable is instance of a given type and use 'as' operator to cast to the appropriate type! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/no_match_sig.ets b/ets2panda/test/ast/compiler/ets/no_match_sig.ets index ac70bf305df8d8abcd844b96e070bed282991a00..ba717a6888c2fa9650fb671df0fa4821a53c7064 100644 --- a/ets2panda/test/ast/compiler/ets/no_match_sig.ets +++ b/ets2panda/test/ast/compiler/ets/no_match_sig.ets @@ -31,4 +31,4 @@ 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 +/* @@? 17:5 Error Semantic error ESE0127: No matching call signature for foo() */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets b/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets index d58ca014b280e98992adbbea042e4c85c21be64f..02242c3736feeec209e030093e896f9cde6c00be 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets @@ -26,4 +26,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets b/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets index 409f8580b8f15020283442f61ebee9e9579509d0..ce94d38b59cca86b6c352636b6d2f9bc175c21a7 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets @@ -19,4 +19,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets b/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets index d0f02874ff3793918c44852e41ab420097031032..62c1dae340797998390f204298ec12e090189a1d 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets @@ -24,6 +24,7 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets b/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets index 2ac195de816047fc3b954cdaabe265bcf4dba36e..c646921228e1936eafdb5fe01c6f3e607ccc52d7 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets @@ -20,6 +20,7 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nonNullish_expr_is_null.ets b/ets2panda/test/ast/compiler/ets/nonNullish_expr_is_null.ets index e11875089daa8be5d540e5de91f31e47794611fa..6f37a56af418308a23a32effa0859faad1378c1a 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullish_expr_is_null.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullish_expr_is_null.ets @@ -41,5 +41,5 @@ function test() { test() -/* @@? 23:19 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ -/* @@? 23:20 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file +/* @@? 23:19 Warning Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ +/* @@? 23:20 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/not_all_paths_return_value.ets b/ets2panda/test/ast/compiler/ets/not_all_paths_return_value.ets index bb0b7a74cbae88030cfb3e9acc4ef56b4f70ae62..7af119833e44d4486cacafe97de5e3b6a03351ed 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,6 @@ 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. */ \ No newline at end of file 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..45bb6f0c51873d5fa9124ded62b7976c7a20652d 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,9 @@ 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. */ \ No newline at end of file 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..cfa0c41f2adbdbd2c2bfbf268c51d85aee66c420 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,5 @@ 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. */ \ No newline at end of file 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..7ab63179da52eebab2dfc21c3f8d2f6da536a385 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,5 @@ 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' */ \ No newline at end of file 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..c1559247184b30127277ef40ad2df05bf3882a19 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,10 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/null_pointer_error.ets b/ets2panda/test/ast/compiler/ets/null_pointer_error.ets index 4297f3c7fee22992dee5f2dd988bfc3f17f44834..ca379da612a0bebc38f62c315f1adabb0b8dbc41 100644 --- a/ets2panda/test/ast/compiler/ets/null_pointer_error.ets +++ b/ets2panda/test/ast/compiler/ets/null_pointer_error.ets @@ -21,8 +21,9 @@ 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:16 Error TypeError: Type '*ERROR_TYPE*' can not be awaited, it is not a Promise. */ + +/* @@? 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:16 Error Semantic error ESE0303: Type '*ERROR_TYPE*' can not be awaited, it is not a Promise. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets b/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets index 51edfbcad59292d9da1513c8cca2d09fd6dfbab6..8a00382fa3db2c19929a22a3298fba22e8eb3e8c 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() { }); } -/* @@? 19:5 Error TypeError: No matching call signature for push((() => void)) */ +/* @@? 19:5 Error Semantic error ESE0127: No matching call signature for push(() => void) */ 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..71f0aeac11b8f7ec8d609def7d6e091b4700d1f5 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,5 @@ 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. */ \ No newline at end of file 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..89cb2016c1fab80fd7df0e3636ba1e8c8316f57f 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,5 @@ 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. */ \ No newline at end of file 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..ea6426a05faeec3b48417cb152324ae612ca4cc1 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,5 @@ 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. */ \ No newline at end of file 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..96e006576b1d87a0513d13efce0e9f06d4fd79bb 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,5 @@ 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. */ \ No newline at end of file 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..f21bd8893ee280ae9bda104a82ba3e3569b36690 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets b/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets index d93a7dccdde10b944e31c4816265bfb36fe6dd55..bd39de2bbe2fe2da0950695184ea321593abf61a 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets @@ -20,4 +20,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets b/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets index 574c0ff1f17c2f03503e8f38c2de5f4305b9fed4..93ff3024ebfb0c7d969eebb90232617c23d8a65f 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets @@ -21,4 +21,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralInterface3.ets b/ets2panda/test/ast/compiler/ets/objectLiteralInterface3.ets index 82af6eb978bf21d6d6e5faacee3e8009dc4e170a..807ff3c1557ea744b3895d91f6438021d3dfc151 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralInterface3.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralInterface3.ets @@ -20,4 +20,5 @@ interface I { let c: I = /* @@ label */{ name: "Alice" }; -/* @@@ label Error TypeError: Interface has methods */ + +/* @@? 21:5 Error Semantic error ESE0256: Interface has methods */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets b/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets index a9609fd36be7baa6c4e248456f042a56ad39928b..3e2c2fce4679ca76c0de768ce620572cffee190b 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets @@ -15,4 +15,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets b/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets index 35d389ecbf6f78a1c8d410b6bba21dc320c13ad8..caf4c70fce5fdba283b398d8a300185eebdcd257 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets @@ -19,4 +19,5 @@ 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! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets b/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets index 8cd6e2dcf237043aac0ee84a76304b4dc05a102e..849e3bce430376c84ee983068649e193e818231e 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets @@ -20,4 +20,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets b/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets index 23a7a7719e0a7b59720d6597b3957728aacc8d4c..7f3ee798c587d01c4cc159690db4eff5ea5babef 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets b/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets index ce025f5c2a5a4a6e93340741f3af53e9fef5650d..3723e8639aeb3624d92389600bd9945afbada9c5 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets @@ -21,4 +21,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets index 876abd1349d3a2170de76a59e50f5952858f0c36..3b84311d62d5286fa75833e72ee98b81c7293158 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets @@ -38,8 +38,9 @@ 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. */ \ No newline at end of file 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..f3304983965e404bdc050b3eaf94d28a40245efe 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,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/object_literal_initialization.ets b/ets2panda/test/ast/compiler/ets/object_literal_initialization.ets index de74d227c06eff032cf724aaf4bd50871a9bbe93..52f262010118baadfac074272f213510ee95c171 100644 --- a/ets2panda/test/ast/compiler/ets/object_literal_initialization.ets +++ b/ets2panda/test/ast/compiler/ets/object_literal_initialization.ets @@ -16,5 +16,6 @@ // arkts-no-untyped-obj-literals let o: Object = /* @@ label1 */{/* @@ label2 */n: 42, s: "foo"} -/* @@@ label1 Error TypeError: 'Object', 'object', 'any' types cannot be initialized with object literals. */ -/* @@@ label2 Error TypeError: type Object has no property named n */ + +/* @@@ label1 Error Semantic error ESE115343: 'Object', 'object', 'any' types cannot be initialized with object literals. */ +/* @@@ label2 Error Semantic error ESE0065: type Object has no property named n */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/optionalClassProperty1.ets b/ets2panda/test/ast/compiler/ets/optionalClassProperty1.ets index 3224058292ed55e2edac6f32bc1ebb082b8ddf1d..57f2b70fdd784e5c5992c70e0bae5c3d0eb84967 100644 --- a/ets2panda/test/ast/compiler/ets/optionalClassProperty1.ets +++ b/ets2panda/test/ast/compiler/ets/optionalClassProperty1.ets @@ -96,4 +96,5 @@ class C8 implements I { a ?: Array } -/* @@? 57:5 Error SyntaxError: Identifier expected, got 'private'. */ + +/* @@? 57:5 Error Syntax error ESY0224: Identifier expected, got 'private'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/optional_method.ets b/ets2panda/test/ast/compiler/ets/optional_method.ets index 5f4df228347176b9e89cd59bde2f7cbde80c8d68..171d73c3269c68ba9104b036106ef53fad891590 100644 --- a/ets2panda/test/ast/compiler/ets/optional_method.ets +++ b/ets2panda/test/ast/compiler/ets/optional_method.ets @@ -20,5 +20,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets b/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets index f73c7e1334be4b34c39e151eacdbbb48af131b42..58a1cd848f6e1947597c6df1707397b6093e099d 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 */ \ No newline at end of file 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..e03c6fedb06dfd7c5da699efb51dbf37409244ac 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,5 @@ class C { overload foo { /* @@label1 */B.foo1 } } -/* @@@ label1 Error SyntaxError: The overloaded method name in class/interface method overload declaration must be identifier. */ + +/* @@@ label1 Error Syntax error ESY0324: The overloaded method name in class/interface method overload declaration must be identifier. */ \ No newline at end of file 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..094ba50cb4773bc38e3954afcab6c809d670c5a5 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,5 @@ class C { overload constructor { /* @@label1 */B.foo1 } } -/* @@@ label1 Error SyntaxError: The overloaded method name in class/interface method overload declaration must be identifier. */ + +/* @@@ label1 Error Syntax error ESY0324: The overloaded method name in class/interface method overload declaration must be identifier. */ \ No newline at end of file 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..a6b653fe74b16f7ec4141c2e227bb576c76159b6 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,5 @@ 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. */ \ No newline at end of file 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..0a467cbe94e69f61ad924ade18a3a5cc5536c12c 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,5 @@ interface I { overload foo { /* @@label1 */B.foo1 } } -/* @@@ label1 Error SyntaxError: The overloaded method name in class/interface method overload declaration must be identifier. */ + +/* @@@ label1 Error Syntax error ESY0324: The overloaded method name in class/interface method overload declaration must be identifier. */ \ No newline at end of file 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..0dd5413b281a753d415d0b235eeb05206f1870cb 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,5 @@ 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. */ \ No newline at end of file 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..46a8b85137279fd95c63ad04e483eed462a507c7 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,6 @@ 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. */ \ No newline at end of file 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..a84e57d9f9b7fc07a2570771437fa7b78c424854 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. */ \ No newline at end of file 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..ecb995c5fa1b43caa2520190f56bcef00b45429b 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,8 @@ 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. */ \ No newline at end of file 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..f7cd9f9d3352be5db9caacae543b11f6588343ff 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,5 @@ class Test1 extends Test0 { overload foo{foo111, /* @@ label1 */foo111, foo112} } -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ + +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ \ No newline at end of file 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..8256934c441bc845bf48e70918f484ea9a74b984 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,6 @@ class E { } } -/* @@? 22:22 Error TypeError: Overloaded method is used as value */ + +/* @@? 22:22 Error Semantic error ESE0307: Overloaded method is used as value */ \ No newline at end of file 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..f40ae891aa3a7f13c6b61ced014a5c70969c6a07 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,5 @@ 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 */ \ No newline at end of file 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..0756d0ddde8f6b4d129ab4038431ccb12e4c1378 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,5 @@ 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. */ \ No newline at end of file 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..b6d49b81183e0ae16f1aa1150d60032c57cb566d 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets index 9baccdcf5cac44858fe08efeb20c2328b49869b6..9f86facda46291b88f1e3c16b1d98b21e82b06f2 100644 --- a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets +++ b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets @@ -25,4 +25,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets index b1be5bf6b435e809974fbcc0447ec5f6ea99c0b0..53924198eb7945ce27c51efa2db997f6a6db02f4 100644 --- a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets +++ b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets @@ -31,4 +31,5 @@ function /*@@ label */foo(x: int, y: int): int{ function main() { } -/* @@@ label Error TypeError: Not all code paths return a value. */ + +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload_crash.ets b/ets2panda/test/ast/compiler/ets/overload_crash.ets index 7350e84eddf26fb08cf63f54aabcab5c6a91aa63..e0f160dcfa00f1282a0f4bc0b9f518dc3ea8373e 100644 --- a/ets2panda/test/ast/compiler/ets/overload_crash.ets +++ b/ets2panda/test/ast/compiler/ets/overload_crash.ets @@ -22,5 +22,6 @@ function f1(thing: string) { path(thing, ...['a']); } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:1 Error TypeError: Function path with this assembly signature already declared. */ + +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:1 Error Semantic error ESE0131: Function path with this assembly signature already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets b/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets index f5f2b2064a392090ae2dd10afac22b6ec154ee83..47f955f182798525e434116eecd460aa22293d34 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload_for_named_constructor.ets b/ets2panda/test/ast/compiler/ets/overload_for_named_constructor.ets index 0575959c2f8e34bbe7c7838f50b08d8d0ef4c794..0a62ee3dc9fc015478db98e2d8a73e82bd146d7e 100644 --- a/ets2panda/test/ast/compiler/ets/overload_for_named_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/overload_for_named_constructor.ets @@ -23,4 +23,4 @@ function main(){ new A() } -/* @@? 23:5 Error TypeError: No matching construct signature for A() */ \ No newline at end of file +/* @@? 23:5 Error Semantic error ESE0127: No matching construct signature for A() */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/override11.ets b/ets2panda/test/ast/compiler/ets/override11.ets index 2c43199671770c0c92a925404dcaadf1c5a81391..ec738cf5d7d03baf6da1b983d2dd4f1497b3b6c1 100644 --- a/ets2panda/test/ast/compiler/ets/override11.ets +++ b/ets2panda/test/ast/compiler/ets/override11.ets @@ -21,5 +21,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/override15.ets b/ets2panda/test/ast/compiler/ets/override15.ets index 2afb8940d3f7ff872881b3c2ffc60be47684b524..a83735c0a1083c8d8db8029bad45f68519bfed50 100644 --- a/ets2panda/test/ast/compiler/ets/override15.ets +++ b/ets2panda/test/ast/compiler/ets/override15.ets @@ -21,5 +21,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/override3.ets b/ets2panda/test/ast/compiler/ets/override3.ets index 96cdf17944ed5bf697ec2ac4054cd9d0b85b5ac5..99250f2fecbd5dcd93bb735eab050b8c44b766d4 100644 --- a/ets2panda/test/ast/compiler/ets/override3.ets +++ b/ets2panda/test/ast/compiler/ets/override3.ets @@ -17,5 +17,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/override7.ets b/ets2panda/test/ast/compiler/ets/override7.ets index aca0ae3a32e7e578d50010e0b04addd4007e5a06..9a9047be1240019c7448d815b896fee880efe186 100644 --- a/ets2panda/test/ast/compiler/ets/override7.ets +++ b/ets2panda/test/ast/compiler/ets/override7.ets @@ -23,5 +23,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets b/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets index abc1ea45628fd526592f8b87fcab27054610bdc4..f23051bb828937412658ecae5929508a56884da2 100644 --- a/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets +++ b/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets @@ -25,4 +25,5 @@ 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 */ \ No newline at end of file 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 718607481dfea2a938287f5603cbfea11ea028c2..900e47953d1d9da3c3bc2bf395ff206753f8c46e 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,10 +42,11 @@ static { var_tobe_shadowed = 2; } -/* @@? 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: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 */ + +/* @@? 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 */ +/* @@? 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 */ \ No newline at end of file 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 442220438fe10d11a0f8c504528ccee1db498f8c..d1e18dd9bc2c3e0840d7c4366b13ee35933e6c72 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,7 +15,8 @@ import {nn, nn1, nn2} from "./P3" -/* @@? 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:33:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? P3.ets:34:1 Error SyntaxError: Invalid package toplevel statement */ + +/* @@? 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:33:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? P3.ets:34:1 Error Syntax error ESY0291: Invalid package toplevel statement */ \ No newline at end of file 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..bccd19553bdbbef6173e76e5aa9d1f8d3ced3e65 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. */ \ No newline at end of file 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..2c4c1fe84973ee966476245f3f1aeea12373199e 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. */ + +/* @@? 22:5 Error Syntax error ESY0034: Only one static block is allowed in one namespace or class. */ \ No newline at end of file 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..95b424bdfddf3f48159670708705a7c792573d3f 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. */ + +/* @@? 21:5 Error Syntax error ESY0034: Only one static block is allowed in one namespace or class. */ \ No newline at end of file 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..466b48b1dfa24ba67ee17f8166050d46658b1614 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/param_sort_1.ets b/ets2panda/test/ast/compiler/ets/param_sort_1.ets index bba3a5f57043e0bd5aaff4c0caa008ead1061f3a..6d2a036581b68caca6ed111a7d32accf8ed2d568 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/param_sort_2.ets b/ets2panda/test/ast/compiler/ets/param_sort_2.ets index 17b9a79e2ee2a79c88673bb1f7dd9d798cb9e8bb..f79e9b4543d5b2a9fc62616138fea9ed6741535a 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/param_sort_3.ets b/ets2panda/test/ast/compiler/ets/param_sort_3.ets index 8a38d4cdace43bbd2497c7d874ad9e446c334b81..e249693714e11dfa052c4999f50264259999f63d 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets b/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets index 89ec5d49e45dcb1830554ba1a41edec2efccdb67..71b491d921b6cd330b9470ff09d42f60cce74cda 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 or enum '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 or enum '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 or enum '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 or enum '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 or enum '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 or enum '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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets b/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets index 39968154fee1957830420ef410bd854c23e857bf..091b8438e9723d5951ae10ef5e3bb51646a4b58e 100644 --- a/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets +++ b/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets @@ -20,4 +20,5 @@ 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! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets b/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets index 32781a0e03ff9243f03759e7940168c57252ce1d..ca038eddd1f601b90c13a1cf9df134d3bb1a43b7 100644 --- a/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets +++ b/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets @@ -15,5 +15,6 @@ @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:79 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/parser_format.ets b/ets2panda/test/ast/compiler/ets/parser_format.ets index 0cfa428977ed81efa7828a1a040bcf8dc8143316..e5712ef40162dd80f37a2625ef288fa8d6cb0e81 100644 --- a/ets2panda/test/ast/compiler/ets/parser_format.ets +++ b/ets2panda/test/ast/compiler/ets/parser_format.ets @@ -17,8 +17,9 @@ declaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare struct MainProg2 { @@Stave } -/* @@? 16:1 Error TypeError: Unresolved reference declaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare */ -/* @@? 16:39 Error SyntaxError: Unexpected token 'struct'. */ -/* @@? 16:39 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 17:5 Error SyntaxError: There is no any node to insert at the placeholder position. */ -/* @@? 17:12 Error SyntaxError: Field type annotation expected. */ + +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference declaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare */ +/* @@? 16:39 Error Syntax error ESY0227: Unexpected token 'struct'. */ +/* @@? 16:39 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 ESY0010: There is no any node to insert at the placeholder position. */ +/* @@? 17:12 Error Syntax error ESY0121: Field type annotation expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/parser_import.ets b/ets2panda/test/ast/compiler/ets/parser_import.ets index 3fb9464550bcc0d64c5aa909ff64063cd9c409e4..edf4c80d09c03c82fa910da8a54ff1b7065b27f3 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. */ +/* @@? 22:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/partialTypeParameterParamInfer.ets b/ets2panda/test/ast/compiler/ets/partialTypeParameterParamInfer.ets index 53e4be9d7d90e94f4a9e54e1537e3bf1bec9eb95..8df0e682300efccb2456b61e91036898f3f7ba97 100644 --- a/ets2panda/test/ast/compiler/ets/partialTypeParameterParamInfer.ets +++ b/ets2panda/test/ast/compiler/ets/partialTypeParameterParamInfer.ets @@ -20,4 +20,5 @@ function foo(arg: Partial): void {} function main() { foo(new Partial()) } -/* @@? 18:29 Error TypeError: T in Partial must be a class or an interface type. */ + +/* @@? 18:29 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets b/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets index 1692ddeb25bf22c5838e5388c6b3c2977008c87f..c7e35c26f8461ae65847c0258825adb6f29590f9 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets @@ -28,4 +28,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets b/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets index 9096cd90ec156549567fea04880b87bf51c8470b..60fc4aa01be346ef6bf4aee3f243eee2035e864b 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets @@ -23,4 +23,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets b/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets index eda9ef37580abb8c8aa7d893b5cdf651c3a0c4ff..7481693ad669239285a115def0bcda58da30f41d 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets @@ -26,4 +26,5 @@ 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' */ \ No newline at end of file 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 abe625355b83a683c9fa7ee6b74220d7e7bc1de0..cf73efec0225cfb43caa6c24933f28ee6b56571b 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets @@ -21,7 +21,8 @@ function main() { genericFunc<{a: number, b: string}>({a: 1}) } -/* @@? 16:35 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 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:35 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 21:3 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 21:15 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 21:38 Error Semantic error ESE0062: need to specify target type for class composite */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets b/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets index 7cd333f43ecc247a20d9cb7dde880708dcef045a..25267d2e8918e392e30a20e6c1e9a93a61d45fc5 100644 --- a/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets +++ b/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets @@ -23,4 +23,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/private_field_declaration.ets b/ets2panda/test/ast/compiler/ets/private_field_declaration.ets index 153546fc726d2b85669b7c39e72ec5821a105010..d68bc705977bf50d3bcf0cc6da9a387531bf3e85 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 '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/re-declare_in_local_scope.ets b/ets2panda/test/ast/compiler/ets/re-declare_in_local_scope.ets index ae18b2d15c50949483d15ef887ae806717445433..c58373d2196ec06c9d7b203945c9ce950e4d3e75 100644 --- a/ets2panda/test/ast/compiler/ets/re-declare_in_local_scope.ets +++ b/ets2panda/test/ast/compiler/ets/re-declare_in_local_scope.ets @@ -18,5 +18,5 @@ let ten = 10; } -/* @@? 17:9 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ -/* @@? 18:9 Error TypeError: Variable 'ten' has already been declared. */ \ No newline at end of file +/* @@? 17:9 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ +/* @@? 18:9 Error Semantic error ESE0351: Variable 'ten' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets index 9a07282a7a7d536dc9472ac92964d0d670469dc8..69c862a0f802ad776aa5a256b900e3d5cf272a4b 100755 --- a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets +++ b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets @@ -23,4 +23,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets index 974a88ae5f338857829d266e7a168c774dba52b8..75873d38e8992c89a67995d217427374197f75f5 100755 --- a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets +++ b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets @@ -33,4 +33,5 @@ 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. */ \ No newline at end of file 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 ffe851e573069a92d24617f3f95b68ab18f0351f..10cf77e51c8de116480748ac2bb718bd5aca26dc 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'. */ \ No newline at end of file +/* @@? 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets b/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets index d00c74ecc1831b78bc76ee72229e69029f04dc04..18ffde218245899940a8736d1e13d34c6656f99c 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets @@ -15,4 +15,4 @@ let a: readonly int [""]; -/* @@? 16:21 Error SyntaxError: Indexed access types are not supported, use type name instead! */ \ No newline at end of file +/* @@? 16:21 Error Syntax error ESY49888: Indexed access types are not supported, use type name instead! */ \ No newline at end of file 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 32b89726adde01c9094267fc9c57ab5d87d48210..eef54f55dca5cfed5fba438a9ce8d5ee314aab7e 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,5 +15,6 @@ function foo(param1: readonly/* @@ foo_param1 */, param2: readonly /* @@ foo_param2 */true) {} -/* @@@ foo_param1 Error SyntaxError: Invalid Type. */ -/* @@@ foo_param2 Error SyntaxError: Invalid Type. */ + +/* @@@ foo_param1 Error Syntax error ESY0138: Invalid Type. */ +/* @@@ foo_param2 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file 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 a8269c5aec57fae9fb96a5e45f4f743d66ba9b2d..8149f7839e468ec77a4469908314ac565c070bfd 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,8 +19,9 @@ class A { c: readonly /* @@ A_c */1; } -/* @@@ A_a Error SyntaxError: Invalid Type. */ -/* @@@ A_b Error SyntaxError: Invalid Type. */ -/* @@@ A_b Error SyntaxError: Unexpected token 'false'. */ -/* @@@ A_c Error SyntaxError: Invalid Type. */ -/* @@@ A_c Error SyntaxError: Unexpected token '1'. */ + +/* @@@ A_a Error Syntax error ESY0138: Invalid Type. */ +/* @@@ A_b Error Syntax error ESY0138: Invalid Type. */ +/* @@@ A_b Error Syntax error ESY0227: Unexpected token 'false'. */ +/* @@@ A_c Error Syntax error ESY0138: Invalid Type. */ +/* @@@ A_c Error Syntax error ESY0227: Unexpected token '1'. */ \ No newline at end of file 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..cce871b4109e7fec1ce9c87fe7dd5d05ec75fd7d 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,8 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyField.ets b/ets2panda/test/ast/compiler/ets/readonlyField.ets index e635f3632642cac0519c926f64dbcb47e55e9a35..d8efac600ebaf67012833ddb9a58124979b9faab 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyField.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyField.ets @@ -24,4 +24,5 @@ function main(): void { /* @@ label */myData.value = "new data"; } -/* @@@ label Error TypeError: Cannot assign to a readonly field value */ + +/* @@@ label Error Semantic error ESE4002: Cannot assign to a readonly field value */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyField_2.ets b/ets2panda/test/ast/compiler/ets/readonlyField_2.ets index b43c2d148997534d20322280c2fa8f5015d386f3..b0a3aa11123527b578bb90a894f2aef96de4a748 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyField_2.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyField_2.ets @@ -27,4 +27,5 @@ function main(): void { updatePerson(person); } -/* @@@ label Error TypeError: Cannot assign to a readonly field name */ + +/* @@@ label Error Semantic error ESE4002: Cannot assign to a readonly field name */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets index b68cabb42463875bbdea4ee23df3f69456096f37..43929a45cbff87eb1f7b452ba694fbff4b528e74 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets index 1e8c2d5d4801ed5d8899d2aa2f66d87cfb93afbf..5f6527b36ec8f4aafdd452b03b13606a22fcca22 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_1.ets b/ets2panda/test/ast/compiler/ets/readonlyType_1.ets index b4cb4f0277b958970c6a00562790ef41a909eec1..bffb4de2651e31f7a3a8c3be7ff0b1a6c95000b6 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_1.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_1.ets @@ -26,5 +26,6 @@ function foo(a0: A) { } -/* @@@ label Error TypeError: Cannot assign to a readonly field 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 ESE4002: Cannot assign to a readonly field fld */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_2.ets b/ets2panda/test/ast/compiler/ets/readonlyType_2.ets index 7c73a1765cd1530d41df94b3b8b3f09c3b56651c..25d22c543a718b2ba2073a041262d0ea6f5434c8 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_2.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_2.ets @@ -22,5 +22,6 @@ function foo(a0: A) { /* @@ label */a.fld = 5 } -/* @@@ label Error TypeError: Cannot assign to a readonly field 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 ESE4002: Cannot assign to a readonly field fld */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_3.ets b/ets2panda/test/ast/compiler/ets/readonlyType_3.ets index 9bbf937c5efa4aca50762e978efaad5c98fa0e17..ebc0e717344e04408d12ae4833a09a4d63d01f95 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_3.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_3.ets @@ -20,5 +20,6 @@ class A { } } -/* @@@ label Error TypeError: Cannot assign to a readonly field 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 ESE4002: Cannot assign to a readonly field fld */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_4.ets b/ets2panda/test/ast/compiler/ets/readonlyType_4.ets index 03edcf4a18d86b52582af8796b0fb86f895bda39..4872e821fa765432431b6d5767bbf4827bd228a5 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_4.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_4.ets @@ -29,5 +29,6 @@ class C extends B { } } -/* @@@ label Error TypeError: Cannot assign to a readonly field 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 ESE4002: Cannot assign to a readonly field fld */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_5.ets b/ets2panda/test/ast/compiler/ets/readonlyType_5.ets index 16c1980911036dc486ca3538abe6dc0a9e68a0a6..c5ca3cd15ae28984d46b8aaf2d8fa5be60d8cec5 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_5.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_5.ets @@ -22,4 +22,4 @@ function foo(): void { let a_class: A = /* @@ label */a; } -/* @@@ label Error TypeError: Type 'Readonly' cannot be assigned to type 'A' */ + diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_6.ets b/ets2panda/test/ast/compiler/ets/readonlyType_6.ets index d037f8688fafb80398b26ffab7de0ca8b534a0cd..2d99efda9fb7c6d3f726a8010f81812164c01283 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_6.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_6.ets @@ -25,4 +25,4 @@ function foo(): void { /* @@ label */a.foo2(); } -/* @@@ label Error TypeError: Cannot call readonly type methods. */ + diff --git a/ets2panda/test/ast/compiler/ets/readonly_array01.ets b/ets2panda/test/ast/compiler/ets/readonly_array01.ets index 35d50fac5059d4dbee3c79e8b97c152c816daded..be9a9bcc7e92e37c473e774a40e80b4767335df3 100644 --- a/ets2panda/test/ast/compiler/ets/readonly_array01.ets +++ b/ets2panda/test/ast/compiler/ets/readonly_array01.ets @@ -19,5 +19,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonly_array02.ets b/ets2panda/test/ast/compiler/ets/readonly_array02.ets index 282f2fcfbabaad2e18007c28b8ee53be17fd62bc..c4bb253e71465c725f7eff2051b18e71b7a5ca31 100644 --- a/ets2panda/test/ast/compiler/ets/readonly_array02.ets +++ b/ets2panda/test/ast/compiler/ets/readonly_array02.ets @@ -21,5 +21,5 @@ function main() { v[0] = [1.0,3.0] // CTE, readonly array } -/* @@? 21:5 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ + diff --git a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets index 92323dcf20ae1ecd0ba8b31f11de1f0a4ea4b1d8..09c93f805ac8c5164d720138e78af5ed9b683306 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 '((p1: String) => String)' is not compatible with type '((p1: Double) => String)' at index 2 */ +/* @@? 20:12 Error Semantic error ESE0046: Type '(p1: String) => String' is not compatible with type '(p1: Double) => String' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets index b86bff7b225b010a4612c57acd30c300f0f9e21b..708d45b2a469e62bc34822abc493965c7cb5569b 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 '((p1: 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 '(p1: Double) => String' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/record_with_getter_crash.ets b/ets2panda/test/ast/compiler/ets/record_with_getter_crash.ets index a0daa879158d3d99b66fccbddbb9b3361258f994..8b2e2776a88636697923f9330378da46f199be2a 100644 --- a/ets2panda/test/ast/compiler/ets/record_with_getter_crash.ets +++ b/ets2panda/test/ast/compiler/ets/record_with_getter_crash.ets @@ -44,6 +44,7 @@ function main() { assertEQ(u2.meth()['b'], 22.0) } -/* @@? 26:17 Error SyntaxError: Object pattern can't contain methods. */ -/* @@? 43:5 Error TypeError: Unresolved reference assertEQ */ -/* @@? 44:5 Error TypeError: This expression is not callable. */ + +/* @@? 26:17 Error Syntax error ESY0062: Object pattern can't contain methods. */ +/* @@? 43:5 Error Semantic error ESE0143: Unresolved reference assertEQ */ +/* @@? 44:5 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets b/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets index f2f1b08aa92063a310383baee9819bff4879b4e3..74d4cb44c502fab8b91e51995d606cb97871c08d 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets @@ -17,6 +17,7 @@ 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 */ \ No newline at end of file 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..bd7554ea28c76197fa355e9930a2eca1b59dcf27 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,5 @@ function main(){ /* @@ label */foo() } -/* @@@ label Error TypeError: No matching call signature */ + +/* @@@ label Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file 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..a9898e1445dacf6eddf5882e684631965c851b62 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,5 @@ 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 */ \ No newline at end of file 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..b9975c2e24b8a404b75feac9797f16fa0c021323 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,5 @@ 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 */ \ No newline at end of file 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..5bba97884dc6040da3d11e7fa4d499a416134973 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,5 @@ 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) */ \ No newline at end of file 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..12d6eb627c803474f7363907c43e2514c907eba4 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,6 @@ 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 */ \ No newline at end of file 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..ed1f317b64ef95afc8e77b024932ccb12bc8a486 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,5 @@ 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 */ \ No newline at end of file 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..074245022f5ae399bd2da1a167dc6be93478cedf 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/redecl_func_arow_param_in_body.ets b/ets2panda/test/ast/compiler/ets/redecl_func_arow_param_in_body.ets index a0f98280f500bc543bcfad24cadfd07042e1dc8b..11a19120afb2330c3e0e5d42244c3b2166e268e9 100644 --- a/ets2panda/test/ast/compiler/ets/redecl_func_arow_param_in_body.ets +++ b/ets2panda/test/ast/compiler/ets/redecl_func_arow_param_in_body.ets @@ -22,10 +22,11 @@ function foo(bar: () => int) { foo(() => {}); } -/* @@? 18:11 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 18:13 Error TypeError: Variable 'bar' has already been declared. */ -/* @@? 18:16 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 18:16 Error SyntaxError: Unexpected token '('. */ -/* @@? 18:17 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:18 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 22:14 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Int' */ + +/* @@? 18:11 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 18:13 Error Semantic error ESE0351: Variable 'bar' has already been declared. */ +/* @@? 18:16 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 18:16 Error Syntax error ESY0227: Unexpected token '('. */ +/* @@? 18:17 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:18 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 22:14 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int' */ \ No newline at end of file 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..07b5cf7e68ffe2e53051f6dbcba475557a1af92b 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/referenceEqualityNotCastable_n.ets b/ets2panda/test/ast/compiler/ets/referenceEqualityNotCastable_n.ets index 51f4fc103e2a54f85a4f7cc30ba05034a6ebeabe..c69e84db1bcf02a20f29a7efe4910ad3c679493e 100644 --- a/ets2panda/test/ast/compiler/ets/referenceEqualityNotCastable_n.ets +++ b/ets2panda/test/ast/compiler/ets/referenceEqualityNotCastable_n.ets @@ -22,4 +22,4 @@ function main(): void { let c = /* @@ label */a === b; } -/* @@@ label Node { "type": "BinaryExpression", "operator": "===" } */ + diff --git a/ets2panda/test/ast/compiler/ets/referenceEqualityNotReference_n.ets b/ets2panda/test/ast/compiler/ets/referenceEqualityNotReference_n.ets index 5bad290bca9c22292677bacb411bcde005435dc8..5acc3eccee05c0c4eeb55e3d16b3974e733416bb 100644 --- a/ets2panda/test/ast/compiler/ets/referenceEqualityNotReference_n.ets +++ b/ets2panda/test/ast/compiler/ets/referenceEqualityNotReference_n.ets @@ -19,4 +19,4 @@ function main(): void { let c = /* @@ label */a === b; } -/* @@@ label Node { "type": "BinaryExpression", "operator": "===" } */ + diff --git a/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets index cc8b0e626ca83e7cf5c1a0c85589709f8bded498..81470be2432e8962bee6fd87bf1a1bb07da29009 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets @@ -25,4 +25,5 @@ function main(): void { let req_a: A = {fld: /* @@ label */{}}; } -/* @@? 21:18 Error TypeError: T in Required must be a class or an interface type. */ + +/* @@? 21:18 Error Semantic error ESE124644: T in Required must be a class or an interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets index e2c98e264dc9cc532684cba363723d5a55f4cb6f..7dff852b74d666ef1e60bec8c519ad141171f123 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets @@ -22,4 +22,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets index 28bad7ad5a0f0939450b00e974c7c1d49a266491..5f3e1f1f2645d57bc439b04854d87a8676d48455 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets @@ -21,4 +21,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/requiredType_6.ets b/ets2panda/test/ast/compiler/ets/requiredType_6.ets index 399456dfc66ab6fd954196cfe2ae6d8b077cf8e5..18ee6010186b9785d85c7ad749eea9f0dff2e1ce 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_6.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_6.ets @@ -23,4 +23,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets index bbd431829ce0854087b2e4b1ae805c0dc3073939..9151bd7b2695e23fa983b1a429bc1d01929adff6 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets @@ -23,4 +23,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets index b9e237a906b0f29821ac93596e7ef9c1f2253285..2b5dc3e6fbeba55657a87b2bbe76d75199acdb54 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets @@ -21,4 +21,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/resolve_class_declaration.ets b/ets2panda/test/ast/compiler/ets/resolve_class_declaration.ets index 3148fbe90d8dcfad1291bca6de38cb65f9b2395f..cee2129cc06c75159d5df4b6cab130da27b9e3e8 100644 --- a/ets2panda/test/ast/compiler/ets/resolve_class_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/resolve_class_declaration.ets @@ -18,13 +18,11 @@ interface I { return; } -/* @@? 17:20 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 17:30 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:30 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 17:31 Error SyntaxError: Identifier expected. */ -/* @@? 17:31 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:31 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 17:41 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 18:5 Error SyntaxError: Invalid Type. */ -/* @@? 18:5 Error SyntaxError: Identifier expected, got 'return'. */ -/* @@? 18:11 Error SyntaxError: Identifier expected. */ +/* @@? 17:20 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 17:30 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:30 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 17:31 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:31 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:31 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 17:41 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 18:5 Error Syntax error ESY0138: Invalid Type. */ 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 d758202317fb138bedca35629532bc72a5271cfa..150db605bba9cc06c9154833c50dfe8571889a3a 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 a90fb0d16fcabd2e0d54e0f58f7884cb901ba5c4..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..db4ea206063dabfeab3f5592d88347481479cf4e 100644 --- a/ets2panda/test/ast/compiler/ets/restvar_type_infer.ets +++ b/ets2panda/test/ast/compiler/ets/restvar_type_infer.ets @@ -18,9 +18,10 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets b/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets index 64f4958d341625ff8da0c28b31f822b54cfacbda..0a6cd278a0794713186900333d438319d48a89a9 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 '>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/return_missing_argument.ets b/ets2panda/test/ast/compiler/ets/return_missing_argument.ets index 019bd7f77d716fbd2147cca0162e21a4d1e751c8..e3a9ed0414dccb64a08299f9c6f1de94c8905437 100644 --- a/ets2panda/test/ast/compiler/ets/return_missing_argument.ets +++ b/ets2panda/test/ast/compiler/ets/return_missing_argument.ets @@ -22,4 +22,5 @@ function main(): void { let a: int = dummy(); } -/* @@@ label Error TypeError: Missing return value. */ + +/* @@@ label Error Semantic error ESE0032: Missing return value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/return_protected_function.ets b/ets2panda/test/ast/compiler/ets/return_protected_function.ets index 81897a3516f4c0decb8bf1daafd9b90c97ae6327..45bbb5b59280f97d7b4739b437f4fd72dfe34970 100644 --- a/ets2panda/test/ast/compiler/ets/return_protected_function.ets +++ b/ets2panda/test/ast/compiler/ets/return_protected_function.ets @@ -23,4 +23,4 @@ class A{ } }; -/* @@@ label Error TypeError: Protected method is used as value */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0306: Protected method is used as value */ \ No newline at end of file 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..045471de9ab02fe8cb5a396bddd283b2c0c6d83e 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,5 @@ 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' */ \ No newline at end of file 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..26d97fe96553c2b20b7833e96c11d2a5898940d5 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/return_type_test.ets b/ets2panda/test/ast/compiler/ets/return_type_test.ets index 9171a58bbce0adcf6d0b8d44857bf62e61c78c5b..f72a2cf1e42f83467826f82340182eac101acaf2 100644 --- a/ets2panda/test/ast/compiler/ets/return_type_test.ets +++ b/ets2panda/test/ast/compiler/ets/return_type_test.ets @@ -26,4 +26,5 @@ function test(): Promise { return thenResult; } -/* @@? 23:9 Error TypeError: Missing return value. */ + +/* @@? 23:9 Error Semantic error ESE0032: Missing return value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/callExpr_pos.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/callExpr_pos.ets index 6d1a17227009d7024b1d50a8548cf72a114e4014..f6f67328fa696a9bb735c3fef92b23a4a2dfe19b 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/callExpr_pos.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/callExpr_pos.ets @@ -24,5 +24,5 @@ foo(b) foo(1,2) foo(1.1) -/* @@? 17:1 Warning Warning: Function foo with this assembly signature already declared. */ -/* @@? 23:5 Warning Warning: Variable 'b' is used before being assigned. */ + +/* @@? 23:5 Error Semantic error ESE0375: Variable 'b' is used before being assigned. */ \ No newline at end of file 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..ded142c01ee7eadeb9cb0a6074ae78ea9f8d8c46 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. */ \ No newline at end of file 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..c479d846e55136e7c71b2721020acf2757b906d2 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,5 @@ 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. */ \ No newline at end of file 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..8129994689ec604c3c7937db5cbb66ee2c44f644 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,5 @@ 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 */ \ No newline at end of file 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..13d00da467c9b7ce1b3809c125eb60c35df755ca 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,5 @@ 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. */ \ No newline at end of file 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..477bc21fbd603b3b80a7446c7820a832ed8ed26a 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,5 @@ 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. */ \ No newline at end of file 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..19bd5b311192e2b056adc6c484f121cd763ec88f 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/setPropertyTypeOf.ets b/ets2panda/test/ast/compiler/ets/setPropertyTypeOf.ets index 8821d43bc2a980223315e33315bcee5847d61889..3c0ff501bee77396155b5efd88a88aaa1355d8c2 100644 --- a/ets2panda/test/ast/compiler/ets/setPropertyTypeOf.ets +++ b/ets2panda/test/ast/compiler/ets/setPropertyTypeOf.ets @@ -23,6 +23,7 @@ class CustomError extends Error { } } -/* @@@ label1 Error SyntaxError: Runtime prototype inheritance is not supported because of static typing. */ -/* @@@ label2 Error SyntaxError: Invalid Type. */ -/* @@@ label3 Error SyntaxError: Runtime prototype assignment is not supported because of static typing */ + +/* @@@ label1 Error Syntax error ESY167923: Runtime prototype inheritance is not supported because of static typing. */ +/* @@@ label2 Error Syntax error ESY0138: Invalid Type. */ +/* @@@ label3 Error Syntax error ESY30818: Runtime prototype assignment is not supported because of static typing */ \ No newline at end of file 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..c4e78177c2b8b2a4c0a691d0a92e852a9b512d9c 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 '('. */ +/* @@? 22:85 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 22:85 Error Syntax error ESY0146: Extension Accessor must have a receiver. */ \ No newline at end of file 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..89b541d6716136539d097f7fcefac907d9046ac9 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/signature_argument.ets b/ets2panda/test/ast/compiler/ets/signature_argument.ets index 4a2151301a0e5489560533f4517127adfe358f32..6a93886930727bf3aaa89612f35951858eafd458 100644 --- a/ets2panda/test/ast/compiler/ets/signature_argument.ets +++ b/ets2panda/test/ast/compiler/ets/signature_argument.ets @@ -29,15 +29,16 @@ interface B { adRequestParams: advertising.adRequestParams; } -/* @@? 20:14 Error TypeError: Property 'buttonsOptions' does not exist on type 'Index' */ -/* @@? 21:27 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 21:27 Error SyntaxError: Unexpected token. */ -/* @@? 21:30 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 21:31 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:13 Error SyntaxError: Unexpected token. */ -/* @@? 22:30 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 23:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 25:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 28:11 Error TypeError: Cannot find type 'ResourceStr'. */ -/* @@? 29:22 Error TypeError: Cannot find type 'advertising'. */ -/* @@? 29:34 Error TypeError: 'adRequestParams' type does not exist. */ + +/* @@? 20:14 Error Semantic error ESE0087: Property 'buttonsOptions' does not exist on type 'Index' */ +/* @@? 21:27 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 21:27 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 21:30 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 21:31 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:13 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 22:30 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 23:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 25:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 28:11 Error Semantic error ESE0371: Cannot find type 'ResourceStr'. */ +/* @@? 29:22 Error Semantic error ESE0371: Cannot find type 'advertising'. */ +/* @@? 29:34 Error Semantic error ESE0070: 'adRequestParams' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/signature_param.ets b/ets2panda/test/ast/compiler/ets/signature_param.ets index 9c758d79536dcf8a7666d2b41a8b87d601229938..1dd6bcc88cde2162f62a5218cc767bac7c6caeac 100644 --- a/ets2panda/test/ast/compiler/ets/signature_param.ets +++ b/ets2panda/test/ast/compiler/ets/signature_param.ets @@ -29,20 +29,21 @@ function foo3() { foo2(() => {}); } -/* @@? 20:35 Error SyntaxError: Newline is not allowed in strings */ -/* @@? 20:45 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 22:1 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 24:1 Error SyntaxError: Unexpected token '{'. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 24:1 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 24:1 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:1 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 24:1 Error TypeError: Variable 'f' has already been declared. */ -/* @@? 24:1 Error TypeError: Unresolved reference x */ -/* @@? 26:1 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 27:18 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 27:18 Error SyntaxError: Unexpected token ')'. */ -/* @@? 28:21 Error TypeError: Unresolved reference foo2 */ + +/* @@? 20:35 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@? 20:45 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 22:1 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 24:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 24:1 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 24:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 24:1 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 24:1 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 24:1 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 24:1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:1 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 24:1 Error Semantic error ESE0351: Variable 'f' has already been declared. */ +/* @@? 24:1 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 26:1 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 27:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 27:18 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 28:21 Error Semantic error ESE0143: Unresolved reference foo2 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/smart_cast.ets b/ets2panda/test/ast/compiler/ets/smart_cast.ets index 226a7a068e399b1f1724c71e87c372fdde566e5c..1a9ed9c40b0eadc751df1c62ce6ecb99b1e25749 100644 --- a/ets2panda/test/ast/compiler/ets/smart_cast.ets +++ b/ets2panda/test/ast/compiler/ets/smart_cast.ets @@ -24,5 +24,6 @@ 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"' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/smart_cast_while_test_mod.ets b/ets2panda/test/ast/compiler/ets/smart_cast_while_test_mod.ets index 1f9a65afaa88504a2653943e24a838824d767cf4..3680afcabe91a816fcdeecb98f4275f0d5cff815 100644 --- a/ets2panda/test/ast/compiler/ets/smart_cast_while_test_mod.ets +++ b/ets2panda/test/ast/compiler/ets/smart_cast_while_test_mod.ets @@ -23,5 +23,6 @@ function main(): void { } } -/* @@? 21:12 Error TypeError: Member type must be the same for all union objects. */ -/* @@? 21:15 Error TypeError: Property 'test' does not exist on type 'B' */ + +/* @@? 21:12 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@? 21:15 Error Semantic error ESE0087: Property 'test' does not exist on type 'B' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/smart_cast_wuth_break.ets b/ets2panda/test/ast/compiler/ets/smart_cast_wuth_break.ets index aedd842942ecc7d3995d365635d377ee9ba0d2a9..9d65d7dec08acd645998dec1b4631c5e939aae29 100644 --- a/ets2panda/test/ast/compiler/ets/smart_cast_wuth_break.ets +++ b/ets2panda/test/ast/compiler/ets/smart_cast_wuth_break.ets @@ -32,4 +32,5 @@ function main() { console.log(foo("a")); } -/* @@@ label Error TypeError: Type 'String|undefined' is not compatible with the enclosing method's return type 'undefined' */ + +/* @@@ label Error Semantic error ESE0091: Type 'String|undefined' is not compatible with the enclosing method's return type 'undefined' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/special_type.ets b/ets2panda/test/ast/compiler/ets/special_type.ets index 61a6f71849d3530f2b85d5cc8611062e18499ebe..37384d28ca1b6172befdd50370455258ef7f24bd 100644 --- a/ets2panda/test/ast/compiler/ets/special_type.ets +++ b/ets2panda/test/ast/compiler/ets/special_type.ets @@ -24,12 +24,12 @@ foo3(()=>{}) foo4(()=>{}) foo5(()=>{}) -/* @@? 16:17 Error SyntaxError: 'Required' is reserved and cannot be used as a variable/type name */ -/* @@? 17:17 Error SyntaxError: 'Readonly' is reserved and cannot be used as a variable/type name */ -/* @@? 18:17 Error SyntaxError: 'Partial' is reserved and cannot be used as a variable/type name */ -/* @@? 19:17 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 22:1 Error TypeError: No matching call signature for foo2((() => void)) */ -/* @@? 23:1 Error TypeError: No matching call signature for foo3((() => void)) */ -/* @@? 24:1 Error TypeError: No matching call signature for foo4((() => void)) */ -/* @@? 25:1 Error TypeError: No matching call signature for foo5((() => void)) */ +/* @@? 16:17 Error Syntax error ESY0242: 'Required' is reserved and cannot be used as a variable/type name */ +/* @@? 17:17 Error Syntax error ESY0242: 'Readonly' is reserved and cannot be used as a variable/type name */ +/* @@? 18:17 Error Syntax error ESY0242: 'Partial' is reserved and cannot be used as a variable/type name */ +/* @@? 19:17 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 22:1 Error Semantic error ESE0127: No matching call signature for foo2(() => void) */ +/* @@? 23:1 Error Semantic error ESE0127: No matching call signature for foo3(() => void) */ +/* @@? 24:1 Error Semantic error ESE0127: No matching call signature for foo4(() => void) */ +/* @@? 25:1 Error Semantic error ESE0127: No matching call signature for foo5(() => void) */ diff --git a/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets b/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets index a73d747d9053d6962e7569c8e79754138772ae3c..9bf58e13894dcb2c383ce09d656457b42eb81e88 100644 --- a/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets +++ b/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets @@ -20,8 +20,14 @@ 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 */ -/* @@@ label Error TypeError: Non-optional property 'n' in type 'Base' is missing in object literal. */ -/* @@@ label1 Error TypeError: The object literal properties must be key-value pairs */ -/* @@@ label1 Error TypeError: Non-optional property 'n' in super type 'Base' of type 'Child' is missing in object literal. */ -/* @@@ label1 Error TypeError: Non-optional property 'a' in type 'Child' is missing in object literal. */ + +/* @@@ label Error Semantic error ESE0064: The object literal properties must be key-value pairs */ +/* @@@ label Error Semantic error ESE0400: Non-optional property 'n' in type 'Base' is missing in object literal. */ +/* @@@ label Error Semantic error ESE0064: The object literal properties must be key-value pairs */ +/* @@@ label Error Semantic error ESE0400: Non-optional property 'n' in type 'Base' is missing in object literal. */ +/* @@@ label1 Error Semantic error ESE0064: The object literal properties must be key-value pairs */ +/* @@@ label1 Error Semantic error ESE0401: Non-optional property 'n' in super type 'Base' of type 'Child' is missing in object literal. */ +/* @@@ label1 Error Semantic error ESE0400: Non-optional property 'a' in type 'Child' is missing in object literal. */ +/* @@@ label1 Error Semantic error ESE0064: The object literal properties must be key-value pairs */ +/* @@@ label1 Error Semantic error ESE0401: Non-optional property 'n' in super type 'Base' of type 'Child' is missing in object literal. */ +/* @@@ label1 Error Semantic error ESE0400: Non-optional property 'a' in type 'Child' is missing in object literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets b/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets index de366a4ce9c8977af5dafbc712422a52ccb5c62b..6b3416c5b385bcf5616441d106df86c2ab4bec9b 100644 --- a/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets +++ b/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets @@ -21,9 +21,10 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/spread_record.ets b/ets2panda/test/ast/compiler/ets/spread_record.ets index f9782ab9747c4499a218df40d74a3a8ebcc80400..0747c11c0a1d255db6cc3e3667542649d24332a0 100644 --- a/ets2panda/test/ast/compiler/ets/spread_record.ets +++ b/ets2panda/test/ast/compiler/ets/spread_record.ets @@ -20,12 +20,13 @@ 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 */ + +/* @@? 17:1 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@? 17:1 Error Semantic error ESE0127: No matching call signature for log(...r1) */ +/* @@? 17:1 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@? 17:13 Error Semantic error ESE0323: Type 'Record' is not compatible with rest parameter type 'Array' at index 1 */ +/* @@? 17:13 Error Semantic error ESE0049: Spread expression can be applied only to array or tuple type, but 'Record' is provided */ +/* @@? 20:1 Error Semantic error ESE0127: No matching call signature for log(...r3) */ +/* @@? 20:1 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@? 20:13 Error Semantic error ESE0323: Type 'Record' is not compatible with rest parameter type 'Array' at index 1 */ +/* @@? 20:13 Error Semantic error ESE0049: Spread expression can be applied only to array or tuple type, but 'Record' is provided */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets b/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets index 5ecd50b4cb3e449fb1f451203b036ca8ce6c02b5..9cd7fbfc7a92d524cfcd73606ec75f69dd951d76 100644 --- a/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets +++ b/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets @@ -31,6 +31,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/static_index_function1.ets b/ets2panda/test/ast/compiler/ets/static_index_function1.ets index 36c1a7ebd551ea117a3c9dfddb806c4a3aad9ba0..279dc2df538e6786e1499b88c29a5b3c04243f5d 100644 --- a/ets2panda/test/ast/compiler/ets/static_index_function1.ets +++ b/ets2panda/test/ast/compiler/ets/static_index_function1.ets @@ -27,7 +27,8 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/static_index_function2.ets b/ets2panda/test/ast/compiler/ets/static_index_function2.ets index c6ae1e214f8ca52e2e8482918f9a36c7aea8f192..55be6a8077f67f2f496369596e9f2bcc4072fc12 100644 --- a/ets2panda/test/ast/compiler/ets/static_index_function2.ets +++ b/ets2panda/test/ast/compiler/ets/static_index_function2.ets @@ -26,6 +26,7 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/static_index_function3.ets b/ets2panda/test/ast/compiler/ets/static_index_function3.ets index 0f7fdaddb6636dad33deb171a019616044aba2d2..47ce28f98cf4e30ba99569a4286f2137a1e2b911 100644 --- a/ets2panda/test/ast/compiler/ets/static_index_function3.ets +++ b/ets2panda/test/ast/compiler/ets/static_index_function3.ets @@ -43,5 +43,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/string_enum_unary.ets b/ets2panda/test/ast/compiler/ets/string_enum_unary.ets index 68ca4eb5fadf8a2c1d71f6484bf4833801b8e4cc..f53ffde16ca289b18f97e40446fd915294582fe2 100644 --- a/ets2panda/test/ast/compiler/ets/string_enum_unary.ets +++ b/ets2panda/test/ast/compiler/ets/string_enum_unary.ets @@ -24,6 +24,7 @@ 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. */ \ No newline at end of file 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..2ba9bdd044da415f97733dee057eab8a8a582771 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,14 @@ 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 ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/stwitch_with_non_case.ets b/ets2panda/test/ast/compiler/ets/stwitch_with_non_case.ets index 9741d6c34dfd7b2e51905bc61e2a536605088304..354ad93861bb42dd068ac17a51ec83105c1e4f0a 100644 --- a/ets2panda/test/ast/compiler/ets/stwitch_with_non_case.ets +++ b/ets2panda/test/ast/compiler/ets/stwitch_with_non_case.ets @@ -18,4 +18,5 @@ function foo(x: int): string { switch (x) { } } -/* @@? 16:10 Error TypeError: Function with a non void return type must return a value. */ + +/* @@? 16:10 Error Semantic error ESE0103: Function with a non void return type must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/subtype.ets b/ets2panda/test/ast/compiler/ets/subtype.ets index 5207d81c18227c28b0b3fef250bc61fa73f5abca..0e789cf6f745d0c21252240712e6cd021721664c 100644 --- a/ets2panda/test/ast/compiler/ets/subtype.ets +++ b/ets2panda/test/ast/compiler/ets/subtype.ets @@ -40,4 +40,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets b/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets index 0299dda17c0d864e191166a09f844f385760d404..cf44bdd83c5fe6267a973b7779a3cde0da2bcee0 100644 --- a/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets +++ b/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets @@ -27,4 +27,5 @@ 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 */ \ No newline at end of file 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..06b61677e83b3384944283d8fb0a29effbf2e0ae 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,11 @@ 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' */ + +/* @@? 17:7 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 17:7 Error Syntax error ESY0227: Unexpected token 'null'. */ +/* @@? 17:7 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 17:12 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 22:5 Error Semantic error ESE0163: Constant expression required */ +/* @@? 22:10 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 22:10 Error Semantic error ESE0262: Switch case type 'A' is not comparable to discriminant type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/switch_negative_5.ets b/ets2panda/test/ast/compiler/ets/switch_negative_5.ets index d0703f36d34c2cbc6e4b4ad81d6dcc60ee16ccb3..cf4a2f6ce4a1a1914533d6ecb6280243da8d2a71 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets b/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets index d1499c6e6e82ad7fcc75a975b902f456f8d67fbd..889ac64354057334a19c4b46a7336601d8c24d7d 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/template_fold.ets b/ets2panda/test/ast/compiler/ets/template_fold.ets index c4255f98ba47d7a86666685d4100a2e3f9767496..137a322dbf4b8e576f379516a15a5fafc6e42c67 100644 --- a/ets2panda/test/ast/compiler/ets/template_fold.ets +++ b/ets2panda/test/ast/compiler/ets/template_fold.ets @@ -15,5 +15,6 @@ `\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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets b/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets index 6ed9b3f87fb83ee8260d2645091eaf2d628e7325..0cac1db874d17c821ebfa3e1cbaf17668b4839d4 100644 --- a/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets +++ b/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets @@ -21,5 +21,6 @@ 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' */ \ No newline at end of file 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..7c5e0dfbdf43529ad17c59cd81dae93981e60ab0 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,5 @@ ] } -/* @@? 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/this_in_wrong_context.ets b/ets2panda/test/ast/compiler/ets/this_in_wrong_context.ets index b9948db8a3ec5ea25d8f020fb616aadecf252bb5..da91b5e3b1010413f413a23291871929d2e6ab55 100644 --- a/ets2panda/test/ast/compiler/ets/this_in_wrong_context.ets +++ b/ets2panda/test/ast/compiler/ets/this_in_wrong_context.ets @@ -17,9 +17,10 @@ export declare @interface ClassAuthor { color: Color[] = [this.listener !== undefined] } -/* @@? 1:3 Error TypeError: Cannot find type 'Color'. */ -/* @@? 17:5 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ -/* @@? 17:22 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 17:23 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 17:23 Warning Warning: The instance field initializer expression cannot use the this. */ -/* @@? 17:28 Error TypeError: Property 'listener' does not exist on type 'Error' */ + +/* @@? 1:3 Error Semantic error ESE0371: Cannot find type 'Color'. */ +/* @@? 17:5 Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ +/* @@? 17:22 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 17:23 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 17:23 Warning Warning W0010: The instance field initializer expression cannot use the this. */ +/* @@? 17:28 Error Semantic error ESE0087: Property 'listener' does not exist on type 'Error' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets b/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets index d75a72da751d60e0feef688b2406129d0bcecb33..84fe5fa9b539d223f5f4593083d1687a3d36d94b 100644 --- a/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets +++ b/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets @@ -24,4 +24,5 @@ function main(): void { } catch (e) {} } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ + +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tolocalString.ets b/ets2panda/test/ast/compiler/ets/tolocalString.ets index e2576c4fd4f6f5090b1070e2e577071dae29c3c0..d7a2dd12c5d6f9621a2d8c472713b086e5426926 100644 --- a/ets2panda/test/ast/compiler/ets/tolocalString.ets +++ b/ets2panda/test/ast/compiler/ets/tolocalString.ets @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/trailing_lambda.ets b/ets2panda/test/ast/compiler/ets/trailing_lambda.ets index 4de45fbe09f703a899d9c2eba8dabc2ba5165117..8f1bd6cc93df6f7a3113c176d81c49649ae8fd79 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets b/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets index 4efd4a36f80aa0467017aeb9216d00588d215dac..6d10da99df6600e53886beead46d187b93fee023 100644 --- a/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets +++ b/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets @@ -23,4 +23,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets b/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets index ed8c64227c6b3e19dffa09802871e70a57438c44..c9006a557a0d17ff791e43edca68d71991a82e48 100644 --- a/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets +++ b/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets @@ -21,4 +21,5 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ + +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ \ No newline at end of file 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..8cc4ea1108e09c4658602f579f711ac0f82efc20 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,5 @@ try { let a = 1 } -/* @@? 18:9 Error TypeError: Variable 'a' has already been declared. */ + +/* @@? 18:9 Error Semantic error ESE0351: Variable 'a' has already been declared. */ \ No newline at end of file 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..c7ebc85651b47e18024376fbdfb4b16a1de6ae34 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,5 @@ 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]' */ \ No newline at end of file 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..aa69483b6ff3ed44003b2a573b4fa09d6862bf24 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,5 @@ 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]' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_13_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_13_neg.ets index 6ffa4811bc60b930637d00cf97047235a7b8b68e..4d1a199a80efd6c7f27ea5859e238e1c2815be68 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_13_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_13_neg.ets @@ -26,5 +26,6 @@ class A { } } -/* @@? 24:32 Error TypeError: Element accessor value is out of tuple size bounds. */ -/* @@? 25:32 Error TypeError: Element accessor value is out of tuple size bounds. */ + +/* @@? 24:32 Error Semantic error ESE0198: Element accessor value is out of tuple size bounds. */ +/* @@? 25:32 Error Semantic error ESE0198: Element accessor value is out of tuple size bounds. */ \ No newline at end of file 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..6c15d3149131af050a572eab8af216f214719d7d 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,5 @@ 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' */ \ No newline at end of file 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..bd83e15c150b7126a3d82f2669eaed77cc8dcaa8 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,5 @@ 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. */ \ No newline at end of file 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..3b22c4dafc87cbb37db9b34e39e96369daf6487e 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,5 @@ 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 */ \ No newline at end of file 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..b66d9bae05451edc1a1f98d1b1ed9ecf83e927e1 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,5 @@ 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 */ \ No newline at end of file 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..ddd114846c1e45a2483ff84565aa99efff9f9bcf 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,9 @@ 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 ']'. */ \ No newline at end of file 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..4619c0bcbf1f986799a8d86e8afb6dea14393012 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,9 @@ 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 ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets index 34a2d31c5a5412e10a0a02a091d94183e2ffbf59..963e40aaa7b6051ea866f775855d535f11da479c 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets @@ -14,5 +14,6 @@ */ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets index 976f1c71f6cdaf3aa8f97d3ada30bf5e0e532b3b..2491d9cc3e032cdceba1025f57acce7eb7d4347d 100644 --- a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets +++ b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets @@ -18,4 +18,5 @@ type ValueAlias = Record<"val", V>; declare function value(): ValueAlias; -/* @@@ label Error TypeError: Type argument 'U' should be a subtype of 'String'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'U' should be a subtype of 'String'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets index 96cf4d03326b0bafb8935e69cb3d221657f63c8c..d4cd9d60bdad06505bc6549fe0f376a1ab4b53ab 100644 --- a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets +++ b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets @@ -20,4 +20,5 @@ declare function value(): ValueAlias; /* @@ label */value(); -/* @@@ label Error TypeError: No matching call signature */ + +/* @@@ label Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets index 7378bd24f9ea49436f55c00fad536ef825b814b9..117f32566bab8a46851ef492d2252d8ec90b6501 100644 --- a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets +++ b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets @@ -18,5 +18,6 @@ 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 */ + +/* @@@ label1 Error Semantic error ESE0228: Type argument 'Int' should be a subtype of 'String'-constraint */ +/* @@@ label2 Error Semantic error ESE0228: Type argument 'String' should be a subtype of 'Numeric'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typeOfString.ets b/ets2panda/test/ast/compiler/ets/typeOfString.ets index 24481e1f3291c5bc61a6672a35b09e1253cc03cd..b7eee473543a7677a01ddc69450c6285fb154fd0 100644 --- a/ets2panda/test/ast/compiler/ets/typeOfString.ets +++ b/ets2panda/test/ast/compiler/ets/typeOfString.ets @@ -15,4 +15,5 @@ V = typeof `m` -/* @@? 16:1 Error TypeError: Unresolved reference V */ + +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference V */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets b/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets index 0e3ad5e269f9278d42d574b5660b092f9841abd7..1bcff32fa14756821daab5f6e02495abd33d4a0f 100644 --- a/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets +++ b/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets @@ -19,4 +19,5 @@ 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 */ \ No newline at end of file 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..c6230c2c5e564270c5e0166d4fb37134a80a2468 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,7 @@ 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. */ + +/* @@? 16:26 Error Semantic error ESE0371: Cannot find type 'T'. */ +/* @@? 21:58 Error Syntax error ESY0230: Expected '=', got 'end of stream'. */ +/* @@? 21:58 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/type_as_value.ets b/ets2panda/test/ast/compiler/ets/type_as_value.ets index fb69b217cc56efed69c8c6f0e06d7c424c79a45c..bc4282f0b7e3eac01e78fcfba96e78be8172bc51 100644 --- a/ets2panda/test/ast/compiler/ets/type_as_value.ets +++ b/ets2panda/test/ast/compiler/ets/type_as_value.ets @@ -15,4 +15,4 @@ let a = number[][] -/* @@? 16:9 Error SyntaxError: Unexpected token 'number'. */ \ No newline at end of file +/* @@? 16:9 Error Syntax error ESY0227: Unexpected token 'number'. */ \ No newline at end of file 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..572e00002f6dd5a6b48a2f1105449513d747a8d1 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,13 @@ 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. */ \ No newline at end of file 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..daa78e836a30b591352da327eb5d9084490151ec 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,5 @@ 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. */ \ No newline at end of file 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..3f0b0c420cebccf1ba9f77ee67f25dde57de7659 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,12 @@ 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 '}'. */ \ No newline at end of file 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..8b61d410351f0e9dbd659ea0bf88fcd9d10d4813 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,13 @@ 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. */ \ No newline at end of file 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 799e9d1a8063e84e303b53ecf815ade00a1d014c..552ae2126564a637ac748d7b0dfa210531934aa1 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,8 @@ function foo() { void = [([...asyncGenerator])] } -/* @@? 21:9 Error TypeError: Unresolved reference a */ -/* @@? 21:17 Error TypeError: Unresolved reference c */ -/* @@? 24:5 Error SyntaxError: Unexpected token 'void'. */ -/* @@? 24:18 Error TypeError: Unresolved reference asyncGenerator */ + +/* @@? 21:9 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 21:17 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/type_error_test.ets b/ets2panda/test/ast/compiler/ets/type_error_test.ets index cbb33753e830d5f3662f40bf1d22372839d3ac50..186955fff777d034f93e13d4e7a926ab9908b9ed 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_test.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_test.ets @@ -21,4 +21,5 @@ export class SHA1Hash{ } const swap32:(num:int)=>int = ((c:int):int =>c) -/* @@? 19:16 Warning Warning: 'As' expression for cast is deprecated for numeric types. Use explicit conversion function Double.toInt(...) instead. */ + +/* @@? 19:16 Warning Warning W0029: 'As' expression for cast is deprecated for numeric types. Use explicit conversion function Double.toInt(...) instead. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/type_error_test2.ets b/ets2panda/test/ast/compiler/ets/type_error_test2.ets index 599348051e00e1a58c28dd596516f5fa0289885c..09a4d5755dd3bb9bf06627552d25c9620a36f78a 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 '((p1: *ERROR_TYPE*) => void)' cannot be assigned to type '((p1: String, ...p2: *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 '(p1: *ERROR_TYPE*) => void' cannot be assigned to type '(p1: String, ...p2: *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/type_parameter.ets b/ets2panda/test/ast/compiler/ets/type_parameter.ets index d453160a29bae5fff51f25ffed42675bab83ce7a..0aebf2efebca0acfa61c509178b33c9840e3ba99 100644 --- a/ets2panda/test/ast/compiler/ets/type_parameter.ets +++ b/ets2panda/test/ast/compiler/ets/type_parameter.ets @@ -17,6 +17,7 @@ type foo let a : foo = 1; -/* @@? 16:15 Error TypeError: Type Parameter T should be defined before use. */ -/* @@? 18:1 Error SyntaxError: Expected '=', got 'let'. */ -/* @@? 18:1 Error SyntaxError: Invalid Type. */ + +/* @@? 16:15 Error Semantic error ESE0183: Type Parameter T should be defined before use. */ +/* @@? 18:1 Error Syntax error ESY0230: Expected '=', got 'let'. */ +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typealias_as_value.ets b/ets2panda/test/ast/compiler/ets/typealias_as_value.ets index e6f3bb13a735fddfbc53d9b1ef91d04416d4b067..95417f9772e04ee71b71e7d03c949f3f7b539c73 100644 --- a/ets2panda/test/ast/compiler/ets/typealias_as_value.ets +++ b/ets2panda/test/ast/compiler/ets/typealias_as_value.ets @@ -19,4 +19,4 @@ function main(){ let v1 = () => {return RF} } -/* @@? 19:28 Error TypeError: Type name 'RF' used in the wrong context */ \ No newline at end of file +/* @@? 19:28 Error Semantic error ESE0144: Type name 'RF' used in the wrong context */ \ No newline at end of file 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..8a3b7c51a0d36a3795084d5806da124986bdc243 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,5 @@ 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. */ \ No newline at end of file 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..7a8aefac222a87e795970fd7f5cf2543dc75c646 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 */ \ No newline at end of file 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..65aef64353424ed12db1059f169d8e5f05a31620 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 */ \ No newline at end of file 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..96e9d8061c37d86f2e9782adf6027b00dacc4fea 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets b/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets index 5e15bcbf7dada134279d2b9f12f5c685e0b3a4ab..27f6397f1feef87a5e387b6bc2e8a5382b9770f2 100644 --- a/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets +++ b/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets @@ -20,13 +20,13 @@ 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 +/* @@? 16:30 Error Semantic error ESE0143: Unresolved reference byteFunc */ +/* @@? 17:41 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:41 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:41 Error Syntax error ESY0230: Expected '=>', got 'identification literal'. */ +/* @@? 17:41 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 17:48 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:50 Error Syntax error ESY0227: Unexpected token 'Object'. */ +/* @@? 17:50 Error Semantic error ESE0132: The type of parameter 'Object' cannot be inferred */ +/* @@? 18:12 Error Semantic error ESE0143: Unresolved reference value */ +/* @@? 20:2 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets b/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets index c5bb53c7ebb55422acc3f0b24ff8b109b185e907..4616c58af162717ae0a342d2ece887107f2af34b 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:16 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets b/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets index f03ea9734f398242b012ee3ac1dfefae39255300..1f3b440ac9df473578d6996b8103a4c957e2e0ee 100644 --- a/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets +++ b/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets @@ -51,10 +51,11 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/unionType_clone.ets b/ets2panda/test/ast/compiler/ets/unionType_clone.ets index 1af439f0e8543de1bee657ea7694ae31acac4155..3aece7ed23d1de9a9dade006f49c3936c636dfb2 100644 --- a/ets2panda/test/ast/compiler/ets/unionType_clone.ets +++ b/ets2panda/test/ast/compiler/ets/unionType_clone.ets @@ -22,16 +22,17 @@ 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:78 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_array_declaration.ets b/ets2panda/test/ast/compiler/ets/union_array_declaration.ets index f64c5e85dfd3074ec59af8cb9cdbd87c12b1e55b..cfd42cd8f64de27a81d86783493f85b9a8ffef06 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_field_access.ets b/ets2panda/test/ast/compiler/ets/union_field_access.ets index 33cb90075f7fa1295cef7c0d4e22a26a10d9202c..8cc0fd72cf1f821468fb250f52361e23d671f6e6 100644 --- a/ets2panda/test/ast/compiler/ets/union_field_access.ets +++ b/ets2panda/test/ast/compiler/ets/union_field_access.ets @@ -28,4 +28,5 @@ 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. */ \ No newline at end of file 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..a744744547688593b5ea853c38da432ee1315575 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,14 @@ (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 ')'. */ \ No newline at end of file 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..4a56d20d7e8f2d33d5f1ebd2cd9404ee80305061 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,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_method_4.ets b/ets2panda/test/ast/compiler/ets/union_method_4.ets index ec919acd347782273ac29d284e84064e1767b3e6..358a93a82def7a89f75636b29eeba550869e23b3 100644 --- a/ets2panda/test/ast/compiler/ets/union_method_4.ets +++ b/ets2panda/test/ast/compiler/ets/union_method_4.ets @@ -31,7 +31,8 @@ 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") */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_overload_crash.ets b/ets2panda/test/ast/compiler/ets/union_overload_crash.ets index 01d75715b7a7840938025bb0989de29ffe62b83d..ac79e2ee0da69476a552bdfc93495e1179c9bf64 100644 --- a/ets2panda/test/ast/compiler/ets/union_overload_crash.ets +++ b/ets2panda/test/ast/compiler/ets/union_overload_crash.ets @@ -24,4 +24,5 @@ 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 */ \ No newline at end of file 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..acf946343728adb05b1cffd981337c773d883cfd 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,5 @@ 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' */ \ No newline at end of file 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..ca233d0e79b3e1b87024a49202cd13aa4a92d433 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,6 @@ 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 */ \ No newline at end of file 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..81fdec45171924d400d65d851ab1ae4af688b868 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,5 @@ 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"' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_4.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_4.ets index 551bacd20c154c55ce654eaa18d6bc74e38cef77..035272a4891c803d3ec2ac7e67d33f7ce0cc2c6b 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_4.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_4.ets @@ -18,4 +18,5 @@ let map: Record<"aa" | "bb" | int, number> = /* @@ label */{ 42 : 33, } -/* @@@ label Error TypeError: All variants of literals listed in the union type must be listed in the object literal */ + +/* @@? 16:5 Error Semantic error ESE0265: All variants of literals listed in the union type must be listed in the object literal */ \ No newline at end of file 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..5b7e3a51ebdb6221c0336f6920e690d0af305657 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,5 @@ 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'. */ \ No newline at end of file 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..461ad2fe18b09cbf02f68a9ef6d8d2e5b028cf80 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,5 @@ 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"'. */ \ No newline at end of file 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..4edcd2563a773bbc27d98503adfe29ec56f08c7f 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,6 @@ 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 */ \ No newline at end of file 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..4d821cd618733ef202bf89d6db9ef3d7bdc8d991 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_type.ets b/ets2panda/test/ast/compiler/ets/union_type.ets index 9e3cb3e06d0aeb0c298d4e2a16563321655fb514..5ce85e7efa6e72aacee7e9f5352432d6dfc0f197 100644 --- a/ets2panda/test/ast/compiler/ets/union_type.ets +++ b/ets2panda/test/ast/compiler/ets/union_type.ets @@ -27,4 +27,5 @@ function foo1(x : A | B) { } } -/* @@? 25:9 Error TypeError: Member type must be the same for all union objects. */ + +/* @@? 25:9 Error Semantic error ESE0244: Member type must be the same for all union objects. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_type_of_partial_type.ets b/ets2panda/test/ast/compiler/ets/union_type_of_partial_type.ets index e4ea92495b82b4c51bb4f9c482368c1fc0edba7c..e9aae20d5f010b1d3998f4c53775bb9531a652d9 100644 --- a/ets2panda/test/ast/compiler/ets/union_type_of_partial_type.ets +++ b/ets2panda/test/ast/compiler/ets/union_type_of_partial_type.ets @@ -17,13 +17,14 @@ abstract class A>{ } } -/* @@? 16:9 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:9 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:9 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:12 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:27 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 16:42 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:43 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:45 Error SyntaxError: void is a predefined type, cannot be used as an identifier */ -/* @@? 16:50 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 16:9 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:9 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:9 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:12 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:27 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 16:42 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:43 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:45 Error Syntax error ESY0295: void is a predefined type, cannot be used as an identifier */ +/* @@? 16:50 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_types_2.ets b/ets2panda/test/ast/compiler/ets/union_types_2.ets index 8359a4b770fb929e2107e78563172faa4bac4cfd..51a83e65220e1790e8a009acc82d56f5d108ab2b 100644 --- a/ets2panda/test/ast/compiler/ets/union_types_2.ets +++ b/ets2panda/test/ast/compiler/ets/union_types_2.ets @@ -39,4 +39,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_types_4.ets b/ets2panda/test/ast/compiler/ets/union_types_4.ets index f22ce635f51e9f947df5343ad481105d66559f9e..b86b84dba04ed4390bb1fbc15024088298812c8a 100644 --- a/ets2panda/test/ast/compiler/ets/union_types_4.ets +++ b/ets2panda/test/ast/compiler/ets/union_types_4.ets @@ -30,4 +30,5 @@ 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' */ \ No newline at end of file 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..1d8d2a4b7f8299f56f0f283789cd70028e6317d4 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,5 @@ 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. */ \ No newline at end of file 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 8c43291e0546a6ef9a80997d6ec5895c3ac35e4a..85622b7fd381289c2e8aed9949cf684848557d9a 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 472597e3c531be5f6c8824116dfa8a1217156688..e883aab3696477eda6d4d425f466b910183f7065 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,7 +19,8 @@ function foo>(record: Record>){ foo({}) -/* @@? 16:39 Error TypeError: Cannot find type 'A'. */ -/* @@? 16:73 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 20:1 Error TypeError: No matching call signature for foo(...) */ -/* @@? 20:5 Error TypeError: need to specify target type for class composite */ + +/* @@? 16:39 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 16:73 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 20:1 Error Semantic error ESE0127: No matching call signature for foo(...) */ +/* @@? 20:5 Error Semantic error ESE0062: need to specify target type for class composite */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/unresolved_reference.ets b/ets2panda/test/ast/compiler/ets/unresolved_reference.ets index 9478fc0e84d5c05b9fa08f7c6f6f748fe0426ea5..ef5961a335370c7b83cb8658ce24fd7b5080bbe4 100644 --- a/ets2panda/test/ast/compiler/ets/unresolved_reference.ets +++ b/ets2panda/test/ast/compiler/ets/unresolved_reference.ets @@ -37,5 +37,6 @@ function main() { let a = (new A).b } -/* @@? 16:13 Error TypeError: Unresolved reference b */ -/* @@? 37:21 Error TypeError: Property 'b' does not exist on type 'A' */ + +/* @@? 16:13 Error Semantic error ESE0143: Unresolved reference b */ +/* @@? 37:21 Error Semantic error ESE0087: Property 'b' does not exist on type 'A' */ \ No newline at end of file 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..357037e14a57f41e0cd7b8cc9ad1e2de5e951fab 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,6 @@ 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` */ \ No newline at end of file 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..576e41f8fcabdcd1ca3475f9b9b10d5a4b82678b 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/update_const.ets b/ets2panda/test/ast/compiler/ets/update_const.ets index 15ffd430673492a7e6c6f970300e7698288ade34..c97a1657fc2d59e3659dbae9f390e47f7d2e3d31 100644 --- a/ets2panda/test/ast/compiler/ets/update_const.ets +++ b/ets2panda/test/ast/compiler/ets/update_const.ets @@ -18,4 +18,5 @@ function main(): void { /* @@ label */++c; } -/* @@@ label Error TypeError: Cannot assign to a constant variable c */ + +/* @@@ label Error Semantic error ESE4001: Cannot assign to a constant variable c */ \ No newline at end of file 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..56f36eebdd32898af0bf03cf2fb0ca0e4b063244 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,5 @@ 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. */ \ No newline at end of file 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..f3b1833d7b3a82d5e953c48445c8f91499d9a0ca 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,5 @@ 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. */ \ No newline at end of file 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..e4a2196930a7983420fa0ddd03c4481783f93bf7 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,5 @@ 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. */ \ No newline at end of file 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..375931b90ad13911482d91976ab61f9f76348df8 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,5 @@ 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. */ \ No newline at end of file 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..f22cf0ee85392c593fc4a00bb5ff77c805f3c97e 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,6 @@ 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. */ \ No newline at end of file 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..be97f03b06cf326a9e482e05784ca6c25706eed9 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,7 @@ 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. */ \ No newline at end of file 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..e2bcabed364c955c00eb7ffd2e8ba08011419f57 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,5 @@ package usestaticpackage2; "use static" -/* @@? 18:1 Error SyntaxError: Invalid package toplevel statement */ + +/* @@? 18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ \ No newline at end of file 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..97fda0aba089b3b8b62e2222162ce2ef52e30b5b 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,5 @@ 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 */ \ No newline at end of file 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 d92b4f5bde2f8ccf9086d89fd25a971b111e6f17..3020163c648779ea9f6651eb71f4ecdcf8a68726 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,6 +25,7 @@ class X { } } -/* @@? 16:34 Error TypeError: Cannot find type 'xny'. */ -/* @@? 21:29 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 23:14 Error TypeError: Target type for class composite needs to be an object type, found 'T' */ + +/* @@? 16:34 Error Semantic error ESE0371: Cannot find type 'xny'. */ +/* @@? 21:29 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 23:14 Error Semantic error ESE0063: Target type for class composite needs to be an object type, found 'T' */ \ No newline at end of file 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..dfc1c51d4b6c41035f656ef88f8760670423b7ad 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,7 @@ 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") */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/var_declaration.ets b/ets2panda/test/ast/compiler/ets/var_declaration.ets index 2411ac75f8b68f3d74141204a32e2d5459a9dd67..514cc004356c9a217b319d8aedccc78506246fcc 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. */ \ No newline at end of file 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..067f2adfb82e3d2a742080904fe215683ed0db6b 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,7 @@ 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 _ */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam.ets index fe3e8ad43e8eed95c69215ce548264e0f0bb8ad4..0b72f2ca4c837a4593b7b2112ea517a87f851a1c 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam.ets @@ -42,11 +42,12 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets index 25d2d0d5cd925922c924167f7686aa22b3c8f37d..018775515c16045e06b235acab9f1b36d0c65289 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets @@ -42,17 +42,18 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets index 23d0400140d0386266b9c1b783e6857fff921898..264fb71c27f1e9a7d003895948b5665720a1be9a 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets @@ -49,13 +49,14 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets index 89adc5dea1957c244bce2cc8dac8b87f20709deb..83b5e003c7bf2f392960dedba2df53ea9e8baea7 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. */ -/* @@@ label1 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. */ -/* @@@ label3 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. */ -/* @@@ label5 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. */ -/* @@@ label7 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. */ -/* @@@ label9 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. */ +/* @@@ label1 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. */ +/* @@@ label3 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. */ +/* @@@ label5 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. */ +/* @@@ label7 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. */ +/* @@@ label9 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 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..d15b03ccef40307b7582c19f4d7f6d773a4305a8 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets @@ -19,5 +19,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets index fd735fe39652e1eb9a848743545f42981d5b511a..08f5838696c6e98d2da88ccdb0eaf9599619fd0c 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets index 9c96f4d42102cd61568283dfbf20e9f9b687c464..d13bd8b9d6cafb38917bc8938ae060154cfc4484 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets @@ -31,8 +31,9 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets index 374aa69fb398b383fc39f012f7754d29379ba28e..1b87287f3a4ccf8e5c7a0588adaf0f5553a6dbc7 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets @@ -38,11 +38,12 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets index 24c2b074ed9455814f4f408fa6808c980afee38a..bd553eb83938e07926548bf489a01110a42f5cce 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets @@ -67,23 +67,24 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets b/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets index 92db5f8ba840084ef330bbbedd41e1a31c204853..3ebc99c6a87bca21e07ba551a96bbdb327f227e1 100644 --- a/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets +++ b/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets @@ -20,6 +20,7 @@ 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. */ \ No newline at end of file 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..e66373c8bdceb3e0f4f70b82746608560918a408 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,5 @@ async function foo():Promise{ return void; } -/* @@? 17:12 Error SyntaxError: Unexpected token 'void'. */ + +/* @@? 17:12 Error Syntax error ESY0227: Unexpected token 'void'. */ \ No newline at end of file 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..7626208758e1b927c561b707d9f1720ff67ccd9d 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' */ \ No newline at end of file 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..a704a891e0bc8d31dd81c18e19d15d08a4462a67 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,6 @@ */ 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. */ \ No newline at end of file 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..7693c4be808406515bf7a38e68814683936d00c6 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,5 @@ 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. */ \ No newline at end of file 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..afa8c202928520e5acb19a3d2df8ae4529c59c5d 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,5 @@ * 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. */ \ No newline at end of file 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..b84320391a92c3fffbdb0eed3110ca13f96ee590 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,5 @@ function foo(x: T) {} foo(void) -/* @@? 18:11 Error SyntaxError: Unexpected token 'void'. */ + +/* @@? 18:11 Error Syntax error ESY0227: Unexpected token 'void'. */ \ No newline at end of file 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..5d92deaf76b395df7dc1c6357341bc039ecc7af2 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/with-statement.ets b/ets2panda/test/ast/compiler/ets/with-statement.ets index 8276ce39ab28433f69f0d18c611c842e5e5f264e..907a64947105fe2580cfb033842066ff66763e1d 100644 --- a/ets2panda/test/ast/compiler/ets/with-statement.ets +++ b/ets2panda/test/ast/compiler/ets/with-statement.ets @@ -22,8 +22,8 @@ function main(): void { } } -/* @@@ label1 Error SyntaxError: 'with' statement is not supported, please use fully qualified names! */ -/* @@@ label1 Error TypeError: Expected 3 arguments, got 1. */ -/* @@@ label1 Error TypeError: No matching call signature for with(Math) */ -/* @@@ label1 Error TypeError: Expected 3 arguments, got 1. */ -/* @@@ label2 Error TypeError: Class or interface or enum 'Math' cannot be used as object */ \ No newline at end of file +/* @@@ label1 Error Syntax error ESY116901: 'with' statement is not supported, please use fully qualified names! */ +/* @@@ label1 Error Semantic error ESE0124: Expected 3 arguments, got 1. */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for with(Math) */ +/* @@@ label1 Error Semantic error ESE0124: Expected 3 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0294: Class or interface or enum 'Math' cannot be used as object */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/without_semicolon_before_struct_declaration.ets b/ets2panda/test/ast/compiler/ets/without_semicolon_before_struct_declaration.ets index 95aac85f2fe82d954f73743e8945375749c84ccc..88f60f0d9a43ddfd8d38ae8baf1e9a5df9ab9014 100644 --- a/ets2panda/test/ast/compiler/ets/without_semicolon_before_struct_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/without_semicolon_before_struct_declaration.ets @@ -19,4 +19,4 @@ struct C { f: number = 1; } -/* @@? 18:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file +/* @@? 18:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets b/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets index c9f2d161ac777d0a94186bbc33fbac1ace9ae92b..cb0626a787b4dea3c4a157ee0b0898b1539e85e7 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. */ \ No newline at end of file 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..910b3e833091b0863e364c961eba5753cb90e68b 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'. */ +/* @@? 23:105 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts index b4df110fe09af52e6ac24e536171eda462b4af2d..1d5650bfb63367c7512e700fa2ac0713065b72a9 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts index 584984578fba3461735c70ee6fd18ecb12e5bad2..8ef358d3d39a942630b365b4d3187de10d6d34da 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts index ad3bfff331d02499eac7d1d9e35d2ed9f9a08825..cdae5171dbc3b087c8a4b273b39d65ec9c1fbed2 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts index c4e280fc093dc367489e22914808317d7e12ad51..d3af1ffb6f36b8e3f7aa00827ca2a377f398cc9e 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts index b471f46f74a8390f7ccaf5b273325547d59dd1dc..45bb467d24b5e6b90dba951216acc1b0e33d7730 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts index 1dde7eeb0756d4a7871bf0452216112e3c44e27b..f7c05623acbb4d41514018a9497cdb9d4c81db48 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts index 029a2900022ea48d930eaf56a7847238b0922cce..ce6169fa25e0f765d7b9a22e244b8fb1e8de42b4 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts index 04045be9fde85edb2ea08cb68b6a8bd3663e6944..99588a47a150465b1f6d621f883a2077533a2a54 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts index 92a37d24df8155f906480b9d7abf09d5b1878993..3d25f4a0896ccef52fa2d23077dd6250423adcab 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts index 81e94d8af58b5e18625fa345b962072e973d1044..b2be07e198d0c29c00febd20a70e749cc1ea59a2 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts index ccbd0e91549e584d8f03856b7cea0dd5f55453e8..6948f5e1fa35a7df948a000cd98943273c14a5b5 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts index 8c96f0b69d3af14b86e6fd4d5bc07bc66e659ea4..a61bc2347979954685eb1a46b9e106dca78c7109 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts index 978a410dde61253b3724e88aad28e05dc5c60803..bff31c3875b786d70e117e7e3732d591a88ccd24 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts index 1c19bfa1c7f21d886408fa050fdce25560fc7468..e1310e30efc85ad93e88d2de53c76069aef8d122 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts index b26469e8daf21364b579316339006c79e37a81af..373f9eec8b51e269e102769de33897dff2d7e75c 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts index fa6eca101e0ea7f0201c9c515dc04e6d4c22aa37..e2c9f38c544f21ae9171587ce575340e95fb3572 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts index e188e20bd95d7faa70bce2bf7f2acf22cc675ce3..697eb1e69851f5bb4d59d7f393d00213975aa996 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts index 7e4bb19c7084b3a7c603a978ebd88677002fe359..21422e4825331591a2fcf6ca435c6d7fa7226056 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts index d765cb8e7f883cb672306270084e4ccc0ff1548c..68d2d5a6718dbca586a65567ae68de8287ceea24 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts index d79940233d9de0d8d2ee24c255f888b466a91f04..77e53737de83258b7b59f705509fe10f3c62fd7b 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts index 87774020b0c45a3ccfca973faa8dd507756b160a..737019db965175571492e7a97097d8ced748c0a7 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts index ad0517fd6be65a69372a2d73526362cc15780d0f..05a1095fa1df859bc9ce5487006bf298a7e5b729 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts index 90e274c5525d77e3cedacc61666feb09f0ad8e83..33cba8a371f02748f6de89cc8d91e7f8024ea019 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts index e4fae10f88ffba6df7a5523e3613c7781b5a02c9..16c886a7c3d81f5438560fd3b71d5528eb5f5678 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts index 112ea2f4ed74b4204e8cc4b138198a2152bb3e1d..c9112659467769a63baca649ed32bc6b3e7af0c0 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts index f3368d051078ed8912cb5c91fcf9fc552409b995..42f09bd19ec5e64b52e7b4c36e979b65d7cb865c 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts index 3e3635f9c3ae3badcea1c0567e7af47189feaafb..6d032e3cd77a877b1bf84ed74860c623e8da259b 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts index 8de905de63517d07bb8f72913184e889620a1934..082fc6973886a96628201c3275e67083ef8d5833 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts index a79f49c79826b679573523bb08bb89b9ed3c3d14..bf5a90423fb6db2c6e49d1c4a5e870ef3f681406 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts index a7f187943ccf3c6285e92bed6df4fc647c5e84a1..32a4c8e59058730c6a5fae226fd66f666d0960fd 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts index 74942114e6bdb646aa1ef98b67fb4417c2450335..d62fa90a77c847cb8d9d16456396390ab56f2ffc 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts index 970a477e73dbdc8182d3ab46d9457c13d67238d5..e0160d6e83e63dd03d6e9313aecded0ed0b54a2d 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts index 40934154db1d721e9cad975814dc8300d0729d26..fdfbd4d3b169ba3736743d51fb281f336db48383 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts index e6f4632d57061959c3b8bb66cd2df44b7dc1450e..3b69d486580c050f2a3a9813629d38cbc55ba0c9 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts index f185ea530dad01a660d3296f97e2d0530e13c525..aa66a70b0d34c62bb5570dd5d7244783e5bef8a1 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts index 5a47a1481ffc5a8ae393fc31123664fd895f7d9b..eb54db277f22aabad1d81f3b492b6530c4bd2483 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts index 4dbafc1f72e8bc351844da7e066e15778434007b..60c886e5ac68a6e973b339702c933628607d84b7 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts index fd3c11c11cd9353b0727c8750194ce4ddbb67033..17a712155c1afb298227fa8b3026b27238294dc8 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts index b503012de9ccfb54567225c64f9a8995e21d6146..52aec3523438902b4f350f6a280483a7e30044b9 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts index b4ca9e2ddf9365841e0210725945c8acc9c23f7e..468c396eca1c4dfb79513520d872c1ee79e803bf 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts index 5fa2d960520baac634948774fc395725fcc83395..175091d08f4538e1f76309aa1f6b3d8a5739f7cf 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts index 3c4a1a669f797c478c199a9d0d57c0c112ee2303..52d0204ae14f95ba0500bf8f16901c4d14f3d817 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts index 089b320e3b2c0dcd1ff9913cb9b612be6064accc..031c17c937bc28f861c4955540d88086baf59916 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts index fb99c55fd7951a2bf30419a4cfa928242fab1ea9..b4c66a3436f97804816927e3d9b3ea7908d4b01f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts index 7a5889f687402b418e4a8deebd034d379212a029..969e2e4deeb2949645a9545001c9a6e513917a93 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts index 8a113e24d547e4442a83021ed41ab04c9131e867..6db1318bd25ffa90d36e976b0843cc95838db11b 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts index ac298c91abcb3bf624a4110f8ae472f8363bbe85..1f88c6eb0d39d30915dbad05604f062658fd07e1 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts index 144258cbcb67dc3c00947bc3b4551cb90c237ff7..ae26dc699f71a4ecc14e49cb4de3833a13194aff 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts index c80a5e1f3186c62a668ce75ba3bbc08d03b566b6..f89259cac4e3f18ac33e8f0f826299020df6efe5 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts index 33aa017e3f62be4073842b19e6a57153039da753..aa7e8f4e3a1ae524f3492f47fab08e8488f83185 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts index b3070b9b3f6c90eea305211e3e4f41adc856bc25..871f840f65547c3116a9518b9e648d190c978cbf 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts index 9f4945b3d2d1b0ffb8bd5afc8118abf5b3114fe5..7040f333daef18732e91986e5d98483e5b926c94 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts index 06e229926de87cf769bc1882a75ad4d401bc289c..aae50e83b54ef4e1b5e2fa3ea54b4eafaf06a273 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts index 035cde3acb443e9e40e4e55e0aba2165fde103ec..be592776a41e944b2f1212f349e3caad2d26038a 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts index 53d48ba21af45d8032592e8036fc76435854f5e8..9c6f129156f23fe618e33d165f282c09036512a3 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts index 19244de69e72bf763de520bf537a3c5bb75e42e5..8750e06c9328ca42a613dd79379681e3ba2d329c 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts index 7681fc6662b737eeccf20d6e8f607865e0c7cf03..b32d2748c8d7aeca7b37fa374e8d4f101d29d574 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts index b847adcc0270f5d74f94b0b8b25ce6297d759350..aedc86a5097dbbbfa64e4e755a87bbdffb778a57 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts index 600390ac7250c00f4a110f700bae995e451abd33..d467f53e79c527235acadd6f1d6164bc8c5b165f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts index ca0cd875d091b86fe1a55b2398371a877ec8b394..8084bd22473318a793a8657e96cb8f179940af80 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts index d001b3deeb2825d6b7d219c4caff31ef41fdbcb4..eb415a83c829cf1f1d117a28e9c88f4f2d8af924 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts index f7b7e66376ae3d7c1149913554b3891705d1bef3..982b80ea5829a68b3ea16dd73d529d10bd4d0fc1 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts index e9fd9421006bef0b5d84ae09a3b2b8fa89264c1d..dad24e57b8ec85885f7aeab8129deb75246451fd 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts index 329812394473339a3582380674d529bb2e3cb25c..eab4fcb8b21626e161e71623b199bd5d226186b2 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts index c498295decf3a1283ccae3344fac155b744da608..02629e0cb710f3db5772cd6e9d85a60e9ef5741c 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts index 9744312f3560473a2360780d9f7b8cc3b8b79a64..2af5a6b2f216e2331044a67e74d7c5f54ec1883d 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts @@ -16,4 +16,5 @@ 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, { }]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts index a0ce8489aedc2f04314626a665305fa54c511ae6..567b0ee217f03aa86cbcecf50fa76bd02a79eb42 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts @@ -16,4 +16,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts index 66a9012411b4ef90ed6d29ecf5df576d46c991d2..4ffa5edfc5bdf31a749f3e552790dbcf08347047 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts index b71abf955c794624022e9258d2101787899337fb..65e3c5e44cf256108d64314da326be76d6bfa508 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts index 6ff3cb58889bbc6531460c9cf86cd2829446cdf3..c813c0f44fe1482df8baf5fc2804331737748b3e 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts index 4354b90229b0b588819ae8c636c63efe512dcdaa..ae8eeab16d7554bd4de4bc4435f4f3d567713a46 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts index 4a9abe03f1fa0476c66649285ede301e1609957b..3382ac1c33bbe5c4dba85871a32f127b525f0dac 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts index 621bb201cf0c6d95760872bb2c32a367581031ca..28d50784e23e0c7bbe84ebcf1de62d5b91b10c16 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts index c0730a2d6c39194b9f621c33f0363cc0517c26fd..4e630f8b1b6dddba900292cc8df654cd850639aa 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts @@ -16,4 +16,5 @@ 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 | { })[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts index 96a3983ebf18c74e900f8016485a1d4c22b1ff31..e9ec25c1879db894eca029aa2b4b5a2807acd971 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts @@ -17,4 +17,5 @@ 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 | { })[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts index 4e74feb10806d8305abba3253dfe7420d1f92751..288e300d998b577b13dde3c56db9c85c08d240d2 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts index df0a552a2bde73452892242db498a0cf1ef96e61..3211b31852448fe8fc22b53cb8124223011a742f 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts index 3a5679fab285c8e871ef8a2f6c0ec5aad1d48364..09e4282bb5a476c22a1d353f00c62f62d8f765df 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts index 97a17a7981e4aae49f4646e73a19dfc76568983b..572140dd32496c8d875777747abe99a924c29088 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts index c805d730885031f97acabf975ca88b0d1a08d52f..31e450c6a7485453ebfc74134fd97a9e3df3f300 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts @@ -15,4 +15,5 @@ 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]. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts index 3cd31db7c1b55671e8aad2073470aa4ad999d132..616d6926e0024c344bc25a87586f56a7a43d0265 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts index 970ee6f4884b7753572c54342001736331f223ce..16a3e6d72cbbdef86fba8b05ee312f80553a9cad 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts index c0a4f5543fc2716b3e7df49ffc8be83664964240..eeaf730666ca7dc75b97633cbc4219548594037e 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts @@ -15,4 +15,5 @@ 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; }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts index 76b31b203d92511268df4724196ef372fde701b3..c50d0eebec99d2b6158d4b623b237547029db143 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts index 41061dd22e91cd9fd6332b569992a194c49d186d..9b2637eca7d9cceca334ccfda6cd97f2a14bb71d 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts index 18948b1654a304457d3e898527cbbcff08212f1a..bdf747ce66482773f83fdd209242ffd9cea9c120 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts index 22c2e7fe0de0ad831aaa34e6f6d1acb091ff5d1b..40a2b98dd5b39c2385b42cea335e04fa729f2c2a 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts index a453dfa250f861dfb5e30fabe040c468c7994407..54e585692f1fca3282f5db4cfaa2ef9e95a15c3f 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts index 06993d96a6f86ad279f6e96d45f39b72c08cbbd5..4455bd9edbfdb0d5dbf5ac72c22d1dddd92b710a 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts index 79c920800cc9912dc384d0cbd059e0758e5be497..85967e3e3e2f2a2520e33825c621a042a2199267 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts @@ -15,4 +15,5 @@ /* @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts index 3d520eba7bea708fce0ca410c343d220153e10ea..56f93d35fe4e104ae6e906213913fb609084edf9 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts index 994216bb614cd38e35a293812c571631cc9e0c8f..23ad53a06df26fe3a265decfdb5eef4e8a88a1a2 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts index c8677ee35aa1f743f1566e7aa6881a285709cdfc..4822bbcac024d2519f12ee731ed51596b75984e3 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts index f7b6795c88fb4ebf422f37255e7606cbc65510c2..4680187540b246a74b6fb30b3ebc17987368a711 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts @@ -20,4 +20,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts index 51364e40c8c6172f876516740a1407637f462e11..807835168d6be3775f91d083f2c33137b05b67c7 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts index 80161bd03ddb42d710053ab3c496266ed6120b13..fe4f6cb7452b20520625faed26b835501738131c 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts index 2b5f14d5a9bd19bad7c5bcb5066f325c42614739..63a56a4f8ea0948ad31af439e215cfa30f3efb4a 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts index c43edc8e63c283ee15366144d2cfac22437d7b8f..70ba5cc52ef98ad66e1993edf86c4bd1f8b48e06 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts @@ -15,4 +15,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts index 00c6168a374a6f0a231ce32bc3d6b1a86385a724..37edd94b0fd1562ccc7dfa59eeb4c8448b63b35f 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts index d98a4fff2a63ab2e1881d082eac427a7b112aee3..5c52c20d443b69c07bae2f6b4d9346755ea8f3a8 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts index 4fed3c2d9df44342da244a8081bae9d7587956d0..768cb94c75c81c0fddd57b67f7d8505a17815e02 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts @@ -17,4 +17,5 @@ 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[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts index e06fe27072b928a9361c23a12e75d9928d1eaf3b..9b7a4e8e3fd6e8189efedb886938fa3e1f17f472 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts @@ -17,4 +17,5 @@ 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[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts index 28fcb4e4ca2ad71ad40fe7a8b88bb853cb6a98e4..e795b481901f319e85a4e13cbbf469616a77bbd4 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts @@ -18,4 +18,5 @@ 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[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts index b4e7d277d7531d8ae224d7b05891ee8442f1bf4d..4486845aa411c4af0cc13ee64c5e1fd1e977a4d5 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts index e606ec7ee102fea788261741f917008ae81f7077..7df35a70323ede57aef8d79a3b440345fbba047e 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts index 38886463cf5293a375943db770347e329edaf147..f228a8056e3fe52e753e3b4766d2cb97a873680d 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts index a4e7dd1c270b89beff56705ac46d61d337728505..f68835346868e84c5763d4924051efcc13a80560 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts @@ -16,4 +16,5 @@ 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)[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts index 1010f3edf0fceb205a31a8f11fd12b23dcf2d18d..286f4bd3d6ca02cfd903fd36eb0f7c2a17606353 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts @@ -16,4 +16,5 @@ 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 '[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_1.ts b/ets2panda/test/ast/compiler/ts/array_1.ts index 4da4ca40a72672930a16e790d57b240c7b717852..f06546a6d44d7a34baa5910d8a2e976d6e577abf 100644 --- a/ets2panda/test/ast/compiler/ts/array_1.ts +++ b/ets2panda/test/ast/compiler/ts/array_1.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_10.ts b/ets2panda/test/ast/compiler/ts/array_10.ts index 0080174960c783c8a5647a199fca7da0254b77d9..72b41f7fd3e849e7b3f4da5efb07e4d38fcc9339 100644 --- a/ets2panda/test/ast/compiler/ts/array_10.ts +++ b/ets2panda/test/ast/compiler/ts/array_10.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_11.ts b/ets2panda/test/ast/compiler/ts/array_11.ts index f7c0ebd0775c3b140196b1a769d0806e31556015..068eaf0b89f75afad402c6b0c9bfe7b50ea9a82d 100644 --- a/ets2panda/test/ast/compiler/ts/array_11.ts +++ b/ets2panda/test/ast/compiler/ts/array_11.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_12.ts b/ets2panda/test/ast/compiler/ts/array_12.ts index 5b59a2c2b64efd8bd6ca7648b924ee12b9eeceb3..f56fb4fbe008f7893f2b00d243b9dc8286ad9c22 100644 --- a/ets2panda/test/ast/compiler/ts/array_12.ts +++ b/ets2panda/test/ast/compiler/ts/array_12.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_13.ts b/ets2panda/test/ast/compiler/ts/array_13.ts index 1c45f58c9e9aede5178baa8555e5616e0bb09301..487b850b54f326abd06cd082aaced9b6d419b992 100644 --- a/ets2panda/test/ast/compiler/ts/array_13.ts +++ b/ets2panda/test/ast/compiler/ts/array_13.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_14.ts b/ets2panda/test/ast/compiler/ts/array_14.ts index 8c522efc7857dfd6abcca0a37e90dd6da05149ac..bd203db363856ef682f13749d88ffc3235c042b0 100644 --- a/ets2panda/test/ast/compiler/ts/array_14.ts +++ b/ets2panda/test/ast/compiler/ts/array_14.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_15.ts b/ets2panda/test/ast/compiler/ts/array_15.ts index 204a8deeb60993bb43de3022cc60d890484e9db7..adcfb4457adc6e700298e464b4ccc2124add7d44 100644 --- a/ets2panda/test/ast/compiler/ts/array_15.ts +++ b/ets2panda/test/ast/compiler/ts/array_15.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_16.ts b/ets2panda/test/ast/compiler/ts/array_16.ts index fe73df66cebe89f76f16abed7d799cf754acd60d..3343596e040ecdf862f67a0d25eee5b392c15400 100644 --- a/ets2panda/test/ast/compiler/ts/array_16.ts +++ b/ets2panda/test/ast/compiler/ts/array_16.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_17.ts b/ets2panda/test/ast/compiler/ts/array_17.ts index 4c65b581da53f399d6459cf3bb241976086c658a..165e155dea5842dd260aadc9c2920499f0672cd4 100644 --- a/ets2panda/test/ast/compiler/ts/array_17.ts +++ b/ets2panda/test/ast/compiler/ts/array_17.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_18.ts b/ets2panda/test/ast/compiler/ts/array_18.ts index 78ccba6066ea2fa692be437dfa9c05cf345e4225..093d65932743cbb967aaa133b00e14894b8a76fd 100644 --- a/ets2panda/test/ast/compiler/ts/array_18.ts +++ b/ets2panda/test/ast/compiler/ts/array_18.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_19.ts b/ets2panda/test/ast/compiler/ts/array_19.ts index 16d04de9f7f1c582dc09c9f93861ba024083dfd9..bdd8e8f32077d46b3f942285d59298d3bbf1e5a8 100644 --- a/ets2panda/test/ast/compiler/ts/array_19.ts +++ b/ets2panda/test/ast/compiler/ts/array_19.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_2.ts b/ets2panda/test/ast/compiler/ts/array_2.ts index 3f4610f833bb4be943176a35acc955fe6c843e76..c3ca0d7ed81607ae130d1723d9343b629bb695ea 100644 --- a/ets2panda/test/ast/compiler/ts/array_2.ts +++ b/ets2panda/test/ast/compiler/ts/array_2.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_20.ts b/ets2panda/test/ast/compiler/ts/array_20.ts index 54e950a1b0ffa1947d5fe579692f1d5c5e765d1b..a2e68f7bc86830195ca3d728d440a02d1206cfb2 100644 --- a/ets2panda/test/ast/compiler/ts/array_20.ts +++ b/ets2panda/test/ast/compiler/ts/array_20.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_21.ts b/ets2panda/test/ast/compiler/ts/array_21.ts index f5edbeae5f800e0a903c946d5cb614416b6a2340..c81289492748406f8d3260dc3bec5d468c3432b1 100644 --- a/ets2panda/test/ast/compiler/ts/array_21.ts +++ b/ets2panda/test/ast/compiler/ts/array_21.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_22.ts b/ets2panda/test/ast/compiler/ts/array_22.ts index fd8140c0307fd0489dc89da43763b07237f8ce7a..73d0ef6ed009a86dcfae950d6bf8bd57cc79de5c 100644 --- a/ets2panda/test/ast/compiler/ts/array_22.ts +++ b/ets2panda/test/ast/compiler/ts/array_22.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_23.ts b/ets2panda/test/ast/compiler/ts/array_23.ts index 6a857ce7ab3e9f737e1bd7bad56c0210bddff0f6..69336d3180d2063c99dbf722f1f37698ba294b78 100644 --- a/ets2panda/test/ast/compiler/ts/array_23.ts +++ b/ets2panda/test/ast/compiler/ts/array_23.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_24.ts b/ets2panda/test/ast/compiler/ts/array_24.ts index 9962bbabaa867c94da92fd2817d1f4fa45bfef81..e4b569968e33949c1aa497b95b32b830dd896ca7 100644 --- a/ets2panda/test/ast/compiler/ts/array_24.ts +++ b/ets2panda/test/ast/compiler/ts/array_24.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_3.ts b/ets2panda/test/ast/compiler/ts/array_3.ts index 07e01e16433156ef4016875a8e53b8017918be40..1798c0518046d7ce9cbfd7d00ee8b0c8c2e26a1d 100644 --- a/ets2panda/test/ast/compiler/ts/array_3.ts +++ b/ets2panda/test/ast/compiler/ts/array_3.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_4.ts b/ets2panda/test/ast/compiler/ts/array_4.ts index 63f84b6fc7f9c73a47e65fbeb585fa1c416aa43f..391c64e44b774a419f2e1c719f67d9887957a329 100644 --- a/ets2panda/test/ast/compiler/ts/array_4.ts +++ b/ets2panda/test/ast/compiler/ts/array_4.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_5.ts b/ets2panda/test/ast/compiler/ts/array_5.ts index b503fe78f18cc81ea6596c22654d72ea3fa9415c..1c94c5cd8d9d2261e246b351d370f8a38bb66d4a 100644 --- a/ets2panda/test/ast/compiler/ts/array_5.ts +++ b/ets2panda/test/ast/compiler/ts/array_5.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_6.ts b/ets2panda/test/ast/compiler/ts/array_6.ts index 9088cac682122f72c1398e02a0d403ca9d703877..9b3be2d92feaa1dc56fda940f20c7921504422d0 100644 --- a/ets2panda/test/ast/compiler/ts/array_6.ts +++ b/ets2panda/test/ast/compiler/ts/array_6.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_7.ts b/ets2panda/test/ast/compiler/ts/array_7.ts index 3f85b981ade36631baad51443e9d5825e5829d18..7b78300ec162d9f083d076fda017e0da6246a3b2 100644 --- a/ets2panda/test/ast/compiler/ts/array_7.ts +++ b/ets2panda/test/ast/compiler/ts/array_7.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_8.ts b/ets2panda/test/ast/compiler/ts/array_8.ts index e8a9d9ce19f8bef94d00c16886c97c8c4fd860b2..976ac9244f990352e7a53538f6adf165aabe9328 100644 --- a/ets2panda/test/ast/compiler/ts/array_8.ts +++ b/ets2panda/test/ast/compiler/ts/array_8.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_9.ts b/ets2panda/test/ast/compiler/ts/array_9.ts index 980a84631ff1f2ff4338ca4dc57ee5542328616c..6aa20f908f7e375a0bf5762e38a3ee96ec586306 100644 --- a/ets2panda/test/ast/compiler/ts/array_9.ts +++ b/ets2panda/test/ast/compiler/ts/array_9.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_expression_1.ts b/ets2panda/test/ast/compiler/ts/array_expression_1.ts index c32dd810c291fc49fb84e91bbe4ed9e5d5ca667b..9ca755ef767116584ec76a0e872144f82c17c0fe 100644 --- a/ets2panda/test/ast/compiler/ts/array_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/array_expression_1.ts @@ -15,4 +15,5 @@ let a = [1, [1, 2]: /* @@ label */number[]]; -/* @@@ label Error SyntaxError: Unexpected token. */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_1.ts b/ets2panda/test/ast/compiler/ts/as_expression_1.ts index 242c1a3e542d2e85918593f719c8f9d505132edf..db17690938a0b96b8fcdde0524e8f725244c3422 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_1.ts @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_10.ts b/ets2panda/test/ast/compiler/ts/as_expression_10.ts index a69ac80516e06d16de8a5a5c482e97d57dd2aae9..73a7dfad086469c63f11a27c78f15b44b50c969c 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_10.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_10.ts @@ -17,4 +17,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_11.ts b/ets2panda/test/ast/compiler/ts/as_expression_11.ts index 83b01bcd0619cba6a0dff1ce84580fadf8b95ba4..3326853270fb906e4eb6e113dd53269f0eb31724 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_11.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_11.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_12.ts b/ets2panda/test/ast/compiler/ts/as_expression_12.ts index 204228ed3a0084597108675dfb2684dda5daeba9..58317f84047a4f64124ade52901c5ae063119872 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_12.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_12.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_13.ts b/ets2panda/test/ast/compiler/ts/as_expression_13.ts index eb28f472b7c5a9a98b67eb1bd86b4733d1d3e9dd..4522c1ad14eab56597c6fe660852718c9d5358bc 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_13.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_13.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_14.ts b/ets2panda/test/ast/compiler/ts/as_expression_14.ts index bfa5334853ebce5e66fd9afb8ba413c637f549a6..dd31bef17aa419bb3ca067370f86b1d1ea8c4822 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_14.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_14.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_15.ts b/ets2panda/test/ast/compiler/ts/as_expression_15.ts index 3f347808faef9c4cc1340bb81c677303d8e39174..6820e2b1d2ff0366b3ccb624d66cb8d6a66b0d23 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_15.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_15.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_2.ts b/ets2panda/test/ast/compiler/ts/as_expression_2.ts index 9dd4da307a46176218c26a8de2b185b4cc919921..3eb572f0e28e7cca27e032e5fdc2292f426f0fd3 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_2.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_2.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_3.ts b/ets2panda/test/ast/compiler/ts/as_expression_3.ts index c78b013f65b643e012d33d2b4e966eb3ff9231d6..1b41307960883122a4000ffca249231ff96c18ae 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_3.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_3.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_4.ts b/ets2panda/test/ast/compiler/ts/as_expression_4.ts index 60c9fe4da8f3ae3987a6da4be77a6a4c8b8fd1ca..3e3d464fa7e2a7ebae6c7eb98d1e7b9501925ee7 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_4.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_4.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_5.ts b/ets2panda/test/ast/compiler/ts/as_expression_5.ts index 8f82e3c230abaef5d29473bffd7effbe802c105a..3860c8e133fcb5e59b443fbdc59b6e69a6ac852e 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_5.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_5.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_6.ts b/ets2panda/test/ast/compiler/ts/as_expression_6.ts index a1796f4510ccc28358408157b33bde071de24bbd..165b3f89c41fe19b85f1886d32af523f2efd5572 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_6.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_6.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_7.ts b/ets2panda/test/ast/compiler/ts/as_expression_7.ts index 6d588ccd6d11ecb0f187e63726bf99564a074b8a..f99aecd672e5bfdd61e4bcddff1efe75a033b070 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_7.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_7.ts @@ -17,4 +17,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_8.ts b/ets2panda/test/ast/compiler/ts/as_expression_8.ts index 7ddec257947f3ffa3a67ad7e14eb1468183a132f..8c7a5a8e83a8223c33fd8aac6f9847bf6ecf3662 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_8.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_8.ts @@ -17,4 +17,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_9.ts b/ets2panda/test/ast/compiler/ts/as_expression_9.ts index 703cf597ad3ffb0d0f44fb38a9929c4c85738e5a..d194270478bf45c5226eafb598b5b5aa8e12781a 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_9.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_9.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/assignment_never.ts b/ets2panda/test/ast/compiler/ts/assignment_never.ts index 091bbc8bab6b62053de1ca82e1dc0689611f08bc..43f7627fab1348883d59abcf60222d5696430397 100644 --- a/ets2panda/test/ast/compiler/ts/assignment_never.ts +++ b/ets2panda/test/ast/compiler/ts/assignment_never.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/call_expression_1.ts b/ets2panda/test/ast/compiler/ts/call_expression_1.ts index 4ed34489fb8cc24573e87818d64d149e509ee5a3..0b81c0eae2998c3e2dad96b10bff0ea8b0874435 100644 --- a/ets2panda/test/ast/compiler/ts/call_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/call_expression_1.ts @@ -15,4 +15,5 @@ let a = /* @@ label */new 5; -/* @@@ label Error TypeError: This expression is not callable. */ + +/* @@@ label Error Semantic error ESE0000: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts b/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts index 9ff07215e44d35eb7b1137a51136b286dd4a38f3..0115d30b2da42892fa8d0f1a75a4272407635adc 100644 --- a/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts +++ b/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts b/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts index 4d1d22043bfac452314e4090820050bdd6e2c8da..46a44a92d1de5a92eaf5c7d31eb97d7595c160b9 100644 --- a/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts +++ b/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts @@ -16,4 +16,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_1.ts b/ets2panda/test/ast/compiler/ts/functionCall_1.ts index fa5c2fa5396c17bf899c6c75e252aa21d2cfa14f..cae34ce618327f65f21a7b7aac6ab367e876804e 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_1.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_1.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_10.ts b/ets2panda/test/ast/compiler/ts/functionCall_10.ts index c36629caf78762e365768be663f73b93eb18d3b0..bd3c0d59e2b11a9e0c96acaef26ed0c2863194dc 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_10.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_10.ts @@ -16,4 +16,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_11.ts b/ets2panda/test/ast/compiler/ts/functionCall_11.ts index 7e63899cb901994db31bea4c8a96d63938c9ee4d..50468111b8199decd46b5b15d484f6a609dc4c64 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_11.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_11.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_12.ts b/ets2panda/test/ast/compiler/ts/functionCall_12.ts index 761fbc0c622d096ce4cac44cf7af60aca32c1d46..174229ac6fef0a5ac75b13135693c06f909226b9 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_12.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_12.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_13.ts b/ets2panda/test/ast/compiler/ts/functionCall_13.ts index 4bab17ad9fe3045760e67ef540bbe53b715420fe..23181604ff670f5b984155d8821a3d6993f70384 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_13.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_13.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_14.ts b/ets2panda/test/ast/compiler/ts/functionCall_14.ts index c6d18f89c43b4b145883f78013a4fac6321d7f0a..58bf3c5ab7db6260135ac7fafa72bee59ef09ed3 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_14.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_14.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_15.ts b/ets2panda/test/ast/compiler/ts/functionCall_15.ts index 3699080e8aed230a2077a43afaa7b5398949a8a4..fc7da77d0327da99c4acd46a19254cefe4c5ee50 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_15.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_15.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_2.ts b/ets2panda/test/ast/compiler/ts/functionCall_2.ts index b54016745fa2f93faf02f342387c6e221fe492b9..78ddc86df7a2334b2073dacf5fca3b35da0e415d 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_2.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_2.ts @@ -22,4 +22,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_3.ts b/ets2panda/test/ast/compiler/ts/functionCall_3.ts index 95965c5e2b3c3a594f3334b95db19bfcdf42e99b..e369044e62225b65874dfb73fc6542277a924ea9 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_3.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_3.ts @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_4.ts b/ets2panda/test/ast/compiler/ts/functionCall_4.ts index ad430c9de1d4e672a8cf8d345fe9f30dc3e03b55..031f21c923885fa11069b2c28b3a2dc4f03c9505 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_4.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_4.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_5.ts b/ets2panda/test/ast/compiler/ts/functionCall_5.ts index 9e9a36b2b221691e84172860431434fefe7716de..e3cb76ab29c183bbd1847dbc0a11c1ede0930f6e 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_5.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_5.ts @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_6.ts b/ets2panda/test/ast/compiler/ts/functionCall_6.ts index a10ea872813e2cbfe4bb5513dd85ab4f2836721d..81c169bcbc9f26fe28bcdef8b523b3f07ee0b25b 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_6.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_6.ts @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_7.ts b/ets2panda/test/ast/compiler/ts/functionCall_7.ts index 0f68125482305896834375e37e5b0e0ed5c11219..a77ede7d5178d8493f78008a3aadd21bd4ab91f6 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_7.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_7.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_8.ts b/ets2panda/test/ast/compiler/ts/functionCall_8.ts index 585a0034a4cd820d22298577d76910a87d1cda3a..0fb68c49ada07a9e7cebbda65380d2de9a9ad573 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_8.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_8.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_9.ts b/ets2panda/test/ast/compiler/ts/functionCall_9.ts index ab372c59a98c128cdb7604da2edca8346a528549..3aa1c11c0d161a7cab65560270796aa937d9fdfd 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_9.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_9.ts @@ -19,4 +19,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionOverload3.ts b/ets2panda/test/ast/compiler/ts/functionOverload3.ts index 5629257472db6819020e082cd0ff06329dd3faa4..d149084285c245b773f53f740649c5ddbf70eb78 100644 --- a/ets2panda/test/ast/compiler/ts/functionOverload3.ts +++ b/ets2panda/test/ast/compiler/ts/functionOverload3.ts @@ -19,4 +19,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts index 9e9c761aa85fc0d29b59c4e7deee851bb5600f9f..2f3a583e4200a6d27460265d0f47ef1708ecfd75 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 (p1?: [{ x: string; }, number, number]) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types (p1?: [{ 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..874a03537082c310d2f3831934fdf56a50eef90e 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts @@ -20,4 +20,5 @@ 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; }; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts index 9d0772086aa1979ac27e28c850d4e4e849c69dc9..f59feff1864f8d4aa2e05f3cf095ab33d34aef01 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts @@ -20,4 +20,5 @@ 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; }; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts index eea59d2b350a99b2a779037f38f1699e801d00d6..7b17f660e09cf56d1f4a5dab7e7f6b3724bfec10 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts @@ -20,4 +20,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts index 997d11fb5d106c07727f49b9a7aec69845ce8a41..88c41a2cee9356ad1bd42d3f4d7c26036f624496 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 (p1?: { x?: string; y?: string; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types (p1?: { 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 ebade52ee8831c065474d4bde576fb1078d42ed2..e3f13ce39ef73a21fbb0342611fc630aaa5d0b9f 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 (p1: { x?: { asd: any; }; y?: { t: string; }; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types (p1: { 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 369b21c020eb08e7e72859c9c9f31ad6ee67df7a..bd978f11481afc41c03639b34c3caa8da229fda2 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 (p1?: { a: boolean; b?: { t: number; }; d?: [number, [string, string]]; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types (p1?: { 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..2e2781423bbe449edb5ed470bde97c3f5e36d9ad 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts index f88b71f93cb85347fa34392c2a8634062f86bf37..50684644b033eb805d870473f1da3a206a83c6ba 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts @@ -19,4 +19,5 @@ 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; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts index 618cb363d4ba674d88c4be8e30b4941a43c85a28..e9b966d1747e7a03e1b4acce90c4115048f9ddba 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts @@ -20,4 +20,5 @@ 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[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts index f278b44b0302834b0c8c6751ddaf868efa1d4ec3..a9cd3b944036848dd2826d11244e76c7f1ff4257 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 (p1: [number, { b?: [boolean, (bigint | string)[]]; t?: { a: number; b: { a: number; b: bigint; }; }; }], p2: { r?: [[number, string]]; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types (p1: [number, { b?: [boolean, (bigint | string)[]]; t?: { a: number; b: { a: number; b: bigint; }; }; }], p2: { 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..909c0a38e7765c0b97ef3d0a0ea95b8a8bb3baae 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts @@ -20,4 +20,5 @@ 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)[]]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_1.ts b/ets2panda/test/ast/compiler/ts/function_declaration_1.ts index 1ebfe5e5b5e58644e491bfb7f44275c4c2797d2b..57f5ffea9b9ed7ded8a7fde8776006810a3cb78a 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_1.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_1.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_10.ts b/ets2panda/test/ast/compiler/ts/function_declaration_10.ts index e8548497ab3bc9de4f9def87f118aff0e24787be..aca844fa2351b986692ce66ce33801fa0362453e 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_10.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_10.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_11.ts b/ets2panda/test/ast/compiler/ts/function_declaration_11.ts index 21221e0f67bd6a2716dd161725996835a5b259a7..a4f2a9f1bbdec9970588c04eb6debac1a30b1b88 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_11.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_11.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_2.ts b/ets2panda/test/ast/compiler/ts/function_declaration_2.ts index d5698855e17e29ca04b349b3b24ea7b3bff57e25..b75831f78c0917154e1fe9db7efe84fec94c532e 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_2.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_2.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_3.ts b/ets2panda/test/ast/compiler/ts/function_declaration_3.ts index 436a6e612675f703a72e0ab3d5327951da3d7cc4..f906338f11e5a69ebd94c67b597ceb459c303743 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_3.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_3.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_4.ts b/ets2panda/test/ast/compiler/ts/function_declaration_4.ts index aabb94e87dce28c28874edd81553facdda992c38..1f9b91022d5f31d3c132f67c1f72ffeb2fc1c214 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_4.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_4.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_5.ts b/ets2panda/test/ast/compiler/ts/function_declaration_5.ts index f55b4ba2950d793b41a14f237451705601306db1..a8629a401e4591f211044a5132fecaa40e172d94 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_5.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_5.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_6.ts b/ets2panda/test/ast/compiler/ts/function_declaration_6.ts index 98c394ba3a19adb653912df75148dfdf7a59254c..02f60aecd93291f61396d13d777465778ab841c9 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_6.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_6.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_7.ts b/ets2panda/test/ast/compiler/ts/function_declaration_7.ts index cd2aa5cb1a1d33421e48e69836617f52d3d3daf8..9f581d31627d9957a3cce88f4f5a86ea92a384c7 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_7.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_7.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_8.ts b/ets2panda/test/ast/compiler/ts/function_declaration_8.ts index 1a8491554f371431776f9caa6acb7010c1d8f9a6..6b2b1e0ddfd244fcbd09e56bb821da084cae1d84 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_8.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_8.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_9.ts b/ets2panda/test/ast/compiler/ts/function_declaration_9.ts index 7b97900d1c6cff5d897d60ebdb06d853097608e1..b0c63b1a5860253af64eb0a4bdf63c7bdd68ace9 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_9.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_9.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts b/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts index cf4fe2fd591301aad8431305b4c5609ec1ca631b..dd85ec83007adee3119964ce49287837e424e088 100644 --- a/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts +++ b/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts @@ -19,4 +19,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts b/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts index 28e5943c2af7cb8edec096f5375b65cc0149e491..ff3e86a2bb478d695aba4cab24a4b58fec0ceb96 100644 --- a/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts +++ b/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts @@ -18,4 +18,5 @@ let b = /* @@ label */(a?: number) -/* @@@ label Error SyntaxError: Unexpected token '?'. */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token '?'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_1.ts b/ets2panda/test/ast/compiler/ts/in_1.ts index 617029b45d51e3c851d4bdffb1420a2ec0b01547..b6efdacf5ed601936d067a15f542c3e983a11675 100644 --- a/ets2panda/test/ast/compiler/ts/in_1.ts +++ b/ets2panda/test/ast/compiler/ts/in_1.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_10.ts b/ets2panda/test/ast/compiler/ts/in_10.ts index 85053a7f8c840f2c76d1f7c5308374a6604a7777..dc24bf3b9c48bb103010ca6dcda6e07ce5e7972a 100644 --- a/ets2panda/test/ast/compiler/ts/in_10.ts +++ b/ets2panda/test/ast/compiler/ts/in_10.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_11.ts b/ets2panda/test/ast/compiler/ts/in_11.ts index 3614d6b8c845e51f6897349e8659f5aa4b9cd289..6799a2fdb9d10128747881943204c347e3d1a3ea 100644 --- a/ets2panda/test/ast/compiler/ts/in_11.ts +++ b/ets2panda/test/ast/compiler/ts/in_11.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_12.ts b/ets2panda/test/ast/compiler/ts/in_12.ts index 96d24d9ef2c732d422ff71120a1b5ef5e6cfebcc..bea9a7e2a2b5535a1f35540ac321c8afa88e20b4 100644 --- a/ets2panda/test/ast/compiler/ts/in_12.ts +++ b/ets2panda/test/ast/compiler/ts/in_12.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_13.ts b/ets2panda/test/ast/compiler/ts/in_13.ts index 78c2a69b4eb0393405ee80cb6d859c289477b82a..1522406a42ee6d02e1fc11bb22a30c7ef4fcc986 100644 --- a/ets2panda/test/ast/compiler/ts/in_13.ts +++ b/ets2panda/test/ast/compiler/ts/in_13.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_14.ts b/ets2panda/test/ast/compiler/ts/in_14.ts index 7a053849b9aef8732bc03c4f7973dc78f8939f78..6063c25e9b6f3f04757f5241fb1a21e803009c28 100644 --- a/ets2panda/test/ast/compiler/ts/in_14.ts +++ b/ets2panda/test/ast/compiler/ts/in_14.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_15.ts b/ets2panda/test/ast/compiler/ts/in_15.ts index a41c1faa581f3e53fad28bd6e789d2ecef2b3ee4..f153a74a001b2a08a1ff0c7f832a08158f7d4186 100644 --- a/ets2panda/test/ast/compiler/ts/in_15.ts +++ b/ets2panda/test/ast/compiler/ts/in_15.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_2.ts b/ets2panda/test/ast/compiler/ts/in_2.ts index 4389b8a40360eef160ae39bb25909652b4264774..975c41f9587b6b32be586b63c572713f707814ba 100644 --- a/ets2panda/test/ast/compiler/ts/in_2.ts +++ b/ets2panda/test/ast/compiler/ts/in_2.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_3.ts b/ets2panda/test/ast/compiler/ts/in_3.ts index fda6da2f136ec3812c587f25b4542adebeefecb8..09251b069abec96436a7703e1729c49ca0436bec 100644 --- a/ets2panda/test/ast/compiler/ts/in_3.ts +++ b/ets2panda/test/ast/compiler/ts/in_3.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_4.ts b/ets2panda/test/ast/compiler/ts/in_4.ts index a72542ad4da77899fafb40612e6b7f915de8ea3d..528ecd1c6b5f49fc4f194afc2b44abb99213295d 100644 --- a/ets2panda/test/ast/compiler/ts/in_4.ts +++ b/ets2panda/test/ast/compiler/ts/in_4.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_5.ts b/ets2panda/test/ast/compiler/ts/in_5.ts index 9d72f02200b0b75221bd20f9acbcdf055c860be3..8ad755d92a02e8a5594891ded502b20ff346a5f6 100644 --- a/ets2panda/test/ast/compiler/ts/in_5.ts +++ b/ets2panda/test/ast/compiler/ts/in_5.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_6.ts b/ets2panda/test/ast/compiler/ts/in_6.ts index 68ee2dcd2048a73e6ced89df25638aaf4cb1d958..19ed6c3dee883ff604cfd0533c642694c447e01c 100644 --- a/ets2panda/test/ast/compiler/ts/in_6.ts +++ b/ets2panda/test/ast/compiler/ts/in_6.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_7.ts b/ets2panda/test/ast/compiler/ts/in_7.ts index e7a22a78a9538d6ba261d1d498deb735ea09318b..384e30a26dec140f8a91b133135ad223489d568a 100644 --- a/ets2panda/test/ast/compiler/ts/in_7.ts +++ b/ets2panda/test/ast/compiler/ts/in_7.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_8.ts b/ets2panda/test/ast/compiler/ts/in_8.ts index 94de51b0dea9fa7c99017eb1838f43111874d073..37b8a931254c56f2d81ca96296412519a8e58652 100644 --- a/ets2panda/test/ast/compiler/ts/in_8.ts +++ b/ets2panda/test/ast/compiler/ts/in_8.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_9.ts b/ets2panda/test/ast/compiler/ts/in_9.ts index d9dd4f90de8fb1ab33c2ad0791fa75d354b2e797..b602b520484e329e8c343d1b2fda72d52b9c65d9 100644 --- a/ets2panda/test/ast/compiler/ts/in_9.ts +++ b/ets2panda/test/ast/compiler/ts/in_9.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_1.ts b/ets2panda/test/ast/compiler/ts/instanceof_1.ts index c46e0d84cdaa45f803ddacbed59b3a24e84e8140..5177a2a29459bf7c3717d6ff333bfe51f595ba1f 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_1.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_1.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_10.ts b/ets2panda/test/ast/compiler/ts/instanceof_10.ts index 6ca860b73eb1b11cdfdfb27aa06be38a1d7cfd24..be7ad8d4d9ea9643403538645eb23a5bbf7d0a4a 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_10.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_10.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_11.ts b/ets2panda/test/ast/compiler/ts/instanceof_11.ts index c43d215afb7d71fa0d857852eb4e76b74a609624..a656d4854b76f0306da356a45e3b7ab5977498fb 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_11.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_11.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_12.ts b/ets2panda/test/ast/compiler/ts/instanceof_12.ts index e3bd9a3b1466eb844317fac7eceb439e502c5b88..d3a45a766db5d745d32e0383098b0d88a4d5c4aa 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_12.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_12.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_13.ts b/ets2panda/test/ast/compiler/ts/instanceof_13.ts index 3e53a6fe80e704a790f968c8f27fd01cceb75809..9760d4a713543c08a45f7e01d42c496d8ae39d32 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_13.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_13.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_14.ts b/ets2panda/test/ast/compiler/ts/instanceof_14.ts index fc376f5cbcca64002cc4a280d2a6253a8ee4d360..0ade292596b69a6297990081d207b9dff3b4b4a8 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_14.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_14.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_2.ts b/ets2panda/test/ast/compiler/ts/instanceof_2.ts index 7ded04e5f363057ce1b28ccb50f4051c655246fe..b2d40f37ab6f518e472b8db45970905616004850 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_2.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_2.ts @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_3.ts b/ets2panda/test/ast/compiler/ts/instanceof_3.ts index 7fc54d01faeb21ccfde45a6e572cdfc456c1c839..e6c3e8bc905565d3a27f89767d9fa5d906e5d9ad 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_3.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_3.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_4.ts b/ets2panda/test/ast/compiler/ts/instanceof_4.ts index 1bce045f7ee3993bf68e9559982324e531a2f0af..58f318937dccb35394c2a0b6596d84def592427c 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_4.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_4.ts @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_5.ts b/ets2panda/test/ast/compiler/ts/instanceof_5.ts index d4bfafc5835190f9fcb904494cb2baf2822d3fd1..6874037f2371353de13fa3a7508dfc2377d2f917 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_5.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_5.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_6.ts b/ets2panda/test/ast/compiler/ts/instanceof_6.ts index 9d06062aa1ccb005f1bcdfb0198fe929972d1260..d69e6c8262f0ebe20ab58fec70255224be5c03f0 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_6.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_6.ts @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_7.ts b/ets2panda/test/ast/compiler/ts/instanceof_7.ts index e812fc52a3abb74dba96a515fddb83cbb0736fe2..e1d9aabdbee9424dda37fce9d0be388eccb62445 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_7.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_7.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_8.ts b/ets2panda/test/ast/compiler/ts/instanceof_8.ts index da918b1aa1fa697d9f86beaeff99bb0d55a28c4a..21db952bcf7fdb97c5298b1cec1003640d69385a 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_8.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_8.ts @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_9.ts b/ets2panda/test/ast/compiler/ts/instanceof_9.ts index dabe86c77a4947e76cb6c808da221c1439a7f36a..733abb43cb59323d6bfbba328edbd0c8e842cb94 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_9.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_9.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts index 61def49250fa2851cb16c27a887d18952a590312..96870f476a29cf1a9a8ffc3970e7677420b4e838 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts @@ -24,4 +24,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts index 5c3c7f0aa98effd52262acc1e928fb0b8a7384c3..f12ee251b9ebe05d7364dc35ece445c703417c77 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts @@ -28,4 +28,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts index 5233066ecca5047664020c7f5395cfca931e6ed6..8186ab2ac8074f18214ea3d55136a613960d5147 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts @@ -36,4 +36,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts index 2f1c49d495236168131d93367a66342657bb82a4..f22d6a0c616100679458e85dfc933b4fb01665a8 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts @@ -20,4 +20,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts index a574145848b4e2cab17262a4080fe0477f483d2f..dc398a6a4471efeb13a6cbca7763aa706f0d1500 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts @@ -27,4 +27,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts index a5a6ab3c6be30e3aefb6634a4b8e7e24eb114faa..72b14dce3956a800b499ae343ac0a7368efdbf13 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts @@ -21,4 +21,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts index 4074efbc893f7bdfab4f57b0cc108f0661b7555d..e741951d60151b5a08dc5ae97ade96c171c8ec36 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts @@ -21,4 +21,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts index d7f49cc71b2bc0f100f8884b72b826543b965d4f..19b3eabadd13c05012d0ee9eef3ba3edbc1a5d11 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts @@ -26,4 +26,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts index 53075fd0bf78d4129b975cce8ef9fb24215b8ebf..13d67781f59bbf14676a054b3bd748c13b2d6184 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts @@ -25,4 +25,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts index fbf5cf39c7aeaeae55a3262afe32d389028430f5..7228f2e65ee65e41086d19d1b089eddc393912ed 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts @@ -21,4 +21,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts index 8be14c0002d1322000e4a2578415ae4b91ecf8de..2157e144d60e5b8e933bb93bfbd276853ed46ea9 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts @@ -21,4 +21,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts index 2b47dd814e9143c04ebcd2487d84c72a0b7d4029..a370f5eca27afef9842a489d5b9226f127923be1 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts @@ -25,4 +25,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts b/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts index cf2c2eee10385dee1186663055a202f2b97dc5df..3cbe62fe6b425419115e9f31b3a3d7f351e201ad 100644 --- a/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts +++ b/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts @@ -27,4 +27,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts b/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts index e66a8cfbcfcebcce3aacf3bc1dae600d037f02e8..142a1da24b59003af226b968db81fd0e16098dd5 100644 --- a/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts +++ b/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts b/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts index 9a2ea92c82e5ff6555668ae99579070b4f0ccfe6..dc42c67bba4f4e63949a96b2dada394438ba0d12 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts @@ -23,4 +23,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts b/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts index e8fa9201617782ceabe2c11f13cf12d791b15e66..3bdd1bb310443b8cb1a5f1b620ea6f407e6439ee 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts b/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts index e1f8a1835f9b9109965d2076082d7c2de36c014f..0ca4d37828cf1a89eb8559faefc98cb03705177a 100644 --- a/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts +++ b/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts index f2236407f292dcba2ae0005589f26ce85f246046..65d4c32c8f4ffe41c8097532f41aa32a036237c9 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts @@ -21,4 +21,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts index eb8546f51e1f7d44d9d309774df1085d764a9dff..ce91990b3aaf056b1e8557554473b99b5e336658 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts @@ -26,4 +26,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts index 64e8caf0b6a7a9f9fe1bdd158ded49b23dcafa85..7c40ec9c17f5860d9b182b3877320a7cc097fe87 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts @@ -25,4 +25,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts index 8ddbc992404efe2d4cffe0ed516855ad9be74e5f..9d02c5626022d911fcd42af30b481bb89d6b8ad2 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts @@ -25,4 +25,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts index d0ff77a08c885259714589ed5e729d60cac00a68..ee5f161c80b029a892d4cbf760368c067a152a8c 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts @@ -25,4 +25,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts index b664a3e76f06f25697e71506eae7ae98ec5421b5..5d4bba338bd3700ba2e0f64046bcf2c874641b82 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts @@ -27,4 +27,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_1.ts b/ets2panda/test/ast/compiler/ts/member_expression_1.ts index 31df7d91547ce9f42685aad45b3549f60bc4d091..dc9c3ca0cfbd5d48a7628c51bc165488cc62cb76 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_1.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_10.ts b/ets2panda/test/ast/compiler/ts/member_expression_10.ts index 3c607912f94a956c0a81a8b18d1a372a5b09486a..aceb3fa1807dbf37935d4e0fd510b2d699fc2cf7 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_10.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_10.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_11.ts b/ets2panda/test/ast/compiler/ts/member_expression_11.ts index ed5e4e49bcee0aad6a5c56627b8f9420103b0d59..6ffbd7256756350e66def5ab3438b217516d2f5f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_11.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_11.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_12.ts b/ets2panda/test/ast/compiler/ts/member_expression_12.ts index 01571e817a4291c8e684aad6912efae6deccf3cc..4e8ad51686e65f39d50ded4ad4e2867818137f58 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_12.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_12.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_13.ts b/ets2panda/test/ast/compiler/ts/member_expression_13.ts index 4afe3c085b2e498c8ae2f3f7b456f8d3db28fb5d..f3d6d80c090248ce58e67c5bfd9498d0478d8e25 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_13.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_13.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_14.ts b/ets2panda/test/ast/compiler/ts/member_expression_14.ts index 26b7835a51416657ccb22595cbb03cd0892dbcc8..b524f6a3898a6da7e3eae2a558f408230ca55d74 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_14.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_14.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_15.ts b/ets2panda/test/ast/compiler/ts/member_expression_15.ts index 777156605053b57a227ebae06fbd3de21d0283b4..71e91a9784b4c182173dddcc8217299fa792ca10 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_15.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_15.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_16.ts b/ets2panda/test/ast/compiler/ts/member_expression_16.ts index 18950f9947b41e75f2d1ec80ec63a80284bc13ca..8bdd85bc82c27ece0dce0a29f22ffc862edd70a8 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_16.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_16.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_17.ts b/ets2panda/test/ast/compiler/ts/member_expression_17.ts index 6c839eeeca931ea3385ca6b471ef3347b063c571..6b4b73e45fb6bc63cdef1170b5f3e93501668e42 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_17.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_17.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_18.ts b/ets2panda/test/ast/compiler/ts/member_expression_18.ts index 72b38476ba2c5618c823b0bba95716406bf06d1c..83498b22ce78721c090e970a686c5aeb93695238 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_18.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_18.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_19.ts b/ets2panda/test/ast/compiler/ts/member_expression_19.ts index 13a98566eb6a179e29da8536154beddd289a45c7..b51733e232485876d3abf211e1e6cb5a7db8c183 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_19.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_19.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_2.ts b/ets2panda/test/ast/compiler/ts/member_expression_2.ts index 767ef0daf1045d92296b6fb310f4d00622776f85..487863795fb60a7b9440364579e2c72865bd81b6 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_2.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_2.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_20.ts b/ets2panda/test/ast/compiler/ts/member_expression_20.ts index da6e0b15cfa477d3397d9bd115fbfc3d9500108e..eb859c3ea8fb397602c558a8e2c36b2211920778 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_20.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_20.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_21.ts b/ets2panda/test/ast/compiler/ts/member_expression_21.ts index f605fe3ff06bc20283b23061c834092cc70e0f5d..b426a98e138730f5d84e226313eee6cb3b0090b0 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_21.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_21.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_22.ts b/ets2panda/test/ast/compiler/ts/member_expression_22.ts index 4453ba225d7d63491307433a51e02992b49c074e..d30f812cd649ff1583802746c1291a62b8053aa7 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_22.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_22.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_23.ts b/ets2panda/test/ast/compiler/ts/member_expression_23.ts index 1e7714faf729c4b2cc5e09d641437dd1b522ef76..08fef4f6b3a67942e71a5bd0ec32c9a8f442412a 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_23.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_23.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_24.ts b/ets2panda/test/ast/compiler/ts/member_expression_24.ts index 8a00ebfcf175d331d948029f16a4b91291e0403a..7310349e84cecdcb4865150653ab34d06ab69a7d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_24.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_24.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_25.ts b/ets2panda/test/ast/compiler/ts/member_expression_25.ts index 1d4714c5808f97f13896cf0fdd844f2b5ad99982..fea96fbb61cf14d1ed968151d43966ce0b1e249d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_25.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_25.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_26.ts b/ets2panda/test/ast/compiler/ts/member_expression_26.ts index 4a0470b979245a3bd80261fdf14463842b185815..cbaff4d5e11728ef3a8d4fe1ab14c3a685ce4d2d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_26.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_26.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_27.ts b/ets2panda/test/ast/compiler/ts/member_expression_27.ts index e24b7ea26647f495b6f1608fdc773d1278e9fe2c..91220b244d6e7ed5f500347aba3fb89ab703d927 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_27.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_27.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_28.ts b/ets2panda/test/ast/compiler/ts/member_expression_28.ts index 7a695a09c87c89d4dadb8fa921d4257fc74ce4b5..99f5226895c7736d1b78ee6004ff407a3ba854ca 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_28.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_28.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_29.ts b/ets2panda/test/ast/compiler/ts/member_expression_29.ts index 10844536af4548014270548cab493f84b0d3f0a8..42a361b85ec9d2ffb49aa018fce08588f9944466 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_29.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_29.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_3.ts b/ets2panda/test/ast/compiler/ts/member_expression_3.ts index 189539ddb80973152cd3341b0edd31f739ca7c4a..d2430ad25e89657efa83c896e09c99ab05615ba4 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_3.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_3.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_30.ts b/ets2panda/test/ast/compiler/ts/member_expression_30.ts index 2d7a034c7300bffa6f5568b7e6c89df4fb0eab7e..6ad3cee76c854c9644d3176e8bd75bc3aca2b0e6 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_30.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_30.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_31.ts b/ets2panda/test/ast/compiler/ts/member_expression_31.ts index 1752550102689f1f17dd843141b4bb0c62ad6dfe..76c951cb7f6105c259d55a8e1727c8076d6c3202 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_31.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_31.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_32.ts b/ets2panda/test/ast/compiler/ts/member_expression_32.ts index 977e4eee9611343ef51355571eb10ff706e9bc68..ae25fe35bcda4fcd5297464b77a7e714f2a389b0 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_32.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_32.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_33.ts b/ets2panda/test/ast/compiler/ts/member_expression_33.ts index a210392c2554eeb98a3295928d0baabbaaf7baba..9fb963152354c7b045f0141300435887b24d3504 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_33.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_33.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_34.ts b/ets2panda/test/ast/compiler/ts/member_expression_34.ts index e0637a8a9f5287b72f28431f431510f6e13d662e..47a66543b6c84fd308e59c311d2792123a952023 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_34.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_34.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_35.ts b/ets2panda/test/ast/compiler/ts/member_expression_35.ts index bb8f3f26ed7df7ef42ff66d0b99ea8b4cbab9010..d802172b6216e4e91566746afe92ff273a45bf1a 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_35.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_35.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_36.ts b/ets2panda/test/ast/compiler/ts/member_expression_36.ts index f49961d71e5a20cea76cc7cdd80d12ed3338499b..730677a947e02bab5efb58bbbbdc2ce5fa1d70ab 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_36.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_36.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_37.ts b/ets2panda/test/ast/compiler/ts/member_expression_37.ts index c602fe652007a69481de1baf213e4be2b0bc4ce9..36a3c11df19bab0a4f29199ed04b52c21c781eab 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_37.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_37.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_38.ts b/ets2panda/test/ast/compiler/ts/member_expression_38.ts index 3d286bebaa6b39e2889764cd1e9db047647eca25..7b47a58016f8b561d3aa1b0b9e7214224e50b179 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_38.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_38.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_39.ts b/ets2panda/test/ast/compiler/ts/member_expression_39.ts index 1e441b69b4a18f2466358e0c726a2f77bbdb5f76..af8d51388d06a49261cf8b86a11cf1220117d313 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_39.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_39.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_4.ts b/ets2panda/test/ast/compiler/ts/member_expression_4.ts index cba45ea6271624beaacbcb0c554e3017a88240ed..f07038179067ac04589a5c3b48ebcdb2b10916bc 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_4.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_4.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_40.ts b/ets2panda/test/ast/compiler/ts/member_expression_40.ts index dd225472e0bafc41dc43e561cee3032fb4283ff8..594f72ce2de0589e389320afd508ad4f5ce79bf6 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_40.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_40.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_41.ts b/ets2panda/test/ast/compiler/ts/member_expression_41.ts index cf0cef8ce73652c207272e75ad0cd5cf1e56fd80..b221bcd658edd2a53390705b67f57f2806359fe7 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_41.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_41.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_42.ts b/ets2panda/test/ast/compiler/ts/member_expression_42.ts index a0f22260c6666a198f51ead33bda6468446f871c..9b77096f567cf51735a71c90dcb99b65aea94a9b 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_42.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_42.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_43.ts b/ets2panda/test/ast/compiler/ts/member_expression_43.ts index e9a3b0477b30c8e965d6825a28edf8c4e77d900c..bccf684278b7a4bf87ee225e3e5b6a1ea6e348df 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_43.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_43.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_44.ts b/ets2panda/test/ast/compiler/ts/member_expression_44.ts index 366ae5551e37acf233d6405031f2f438f44ac231..5f2b473317b202d0bd29eb2a88755d1666b48c33 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_44.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_44.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_45.ts b/ets2panda/test/ast/compiler/ts/member_expression_45.ts index f475269e2d6bda7440142d4cc235cc15efe10b04..364242171dfe76ba38cb9b681e38eb3d2e952d09 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_45.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_45.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_46.ts b/ets2panda/test/ast/compiler/ts/member_expression_46.ts index ef9a49b20c233b04e2b46a80346a46970605755c..0862788f23f3407160b3d448ec9277653defff46 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_46.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_46.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_47.ts b/ets2panda/test/ast/compiler/ts/member_expression_47.ts index 738f891a07b576231d8e00b08f2a5da1e588687b..ae88fa8bbac54edb3e584c927581ded3ca1d4610 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_47.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_47.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_48.ts b/ets2panda/test/ast/compiler/ts/member_expression_48.ts index 374745bfb9c784b91d27917177ff1652c578de55..e7c7f16ad3011943c1b58c88eed3d3cc29c48884 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_48.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_48.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_49.ts b/ets2panda/test/ast/compiler/ts/member_expression_49.ts index 38ffda3e7c17080e715fc4f91eb661d5052657b8..a74d16e9f3f68ecaeed1d9c767bad255f2ca75aa 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_49.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_49.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_5.ts b/ets2panda/test/ast/compiler/ts/member_expression_5.ts index 1b1abe48d8b8507711aed0ab9b2f2746378a9908..9257668986c00a97e1f6012e52f91b0f642c3416 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_5.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_5.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_50.ts b/ets2panda/test/ast/compiler/ts/member_expression_50.ts index e7c3135321515fe481f5afc3128e4b196559f008..75383e21329c99f75b90985ac9970a93225bacb3 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_50.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_50.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_51.ts b/ets2panda/test/ast/compiler/ts/member_expression_51.ts index cea2f248556b28989e631ac131ba46fc4409b85b..f9c29389c12130276efca9a225ca75452492c31a 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_51.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_51.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_52.ts b/ets2panda/test/ast/compiler/ts/member_expression_52.ts index 7439c0be46df0cc6ba02be2709d1d245e633d5ff..c10b0dea3addaba545f55bbbc91afc771ae078e5 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_52.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_52.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_53.ts b/ets2panda/test/ast/compiler/ts/member_expression_53.ts index 8474d1ab3b47712dc4d944e306c5ee0032777702..2dc5d64bd3e790b835df8d7881469d4d2ac04e2f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_53.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_53.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_54.ts b/ets2panda/test/ast/compiler/ts/member_expression_54.ts index 4264f075baaa069db530b50344e4489c094cfd6d..f2f04a25a24f430ad294588e3e6c8aab55611017 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_54.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_54.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_55.ts b/ets2panda/test/ast/compiler/ts/member_expression_55.ts index d134a679f045c7129ec20e2b40c69c8b19bc405e..1510a9a2341dff43b35fbaa92a5007bb90cc5a39 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_55.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_55.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_56.ts b/ets2panda/test/ast/compiler/ts/member_expression_56.ts index c2656dad9682fee54f3bacba6f133b94dd0826d7..ce35c227c0731a734858327a0a459eb355ba8b7b 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_56.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_56.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_57.ts b/ets2panda/test/ast/compiler/ts/member_expression_57.ts index fc492796473e4d4f85b834cc0c1e26d1cb2f0afc..23dee533904f9bb62243890cd9a5b0a57a29d3ab 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_57.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_57.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_58.ts b/ets2panda/test/ast/compiler/ts/member_expression_58.ts index 168b4d4c219a13be50383a1b2277566bc315e338..fc1a39e5ff6164ee18f934460e3303709ef2d6a8 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_58.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_58.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_59.ts b/ets2panda/test/ast/compiler/ts/member_expression_59.ts index 5a70c628cf64b6a353216bd6bb0d9fbe382d6ade..5d4259d772368d7fe9c447e2f86c0bd411d521ee 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_59.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_59.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_6.ts b/ets2panda/test/ast/compiler/ts/member_expression_6.ts index 20d9bf6b0eb05a0434bbea10d732d914c068de40..7937874068f16a92383fe8afe783e07236308b38 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_6.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_6.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_60.ts b/ets2panda/test/ast/compiler/ts/member_expression_60.ts index eb96793a8249c25beaf22ecc98c8d7537aebff05..34aba061f4ca2e4c0f7792b1593c83f9e47ba66c 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_60.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_60.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_61.ts b/ets2panda/test/ast/compiler/ts/member_expression_61.ts index ef08769f8bbc1901f7d10c414466e78432e437ed..f34dc543164c92018ea0ab6a5ade2c9e534e9919 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_61.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_61.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_62.ts b/ets2panda/test/ast/compiler/ts/member_expression_62.ts index ba76d90c909756d645a6c887bb4d0850b67224fa..69d80b576ea35deaa5640ad6e29bb08cbb47b505 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_62.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_62.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_63.ts b/ets2panda/test/ast/compiler/ts/member_expression_63.ts index 855212e0cb61dfd1f89ebf8b92295ba298b4e15c..ea072962b4fc6d941daf39e4eb120347253a7118 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_63.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_63.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_64.ts b/ets2panda/test/ast/compiler/ts/member_expression_64.ts index 5c78997ae37bceff87a76727272865bfb3d9c7f1..7e70e55281121884dd7a6d5d08bcdcad5e958df9 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_64.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_64.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_65.ts b/ets2panda/test/ast/compiler/ts/member_expression_65.ts index f73ecefc61cae3042076440da856e1d911f2df8a..700f3d9707a5f736d972b2b9fc513e80fa9a5fd6 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_65.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_65.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_66.ts b/ets2panda/test/ast/compiler/ts/member_expression_66.ts index d90b765dc46c60b5124bdf8512c6ab41d63e6a1b..a9b081e92f2a5db096c39a54b160af1472a40a28 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_66.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_66.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_67.ts b/ets2panda/test/ast/compiler/ts/member_expression_67.ts index 12a42f0d487e00dd4c7e2a5ecaf36f5117a1fc7a..795bd2b1d15a2abe1a5a75062eaf982af1d898d5 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_67.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_67.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_68.ts b/ets2panda/test/ast/compiler/ts/member_expression_68.ts index 6eda93b2cba7ac2bd7035d66b32f27edfcbd17eb..4be56fefa8004f33e47c5d525b75992fe3d1c88d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_68.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_68.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_69.ts b/ets2panda/test/ast/compiler/ts/member_expression_69.ts index 77158f413784060fe31734f0698d9ee7f4391db3..0e87847f7a09a8c04c36b72f9706cccc1f1b2c7d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_69.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_69.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_7.ts b/ets2panda/test/ast/compiler/ts/member_expression_7.ts index 1c58011a554e2199f78a23cf3b8def8c1d78cb37..d2ee09797b4234f580ed69ff68e627cf5b9244cd 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_7.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_7.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_70.ts b/ets2panda/test/ast/compiler/ts/member_expression_70.ts index 677d3a5f9a705bd5f0711187d00b8a13874de577..0ebf55d28dd1617d0ee6d42fcabe9c02538a9731 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_70.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_70.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_71.ts b/ets2panda/test/ast/compiler/ts/member_expression_71.ts index 749774d7eda306a321ff6908682aa18135d46019..f2cea8297431c8bcce7d3bc780b7112db109fd0e 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_71.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_71.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_72.ts b/ets2panda/test/ast/compiler/ts/member_expression_72.ts index a9680cc861a4b4a0ad8ddd62d048b1e236cca99f..1d246789ea56e45f62185f1e7094e350dbb893f9 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_72.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_72.ts @@ -20,4 +20,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_73.ts b/ets2panda/test/ast/compiler/ts/member_expression_73.ts index 8c7b4e7aeaf3fc9177b69e9e3cb8a11b6924df5e..05cb7feaa4883676bbf900742c3e06a4a89896e7 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_73.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_73.ts @@ -20,4 +20,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_74.ts b/ets2panda/test/ast/compiler/ts/member_expression_74.ts index 6db696aaacdae76571e2b0343ac965e30bb0ef95..4210500311339f73131eb02284e0f127fd412877 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_74.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_74.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_75.ts b/ets2panda/test/ast/compiler/ts/member_expression_75.ts index 93d3e784ddacd9afe0aff199422b536af81ccc60..8d337474964c6ccd0009551bddbe47395da80bb0 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_75.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_75.ts @@ -21,4 +21,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_76.ts b/ets2panda/test/ast/compiler/ts/member_expression_76.ts index 60712db7473496e5f7a35eddbe1eea7405d4018c..6857b6c69f2176b3e5569ae02d9e4e9c5fb13555 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_76.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_76.ts @@ -21,4 +21,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_77.ts b/ets2panda/test/ast/compiler/ts/member_expression_77.ts index 9c52951c620f2811b910ef73297b5941b9b78408..58489d5c9dd350153828cf181a7908bff64f4b54 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_77.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_77.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_8.ts b/ets2panda/test/ast/compiler/ts/member_expression_8.ts index c20269a97d4aee64e704697a5326b566f076a630..c72997cc3029c797b3fd06fe9e518f61bfd03a0f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_8.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_8.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_80.ts b/ets2panda/test/ast/compiler/ts/member_expression_80.ts index 855f43112c0087b96250640af75c5443183f9765..7b9a0d5a8494d34e5a8ad4b77be7f3450df42fcc 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_80.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_80.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_81.ts b/ets2panda/test/ast/compiler/ts/member_expression_81.ts index 62fca284be4982a299cc9a6dc9231e75a9c1b86c..1958e589a0aa7cad85c2adeeca74acb25896380b 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_81.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_81.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_82.ts b/ets2panda/test/ast/compiler/ts/member_expression_82.ts index 3f02e03f04cc5b50ad56a0babd4d6942acdb8440..383dff1a5f5fea38afb704469287645537f033d8 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_82.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_82.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_1.ts b/ets2panda/test/ast/compiler/ts/new_expression_1.ts index 8fdba6b7d2c422995b7c623a9305dd9b3f6bd74e..d66be962de4673af22f3ae447addcd0b779c8e1f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_1.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_10.ts b/ets2panda/test/ast/compiler/ts/new_expression_10.ts index e6a99f150eb943c98804eb35db99d2d34033f37b..2d4f763f74cc0f18cd1d63a1300fdf12b6f3c850 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_10.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_10.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_100.ts b/ets2panda/test/ast/compiler/ts/new_expression_100.ts index 59c66397c9ac87c4af8ad0df67baf99ad9927f1d..a2e18eb96f66267d50ba98a1c901248097d4cdd0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_100.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_100.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_101.ts b/ets2panda/test/ast/compiler/ts/new_expression_101.ts index a6bd7c200b6c5ec9caf5374892a498a11bfdc7a5..bc621ebaa3639c0610532d2c69d8ff06e177c5b2 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_101.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_101.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_102.ts b/ets2panda/test/ast/compiler/ts/new_expression_102.ts index a4751a2bf70174e72bb6f653c2ee22175b5f4f6d..0e4457544abed1e3af0cece663a5d1b76ce1ab01 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_102.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_102.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_103.ts b/ets2panda/test/ast/compiler/ts/new_expression_103.ts index ac5190a1653abedc6084e0f11ea6d5c0ca3408c7..9d01942ca46c89803c093b6ebf7808a887460805 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_103.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_103.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_104.ts b/ets2panda/test/ast/compiler/ts/new_expression_104.ts index e6c86f74602d749672fffc7c8e20fef7bea32d27..ef422b653d867837aa62f7f1644bacfed4fa2ed5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_104.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_104.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_105.ts b/ets2panda/test/ast/compiler/ts/new_expression_105.ts index 28212180a5f9f27e83a22a4514a90092ea41d94c..c48833e33022c0ec5fa415d4d61c5510a3f34a67 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_105.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_105.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_106.ts b/ets2panda/test/ast/compiler/ts/new_expression_106.ts index 811aa0d2266eea13784fe6056b76c50fcceb06d7..fe14d8e0adadc082e91904f5a05b86094f98367a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_106.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_106.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_107.ts b/ets2panda/test/ast/compiler/ts/new_expression_107.ts index 287073cbf7c4312c3469e0cdd8098cd61588630a..cc46652db4200b1353f8b2ba2c25757b64ea73b0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_107.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_107.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_108.ts b/ets2panda/test/ast/compiler/ts/new_expression_108.ts index 1489158256659a1ac1010cc0655fe1769f5bc7c0..195e0fa152dcb4a66ac505ab39619a56602b0a87 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_108.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_108.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_109.ts b/ets2panda/test/ast/compiler/ts/new_expression_109.ts index 016b9cae393534721ac1b62150994a408bb26020..8ac3971487d745647f9cc04d051311e15149ee6f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_109.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_109.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_11.ts b/ets2panda/test/ast/compiler/ts/new_expression_11.ts index 75ba002425246cb0d037d95a240af3347760ef59..25dfcd1f5af8f09e395915fc1c74328afd8558ec 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_11.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_11.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_110.ts b/ets2panda/test/ast/compiler/ts/new_expression_110.ts index 0775d070b49454463a5487083b157a140fa2611a..72dcdae85dcb1f8b60fa7681de5e82429cfb8c80 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_110.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_110.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_111.ts b/ets2panda/test/ast/compiler/ts/new_expression_111.ts index fb44ef22c2921877b45260ad55195f4fb81ec0cd..29524a6dd8943c73b8d678f6b06f62b404ba99b7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_111.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_111.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_112.ts b/ets2panda/test/ast/compiler/ts/new_expression_112.ts index d9df4bfad26209a90cd4df6f28903faf7e285637..344ccebdc38903ec17e8213799f152ea8b1f86a6 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_112.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_112.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_113.ts b/ets2panda/test/ast/compiler/ts/new_expression_113.ts index 67b4fecadd40c84ca34bfc3b48de576f286e4a7b..fbba2da1bf99ab2b9def240d94ff67758e9753a8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_113.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_113.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_114.ts b/ets2panda/test/ast/compiler/ts/new_expression_114.ts index 2be16cb1d772394d589b6bf0b3289986545914ec..ef46ce446e799a2675c38e6f01aa268bce662773 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_114.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_114.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_115.ts b/ets2panda/test/ast/compiler/ts/new_expression_115.ts index b44c30a26e7e76904ccf1cbdc8754e3d2ccb73ec..69f5870a2eafc5cfacf9cd2707e6a8cd9da1218c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_115.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_115.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_116.ts b/ets2panda/test/ast/compiler/ts/new_expression_116.ts index 68e5f91f15e8f396187dbc5f8ce6e0682b9030b2..4bf96a12b1d559a231e2fcfc1a3df2fde5237a68 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_116.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_116.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_117.ts b/ets2panda/test/ast/compiler/ts/new_expression_117.ts index 33f5526a132e41cb6e4d2d57bc01757430081c81..2fd994620b6db6ff55a1322ff92a7d72a331fa7c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_117.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_117.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_118.ts b/ets2panda/test/ast/compiler/ts/new_expression_118.ts index fb8618d048b4dd1d9bfac7df3082cdc1c172266e..c4ab940cc24c3aac39614b1bb766c3b322b4e174 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_118.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_118.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_119.ts b/ets2panda/test/ast/compiler/ts/new_expression_119.ts index a218f84cacab6aef8c9580c3631ac5ae79761745..bef11483e86fa394fbc2ea17ede2280b508b264b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_119.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_119.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_12.ts b/ets2panda/test/ast/compiler/ts/new_expression_12.ts index 23d72a436cd12eee7fd8d2d44afe06e599bf4e84..0e461b8b91c775c60dacf631e9e48954ffe5fb83 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_12.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_12.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_120.ts b/ets2panda/test/ast/compiler/ts/new_expression_120.ts index e8878e1f382c0ab1c21976b9407516f4233ee8a4..4c471cc8bf3a585f40e26754a13e4b4d48cea08c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_120.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_120.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_121.ts b/ets2panda/test/ast/compiler/ts/new_expression_121.ts index efe1c57a3e7ec96c1ba7b738fad6427ae8620d9a..149caba2fd642b6e43ae429126b22e559451a2c0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_121.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_121.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_122.ts b/ets2panda/test/ast/compiler/ts/new_expression_122.ts index 75106e66c7fde6085708e7fc360fb9cff2aa52aa..fedb84c54d30f0d5464b61de8022e69055ff2ec1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_122.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_122.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_123.ts b/ets2panda/test/ast/compiler/ts/new_expression_123.ts index 3715f2fb9e12616c513f9e7ea9a77ab0d782276e..b499441fea75212c41c439d21fbe8665b76ffb0d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_123.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_123.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_124.ts b/ets2panda/test/ast/compiler/ts/new_expression_124.ts index bb95db1f216742fd0c186f7da43b223b3b5502bd..837dbd28c3df36d9d16a98941992e8a6c6c9bb38 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_124.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_124.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_125.ts b/ets2panda/test/ast/compiler/ts/new_expression_125.ts index 5bdbcba54354f20b038a1417d7a52e2fbc7491c7..f2421caf2c940a7ba9e0c16a22adda3811e51418 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_125.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_125.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_126.ts b/ets2panda/test/ast/compiler/ts/new_expression_126.ts index 189d05b0e87e345b71e9f2490c754e3b9d0bb9e6..6c4b781f0062c0085d2a2d510099635fbbb00b28 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_126.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_126.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_127.ts b/ets2panda/test/ast/compiler/ts/new_expression_127.ts index 0b7d5a8880867c883329271d85620e2ce67ef216..ee37f4ad91f4c892fb6f19a59868889c16ec7066 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_127.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_127.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_128.ts b/ets2panda/test/ast/compiler/ts/new_expression_128.ts index a94735b912f2c65d26ef96158adc6e7bf9910fa7..33dacba7868bc46d95e0ccc300c71aaf93875352 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_128.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_128.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_129.ts b/ets2panda/test/ast/compiler/ts/new_expression_129.ts index 8149ef007a05af7ec01a5aa00aff9b25e67d4dd3..b1b717379cb4d4a89c60da7fa0711e9892405ad3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_129.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_129.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_13.ts b/ets2panda/test/ast/compiler/ts/new_expression_13.ts index a66f1036cbd25c9ebdfee6da066ef39e77c07a47..3673a5c7e2f84941db0638b61cbf2967f6981930 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_13.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_13.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_130.ts b/ets2panda/test/ast/compiler/ts/new_expression_130.ts index e710a2c49d12b62c6a9d2f10bc2764fdfa9d97a6..617e5e79b6c38fc9f0445fad5a45774a8f15b588 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_130.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_130.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_131.ts b/ets2panda/test/ast/compiler/ts/new_expression_131.ts index 82046c672421c9a52740c7f902d0858088614179..8054342a1a5c70b7a13a65c6ed309846da4746dd 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_131.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_131.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_132.ts b/ets2panda/test/ast/compiler/ts/new_expression_132.ts index 29e791a1a7c7300d4a011ae58a13ff0f93de34ab..265bd4ed9c081e87b6ffcc1afe8bd1de0b5880a3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_132.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_132.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_133.ts b/ets2panda/test/ast/compiler/ts/new_expression_133.ts index ad769fcc84c66e8fe33ddb298a4351587120c88e..1912335fd09ca0a2e53bf722b0e694399c76f693 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_133.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_133.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_134.ts b/ets2panda/test/ast/compiler/ts/new_expression_134.ts index 0d9b3855b601a171d615717ea44c5f4d66fd382c..2b611d6f36234333366c9fae206984fcb5035890 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_134.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_134.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_135.ts b/ets2panda/test/ast/compiler/ts/new_expression_135.ts index 21eb39d71dc09ec7a962904ef38a4fbced9fc777..15f101cf9a3754ab0b356561640970b04527e6a2 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_135.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_135.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_136.ts b/ets2panda/test/ast/compiler/ts/new_expression_136.ts index b298ca85327443ed0a03c00afe9afda81f73a37f..f9e3b6b15206ef4a9f47310b0d2574f1d3837f6e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_136.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_136.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_137.ts b/ets2panda/test/ast/compiler/ts/new_expression_137.ts index 945be287f034e9ecb0ff647565bbde727ae10f5f..a73407f967cc0a16aca179cbb06e2f1db4a11f00 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_137.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_137.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_138.ts b/ets2panda/test/ast/compiler/ts/new_expression_138.ts index 914d23610b76a704828222264e9f494e44eff07c..2a74fc065f6fdba5df6de60238c45f365e936d55 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_138.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_138.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_139.ts b/ets2panda/test/ast/compiler/ts/new_expression_139.ts index 89cde4a0ab8468c480d7f0ccebdd3f4b7c863378..15b991a35390c69b24c7d067273379f864758876 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_139.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_139.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_14.ts b/ets2panda/test/ast/compiler/ts/new_expression_14.ts index 6a0eed6ba21a3185f3cb30eee599580c84ca1300..d21026e0f041302e6f660f012cd55b4581e6c318 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_14.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_14.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_140.ts b/ets2panda/test/ast/compiler/ts/new_expression_140.ts index 7c90df6d5b3a963cc99c941a3d7164286c60471c..bfaeb25fb69c39c02f340a7f282527ba702ca246 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_140.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_140.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_141.ts b/ets2panda/test/ast/compiler/ts/new_expression_141.ts index 55014588a399cab19ddd2bb244d33b5c209ddf2e..71ae57a82360dc194673f3d0293246ee1ec20418 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_141.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_141.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_142.ts b/ets2panda/test/ast/compiler/ts/new_expression_142.ts index f63d974ef440ed72973ea23541ae9b21df232bcf..974c850578c2c99e6cbe6f7c48b646c098954e00 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_142.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_142.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_143.ts b/ets2panda/test/ast/compiler/ts/new_expression_143.ts index 36e5936a033c98359df65b6dab46b52c444aac11..569d285fb1171e4a4fd973786e8bc15f7b8a3662 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_143.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_143.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_144.ts b/ets2panda/test/ast/compiler/ts/new_expression_144.ts index 4a6f9198acc1c37008e71f63f89ca084320018e2..b532fb515f87b773f4f4ac78fbf796257858e356 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_144.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_144.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_145.ts b/ets2panda/test/ast/compiler/ts/new_expression_145.ts index 8447435fdd681700573d44b85150bf3eabeca033..9a7fefe435dffa0eb26dadfca283b7885ff30ac9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_145.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_145.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_146.ts b/ets2panda/test/ast/compiler/ts/new_expression_146.ts index 0218570b479d28354573d25b7114e312f77629b1..ba4e8340fdfb44def4ceed36e72c23cfc0864c03 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_146.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_146.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_147.ts b/ets2panda/test/ast/compiler/ts/new_expression_147.ts index fea88b7b8aece652e35eb308c5e92ed34b56ed02..645e74f5639f5c20aa4f5c8dacf17275c2e0e23f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_147.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_147.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_148.ts b/ets2panda/test/ast/compiler/ts/new_expression_148.ts index 0f3358eca837ce4893d83875835b8ffe2102eaa2..3ec042a8d901add23ac1661f5d8b579b91aea3f8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_148.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_148.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_149.ts b/ets2panda/test/ast/compiler/ts/new_expression_149.ts index aade0325dcc8b74c093b5afc994739cc2b796d23..00735e06fc54f57bd40f007dc87b27e237d9c6c4 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_149.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_149.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_15.ts b/ets2panda/test/ast/compiler/ts/new_expression_15.ts index 406c4df6c401561f5d174eacbd28f8bbbf05a735..5be478b9f4040fa48ed557f8572be06f8abd6807 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_15.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_15.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_150.ts b/ets2panda/test/ast/compiler/ts/new_expression_150.ts index a6caff5a9c9f108a8518f5fe0e7378b429fb172d..0fd0513e9ee65a165e5fa291a9a37b82e4a381cc 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_150.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_150.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_151.ts b/ets2panda/test/ast/compiler/ts/new_expression_151.ts index 3a771e6656d2ab5f32b1b026f595a1377c24e80b..ab4a1893d90fae653368dfa69671295659001c0d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_151.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_151.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_152.ts b/ets2panda/test/ast/compiler/ts/new_expression_152.ts index a4102fc45b88b57990f153749dbbd74d29382a5f..678546b0c0108c6c5b25cc8a5a52acf78c13b897 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_152.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_152.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_153.ts b/ets2panda/test/ast/compiler/ts/new_expression_153.ts index 95899dd47420b66f7a3d329432622a09f91cafc7..8a8fd51e90f9887d0b14a5ad077f23a66332598c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_153.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_153.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_154.ts b/ets2panda/test/ast/compiler/ts/new_expression_154.ts index 799985aa1d0b2b4baa055e133a57e7471d8673ec..b80540699a8b0bea179eefb06e952c3f62a7d0ef 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_154.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_154.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_155.ts b/ets2panda/test/ast/compiler/ts/new_expression_155.ts index 50d627400fe856846b56df52c9b2e85ca3e050d5..650afe7b022e204d80736213ceafcf49b7f46ad7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_155.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_155.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_156.ts b/ets2panda/test/ast/compiler/ts/new_expression_156.ts index 7a97bb5650fe736d2467b953c04a8531f732466a..b9ccd5fb7839c3101940099bf882ff70efe8db3c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_156.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_156.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_157.ts b/ets2panda/test/ast/compiler/ts/new_expression_157.ts index dee327f082932e4558c32d78c901ec797fee9498..c3cce0aea8157fa1c1068d2fed2bacab0517403c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_157.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_157.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_158.ts b/ets2panda/test/ast/compiler/ts/new_expression_158.ts index 5e50d7f1f08036bdf5d935d61b7a71bbdd55d422..1616e371c170af0704a7984bec0124970e972d44 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_158.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_158.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_159.ts b/ets2panda/test/ast/compiler/ts/new_expression_159.ts index 970aa4062863fc7aff05af6d003b4e1bf55c0410..8332aa3425fb579e3db20cebb2f07ebd8eecc1bc 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_159.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_159.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_16.ts b/ets2panda/test/ast/compiler/ts/new_expression_16.ts index a551fa7515be08c43549723934cdecd7a45489dc..d766e11617d211624e246b775b339f8f2dc1d04b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_16.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_16.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_160.ts b/ets2panda/test/ast/compiler/ts/new_expression_160.ts index acebfc59e7fff146aada3610b084e024914481fc..7f6658410b8fe9a3bf6829b6f0a8557fbff32536 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_160.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_160.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_161.ts b/ets2panda/test/ast/compiler/ts/new_expression_161.ts index af4c4a193205f8a246d7f5bc0c5e17bbb11b38b3..e8a860bee0483a913166cd6dd53cae0eabf75b1a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_161.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_161.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_162.ts b/ets2panda/test/ast/compiler/ts/new_expression_162.ts index 027ee653887ad5f20f3a2af3c36bbf14af8de8ba..0c21eb99556eb0ddfc1227a0a09ad64689d76948 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_162.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_162.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_163.ts b/ets2panda/test/ast/compiler/ts/new_expression_163.ts index 44a6a4148c9a5dc8088621a1dfdf16561af9ddf5..520c8893540c0d7bf9fedc0cfd0b4d7a525a6c67 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_163.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_163.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_164.ts b/ets2panda/test/ast/compiler/ts/new_expression_164.ts index 2cc6bdcd66f5b2475ef1c921c5e9c4790a43f1ea..7e6396d7f0a7551cb639c5562b5cfcd03abbb2c1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_164.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_164.ts @@ -15,4 +15,5 @@ var a = /* @@ label */5(); -/* @@@ label Error TypeError: This expression is not callable. */ + +/* @@@ label Error Semantic error ESE0000: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_17.ts b/ets2panda/test/ast/compiler/ts/new_expression_17.ts index 6a069211ed9027ff081070cc77b56021b02163ab..d2b67a7f157e03aefb5d7eed62c05bfc235fd7e2 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_17.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_17.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_18.ts b/ets2panda/test/ast/compiler/ts/new_expression_18.ts index ccb1eda259dc26fa77bdb359556c6a663831a443..722df0db59a0c2405ac8c44f3dc67a5b14cf8bb0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_18.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_18.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_19.ts b/ets2panda/test/ast/compiler/ts/new_expression_19.ts index 1340a1ca7183c1b44f0d95636c3d1a5726b9c2bf..86c07cd6a4d142c482e0db701605d187eeed9eb6 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_19.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_19.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_2.ts b/ets2panda/test/ast/compiler/ts/new_expression_2.ts index c2febcd76cac33944400614138e64f10b32a4b55..493dd8507aec3d3724229640a0560fc455842b89 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_2.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_2.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_20.ts b/ets2panda/test/ast/compiler/ts/new_expression_20.ts index f2edca0e88bac3f01b915b0c604427e05a3e886c..6e06d5b3a051f72f1f669a0f7d8acff1cbf75514 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_20.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_20.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_21.ts b/ets2panda/test/ast/compiler/ts/new_expression_21.ts index 1dfdc0d13258c6ccffcacd95d2ec871647aa7497..f822a793de161d21807cbc4852abe8a80611c36c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_21.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_21.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_22.ts b/ets2panda/test/ast/compiler/ts/new_expression_22.ts index 44c52bad4cc0676e696caa898f4a0df7680f397c..eb45f6ea09d939ecaa017f37b095e42e75017be5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_22.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_22.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_23.ts b/ets2panda/test/ast/compiler/ts/new_expression_23.ts index a5f60e2881b57d44abdcee27f560c6f9d1ea3ce6..ab9bbb6ad7f8d7669250e519099b9f6ca0e80c45 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_23.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_23.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_24.ts b/ets2panda/test/ast/compiler/ts/new_expression_24.ts index b45074f34d3bf8ebeefd92d7fdd80960c77a4a78..f3ec412f3d1f81e32bb98b29af04f20d6a7572c4 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_24.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_24.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_25.ts b/ets2panda/test/ast/compiler/ts/new_expression_25.ts index b3e13357e22b473081f922f559d4dc5bb29bdad0..593ced64c8777b726dfe53d502aef665f1ebb65a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_25.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_25.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_26.ts b/ets2panda/test/ast/compiler/ts/new_expression_26.ts index 4d0b0e934531c87bf667c8a71a4967285b0b8c25..41fdaa58d1be089e650b1c1db0ccabfdc1dee79b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_26.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_26.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_27.ts b/ets2panda/test/ast/compiler/ts/new_expression_27.ts index da2ab5e1bbf44adb9b868785362fe3817088c32a..df06d52698731de64e115f2accab97777906e74c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_27.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_27.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_28.ts b/ets2panda/test/ast/compiler/ts/new_expression_28.ts index d4c0c5fc7d53c9683fbc8804a64f5b8279b0a840..eb83687b242a501c537010de45233dcca3188e8a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_28.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_28.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_29.ts b/ets2panda/test/ast/compiler/ts/new_expression_29.ts index 4cb1b605e198403705a0f46efac09814ab2c8fb3..288f8b82e84dc8e9920fa5a69257f92f9c19301d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_29.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_29.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_3.ts b/ets2panda/test/ast/compiler/ts/new_expression_3.ts index 10facd0ba6715f04dcb6e808495d8b14bd80aace..72a768e54d51d96656e28b8c6c11565267231c92 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_3.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_3.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_30.ts b/ets2panda/test/ast/compiler/ts/new_expression_30.ts index 68a41f13785fc0b5b65b6c742cfe57b9ef1d7efa..1145b9cec8b1a0e6fa5fa7cf8f55c5197b35afb1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_30.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_30.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_31.ts b/ets2panda/test/ast/compiler/ts/new_expression_31.ts index b6fbeded1f6d47888f5f96584aae4436e79a33fa..85a24a6ab4bff8527c1466fc856aa61b17b5f0f5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_31.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_31.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_32.ts b/ets2panda/test/ast/compiler/ts/new_expression_32.ts index 9b27868bbb92d66b6ac327568be0c605b771e969..a2b121a6899a5a4ba8951676a434b74b8fd5bbfa 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_32.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_32.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_33.ts b/ets2panda/test/ast/compiler/ts/new_expression_33.ts index 8e251f8b21a8e9a779457485991ddd12eac8b00c..8b7c3a77e0ebb8fc5dfe09500613a476537dfe36 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_33.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_33.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_34.ts b/ets2panda/test/ast/compiler/ts/new_expression_34.ts index e035473daaf7a8e5585a9de050613afc16e0acc1..c3e520fede65c8acaa59efe9e4c9c20ebd83d4e2 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_34.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_34.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_35.ts b/ets2panda/test/ast/compiler/ts/new_expression_35.ts index e604d799a2d82b001962e9d500270df04cccf152..7205dd0800260cfdb539befacc8a33a867d11835 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_35.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_35.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_36.ts b/ets2panda/test/ast/compiler/ts/new_expression_36.ts index 888d10fecfd24b4299def3ba454838547e7f95b9..401191a1c9e8423cf2d22e0971aa21e35c731c78 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_36.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_36.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_37.ts b/ets2panda/test/ast/compiler/ts/new_expression_37.ts index 23257adf848a172799cabc7c403471122226e92e..c38ab024e15c7689637ffd1e3ea80e105fbcc067 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_37.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_37.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_38.ts b/ets2panda/test/ast/compiler/ts/new_expression_38.ts index d37984de2202dc3d001cde23b6f946f80fdbb370..ace62d9e59fe9be4154b98fe2f3f759696fcf26e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_38.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_38.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_39.ts b/ets2panda/test/ast/compiler/ts/new_expression_39.ts index f7dc5ba2513b867c195b6fb0a028e29791b98d3d..b18a8070456d8e8ee5048f14511e0fd093b71b0f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_39.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_39.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_4.ts b/ets2panda/test/ast/compiler/ts/new_expression_4.ts index 57df6c92f34f4f948885011c337c349ab4df7066..4e169f88a69ee89c53d6caa32954b8dec7d4a386 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_4.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_4.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_40.ts b/ets2panda/test/ast/compiler/ts/new_expression_40.ts index 557ea9be80ea1fc3e9cb18e16d7f3f833f92df7a..847d4e795d0d6066aa73e14394ab0dfd805f1ad5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_40.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_40.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_41.ts b/ets2panda/test/ast/compiler/ts/new_expression_41.ts index 54c5983af5aeb43f9b9d8e3e7893eeff33aadef6..339d44bf62e8e053c9d175af353ec5e160817308 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_41.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_41.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_42.ts b/ets2panda/test/ast/compiler/ts/new_expression_42.ts index ff72f61a28fc96507f9dafa61327de337343dff1..1f9a13eac6538d681f727fe144df7260e8280f21 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_42.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_42.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_43.ts b/ets2panda/test/ast/compiler/ts/new_expression_43.ts index 0ffc084761bce6bb3356d38df2a3be0b5a0a61dc..f1b9843fd7fae39cf10f6cfca3d262c35d2f3e57 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_43.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_43.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_44.ts b/ets2panda/test/ast/compiler/ts/new_expression_44.ts index bdbee06b49850ffd233c5ce5b5bf48c069f9842a..595a9dba5ce1284b70719dc40a399fc6e40fc82c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_44.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_44.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_45.ts b/ets2panda/test/ast/compiler/ts/new_expression_45.ts index 4005888e83c72669cb6b3e86260afea06c5ea458..0db757ca73a092b119ce9afd11f18870f169ecc7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_45.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_45.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_46.ts b/ets2panda/test/ast/compiler/ts/new_expression_46.ts index 89a030f01a9780f3895543fd3c7f6e161e3d4b4a..281f38b6159119368191faa22b99eaac3a07ed02 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_46.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_46.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_47.ts b/ets2panda/test/ast/compiler/ts/new_expression_47.ts index c0dcb28ed46293f117ecba60a2c47b69dadf87ba..155002a55fe78d2bbb3e667870925d184a42da86 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_47.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_47.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_48.ts b/ets2panda/test/ast/compiler/ts/new_expression_48.ts index b4ff92e06661637939cbbc8ffb8ded8ddfc4a26e..e96958374202b11cf177db9dfd5d7ed454299c3c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_48.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_48.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_49.ts b/ets2panda/test/ast/compiler/ts/new_expression_49.ts index d18e64cb0774746a4bd17fd12b0709ab3fd402b0..a99b2aca49346b8a444de21a6034a3edeb0c2242 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_49.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_49.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_5.ts b/ets2panda/test/ast/compiler/ts/new_expression_5.ts index b5b5ac8e3d9e23afd8ededf3cda73fd9d87473b2..85fefd162018b861972cb193857320fa28a0988d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_5.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_5.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_50.ts b/ets2panda/test/ast/compiler/ts/new_expression_50.ts index 9b29649315777c7021db96cc44a2e2ea202fc3de..a206e5b816ca1dde86245030a9b1f35ebd4b6d92 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_50.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_50.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_51.ts b/ets2panda/test/ast/compiler/ts/new_expression_51.ts index 50e5473e6a44c264c8ee87caf0dbee531b05b171..9932c8eead15e0382d805667eecf8838e159dbc4 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_51.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_51.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_52.ts b/ets2panda/test/ast/compiler/ts/new_expression_52.ts index 078d511e1397a1c50aa6b218b795e37debf72417..741ef86f8fea2746bd5fcc0567c7340e63902bb9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_52.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_52.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_53.ts b/ets2panda/test/ast/compiler/ts/new_expression_53.ts index fbb1b13c71935ee42b3ce9cd76fdcf2514405220..5cabfdfa824ab25d799f07620acd9db36bb9e774 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_53.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_53.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_54.ts b/ets2panda/test/ast/compiler/ts/new_expression_54.ts index d817d00fdd0294574285d7c16179e24711dd763f..0d2396d8644c765fc6c825d8a347ac51dbf7a0c9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_54.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_54.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_55.ts b/ets2panda/test/ast/compiler/ts/new_expression_55.ts index af7844d79af5a2912907d83997d1f48800d94b12..48453d22c8c6ad7a4f2fc5dcb72cc121132b11da 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_55.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_55.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_56.ts b/ets2panda/test/ast/compiler/ts/new_expression_56.ts index 1c399adf2c556f6ecd8a28922f6aab96a97a821e..23a3f7813e2207629a9465dbb8bd3574bec0b4e1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_56.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_56.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_57.ts b/ets2panda/test/ast/compiler/ts/new_expression_57.ts index 921d770d50d321a80f04402c3929565335a95ae0..73285bbd9649d24e52decd8bc97f125445840fd3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_57.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_57.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_58.ts b/ets2panda/test/ast/compiler/ts/new_expression_58.ts index 9ab673eac6e8e7fb721d8fcfebd603ce05e4a790..4fef18578c21613a946d39db5114ec87b2370f42 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_58.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_58.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_59.ts b/ets2panda/test/ast/compiler/ts/new_expression_59.ts index 0851c18c1c8e00a1ee95f796ef96065f90ab9906..c3a4ba055e74e9f2634d57802703090cae314f8e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_59.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_59.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_6.ts b/ets2panda/test/ast/compiler/ts/new_expression_6.ts index d8cc546696e5022b272ca346af0adee9936dadd7..2a36a20657c320f822c2eccdde9452de791bf2b8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_6.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_6.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_60.ts b/ets2panda/test/ast/compiler/ts/new_expression_60.ts index 26b9daf08414fbc527737d51b2350a01bd5c9b7c..3d8880213d314b684d51a6e94da3453c7955a319 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_60.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_60.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_61.ts b/ets2panda/test/ast/compiler/ts/new_expression_61.ts index 80ff521d130356f2d0e6e031398f990fab25401d..162bfd41268e657e6f0d51d7e27065156a089cdf 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_61.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_61.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_62.ts b/ets2panda/test/ast/compiler/ts/new_expression_62.ts index 47733f1f6c746a779dc7f5d3367508b22e860f1c..1d075442ac188b021f74f939221e6ceba4a3990d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_62.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_62.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_63.ts b/ets2panda/test/ast/compiler/ts/new_expression_63.ts index f772b92e3a117ed4969b8061540d62dc8edcc6dc..cef3364f6f6cb081c7c0c4ac5e461a6096891150 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_63.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_63.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_64.ts b/ets2panda/test/ast/compiler/ts/new_expression_64.ts index 860be1f0f0162511fca363c99fb365ad8b2ba7df..db5c63a2dd53cdaa72166a3cea283af3cd0818fc 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_64.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_64.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_65.ts b/ets2panda/test/ast/compiler/ts/new_expression_65.ts index 456b55f4b8af050d7e2521e46f1d0c9880a932df..b95e8c5d006ee1edec2a1c97399581639d4a276d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_65.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_65.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_66.ts b/ets2panda/test/ast/compiler/ts/new_expression_66.ts index c3be6c3f239c56c72718b0d7c6d7536847bf1be7..a2f9483c68b2cf7b3a7440abfa6601c3d84309ce 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_66.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_66.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_67.ts b/ets2panda/test/ast/compiler/ts/new_expression_67.ts index 5a1d447819594bf05436a9f8beccb16ea78adbec..9396b7b981b38667d5e47e1d036c98e30623f4af 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_67.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_67.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_68.ts b/ets2panda/test/ast/compiler/ts/new_expression_68.ts index aa9680d03418b71b52540de0f89ec66e19dca3af..ee1bdd39682334448a10477565126617fab165eb 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_68.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_68.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_69.ts b/ets2panda/test/ast/compiler/ts/new_expression_69.ts index beb24fe57acc49ed25df8e490ba86cdb1d77bd66..18e37af8654028b87e2f1d9d34af737cf5397c00 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_69.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_69.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_7.ts b/ets2panda/test/ast/compiler/ts/new_expression_7.ts index 69f2848f98cae23f397bd20f064c722f35cd08f1..4e95134b77e0d7191c18e18a81b4ad0f3359d4b9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_7.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_7.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_70.ts b/ets2panda/test/ast/compiler/ts/new_expression_70.ts index 3ce895a4e3658edb94f8dc096f6ea16290dfa9ad..da8f7529682e00244b1b3d7520c86fd906857f36 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_70.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_70.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_71.ts b/ets2panda/test/ast/compiler/ts/new_expression_71.ts index 6d86679264d9eb4724b5da53d61d572c103a566b..87e7bc691a1c985a3b1dcbb5bc5c755ed0b3de18 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_71.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_71.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_72.ts b/ets2panda/test/ast/compiler/ts/new_expression_72.ts index b0d50c39804ad3590a30e427e2598f27e5ad9c4d..2dca879c67c7ef204bc30cbfd28e9643e260d5ab 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_72.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_72.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_73.ts b/ets2panda/test/ast/compiler/ts/new_expression_73.ts index bcadd1d4b9ccbd279ef2636aa363265e25b59607..47e9cca02bdca8d20ecc55dd3575800215d41c32 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_73.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_73.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_74.ts b/ets2panda/test/ast/compiler/ts/new_expression_74.ts index e7fd217c578a1a19b71db005698bc24284a2a805..a07207c8b12f5b845d336111e91f41b3bf098386 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_74.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_74.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_75.ts b/ets2panda/test/ast/compiler/ts/new_expression_75.ts index 26a412110e01467f56f77629a99d8e0aeb8e65c4..d8b35021c61785490590ceba04f20a054ba97194 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_75.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_75.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_76.ts b/ets2panda/test/ast/compiler/ts/new_expression_76.ts index ecced42caf92ca468fab83359b2af0574a60cf62..e2889f6bd5428645ace10ae5c07abeda625ee7ea 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_76.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_76.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_77.ts b/ets2panda/test/ast/compiler/ts/new_expression_77.ts index a769aeac8d2b0eca511514668c329546600f5161..08d25b7b5d0ab52badfdd256efc0db4d860d8e18 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_77.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_77.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_78.ts b/ets2panda/test/ast/compiler/ts/new_expression_78.ts index ad6ccc12cfe4845ac76658a0e99b27af699ea3d6..076d4f4c472c16947a5a81008d64a1c3ce1c95bf 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_78.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_78.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_79.ts b/ets2panda/test/ast/compiler/ts/new_expression_79.ts index 945e0eb6b1803721f8b87f35680a51f87c145654..e61f59a70b949572e2aaddccdf328c1bc8126f5d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_79.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_79.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_8.ts b/ets2panda/test/ast/compiler/ts/new_expression_8.ts index 31364c2733795a9863a77c1baa8c533ea73244c9..3f32b75c32c439969e6a9a6a7ef27843165266c0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_8.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_8.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_80.ts b/ets2panda/test/ast/compiler/ts/new_expression_80.ts index b37fd46c351d99ffea42d7e432828c910e4bde36..dd3e9489df46645fce07e9815fd4c9802a5052fc 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_80.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_80.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_81.ts b/ets2panda/test/ast/compiler/ts/new_expression_81.ts index 57d0ca9522d97ae478294febb93c704a3e694050..757c63eec8dfb251317ff73ceb481523505e968d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_81.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_81.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_82.ts b/ets2panda/test/ast/compiler/ts/new_expression_82.ts index fe0ac12519c4cfc5afba5117a13a47a14327b921..412564dd7c565a5903a7a3207ab33eb22d0ec8ae 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_82.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_82.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_83.ts b/ets2panda/test/ast/compiler/ts/new_expression_83.ts index 270028dd2e2384a35576d405212fc2d6cb55462e..9eae6ad66acdfbf07378f4f1a79f4f0cd142d674 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_83.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_83.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_84.ts b/ets2panda/test/ast/compiler/ts/new_expression_84.ts index ee28242dd4f4a610511bb0d651237cbf825b0597..db47d93f6d84c42590ac933dc3d4814d43561b8b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_84.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_84.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_85.ts b/ets2panda/test/ast/compiler/ts/new_expression_85.ts index c61f70531d10eda684b7096176cc75677861ecb2..fe2aa24f570f803b0b4c6a0eaafe5c621cdf7eea 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_85.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_85.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_86.ts b/ets2panda/test/ast/compiler/ts/new_expression_86.ts index 9df6494c4ac6fd904f38f44cc61131788967256a..07ca774c01d3b6efb07d46882621757bb7419262 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_86.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_86.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_87.ts b/ets2panda/test/ast/compiler/ts/new_expression_87.ts index 6eee6c4c96d61e9ce1473f430d34500d6122eb48..07312962980feba7f9c10d787e69e2cc2424d7dd 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_87.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_87.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_88.ts b/ets2panda/test/ast/compiler/ts/new_expression_88.ts index 3f837eb289bf0f80d7a287fa811ca3711c6c1f19..09599120209d72bdc27df07d6317d1029682edfa 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_88.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_88.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_89.ts b/ets2panda/test/ast/compiler/ts/new_expression_89.ts index 5680e00ba89501a3a288b3e2e6511dfadfcd2314..1fdaf387b0946dc2c77f2cc8391f4751a8e12952 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_89.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_89.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_9.ts b/ets2panda/test/ast/compiler/ts/new_expression_9.ts index cefe11d7f705317e04c0b191438943a920141f7b..13f65a45e172cc27747566ad82cb08ab19ee5a49 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_9.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_9.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_90.ts b/ets2panda/test/ast/compiler/ts/new_expression_90.ts index ca3caf7ddce932297b38e54dba9610b543b3c5fa..7940f68f484ddf9fb5df095b82d8648178846907 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_90.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_90.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_91.ts b/ets2panda/test/ast/compiler/ts/new_expression_91.ts index cb716a5b23e6f83ec3b1bb112182f9ab7083bc23..7e863f81e483afd94ef99acda3dfc39f232352e5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_91.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_91.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_92.ts b/ets2panda/test/ast/compiler/ts/new_expression_92.ts index 003571173bfea15780ef6367b9d2dd444653de70..bacb99dfcf948d1270325d2f17dccc032962bff2 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_92.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_92.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_93.ts b/ets2panda/test/ast/compiler/ts/new_expression_93.ts index deb778fe52cd615ad5cb269d3c21c710950444ca..4f975ed2622031e328d7e45b62fe00a79fe07c09 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_93.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_93.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_94.ts b/ets2panda/test/ast/compiler/ts/new_expression_94.ts index 0e6487d24457f16e60ef8cc9036986b6df8255ec..c84226e62b6134c24a5099e649651418f3a854ac 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_94.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_94.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_95.ts b/ets2panda/test/ast/compiler/ts/new_expression_95.ts index a94624d8e54f617ae2315507327481568a26db02..100ad200a9934c7c4be6c268c8916d0f2a118015 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_95.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_95.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_96.ts b/ets2panda/test/ast/compiler/ts/new_expression_96.ts index 2957028a76c8bc4d9b08e34aa1e4953f7aab816a..713291521c07019b26b584c540f48f563ec19633 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_96.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_96.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_97.ts b/ets2panda/test/ast/compiler/ts/new_expression_97.ts index 5062e026f34b21bb6addd4fa62fdfe9f3f673ca8..f53fb1474c6f1f98498f7a0a751c9cb3bc416e0a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_97.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_97.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_98.ts b/ets2panda/test/ast/compiler/ts/new_expression_98.ts index ab3606a22d66401e1d2f92a5f49f2ed17e78adbe..689f3ed21149e5a72aba64c9e3e95bcc8a305c6f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_98.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_98.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_99.ts b/ets2panda/test/ast/compiler/ts/new_expression_99.ts index 72fd545e88af04599220680cfebda6033bbfb7fc..db6630b663ace22b75ce740e4f9ddf008da696cf 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_99.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_99.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts index 2c4d484c45d6def37e6fc2fb94e77b75848043aa..905732cc537035bd7ca81ad9662d1c116d958fe5 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts @@ -15,4 +15,5 @@ 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 { }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts index 7b1a3a31045d2435a1823c3b70188e65552c8e3f..f8faafaa89b82f4b230f17cecdbffe716a486fa3 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts @@ -15,4 +15,5 @@ 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; }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts index a59ae0a8c9c01bd71341d0d4b4d04e744838c154..c6053e6b34b65c11d701890cb47d070e8df823e6 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts @@ -15,4 +15,5 @@ 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; }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts index 179795e57401c4b175b7fab71ebc6c1f72565c0e..468eff95d7b1b5148fa026de56bac42845d8f210 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts index a6348e0a5deb84915fb6bb0d65bb7216e303468d..9d0d8217b02b7980795e0cb1ebf1687dbe904a00 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts @@ -16,4 +16,5 @@ 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; }; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts index dd8683ed13a6f1bb030b86ed2ee905c9a2fad80a..718816d36d6dfa39435962acea592497be53841e 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts @@ -17,4 +17,5 @@ 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 '{ }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts index c7a21ab884481779b3cceec176048ff0d5694fab..e9ab893d373218e67ed7ac063ea381ec5788a9f8 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts index ef0ad22f2d9afddee93f2d90221e84f6771db8fa..308f601d2dda285b554816cd163dfb3e1428e8cb 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts @@ -15,4 +15,5 @@ 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; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts index 5d547a7a2da2ede882eedab71b59dad060c05e3c..88a927f5e65510ea4df48fa5f70132b3c2804dcd 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts index b85598c8e8db27f9be1561960786f1ab895eb0de..9113952d5e3190e1d68d1a83f9ad06b37f6a8fdb 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts @@ -15,4 +15,5 @@ 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; }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts index c6bc68e5e24c9e20937a7972d2d873eb4bd40a68..c5b9332143053c9e3efe57e8a4e433b0e96c36f9 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts index 930912f1c2e1eeb47fd0fba0d2794c406667343d..417ae046f860991e67901db02d15ad0bee5fffc8 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts index 7bcfb4cda2773439d8fd373f0107a920e39787ef..e3fe03a1d3caa4acd756d41f7942d7402412c296 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts @@ -17,4 +17,5 @@ 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; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts index 7dcaef653a1d17a3bf44afc7562926a1df5286fb..60e9cd5585c92558466dfff8238e17143b3b3fc1 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts index 314933f5a088b563a110130ae1ecb91fe7be0630..18943beb3ee5292caf1a515660f88d0213d1a86f 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts index 7ef9f4a56cf310a4c3f93740de811242ae0689a3..cf41b53a7c9c9cd30bed891724c850e9c4793837 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts index 015c0ea1d4a02aca20d484312c338d00dbc00c11..df81920de2a52c93ac2fbb7ab6079231375e4ebb 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts index 61864dbd65d3e38c8963331547531d50cb12d75f..882be38a40f280456d43ad1331a38d514aade0e7 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts @@ -20,4 +20,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts index fd3a3ca7907504940e636ddf6ae7cf36427dc655..e6db0b7b37559e36d1adcbf1ef3c235768da8700 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts index 9bd382af4cad1e28a3ed6cb750b50ef4010c8463..1ecc796a4a8ee1c978f148cdafc2652f4fdc0a74 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts index ca27a55943300bd8cf47dbf8a1e9bd70cc24edc7..94aeac4a4d44de0f3203cb0a029277f5546df7c2 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts @@ -19,4 +19,5 @@ 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; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts index f68bff2a4d4b659da3886597b8f54f8cf2d983aa..e567a9b32b10c1d28b74978cd0251814b20929a1 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts @@ -17,4 +17,5 @@ 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". */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts index f69b54429377069dc56bce484e59112705e9edaf..df670e543ba4fcf7645b7ec88acdf65a7d688855 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts index 76adad539638fd2c9287ee0b3323c22fcc0b97f2..ea57d1fc78029bdb6c1471c9d1401813ac67050b 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts index 66cb64efe7f807e2352d212b273361e3b90c63de..9ae586a717a0e97c9a547f988e20eec3e6cff486 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts index c323c3b1c14c3673caf97dfe5fc17e2d7e89c4f5..1e1354a71de03fad63b622938a2b26b596ddc9fc 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts @@ -16,4 +16,5 @@ ({/* @@ label */a} = {a : 3}) -/* @@@ label Error TypeError: Cannot find name 'a'. */ + +/* @@@ label Error Semantic error ESE0000: Cannot find name 'a'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts index 93b6c42d662ba7cdfe737bc3054a7c55d3a39703..71412a1aba223ae3ce1f58f89b3889df76aed4d8 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts index 396d54e6ee07f27a9b13ede21e93697f25df2490..615b79704ee9eb4599c0eb190746e0b1458b33bc 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts index 929158a70e60f2da72494c3978bfbfd044450f0e..990f9c6c4015299ac9548837ff4a515b2ec5cf56 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts index 1a05ef62b55f320fb01c9d9580e302e80415e4e5..47527ff1e4d070fb1c398713db38c531377b79f1 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts index 46fe6602d36dd88d780264d3cd621eeb1e44d83a..207120346b06e0c8736d80de87ffdfede735f51c 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts @@ -18,4 +18,5 @@ var c: string; ({ a: { c } } = { a: { /* @@ label */b } }) -/* @@@ label Error TypeError: Cannot find name b */ + +/* @@@ label Error Semantic error ESE0000: Cannot find name b */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts index 566f6c5b5e73be1645fcb15faf833bf181322b17..c7969807533b280132d5d91307964aa844075c0f 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts @@ -19,4 +19,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts index 60dbfb2f7e84aac8b0626765366b6c4084570e7e..cbf0264093506a5c2ae79dbedf9e289944a48c16 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts index 2ea4e50067b61730e0f9c78d6c28161c9d5c957f..cd2cf2086632da8562d1cd49ab4c38ad3d875a51 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts index 2ef0749a783b4cd36acd8294526a95a574460989..05669daec1ec82b7ae608602f542364e73a6036f 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts @@ -18,4 +18,5 @@ 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; }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts index 9fa54d7bcc8f8945d07445ecfe88945418b381d9..711b40e97639321f72e02f5eaa009d8047165c18 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts @@ -19,4 +19,5 @@ 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; }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts index 17fbc07038513217fd465cfc2ff6c4fa30f7b27e..81f61aac22d286320392a8e1f33e628fe54a57f2 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts index ecf37d1a57824b99b990da71c011f0ebbe82bc22..49e798f6f0690ff85ce0295e715b701eceb279f3 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts index 9ab31738521a06754f7b01d6f143fd98ee1d3c52..c062dd684036cc77e4beb7e81bb4563f2b2f7f52 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts @@ -16,4 +16,5 @@ 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; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts index 6268c200e88a21e0e3dea3e639794842482ed068..c894bb66352962e78bbe69c9997ee6013a7a0c2a 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts index 9ed18474f4b00dbf715f5bbb308697267dd797fb..067f1cf475898bc83d1c7c714ce4888b512dc745 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts index ac7c82ae1ca601ea8a4a33d45efd786aa8b85096..c657d554371e8ad85c19cdeae14e61e04da5f779 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts index ed9ad24e52648d7d7baf12b8ef5e95b6089707b3..67600e9f1659267a084004b6ae65083edde60f44 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts index 082d672d6d63f08d2ab6a5d9f367b0430bf13c9b..6449f7dc3c06f9e83743ab59d9bfbf6cd07dace2 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts @@ -15,4 +15,5 @@ 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; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts index ff4edb8c534d07a96f2dd54479575aeb591cf55c..fe22741a58360ec86800df72fb3f051267ecc463 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts index 1bc216fb14bb9b0998740904416e930226668b5a..99c4a0d93fee195e6383fec5024400d82e879b77 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts index de5c2e8be81d0f1037e1cfe554e8ee27d058759c..f3d3d5e289b276b535a2e41b12d247fe53fcfd36 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts @@ -15,4 +15,5 @@ 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; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts index 947515df849e5db2653d9e1718988f4c039f42a9..adff1fe9d0d852a61fe110994c64d0d79a02abcc 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts @@ -25,4 +25,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts index 0a97ff9bc7ae79871ac14f3df0ba9ab9c1779336..5a5b09b182c3900482e7fd94aefebd99548e43d4 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts @@ -34,4 +34,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts index d1e85baf4b144c5b922c7e02769b209926e86b2e..8d60ff0259f2e1a2f5a9671ceaf0eac8215ed87f 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts @@ -17,4 +17,5 @@ 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; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts index e62397927a70b33938f37d3a32379bb829f7ae3c..c745951a4419e6d79a2bbadc723061465343985d 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts @@ -19,4 +19,5 @@ 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; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts index 66544161d5bf087c830f3b978e5bddee95dd9051..a08bd9cc4214e36923def67d13107d0b5134f76b 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts @@ -17,4 +17,5 @@ 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; }; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts index cf65b9ae80e3ca21358f4e76b8ab7567a575dced..387281f20db8fb74a0b43568274daf3ffaf6c98f 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts @@ -15,4 +15,5 @@ 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; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts index e43f77519cb85c6a70384ac84c85733f5598cb8a..168af7cf81cb3ad44e4dd4bb18a95809d2a02065 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 '{ (p1: string, p2: string): string; new (p1: number, p2: string): number; }' is not assignable to type '{ (p1: number, p2: string): string; new (p1: number, p2: string): number; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ (p1: string, p2: string): string; new (p1: number, p2: string): number; }' is not assignable to type '{ (p1: number, p2: string): string; new (p1: number, p2: string): number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts index 1972f5e7618a3118f6fb6f529be34464a99acf62..09cd17a9ec716882c05dbe9d75fc916aaff10c1c 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts @@ -15,4 +15,5 @@ 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; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts index d522d80de2405ab7706543f6dba86678c062628e..1a9d9e510cb9b7e6c563e8a8fb1116627e057b50 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts index c2e4a46fa1eeaf1b62e2417b1cada85e0979445c..a88a899356dbc1d875aff915b5313f2e340b3955 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts index f2656e18a92a72336a272ae93898a99be6d32446..c03baf23510e2c40a3679fd4623de47e61b61c50 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts index 1efe13e73916f317571e7969fe4b484773369461..7b587807be06e613bca4d537328dbcf144cbc8ba 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts @@ -15,4 +15,5 @@ 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; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts index 92c3073b81dd15e0927790f18705d9fb3218c719..be8385fea10d8cfd9b8547b5bc58d6a0a57def43 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts index c4c89c830c18d452b25d715337584154f4923633..a3aacd2406263ee6274f7e0ee6724e41734512a4 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts @@ -15,4 +15,5 @@ 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; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/object_expression_1.ts b/ets2panda/test/ast/compiler/ts/object_expression_1.ts index 73183c0a5a5aa7a9a449cfde511b3ba525c0c631..460d758444af67172523d43725690289a220907c 100644 --- a/ets2panda/test/ast/compiler/ts/object_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/object_expression_1.ts @@ -19,4 +19,5 @@ class Person { } let a = [1, { a: 1, b: 2 } : /* @@ label */Person]; -/* @@@ label Error SyntaxError: Unexpected token. */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/recursiveFunction.ts b/ets2panda/test/ast/compiler/ts/recursiveFunction.ts index 6e1c09154858ff3afe2febe3934c3c3960fc6797..28dfccadd3375fd4c79b64b57f67be417c0db39e 100644 --- a/ets2panda/test/ast/compiler/ts/recursiveFunction.ts +++ b/ets2panda/test/ast/compiler/ts/recursiveFunction.ts @@ -23,4 +23,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts b/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts index c4d21c7af77ca56d65ed9ac3ce52a821e11c14a3..428a00c47070829d760e86ae5374b1cf5d7e8f3b 100644 --- a/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts +++ b/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts @@ -28,4 +28,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts b/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts index 5a3ece49620ea829e62fa9f35ace63450fc06ee9..00ee80733c951e4b1af26abd14485957b601ca76 100644 --- a/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts +++ b/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts @@ -23,4 +23,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-interface4.ts b/ets2panda/test/ast/compiler/ts/test-interface4.ts index b738da85d18db16189b3d32f03d0721573995915..e276e060e29cb7a1a48b813d79aadc76e0a2092c 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface4.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface4.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-interface5.ts b/ets2panda/test/ast/compiler/ts/test-interface5.ts index b5b547dc485e4ba255660d369c5b6ab2288de0ad..4ce8f33a2ab63c0a19944272489bcba95c5696b8 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface5.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface5.ts @@ -15,4 +15,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-interface6.ts b/ets2panda/test/ast/compiler/ts/test-interface6.ts index 0bf321e80cb6dbb9ef4080e54e509174e442f8bd..5ac596fc38abbd30c19832de0ed75c6f86c7383b 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface6.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface6.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-interface7.ts b/ets2panda/test/ast/compiler/ts/test-interface7.ts index 7a5e63a3654d81a9d996bd61d628891b24e6dcd6..171779a800f87b6602da850a568458c7b6017fd7 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface7.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface7.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal4.ts b/ets2panda/test/ast/compiler/ts/test-type-literal4.ts index 00ec738437fbeeef455260cba7f718a726e26338..951502639fc6eca34ca1b7ff4a5374e10a1efb41 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal4.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal4.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal5.ts b/ets2panda/test/ast/compiler/ts/test-type-literal5.ts index 4eeeccc157677798cc70d37474381dc73bf61541..540dd207a510fdaf564574d8e0c55c365c7b045f 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal5.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal5.ts @@ -15,4 +15,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal6.ts b/ets2panda/test/ast/compiler/ts/test-type-literal6.ts index 1ce4e9ec122b41233dde5dbe491e60315c2240a2..868a7ebf27e699e1bde97cd30eb039937f9610d7 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal6.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal6.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal7.ts b/ets2panda/test/ast/compiler/ts/test-type-literal7.ts index bf1f2e1920ad4de624662fd254a206b8222396a2..8f636c1ba6c7172e5c73ad376bb36c29b95e50e3 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal7.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal7.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file 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..16cb30ddaed99c0dd5440cdab82f3d2596744e91 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,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts index ce8e49751eec8c85052555490f21f6dfe713f824..936f0843f506cf8f338f6435122c42e4633796f2 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts @@ -15,4 +15,5 @@ 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 '[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts index 782f2da32d65d8903635a7605e43b6f5c7a590d9..c076e6dbc6d474cb4d40efe2447d83dc71c8b122 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts @@ -18,4 +18,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts index a7a9083a883089e7ca4b547ac2b42a1bf613f8a2..ee2b49e9108b6d12edd1e4f7f31381fd0c7c54d0 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts @@ -17,4 +17,5 @@ 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 '[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts index 12c40921ba79fb333ad1443ec60336f0b3e8963d..f0918d2b6721245f718708cbc49ca2c7277c4b4f 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts @@ -17,4 +17,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts index 885290a2499f7a27ce126d330101cb73d3e1a547..cdc43b0929efa56bacfa55101211077203829ba5 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts @@ -21,4 +21,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts index c0ff48578357237a4daa50738ecf091bc158ea9b..9451efc6c04b3c7f10c032deb6526f0e5ceeb53e 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts @@ -15,4 +15,5 @@ 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 '[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts index 6917dc986737c942900b96f5cf310cddfc8816ad..f03aeb3d177abdc18f9f14fedae9e21be4317fba 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts @@ -17,4 +17,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts index 8b258ea66fb66e433f3773787c99dc4525cab1ac..dd7781fa8872552493d83b48d0ff5da367bc4828 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts index 0837b076e743a9e62e6163ebbb5a4a8d0c024d30..4310901d0d24823acf243b7d6da27ae06e3d276f 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts @@ -17,4 +17,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts index 7e4b8fb7231b891a81b62f0970041682873e2687..4851540c657ff3f2b64fc10989eb2cbfac2f85f8 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts @@ -19,4 +19,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts index 27950f7e14a1f60bf1f0ef52cd10b87ff49f3e46..12d1c833d9f2e9b01a13c19a3adf4c0b3db02624 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts index c95133478786dd9cbc99e9fd97f1a02386d3bf24..14c38559e15077bbed7188caa255fbc292a7b6dd 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts @@ -15,4 +15,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts index 9ec77ec04a92fbc38e5f646a3a6acd12aa14e932..065abd3706656a366949dd1cc956b0cc2ba6ba8d 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts index 7605186b36a5661723e8ae97de6cbcd180e18048..62c2e0de10f6dbf4bc9a8406c91a8ca293cfdf10 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts @@ -15,4 +15,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts index b71a05d00ae082dfea64af1ee46632ea85a18a49..ccb6e0c6233321d0c743027f8d9687e66096758f 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts index 1b006df38f5c4023d13f2d74861ce0cee793209c..46e22bf81fc62b411f5bea7afa0416251d4d13ac 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts index 6372c84d168ea777ab2e13d8e9e8ba801a3643b4..79685e9df447a1f89d0e97f72f6746eb08748d5b 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts @@ -17,4 +17,5 @@ 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[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts index 25c9a35cc30fdeef0b377f8ffde0d6f08322d15f..0f5525ed7e5540424d9110389aabf249f2047b68 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts @@ -15,4 +15,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts index 6cb593a4bb3eeee89e65af10b89a6679f801e681..1bf979e0261ce10cf12fb3fe4236e14cfd1f0195 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts @@ -17,4 +17,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts index c14de107672cee988d568869bf126a6c4bf2a5ef..0bfbc04b9db12d2aa708d9835d73961fb0051ef3 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts index d21a1504a1e8dd49338a8122b9b9f55f192247a6..c3497f47f5ccf59bf155927fdbb46ce05fd7ff81 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts index 3151802c59e9c7c8fcdf66530d751741ef6fe5b7..6b8adfa9e3709aae17bcff018af082e284af5256 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts @@ -15,4 +15,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts index 7b37bb33b1ebf16e7e94546e334d79bb15a9a0a6..d9f9a83f2741883249d8c87174b56320d198fd3d 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts index ecca78f5e874f396bc9f8012946c8b80eef771f2..75d071251bcbb4682c2efd6bc9929931e990cc2f 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts @@ -21,4 +21,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts b/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts index 167eb1294c02fd822f74f8baf583064e23c5e45a..784a33574730b1545a39fb1df2b4f95e63a1dc79 100644 --- a/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts +++ b/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts b/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts index ced03056b46db22d293c778e25460691c620ba5d..0b4271955cd21e375750afad19023163c44f83f6 100644 --- a/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts +++ b/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts @@ -20,4 +20,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts index 517bc68d5c41905b735596354ae12ca50437d1a4..c2744df629a5ca8d2419afbae2f21c6a74e36428 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts index 954811af4175780bd296404d3e3cb3da2a91f219..09d01216fe2e29b2624929e44b41650bb3531cc2 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts @@ -20,4 +20,5 @@ var a: {} var a: { a?: number } */ /* @@ label */a; -/* @@@ label Error TypeError: Cannot find name a */ + +/* @@@ label Error Semantic error ESE0000: Cannot find name a */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts index 6b06e8234e58d3a32ab128d22ca70ea14257d140..d59a61bab7e39f0a1a8aacbca13f75d3dda53dd9 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts @@ -16,4 +16,5 @@ 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 | { }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts index ff9fd5b0f7507ed8bfa4c0d32611889670f8f675..af8498ecc351e7cfaa158dd9afea9a1f49decc95 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts @@ -25,4 +25,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts index 43b2a83edeb5561bbe4fe87ea0d58dc820c0d292..0af7118177c314cf9ad06a7321a09f7e6f59e714 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts @@ -34,4 +34,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts index 63a30aa5d9cc1bfc9d0880f54378abc95139e4f5..95c3346137c032cdde79a2d73b8a1bf8bbb9a69a 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts @@ -29,4 +29,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts index b15007fb25c4f6ae3efc99ede28e0b053dc906be..9ecc62fd3a0412a90a8944c43024b3d078b93bee 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts index b946050d9db53403de5cd216c77b3ba7db70c6d3..a1845d1faaca20cf8409e56470b3a3c62755e9a7 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts index f457a83a86b427ff098c41ec1c791f49df37fc8e..ba3104fe2941e24b1a616acf2442fcd84ef9eb13 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts @@ -16,4 +16,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts index 29c75591e2b8be0cc94240f2f02061edea849106..620e899fb01a8b84a7aa26a4e1425b3ca63ff5b4 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts @@ -16,4 +16,5 @@ 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[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts index 1fae255cbba51f916470dafbf9c54670b9acd5ca..24e855533abb614700e8cbcaf76c0a99d224ddac 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts @@ -20,4 +20,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts index 2a9efa2fbc2168751df877472755dfae5ec81798..7e947dc3dc9731c123df909e514d08a2b29fcf8a 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts @@ -16,4 +16,5 @@ 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]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts index 0da87519325eca0f58f51f6c9e2a67d881445bec..4cf84d423047e9fe4107282957bcf4cdc7c8250d 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts @@ -20,4 +20,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts index 545c7aca0feb6b064fd1ada3924c63c9b0a844a8..9749cf56020de61b1fac888d70c50852a7bf8c75 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts @@ -22,4 +22,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts index 2601b4eae3d510c6b97bb505c2887d4927e29ff2..39125e7fba64be26fc9dcd1e6d176afd7b9ff4ca 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 '(p1: number, p2?: number) => number', but here has type '(p1: number, p2: number) => number'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '(p1: number, p2?: number) => number', but here has type '(p1: number, p2: number) => number'. */ diff --git a/ets2panda/test/ast/parser/as/test_class_property1.ts b/ets2panda/test/ast/parser/as/test_class_property1.ts index f7f244de6db230efd7eab12dfed6aae025e650cd..b174f071e5f99a06a239d8615436e22500bf6a47 100644 --- a/ets2panda/test/ast/parser/as/test_class_property1.ts +++ b/ets2panda/test/ast/parser/as/test_class_property1.ts @@ -18,4 +18,5 @@ class A { a /* @@ label */= 1; } -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_declare_method.ts b/ets2panda/test/ast/parser/as/test_declare_method.ts index 44924f19b30723027be1273ed1d2e4aa0886766d..27374e2beeed1f9c96925f70c6a107dcc3ce2ec7 100644 --- a/ets2panda/test/ast/parser/as/test_declare_method.ts +++ b/ets2panda/test/ast/parser/as/test_declare_method.ts @@ -18,4 +18,5 @@ 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: 'declare' modifier cannot appear on class elements of this kind */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_decorator.ts b/ets2panda/test/ast/parser/as/test_decorator.ts index 7e1ef048500c8d63c1815cf0592046d34f5023a0..7d65b361fd72371ac871090c7d6244cc180d595b 100644 --- a/ets2panda/test/ast/parser/as/test_decorator.ts +++ b/ets2panda/test/ast/parser/as/test_decorator.ts @@ -18,5 +18,6 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_decorators2.ts b/ets2panda/test/ast/parser/as/test_decorators2.ts index 7f584d3f2977bdb0df8503f68fbfbdd78ca59820..702b2827a4fdcd84ec18e98008e34ab10c8ec096 100644 --- a/ets2panda/test/ast/parser/as/test_decorators2.ts +++ b/ets2panda/test/ast/parser/as/test_decorators2.ts @@ -16,4 +16,5 @@ function foo(/* @@ label */@a a: i32): void { } -/* @@@ label Error SyntaxError: Identifier expected */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_decorators3.ts b/ets2panda/test/ast/parser/as/test_decorators3.ts index 678dc47ba51fd29ccd11911c7f7839895b354120..99db6da3e64ecbeb1c338b0c61e9f822221e3900 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 */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_interface1.ts b/ets2panda/test/ast/parser/as/test_interface1.ts index 71b0ec7f296c5570472170991b8157b70be39222..e6657f866d48af789239f28c7e939182aa7675d5 100644 --- a/ets2panda/test/ast/parser/as/test_interface1.ts +++ b/ets2panda/test/ast/parser/as/test_interface1.ts @@ -18,4 +18,5 @@ interface foo { a(b?: i32) /* @@ label */} -/* @@@ label Error SyntaxError: Type expected. */ + +/* @@@ label Error Syntax error ESY0000: Type expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_interface2.ts b/ets2panda/test/ast/parser/as/test_interface2.ts index a3b4c82d13effb6342bec3d4573954a83727148e..7e7dc2f5e6eb646d052c54c418112f11a6e95171 100644 --- a/ets2panda/test/ast/parser/as/test_interface2.ts +++ b/ets2panda/test/ast/parser/as/test_interface2.ts @@ -18,4 +18,5 @@ interface foo { [/* @@ label */a: i8]: v128 } -/* @@@ label Error SyntaxError: 'key' expected. */ + +/* @@@ label Error Syntax error ESY0000: 'key' expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_interface3.ts b/ets2panda/test/ast/parser/as/test_interface3.ts index 71b0ec7f296c5570472170991b8157b70be39222..e6657f866d48af789239f28c7e939182aa7675d5 100644 --- a/ets2panda/test/ast/parser/as/test_interface3.ts +++ b/ets2panda/test/ast/parser/as/test_interface3.ts @@ -18,4 +18,5 @@ interface foo { a(b?: i32) /* @@ label */} -/* @@@ label Error SyntaxError: Type expected. */ + +/* @@@ label Error Syntax error ESY0000: Type expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_interface4.ts b/ets2panda/test/ast/parser/as/test_interface4.ts index 384bfe9f237a2591a1df751130cf19b2edcc62b7..e43544b82bb4a7f8939f5baa9f59803aed2b7ec8 100644 --- a/ets2panda/test/ast/parser/as/test_interface4.ts +++ b/ets2panda/test/ast/parser/as/test_interface4.ts @@ -18,4 +18,5 @@ interface foo { [key/* @@ label */]: externref } -/* @@@ label Error SyntaxError: ':' expected. */ + +/* @@@ label Error Syntax error ESY0000: ':' expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_interface5.ts b/ets2panda/test/ast/parser/as/test_interface5.ts index 641b7795f3621a1715960a98df4e153f5e012895..d61b34ddb7c9afcfb30fff4572b94721eefb4659 100644 --- a/ets2panda/test/ast/parser/as/test_interface5.ts +++ b/ets2panda/test/ast/parser/as/test_interface5.ts @@ -18,4 +18,5 @@ interface foo { [/* @@ label */5]: void } -/* @@@ label Error SyntaxError: Identifier expected. */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_object_literal1.ts b/ets2panda/test/ast/parser/as/test_object_literal1.ts index b54bf51c8d1e048b1c7d1817812c57e4b2c68f87..41b47d3e5afe64684582380b977459328c85b395 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal1.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal1.ts @@ -16,4 +16,5 @@ let a = { /* @@ label */[5 + 6] } -/* @@@ label Error SyntaxError: Identifier expected */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_object_literal2.ts b/ets2panda/test/ast/parser/as/test_object_literal2.ts index ee3c93ead45b7a9ee1f17afc100e6fc5d6c4c261..852f5ffb1092e60948273792c418846aa361c0af 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal2.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal2.ts @@ -16,4 +16,5 @@ let a = { "foo" /* @@ label */} -/* @@@ label Error SyntaxError: ':' expected */ + +/* @@@ label Error Syntax error ESY0000: ':' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_object_literal3.ts b/ets2panda/test/ast/parser/as/test_object_literal3.ts index f500d92a7194cde6aaf0d7e0252fcbfed5ef206a..c22ac351d573e8b6edb31ef98a70be36e292eb8b 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_object_literal4.ts b/ets2panda/test/ast/parser/as/test_object_literal4.ts index 9a60c0609f103835e2f5738f94debf74c5ab0918..2d783a2a8d8dfaf1970b429eca97bb07d02f3b69 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal4.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal4.ts @@ -16,4 +16,5 @@ let a = { /* @@ label */...k } -/* @@@ label Error SyntaxError: Identifier expected */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_type_annotation1.ts b/ets2panda/test/ast/parser/as/test_type_annotation1.ts index 28921726e07922a057f12b17e103f53bfc9dca5f..9b6d75ad0e9bb426a79695cc156101e2dfa0dc2c 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation1.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation1.ts @@ -16,5 +16,5 @@ let a: i32 | -/* @@@ label Error SyntaxError: 'null' expected */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 20:74 Error Syntax error ESY0000: 'null' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_type_annotation2.ts b/ets2panda/test/ast/parser/as/test_type_annotation2.ts index 7bf7f993c79227052341dcfd08b7641bc19ca547..a29c17a1f181fe124765048955915348b9f5b628 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation2.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation2.ts @@ -16,5 +16,5 @@ let a: i32[ -/* @@@ label Error SyntaxError: ']' expected */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 20:71 Error Syntax error ESY0000: ']' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_type_annotation3.ts b/ets2panda/test/ast/parser/as/test_type_annotation3.ts index ac54ea313b4e8d78ecd1e5179121c85d0c16a083..a0c40fd3ba7be1ebb910c5c7c08dfd663826e56b 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation3.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation3.ts @@ -16,4 +16,5 @@ let a: (a: i32, b/* @@ label */) => void -/* @@@ label Error SyntaxError: ':' expected */ + +/* @@@ label Error Syntax error ESY0000: ':' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_type_annotation4.ts b/ets2panda/test/ast/parser/as/test_type_annotation4.ts index e07712001d88802c78c05c04dff814512724e713..4d06322bb3d9051a0a9dc92bbed1bf7b6a802868 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation4.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation4.ts @@ -16,5 +16,5 @@ let a: (a: i32, b: u8) => -/* @@@ label Error SyntaxError: Type expected */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 20:72 Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_type_annotation5.ts b/ets2panda/test/ast/parser/as/test_type_annotation5.ts index a31c6614bec123e5069bc998a153ef2391693b67..84a0090e4e0f557b001060d83423af3ab073b410 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation5.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation5.ts @@ -16,4 +16,5 @@ let a: (a: i32, b: u8) /* @@ label */u8 -/* @@@ label Error SyntaxError: '=>' expected */ + +/* @@@ label Error Syntax error ESY0000: '=>' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_type_annotation6.ts b/ets2panda/test/ast/parser/as/test_type_annotation6.ts index 246090651f47a79515c96d3d8fad035548a88130..dcb97a8cf6a097cbdafb093c7d316fef44c4fe1d 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation6.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation6.ts @@ -16,5 +16,5 @@ let b: ((a: i32, b?: void, c: u8) => i32) | -/* @@@ label Error SyntaxError: 'null' expected */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 20:74 Error Syntax error ESY0000: 'null' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/AllowSequence.ets b/ets2panda/test/ast/parser/ets/AllowSequence.ets index 54699864e1235d2fe6fba812836e27f499bcd4f4..066fd4ffdf3ad1478116ef876cd786a82a3b9ccd 100644 --- a/ets2panda/test/ast/parser/ets/AllowSequence.ets +++ b/ets2panda/test/ast/parser/ets/AllowSequence.ets @@ -21,4 +21,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets b/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets index f7ba6eb82c867054f00c3fc387fffdcfec8a5cb7..a253ecca016833cbabca0107aa43908d5a0cdfb4 100644 --- a/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets +++ b/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets @@ -15,5 +15,5 @@ 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 + +/* @@ label *//* @@? 19:116 Error Syntax error ESY0106: The modifier async cannot be used in an ambient context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets index d2e65d59b7e3de646ca36653ed250f978c5d6f17..9b8889cad7655abac14c8894a3d1dc67bdcef3d6 100644 --- a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets +++ b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets @@ -20,4 +20,5 @@ function main(){ let b = $$a; } -/* @@? 20:10 Error TypeError: Unresolved reference $$a */ + +/* @@? 20:10 Error Semantic error ESE0143: Unresolved reference $$a */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets index 478ef10f026592328b21b761f75c21dcc6950d3f..09cfca66ad282e80078983d318c254e9e32347e5 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets index dece3f1eb2a782ee226e89c7e517c9270d38dc15..f57c582bafdb6f683d4a2de455ccfe514649f707 100644 --- a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets +++ b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets @@ -23,4 +23,5 @@ class A { } } -/* @@? 22:28 Error TypeError: Unresolved reference $$this */ + +/* @@? 22:28 Error Semantic error ESE0143: Unresolved reference $$this */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets b/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets index 65be6290cc28c14c1e1c50a09f5e9ae7ea6d8c4d..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(){ ] } -/* @@@ label 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 ea7ab949d18acc732ada531af4acf9454910abe8..99d53840e5bd492c38fa047368bbf8f0d01b4f34 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets @@ -41,22 +41,23 @@ 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: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ -/* @@? 42:28 Error SyntaxError: Expected ';', got ')'. */ -/* @@? 42:28 Error SyntaxError: Invalid left-hand side in 'For[In/Of]Statement'. */ + +/* @@? 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 ESY105822: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ +/* @@? 42:28 Error Syntax error ESY0230: Expected ';', got ')'. */ +/* @@? 42:28 Error Syntax error ESY0167: Invalid left-hand side in 'For[In/Of]Statement'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets b/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets index 4b647af6a8464a13a0f8fc8a66329c457f7c0786..68f88e5551707120ac8904952408f470cbe10561 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets @@ -166,130 +166,131 @@ 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: 'this' cannot be referenced from a static 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 SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 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: Catch clause variable cannot have an initializer. */ -/* @@? 137:16 Error SyntaxError: Expected ')', got '='. */ -/* @@? 137:16 Error SyntaxError: Expected '{', got '='. */ -/* @@? 137:16 Error SyntaxError: Unexpected token '='. */ -/* @@? 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: Hard keyword 'let' cannot be used as identifier */ -/* @@? 161:9 Error SyntaxError: Identifier expected, got 'let'. */ -/* @@? 162:9 Error SyntaxError: Identifier expected, got 'const'. */ -/* @@? 162:9 Error SyntaxError: Hard keyword 'const' cannot be used as identifier */ -/* @@? 163:9 Error SyntaxError: Identifier expected, got 'new'. */ -/* @@? 163:9 Error SyntaxError: Hard keyword 'new' cannot be used as identifier */ -/* @@? 164:5 Error TypeError: This expression is not callable. */ -/* @@? 165:5 Error TypeError: This expression is not callable. */ -/* @@? 166:5 Error TypeError: No matching call signature */ -/* @@? 166:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 296: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 ESE0202: 'this' cannot be referenced from a static 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 Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 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 ESY0101: Catch clause variable cannot have an initializer. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected ')', got '='. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected '{', got '='. */ +/* @@? 137:16 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 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 ESY0316: Hard keyword 'let' cannot be used as identifier */ +/* @@? 161:9 Error Syntax error ESY0224: Identifier expected, got 'let'. */ +/* @@? 162:9 Error Syntax error ESY0224: Identifier expected, got 'const'. */ +/* @@? 162:9 Error Syntax error ESY0316: Hard keyword 'const' cannot be used as identifier */ +/* @@? 163:9 Error Syntax error ESY0224: Identifier expected, got 'new'. */ +/* @@? 163:9 Error Syntax error ESY0316: Hard keyword 'new' cannot be used as identifier */ +/* @@? 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 ESE0128: No matching call signature */ +/* @@? 166:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 296:80 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets b/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets index 54308f81cd7fe710064c2adf0f80c7f1c401ea89..c8b2d9b8977ffeb4b9aebb8cf34b1a1f35e1d711 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets @@ -122,57 +122,58 @@ 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 'Int' has no call signatures. */ -/* @@? 72:24 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 77:33 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 78:24 Error TypeError: Type 'Int' 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 'Int' 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 'Int' has no call signatures. */ +/* @@? 72:24 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 77:33 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 78:24 Error Semantic error ESE0002: Type 'Int' 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 'Int' 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets b/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets index 4001142bd14ed4aef7788fdf0c2925ba790e279e..2509d6803ac6b0b0da551f6bd5258e6b26afd419 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets @@ -15,7 +15,8 @@ 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 ']'. */ \ No newline at end of file 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..7c04b9e7f1f299572f42c2925c80ab4d4e9a297c 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,9 @@ 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 ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets b/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets index e2021d154bfe14f8fe495ff5c3ec5f61ffc42718..89c9e60b63f600772a2471e686a18a921ed686ca 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets @@ -24,7 +24,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets b/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets index 44f291da40da477a7b0108f54aa3a5b88ac41c43..b5811baa81a4f14f7bf01718302ef566b4ed88cd 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets @@ -23,6 +23,7 @@ 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 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ +/* @@? 22:13 Warning 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 */ \ No newline at end of file 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..f99ac9aba5eb83603c54f4363498b31adebacac3 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,6 @@ 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 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/parser/ets/FixedArray/forOfCustomIterator1.ets b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets index 1261d3366d8d4e674a9f1501da90c146b3363af3..fbfb145f5a72640ece468245275f28de3d60abe8 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets @@ -49,6 +49,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets index 2c650b8cc120f30adbdfc5bf2e5b36135e8bbb5d..a21ab5e358313593d324c13d24a6034347a8199c 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets @@ -47,6 +47,7 @@ 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. */ \ No newline at end of file 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..b9b7690215ca9acc7868a8e886a8758f5f8f17d0 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,5 @@ 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'. */ \ No newline at end of file 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..da90f1f0c2ad1d3e6cddde5a5d605e5d0dc30abb 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,6 @@ 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 '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets b/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets index 3c8a14a8176d96137d9ed63cfa37fdb31bdff8a6..476e446bf70a41bdb2723dbc3558561bee30a8ba 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets @@ -23,19 +23,20 @@ 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 ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets b/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets index 7c1ccaa0ee30e698e672f47843ba00664f51dd60..8d82a3bffbd10ed5d0c09557f1cf33cf428fd914 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets @@ -14,4 +14,5 @@ */ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/illegal_union_member_exp.ets b/ets2panda/test/ast/parser/ets/FixedArray/illegal_union_member_exp.ets index a49879c670f44037f457897496ce555d512c3d98..cb381a4c8250c41d99b97e53800f4d7413657ce2 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/illegal_union_member_exp.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/illegal_union_member_exp.ets @@ -22,4 +22,4 @@ function main(): void { b.toString(); } -/* @@? 22:19 Error TypeError: Type String|Int[] is illegal in union member expression. */ + diff --git a/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets b/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets index 5e4dcd90af1268a7da5c3d5f0265b4db417bfdfb..1d60f03663a6b00fa064e0b288e9989a12cca04b 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets @@ -37,49 +37,52 @@ 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 ESY0227: Unexpected token '>'. */ +/* @@? 24:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 24:23 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 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 ESY0227: Unexpected token '>'. */ +/* @@? 26:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 26:23 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 26:23 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 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 ESY0227: Unexpected token '?'. */ +/* @@? 28:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 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: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 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 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 ']'. */ \ No newline at end of file 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..83dabe32f1a1447cdaa4d6060cc765c9ca349cbe 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,5 @@ 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. */ \ No newline at end of file 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..4101bd797533c29319856b5472f8161feb999167 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,5 @@ 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 */ \ No newline at end of file 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..e79089b73291d05e2629079b36afa4fce85ed528 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,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets b/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets index 9efe83953a688afbdfa0cd69beeac4765cb88e62..46a1a2930fe48ed014145051410a026af1e5b008 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets @@ -30,8 +30,9 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets b/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets index 3bf1015d7a8c86fcd55daca16a8fb31d0f4cc634..db40760e281e6055f30a0287fbe49f7ff2932b32 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets @@ -18,5 +18,6 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets b/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets index 7f0a390e842243a0ddf2dee23729b7c65a284c2d..73df1d782ee6d875c1950531335aa628ab2cc3ff 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file 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..1adcc37e5ef56f3dcdf21ddfbdb19b48fd78d6a5 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,8 @@ 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' */ \ No newline at end of file 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..edd7acf946b5bc6bce6509e42984bd631c6e5420 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,6 @@ 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 */ \ No newline at end of file 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..7e575432f30902e0bb26df60f8379d5ddcdc73f6 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,5 @@ 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' */ \ No newline at end of file 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 d989ef82179c3964bb21c98cfb5350849a6d38f8..6a8ee9c55896de7a513dee278091f6b287453d2f 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets @@ -57,9 +57,9 @@ 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: Non-optional property 'salary' in type 'PersonInfoInterface' is missing in object literal. */ -/* @@@ label2 Error TypeError: Non-optional property 'age' in type 'PersonInfoInterface' is missing in object literal. */ -/* @@@ label3 Error TypeError: type PersonInfoInterface has no property named agee */ -/* @@@ label4 Error TypeError: type PersonInfoInterface has no property named other */ \ No newline at end of file +/* @@@ 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 ESE0400: Non-optional property 'salary' in type 'PersonInfoInterface' is missing in object literal. */ +/* @@@ label2 Error Semantic error ESE0400: Non-optional property 'age' in type 'PersonInfoInterface' is missing in object literal. */ +/* @@@ label3 Error Semantic error ESE0065: type PersonInfoInterface has no property named agee */ +/* @@@ label4 Error Semantic error ESE0065: type PersonInfoInterface has no property named other */ \ No newline at end of file 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..3d48ab061903c4416c4855ae707ec3e21fcc3f2e 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,8 @@ 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 '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets b/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets index b663614e7a9ab639b15eb5038e0c0e358497b8c1..c900c1a67ad78e27bac47c89e16819594323ff34 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets @@ -20,7 +20,8 @@ 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. */ \ No newline at end of file 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..2d54a50504ab76102aed3651919c2fd3669f6c6e 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,13 @@ 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 '}'. */ \ No newline at end of file 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..0fa84a8a99935a3ed4acefaa500341964166368c 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,5 @@ 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. */ \ No newline at end of file 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..7fd0294bb2622325b75caba042263c6c3be3bdb0 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,5 @@ 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' */ \ No newline at end of file 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..a69858781cd59fbe61e22bb13ff81cb6f94093ee 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,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets b/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets index cd7cb9cd0ec039d824c527c5438c83095118f661..92e873087f06135ad14e698e130f2f06e6f8d256 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets @@ -44,4 +44,5 @@ 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 */ \ No newline at end of file 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..6aa3a34f448962f256d3c7f00a214e15f6861012 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,36 @@ 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 ','. */ \ No newline at end of file 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..fea86a7916f12a2e0096b4c5132ca9d2eaad1b6d 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,15 @@ 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 ']'. */ \ No newline at end of file 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..07f4450b46afc527f7af0f16f3fb7b0a09a283c8 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,9 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets b/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets index c67ef9ef12e25480ad7399cbe6b40b12f0eb54e8..1897289ca14658495a3e353a37b7768d3545ee08 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. */ \ No newline at end of file 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..d8f1cd5135d41fedc3c50b374e3f1d38f89919d7 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,5 @@ let x: FixedArray = [1,2,3] let y: int = x [0 -/* @@? 20:1 Error SyntaxError: Unexpected token, expected ']'. */ + +/* @@? 20:76 Error Syntax error ESY0228: Unexpected token, expected ']'. */ \ No newline at end of file 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 37de6fe998ab731177911580d49d617a788b01c8..6df806cf96ab79dee59aef426b089a1aa87788b9 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,17 @@ 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: Indexed access is not supported for such expression type. */ -/* @@? 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 ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 17:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ \ No newline at end of file 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..eef8b41b8267cc3f9ac9634c4d6d7259efd8856c 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,13 @@ 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 '{'. */ \ No newline at end of file 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..783da22a8d688bcc0128273d93bedae5b6075003 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,11 @@ 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 ')'. */ \ No newline at end of file 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..d3f630d64bf077d2ac4267f17ba17ac9fed58acb 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,5 @@ let r: (FixedArray<((number))>/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected ')'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ')'. */ \ No newline at end of file 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..28c74369be17d4cb531ec4b6e8b49b1fb56023cc 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,6 @@ // 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:79 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ \ No newline at end of file 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..baac4244740c64c4c9fea1dddaff0e454f4eec9c 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,8 @@ 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:79 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ \ No newline at end of file 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..7d5351eacc0be30c3de94b49cfbf6a2d84b538de 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,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets b/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets index e725fcbc016c51910e9c82860d64cfea175df329..9d9ec2db4fc78b59f4f82da8da907940b9d5a33a 100644 --- a/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets +++ b/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets @@ -19,4 +19,4 @@ function main(){ ] } -/* @@@ label 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/InferTypeParamFromParam2.ets b/ets2panda/test/ast/parser/ets/InferTypeParamFromParam2.ets index f905d8b0c4f95bc601460dda09c3c962832c83c3..6b6d589d55d9ee8d4decfef52394efab113769e5 100644 --- a/ets2panda/test/ast/parser/ets/InferTypeParamFromParam2.ets +++ b/ets2panda/test/ast/parser/ets/InferTypeParamFromParam2.ets @@ -31,5 +31,4 @@ function main() { let a = func(new B()); } -/* @@@ label Error TypeError: No matching call signature for staticFunction(B) */ -/* @@? 31:13 Error TypeError: Cannot use type 'void' as value. */ + diff --git a/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets b/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets index 42a51a43a820e9bf4dc5f2e6af4cc21bb4ff18fa..13802fb87ad55f89d5da4ed8fbfa027b72ab2560 100644 --- a/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets +++ b/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets @@ -26,5 +26,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets index 1082b7ab7a577e7c3d043b8416a00901eb533320..ae6179c23f466a85a409a878af7f3f54b6b26350 100644 --- a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets +++ b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets @@ -23,4 +23,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets index 351a1bab9fb616dbb08a9786339c8b6ce1277877..c1a1ee6037df1d071de2a6cc4aeafcf84b4f20c6 100644 --- a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets +++ b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets @@ -23,4 +23,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets b/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets index dabebff9fd8df9cc42820a31acfe671886bef163..38f48542d4c33516483f3e7794e5be0a523790ef 100644 --- a/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets +++ b/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets @@ -18,7 +18,8 @@ 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: Identifier expected, got 'end of stream'. */ + +/* @@? 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 ESY0224: Identifier expected, got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidClasses.ets b/ets2panda/test/ast/parser/ets/InvalidClasses.ets index 9e9343b6b4a5cb9ebfbbf4904500dbd510d962a5..dd6c4a51058a028acb0292efbaf4ec93b840e9a4 100644 --- a/ets2panda/test/ast/parser/ets/InvalidClasses.ets +++ b/ets2panda/test/ast/parser/ets/InvalidClasses.ets @@ -78,55 +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:36 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:20 Error SyntaxError: Abstract method cannot be async. */ -/* @@? 27:20 Error TypeError: Non abstract class has abstract method. */ -/* @@? 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:11 Error SyntaxError: The special predefined method '$_get' should have exactly one required parameter. */ -/* @@? 41:11 Error SyntaxError: The special predefined method '$_get' cannot be asynchronous. */ -/* @@? 41:16 Error TypeError: Return type of async function must be 'Promise'. */ -/* @@? 45:11 Error SyntaxError: The special predefined method '$_set' should have exactly two required parameter. */ -/* @@? 45:11 Error SyntaxError: The special predefined method '$_set' cannot be asynchronous. */ -/* @@? 45:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 47:11 Error SyntaxError: The special predefined method '$_iterator' cannot be asynchronous. */ -/* @@? 47:11 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: Identifier expected, got 'static'. */ -/* @@? 67:16 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 67:16 Error SyntaxError: Identifier expected, got 'static'. */ -/* @@? 67:16 Error SyntaxError: Identifier expected. */ -/* @@? 72:5 Error SyntaxError: Identifier expected, got 'class'. */ -/* @@? 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:36 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:20 Error Syntax error ESY0118: Abstract method cannot be async. */ +/* @@? 27:20 Error Semantic error ESE0019: Non abstract class has abstract method. */ +/* @@? 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:11 Error Syntax error ESY0221: The special predefined method '$_get' should have exactly one required parameter. */ +/* @@? 41:11 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:11 Error Syntax error ESY0222: The special predefined method '$_set' should have exactly two required parameter. */ +/* @@? 45:11 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:11 Error Syntax error ESY0220: The special predefined method '$_iterator' cannot be asynchronous. */ +/* @@? 47:11 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 ESY0224: Identifier expected, got 'static'. */ +/* @@? 67:16 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 67:16 Error Syntax error ESY0224: Identifier expected, got 'static'. */ +/* @@? 67:16 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 72:5 Error Syntax error ESY0224: Identifier expected, got 'class'. */ +/* @@? 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidExpressions.ets b/ets2panda/test/ast/parser/ets/InvalidExpressions.ets index 4a96a1fe0bef86b137e37cc7ba6366f84e05f169..02e3522215fd8189fb468062da979ceec67247b3 100644 --- a/ets2panda/test/ast/parser/ets/InvalidExpressions.ets +++ b/ets2panda/test/ast/parser/ets/InvalidExpressions.ets @@ -57,56 +57,59 @@ function f6(a: int = 9 @@): void; function f7(a: (b: int = 0) => int): void { } -/* @@? 16:35 Error SyntaxError: Rest parameter cannot have the default value. */ -/* @@? 16:37 Error SyntaxError: Identifier is needed here. */ -/* @@? 16:40 Error TypeError: Cannot find type 'bool'. */ -/* @@? 17:20 Error TypeError: Unresolved reference b */ -/* @@? 17:21 Error SyntaxError: Unexpected token '...'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:24 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:13 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 18:13 Error TypeError: Circular dependency detected for identifier: x */ -/* @@? 18:14 Error TypeError: Variable 'x' is accessed before it's initialization. */ -/* @@? 18:35 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 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. */ -/* @@? 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. */ -/* @@? 24:22 Error SyntaxError: Unexpected token ')'. */ -/* @@? 27:5 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 27:8 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 28:7 Error SyntaxError: Invalid left-hand side operator. */ -/* @@? 30:5 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 30:5 Error SyntaxError: Invalid left-hand side in prefix operation. */ -/* @@? 30:8 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 33:27 Error SyntaxError: Rest parameter cannot have the default value. */ -/* @@? 33:29 Error SyntaxError: Identifier is needed here. */ -/* @@? 33:41 Error SyntaxError: Not enable default value with default undefined. */ -/* @@? 35:10 Error SyntaxError: Unexpected token ':'. */ -/* @@? 35:10 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 35:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 35:16 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 37:5 Error TypeError: Variable 'x' has already been declared. */ -/* @@? 37:15 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 38:5 Error TypeError: Variable 'x' has already been declared. */ -/* @@? 38:9 Error TypeError: This expression is not constructible. */ -/* @@? 39:5 Error TypeError: Variable 'x' has already been declared. */ -/* @@? 39:9 Error TypeError: This expression is not constructible. */ -/* @@? 39:16 Error SyntaxError: Unexpected token '{'. */ -/* @@? 47:15 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 47:17 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 48:5 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 48:5 Error SyntaxError: Expected '=>', got '}'. */ -/* @@? 48:5 Error SyntaxError: Unexpected token '}'. */ -/* @@? 51:13 Error SyntaxError: Unexpected token '.99'. */ -/* @@? 51:16 Error SyntaxError: Invalid left-hand side operator. */ -/* @@? 55:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 55:24 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 55:24 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 55:26 Error SyntaxError: Unexpected token ')'. */ -/* @@? 55:27 Error SyntaxError: Unexpected token ':'. */ -/* @@? 55:29 Error TypeError: Unresolved reference void */ -/* @@? 57:26 Error SyntaxError: Default value is allowed only for optional parameters. */ + +/* @@? 16:35 Error Syntax error ESY0192: Rest parameter cannot have the default value. */ +/* @@? 16:37 Error Syntax error ESY0131: Identifier is needed here. */ +/* @@? 16:40 Error Semantic error ESE0371: Cannot find type 'bool'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 17:21 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:24 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:14 Error Semantic error ESE0365: Variable 'x' is accessed before it's initialization. */ +/* @@? 18:35 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 18:36 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 19:5 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 19:12 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 22:23 Error Syntax error ESY0132: Not enable default value with default undefined. */ +/* @@? 24:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 24:22 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 24:22 Error Syntax error ESY0128: You didn't set the value. */ +/* @@? 24:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 27:5 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 27:8 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 27:10 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 28:7 Error Syntax error ESY0053: Invalid left-hand side operator. */ +/* @@? 30:5 Error Syntax error ESY0071: Invalid left-hand side in prefix operation. */ +/* @@? 30:5 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 30:8 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 33:27 Error Syntax error ESY0192: Rest parameter cannot have the default value. */ +/* @@? 33:29 Error Syntax error ESY0131: Identifier is needed here. */ +/* @@? 33:41 Error Syntax error ESY0132: Not enable default value with default undefined. */ +/* @@? 35:10 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 35:12 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 35:16 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 37:5 Error Semantic error ESE0351: Variable 'x' has already been declared. */ +/* @@? 37:15 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 37:18 Error Syntax error ESY0227: Unexpected token '77'. */ +/* @@? 38:5 Error Semantic error ESE0351: Variable 'x' has already been declared. */ +/* @@? 39:5 Error Semantic error ESE0351: Variable 'x' has already been declared. */ +/* @@? 39:16 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 47:15 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 47:17 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 47:17 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 48:5 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 48:5 Error Syntax error ESY0230: Expected '=>', got '}'. */ +/* @@? 48:5 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 50:5 Error Semantic error ESE0140: No matching call signature with trailing lambda */ +/* @@? 51:13 Error Syntax error ESY0227: Unexpected token '.99'. */ +/* @@? 51:16 Error Syntax error ESY0053: Invalid left-hand side operator. */ +/* @@? 55:1 Error Syntax error ESY0227: Unexpected token 'function'. */ +/* @@? 55:12 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 55:24 Error Syntax error ESY0010: There is no any node to insert at the placeholder position. */ +/* @@? 55:24 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 55:24 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@? 55:26 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 55:27 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 55:29 Error Syntax error ESY0295: void is a predefined type, cannot be used as an identifier */ +/* @@? 57:1 Error Syntax error ESY0227: Unexpected token 'function'. */ +/* @@? 57:26 Error Syntax error ESY0133: Default value is allowed only for optional parameters. */ +/* @@? 115:80 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets b/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets index 12d43efaec8076c8234019e630853a390a535443..b92df056f174f1c71f004fa1eb0adb7435169da9 100644 --- a/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets +++ b/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets @@ -36,45 +36,46 @@ 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 ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets b/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets index 899de53972fe0f73745efbef8c0b7f314b523183..6ccacb6f284a414d2f0e14c413b8c0fe26b36754 100644 --- a/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets +++ b/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets @@ -22,7 +22,8 @@ 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 */ + +/* @@? 17:12 Error Semantic error ESE0086: Getter must return a value */ +/* @@? 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. */ +/* @@? 23:7 Error Syntax error ESY0295: int is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidStatements1.ets b/ets2panda/test/ast/parser/ets/InvalidStatements1.ets index 07c11ed802bb88da3e3f60fc25813ed724ceb06f..23c32b47574035bb892365452440c95a05e13c13 100644 --- a/ets2panda/test/ast/parser/ets/InvalidStatements1.ets +++ b/ets2panda/test/ast/parser/ets/InvalidStatements1.ets @@ -51,21 +51,22 @@ 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:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidStatements2.ets b/ets2panda/test/ast/parser/ets/InvalidStatements2.ets index c3d305e4249c2ac2c82749f9db262728a249e0e3..e0af6aaf4dab9d4d7cb3827bd4924e7006232c54 100644 --- a/ets2panda/test/ast/parser/ets/InvalidStatements2.ets +++ b/ets2panda/test/ast/parser/ets/InvalidStatements2.ets @@ -50,15 +50,16 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidStatements3.ets b/ets2panda/test/ast/parser/ets/InvalidStatements3.ets index be3ba4c48a4f7d2d01a78924169a03429709d4d8..9f139e2aed46b9a1d3e02f773817b77a4e9a3585 100644 --- a/ets2panda/test/ast/parser/ets/InvalidStatements3.ets +++ b/ets2panda/test/ast/parser/ets/InvalidStatements3.ets @@ -41,22 +41,23 @@ 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: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ -/* @@? 42:28 Error SyntaxError: Expected ';', got ')'. */ -/* @@? 42:28 Error SyntaxError: Invalid left-hand side in 'For[In/Of]Statement'. */ + +/* @@? 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 ESY105822: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ +/* @@? 42:28 Error Syntax error ESY0230: Expected ';', got ')'. */ +/* @@? 42:28 Error Syntax error ESY0167: Invalid left-hand side in 'For[In/Of]Statement'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidTyped.ets b/ets2panda/test/ast/parser/ets/InvalidTyped.ets index c194bd8831123932fdc3792308b26288e5ad64c2..36c29d58e474e38038fc1fb47745e537ad7b321a 100644 --- a/ets2panda/test/ast/parser/ets/InvalidTyped.ets +++ b/ets2panda/test/ast/parser/ets/InvalidTyped.ets @@ -30,26 +30,27 @@ 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:76 Error Syntax error ESY0228: Unexpected token, expected '}'. */ \ No newline at end of file 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..4dda4752ef1aba9b7ca0290641c82217920c2c4f 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,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets b/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets index 2eca08c7dc33c5f4079a4225bb99c53eb59c3b70..72fae9d56dc7424e51d46adc2479a48450b1f810 100644 --- a/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets +++ b/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets @@ -29,12 +29,13 @@ 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:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets b/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets index 5db33dcca04e3611534c95b28b872d732fbd7ca9..cf94421e722be60dc2063663c8ad50fa3433f7fc 100644 --- a/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets +++ b/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets @@ -20,8 +20,9 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets b/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets index 6e6cf94a8ebe33e7f67bf56d675350b0c6b34637..99d9a6cae3b89a00049dfeeca08c6859750595e1 100644 --- a/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets +++ b/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets @@ -166,127 +166,128 @@ 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: 'this' cannot be referenced from a static 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: Unexpected token 'int'. */ -/* @@? 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: Catch clause variable cannot have an initializer. */ -/* @@? 137:16 Error SyntaxError: Expected ')', got '='. */ -/* @@? 137:16 Error SyntaxError: Expected '{', got '='. */ -/* @@? 137:16 Error SyntaxError: Unexpected token '='. */ -/* @@? 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: Identifier expected, got 'const'. */ -/* @@? 162:9 Error SyntaxError: Hard keyword 'const' cannot be used as identifier */ -/* @@? 163:9 Error SyntaxError: Identifier expected, got 'new'. */ -/* @@? 163:9 Error SyntaxError: Hard keyword 'new' cannot be used as identifier */ -/* @@? 164:5 Error TypeError: This expression is not callable. */ -/* @@? 165:5 Error TypeError: This expression is not callable. */ -/* @@? 166:5 Error TypeError: No matching call signature */ -/* @@? 166:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 293: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 ESE0202: 'this' cannot be referenced from a static 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 ESY0227: Unexpected token 'int'. */ +/* @@? 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 ESY0101: Catch clause variable cannot have an initializer. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected ')', got '='. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected '{', got '='. */ +/* @@? 137:16 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 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 ESY0224: Identifier expected, got 'const'. */ +/* @@? 162:9 Error Syntax error ESY0316: Hard keyword 'const' cannot be used as identifier */ +/* @@? 163:9 Error Syntax error ESY0224: Identifier expected, got 'new'. */ +/* @@? 163:9 Error Syntax error ESY0316: Hard keyword 'new' cannot be used as identifier */ +/* @@? 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 ESE0128: No matching call signature */ +/* @@? 166:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 293:80 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/SmartCast_1.ets b/ets2panda/test/ast/parser/ets/SmartCast_1.ets index 003aeff8da6b1b48d1888e6968c8c76afbefff9b..9be9517aef0e5c6278a7fca3520884fb1156c538 100644 --- a/ets2panda/test/ast/parser/ets/SmartCast_1.ets +++ b/ets2panda/test/ast/parser/ets/SmartCast_1.ets @@ -36,4 +36,4 @@ function main() { foo(undefined); } -/* @@@ label Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ + diff --git a/ets2panda/test/ast/parser/ets/SmartCast_2.ets b/ets2panda/test/ast/parser/ets/SmartCast_2.ets index 771614964cb87abed844a208f01db95f5722a681..2cf821d4fd841022a45d0083f7a16ecb0cfbd82e 100644 --- a/ets2panda/test/ast/parser/ets/SmartCast_2.ets +++ b/ets2panda/test/ast/parser/ets/SmartCast_2.ets @@ -36,4 +36,4 @@ function main() { foo(undefined); } -/* @@@ label Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ + diff --git a/ets2panda/test/ast/parser/ets/SmartCast_3.ets b/ets2panda/test/ast/parser/ets/SmartCast_3.ets index d65b202e6a6b4be713f17263f98fe379fa4ee92e..6ab869f977a60caad3b3267867ee6894c469c41e 100644 --- a/ets2panda/test/ast/parser/ets/SmartCast_3.ets +++ b/ets2panda/test/ast/parser/ets/SmartCast_3.ets @@ -23,4 +23,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/SmartCast_4.ets b/ets2panda/test/ast/parser/ets/SmartCast_4.ets index 68cd1d342b6ee0da47935340c2a4d1e9939f1896..41ce25fa45d1da28e6cd85c7e64af55e4d14bedc 100644 --- a/ets2panda/test/ast/parser/ets/SmartCast_4.ets +++ b/ets2panda/test/ast/parser/ets/SmartCast_4.ets @@ -25,4 +25,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/StringFasta.ets b/ets2panda/test/ast/parser/ets/StringFasta.ets index 47e9de0529e51f3eea5905699b433d282c3d8cbd..9d4e13d4abe9b3e1f6c5f1c90e3deee414e0dcc6 100644 --- a/ets2panda/test/ast/parser/ets/StringFasta.ets +++ b/ets2panda/test/ast/parser/ets/StringFasta.ets @@ -122,57 +122,58 @@ 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 'Int' has no call signatures. */ -/* @@? 72:24 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 77:33 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 78:24 Error TypeError: Type 'Int' 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 'Int' 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 'Int' has no call signatures. */ +/* @@? 72:24 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 77:33 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 78:24 Error Semantic error ESE0002: Type 'Int' 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 'Int' 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/StructTest1.ets b/ets2panda/test/ast/parser/ets/StructTest1.ets index e6ffe7bc439265c2103e24e8de0f68b546ff6d84..f3d6f047ca02c191149dc3c4cdefa51a4f84b565 100644 --- a/ets2panda/test/ast/parser/ets/StructTest1.ets +++ b/ets2panda/test/ast/parser/ets/StructTest1.ets @@ -20,4 +20,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/StructTest2.ets b/ets2panda/test/ast/parser/ets/StructTest2.ets index e660ecd89ab79bd1e076ae25aa30aad86190c9fc..018c41dbbee212d2ba27b5a0d9ad437706e52a15 100644 --- a/ets2panda/test/ast/parser/ets/StructTest2.ets +++ b/ets2panda/test/ast/parser/ets/StructTest2.ets @@ -21,4 +21,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/StructTest3.ets b/ets2panda/test/ast/parser/ets/StructTest3.ets index 309547f41af2ee4fcccced5f503cd4a37387f4ee..036fc8d47279140c9fbd26e606dccc072f85cdc3 100644 --- a/ets2panda/test/ast/parser/ets/StructTest3.ets +++ b/ets2panda/test/ast/parser/ets/StructTest3.ets @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/TypeInferFunc.ets b/ets2panda/test/ast/parser/ets/TypeInferFunc.ets index 83cc64faeb9d367a541f02c2b148d748e87eb629..9c377c58c01813f15622c4145618d80588c8d822 100644 --- a/ets2panda/test/ast/parser/ets/TypeInferFunc.ets +++ b/ets2panda/test/ast/parser/ets/TypeInferFunc.ets @@ -25,4 +25,4 @@ function main(): void { foo(bar); } -/* @@@ label Error TypeError: (...p1: double[]) => void is not compatible with type T */ + diff --git a/ets2panda/test/ast/parser/ets/UnexpectedToken.ets b/ets2panda/test/ast/parser/ets/UnexpectedToken.ets index 7e6119a0261f6b405434189a12bb3c00daabb979..07ac21aac36305b4db81136fc1cd37b25408baa9 100644 --- a/ets2panda/test/ast/parser/ets/UnexpectedToken.ets +++ b/ets2panda/test/ast/parser/ets/UnexpectedToken.ets @@ -20,14 +20,15 @@ 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 '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets b/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets index e498973b8d0e8264654d604fde40d4aef9ee294a..e09bf003131da2b146ce67236c2527644d0b905e 100644 --- a/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets +++ b/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/access_modifier_1.ets b/ets2panda/test/ast/parser/ets/access_modifier_1.ets index 0ef12a8a6e7196f22efea6ba1a7522caa7964099..49afaf334d5bc7f43d2b09e26234593fdcfb07b2 100644 --- a/ets2panda/test/ast/parser/ets/access_modifier_1.ets +++ b/ets2panda/test/ast/parser/ets/access_modifier_1.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/access_modifier_4.ets b/ets2panda/test/ast/parser/ets/access_modifier_4.ets index 2a88b634aebfecf037c640728538f6b20cef0740..4c944ad93faa477c350102b6e039cb6258b1ea4f 100644 --- a/ets2panda/test/ast/parser/ets/access_modifier_4.ets +++ b/ets2panda/test/ast/parser/ets/access_modifier_4.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/accessor_call.ets b/ets2panda/test/ast/parser/ets/accessor_call.ets index 918aaffe3935735b4bb87a0232011df893697547..b143b5334d36678b43db159e7ea6720ad518d06d 100644 --- a/ets2panda/test/ast/parser/ets/accessor_call.ets +++ b/ets2panda/test/ast/parser/ets/accessor_call.ets @@ -21,4 +21,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/accessor_void.ets b/ets2panda/test/ast/parser/ets/accessor_void.ets index 966e7b1f3fbab700adf4e00c218ed136d57f81f5..c6c23870a7caef5230edf08c5d9c1c2c531a8072 100644 --- a/ets2panda/test/ast/parser/ets/accessor_void.ets +++ b/ets2panda/test/ast/parser/ets/accessor_void.ets @@ -17,4 +17,5 @@ class A { get x/* @@ label */(): void { } } -/* @@@ label Error TypeError: Getter must return a value */ + +/* @@@ label Error Semantic error ESE0086: Getter must return a value */ \ No newline at end of file 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..28dd0f8aecbfc671f1ba39463e678e41f898dea5 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,9 @@ 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. */ \ No newline at end of file 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..7a61d359f8f09ad03f9af27a1b39303d253fef4d 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. */ +/* @@? 19:89 Error Syntax error ESY0004: Ambient class declarations must have a body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_declaration.ets b/ets2panda/test/ast/parser/ets/ambient_declaration.ets index ee8515f1165a059d526145237fd3c025eb1347b2..05cbcdb4af087545e00700d0dcc5e7101edaf95b 100644 --- a/ets2panda/test/ast/parser/ets/ambient_declaration.ets +++ b/ets2panda/test/ast/parser/ets/ambient_declaration.ets @@ -15,7 +15,8 @@ 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 '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets index 6089b2b4463dd14697fea0260bc15d1c68a1f96f..e91f23499dd6e522d4463af555cefb457b85b054 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets @@ -19,4 +19,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets index d1c5273f0c247d8fe5770b7b5d1c50c9ca0d7117..ab570b74f20631e9746c449b6cc34b47d65089f8 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! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets index 4f06b3693e3fbd2a9b19aac40a6f7a13b882b374..822b3f2b15dc17df0fe9308e905a5000970fa13d 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets @@ -21,12 +21,13 @@ 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: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 ESY0227: Unexpected token ']'. */ +/* @@? 17:22 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:24 Error Syntax error ESY0295: string is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets index 33e4fff0d11dc57e84ca295c89f2d1d1d37bbc0e..30cbcc62fbaca4c7243dd20e1d073af1be75b78e 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets @@ -21,7 +21,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets index 7ea0d48dd447a6d9c576e9427a2d7b8cfbdc799d..99bdaa0ba147b0cb5db1924f97dd56d1b43aeba2 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets @@ -21,6 +21,7 @@ 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 '?'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets index c9e6ef112ef706cb157758f8bb5c491a2c321b09..9a9b9de0a924b3520de3f9fb1ea773474d735e81 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets @@ -21,6 +21,7 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets index 62e5623e90ffa388b98664a0f462b1a359771abe..c3b0be736fabee36758a993f0f9e90bdc44660db 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets @@ -21,8 +21,9 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets index 8d48e6cdbb09036438645f6213687b9b5b1e042e..d6c04b694d694251f513242363a954bd9b734e32 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets @@ -21,4 +21,5 @@ function main() { let a : A = new A(); } -/* @@@ label Error SyntaxError: Unexpected token '&'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '&'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets b/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets index 749b248c233fe60916526efb13661fe7f6a34cb7..d234a093fbc5edf24841dd913b232f7b55f7d33c 100644 --- a/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets +++ b/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets b/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets index e16e6af524ee46b783bb6009626a844ae903713c..e475a7958f884c676636663be0da995bd11e3098 100644 --- a/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets +++ b/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets @@ -23,4 +23,5 @@ 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` */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets b/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets index 4d3d2c85391c59df3df421d2ec171879cb82d670..e4ab486c4965e840411c86eb42a47411265da5a6 100644 --- a/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets +++ b/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets @@ -27,5 +27,6 @@ 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` */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets b/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets index 9b9498171dc39f5fa495714f101b8f2e9c7d9333..f91f3a0b44f7407b80e744a8fb9a9af1e313a45c 100644 --- a/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets +++ b/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets @@ -23,4 +23,5 @@ 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` */ \ No newline at end of file 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..c560bd04f49cc3711d739d390da26a88e0bfee87 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,7 @@ 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. */ \ No newline at end of file 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..7e6d4909bae1928a0ed50b452881cca2ff8f771f 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,7 @@ 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. */ \ No newline at end of file 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..b43accd274a5e3e78275ea030cf1fa63cdafd3ae 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,6 @@ } -/* @@@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer03.ets index 6d9b6522bd51b0dff2714bdf880f314c3a696073..657cd710f3d7bdc8210f44da6b8863241b60b2fc 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer03.ets @@ -18,4 +18,6 @@ } -/* @@@ label Error TypeError: Unresolved reference a */ + +/* @@? 17:29 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference a */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer04.ets index e1434d9663841122e45e3a2cf9595042fc1e4380..3cb1934616f1218a291d0bd4b0e2527f0d2216f6 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer04.ets @@ -17,5 +17,5 @@ testProperty1: string = /* @@ label */{s:A} } -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 17:44 Error TypeError: type String has no property named s */ + +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer05.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer05.ets index 90ac52450aca5ca05825b6abb9ea083b97afff97..710860f8f0570cbb0f4edddb3c890fb99d38ceac 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer05.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer05.ets @@ -19,5 +19,5 @@ class A{} testProperty1: string = /* @@ label */new A() } -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 19:43 Error TypeError: Type 'A' cannot be assigned to type 'String' */ + +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file 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..b69f082a482303518fd4b9f51d9059ed1afe992d 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,5 @@ 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. */ \ No newline at end of file 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..ab6cfd1e121c079e8c25ddf7c96e4fb14048627f 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,6 @@ @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! */ \ No newline at end of file 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..85de56cc049e90dcd364426adef40ec55f68f2c0 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,5 @@ 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. */ \ No newline at end of file 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..5a2b81a81873034bebb1b7396f30d960f578b2c5 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,5 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ + +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ \ No newline at end of file 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..17196ef0b6a0f94a8e3ef13a95818adb1d7e1a3a 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,5 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ + +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ \ No newline at end of file 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..38d8f61e47c838d84ccd4bfa7a84c4f69799fbb5 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,5 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ + +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ \ No newline at end of file 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..f8f18cc4dcd98a86be94787d858af1786f8fa9c0 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,6 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ + +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ \ No newline at end of file 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..de99b266843bddd1109c1f3e7ca497ce9cde0aa6 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,6 @@ @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! */ \ No newline at end of file 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..ae94679bc0f65e69b182ac0953bf9c949625ce85 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,6 @@ 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. */ \ No newline at end of file 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..a499591967fe55b8309ef3f55c8d5cf1abd28be4 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,5 @@ 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'. */ \ No newline at end of file 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..8522a0d67bc96102bffc017a5ab882c6366eb1da 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,5 @@ class A{} testProperty1 /* @@ label */} -/* @@@ label Error SyntaxError: Missing type annotation for property 'testProperty1'. */ + +/* @@@ label Error Syntax error ESY0001: Missing type annotation for property 'testProperty1'. */ \ No newline at end of file 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..0cc83b9520546711a6656be1579715fc8fc46cec 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,5 @@ a: @Anno } -/* @@? 18:1 Error SyntaxError: Invalid Type. */ + +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file 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..05279bcd5a6b41cf93726e67f80436f66dc7b53b 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,5 @@ testProperty2: number } -/* @@@ label Error SyntaxError: Identifier expected, got ','. */ + +/* @@@ label Error Syntax error ESY0224: Identifier expected, got ','. */ \ No newline at end of file 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..f029962de8d7d2ee82594dae02312725ad96bf19 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,9 @@ 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 '}'. */ \ No newline at end of file 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..dbbdf204be6669c7a8f27eb41571f087517bf964 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,9 @@ 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 '}'. */ \ No newline at end of file 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 21d016f414d88fec5654f578d80e1fa95fb1f85f..96f8aebafcf29572500277d2831417f9995cfd05 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,4 +19,5 @@ import * as Src from "./annotation_export" Src.MyAnno class /* @@ label */A/* @@ label1 */{} -/* @@? 19:5 Error TypeError: Property 'MyAnno' does not exist on type 'annotation_export' */ + +/* @@? 19:5 Error Semantic error ESE0087: Property 'MyAnno' does not exist on type 'annotation_export' */ \ No newline at end of file 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..f882d287d434853f228bd6e6bac84882b73df856 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,5 @@ 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. */ \ No newline at end of file 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..534f4bb7e23da247a38a2b7c977463e1a9e6d5b4 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,8 @@ 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 */ \ No newline at end of file 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..f0905fc6e2e1a5f72a2653cda79cdcd7f0669cec 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,6 @@ } -/* @@? 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'. */ \ No newline at end of file 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..1f4181c0b1089804795f2712f1f7c4e271797e88 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,5 @@ testProperty4: number } -/* @@@ label Error TypeError: Variable 'MyAnno' has already been declared. */ + +/* @@@ label Error Semantic error ESE0351: Variable 'MyAnno' has already been declared. */ \ No newline at end of file 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..b427d8fd277b798509e8eec7a8e4c32389edbf5f 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,7 @@ 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 '@'. */ \ No newline at end of file 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..c51981aefaf26b41e80091e1d0e91cb8e58161f9 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,7 @@ 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 '@'. */ \ No newline at end of file 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..e5e4c1e4da3c91c92f4ec12cc6a8fabbc4ff29be 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,6 @@ } -/* @@@ 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 '@'. */ \ No newline at end of file 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..67b630f5c46bf63232da54a5709e773c181bf615 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,10 @@ 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 '}'. */ \ No newline at end of file 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..da60a36f84f7b0fff0c90c6131ae989214f22131 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,11 @@ } -/* @@? 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 '}'. */ \ No newline at end of file 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..0f06bcfc496e7c72faff24b9efb33364b361272b 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,7 @@ 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. */ \ No newline at end of file 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..2c2ad4d0ed6c11ae3068d8866f3cc660b2311f3b 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,7 @@ 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. */ \ No newline at end of file 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..3d59ac696a5df8c111658e13270322971439f950 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,6 @@ 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. */ \ No newline at end of file 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..e0e31977d106ea56a443f4ebd7a1a54b8fd53e7c 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,6 @@ @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 */ \ No newline at end of file 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..796c1d72960501e5569da3a305832e4f66ef2b42 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,5 @@ @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. */ \ No newline at end of file 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 a5199a365a4a2db7aa98cf237747dea83f1634cd..5fea830be4feaa5fb775848cab3bb8d6aeb857c9 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. */ -/* @@@ label Error TypeError: Type '((p1: Int) => void)' cannot be assigned to type 'String' */ -/* @@@ label 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 '(p1: 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..f44069d479116f634a0e29e0f17bdf0cb7a329da 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,7 @@ 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. */ \ No newline at end of file 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..22e7f328a919f19101dc2e37ae2819a40ee78faa 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,10 @@ 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. */ \ No newline at end of file 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..de3d2e97b9fc8a17d37ebc553de5f865f27a890c 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,7 @@ 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. */ \ No newline at end of file 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..79dd2191a02c326bcbe2a49a7d089d85550c1d14 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,7 @@ 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. */ \ No newline at end of file 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..e83e71d8e2d559d176bdbc4e85159760e21e7000 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,7 @@ 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. */ \ No newline at end of file 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..8e74d70a2c1216b72f37a1d7f32bdc394be61e86 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,7 @@ 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. */ \ No newline at end of file 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..cd38c170f2681391a00994ec5bad068b98970a32 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,9 @@ 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. */ \ No newline at end of file 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..f87ef9b73acd2336db99236f59c2ba29bfcff8cf 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. */ \ No newline at end of file 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..3483cfa233f392113a56bab9710e12e95185b42e 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,7 @@ 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. */ \ No newline at end of file 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..9e51df8bb469c9babdd364c694f1038cf94a1354 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,9 @@ 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. */ \ No newline at end of file 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..f383b9a7cdd5585c475fd503d4f2d320795dce26 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,6 @@ 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. */ \ No newline at end of file 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..a8abea9f6f434be89c69e7a55179a7d03341f58d 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,9 @@ 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 ')'. */ \ No newline at end of file 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..acd6666cf6391d160b5c731817e0a9560e6e6110 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 ESY0227: Unexpected token 'int'. */ +/* @@? 22:45 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 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 ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 25:20 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 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 '{'. */ \ No newline at end of file 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..6d1af29ca20487e38cce039817f829c3ffd62a79 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,5 @@ @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'. */ \ No newline at end of file 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..d63676039dda748fd477baf19e02ddb2e5e62897 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,5 @@ 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. */ \ No newline at end of file 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..7eb4b4405c515f16f466c09543604b38e561f50e 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,9 @@ @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 ')'. */ \ No newline at end of file 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..5259fa7e50ca57f229dbe889b76a31e4e7612c3a 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,6 @@ @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 ';'. */ \ No newline at end of file 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..4b828927ba9e3181aff8ba27fd2dc17ee2a24c9c 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,8 @@ @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 '}'. */ \ No newline at end of file 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..979596c80205d93e484f5b75352cef0e365da26c 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,8 @@ 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. */ \ No newline at end of file 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..406649b9d4e4ea19e110a072934cf39132570fe5 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,8 @@ 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. */ \ No newline at end of file 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..2c2ad4d0ed6c11ae3068d8866f3cc660b2311f3b 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,7 @@ 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. */ \ No newline at end of file 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..a52b3761b249c95990ab93ec33d99165b2faa38b 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,5 @@ export default @/* @@ label */interface MyAnno {} -/* @@@ label Error SyntaxError: Can not export annotation default. */ + +/* @@@ label Error Syntax error ESY0042: Can not export annotation default. */ \ No newline at end of file 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..bcb6e3f1e6a5e046bff1dee86953344855a562c5 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,5 @@ 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. */ \ No newline at end of file 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..eb1911573f6a1ca77a49e20cf8900767dd6277a2 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,5 @@ 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. */ \ No newline at end of file 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..aec97f7520f1a55d8d192cf73034f7625bd8df17 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/anonymous_class.ets b/ets2panda/test/ast/parser/ets/anonymous_class.ets index f277596205f0f49c2233922f4943759322652f76..4d2e7272019770719c0081b988f1bd18ec16513a 100644 --- a/ets2panda/test/ast/parser/ets/anonymous_class.ets +++ b/ets2panda/test/ast/parser/ets/anonymous_class.ets @@ -20,5 +20,6 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/arithmetic/ops_overflow.ets b/ets2panda/test/ast/parser/ets/arithmetic/ops_overflow.ets index 83e76e9d97dc403dcdb43916b408fc985baf5fa8..b47e8d9061e14f2fdcf39e2ed2d51240b9e18a69 100644 --- a/ets2panda/test/ast/parser/ets/arithmetic/ops_overflow.ets +++ b/ets2panda/test/ast/parser/ets/arithmetic/ops_overflow.ets @@ -33,13 +33,14 @@ const AddByte = /*@@ AddByte */ BYTE_MIN + BYTE_MIN; const NegInt = -INT_MIN; const NegByte = -BYTE_MIN; -/* @@@ DivInt Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ ModInt Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ MulInt Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ SubInt Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ AddInt Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ DivByte Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ ModByte Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ MulByte Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ SubByte Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ AddByte Error TypeError: Arithmetic operation causes an overflow. */ + +/* @@? 17:31 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 18:31 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 19:31 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 20:31 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 21:31 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 26:33 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 27:33 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 28:33 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 29:33 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 30:33 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/array_2.ets b/ets2panda/test/ast/parser/ets/array_2.ets index f949a62c20d12ba66be8e74514326f168709c2ba..4b1e08c220f485f5d2f9dda607f740a4e063d8a8 100644 --- a/ets2panda/test/ast/parser/ets/array_2.ets +++ b/ets2panda/test/ast/parser/ets/array_2.ets @@ -15,7 +15,8 @@ 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 ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/array_literal_inference.ets b/ets2panda/test/ast/parser/ets/array_literal_inference.ets index 9ab410b887fe3c48ecaffd2c36e4e14e6b9dff44..3f0623aa69db94a335c722db987186c3ad903adb 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/array_missing_element.ets b/ets2panda/test/ast/parser/ets/array_missing_element.ets index 0c7d5208318709383dda61f601a1d2b4b588fb0e..d38979cfe5967892c48f146a57a0aa1972523357 100644 --- a/ets2panda/test/ast/parser/ets/array_missing_element.ets +++ b/ets2panda/test/ast/parser/ets/array_missing_element.ets @@ -17,8 +17,9 @@ 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 ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/array_new_failed.ets b/ets2panda/test/ast/parser/ets/array_new_failed.ets index d851e069feab737eb87fdf747204f4aa8c194688..b26092e93349954a39690c851ba01a4ecb3b026b 100644 --- a/ets2panda/test/ast/parser/ets/array_new_failed.ets +++ b/ets2panda/test/ast/parser/ets/array_new_failed.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/array_type.ets b/ets2panda/test/ast/parser/ets/array_type.ets index 44f57bdbc23a0c4c5468ac982357460d98196ec0..1f9e03bab59d699d78d144fffc4a84a342a8eeed 100644 --- a/ets2panda/test/ast/parser/ets/array_type.ets +++ b/ets2panda/test/ast/parser/ets/array_type.ets @@ -24,7 +24,8 @@ 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. */ \ No newline at end of file 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..623dbca433a9d005d7c03ba1cccca0016137645e 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/arrow_1.ets b/ets2panda/test/ast/parser/ets/arrow_1.ets index dfb34413aa93a1793a89eebeb7228c7764c911d9..48f23ebe56dc019ec688d044f273a325b2825cb3 100644 --- a/ets2panda/test/ast/parser/ets/arrow_1.ets +++ b/ets2panda/test/ast/parser/ets/arrow_1.ets @@ -27,4 +27,5 @@ let a: A = { } } -/* @@? 22:12 Error SyntaxError: Expected '=>', got ','. */ + +/* @@? 22:12 Error Syntax error ESY0230: Expected '=>', got ','. */ \ No newline at end of file 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..0c8f1741f1ee5857b3683e598958cec5a2d73552 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 */ \ No newline at end of file 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..79277717323e3262e99ba43f06142858670f7814 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/assign-func-iface.ets b/ets2panda/test/ast/parser/ets/assign-func-iface.ets index fa29a6e6ce6e85bb2ac5f8e298904c2d674d45a5..9bda77fb3304dd05b20bf3c6f65f71de7e260628 100644 --- a/ets2panda/test/ast/parser/ets/assign-func-iface.ets +++ b/ets2panda/test/ast/parser/ets/assign-func-iface.ets @@ -17,4 +17,5 @@ interface Foo { /* @@ label */async foo(): Promise; } -/* @@@ label Error SyntaxError: Identifier expected, got 'async'. */ + +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'async'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/assign_bad.ets b/ets2panda/test/ast/parser/ets/assign_bad.ets index 11de990c99fcf4f8600b370c2a5ed09c363cd88d..da67df06bb995b04cc056201da43a60e744bc7fd 100644 --- a/ets2panda/test/ast/parser/ets/assign_bad.ets +++ b/ets2panda/test/ast/parser/ets/assign_bad.ets @@ -20,9 +20,10 @@ 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'. */ \ No newline at end of file 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 58fc894a2a48c68fa15ff7d3692c5a2562d1a8d6..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 a457016f227a3abbec8ba7e1069ab3b6ac1d614a..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 86a21dca2676543af274047ba60d80e1b0907b89..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..4f02d70b1454012ffb39d9737a44d499d906e623 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,8 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/async_abstract_bad.ets b/ets2panda/test/ast/parser/ets/async_abstract_bad.ets index e36a9069422536ac24e0f829044b166951b2ba2d..7990f245c83dd6f496856d3194b492f2299f747d 100644 --- a/ets2panda/test/ast/parser/ets/async_abstract_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_abstract_bad.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/async_ctor.ets b/ets2panda/test/ast/parser/ets/async_ctor.ets index 1ddb4cc81d471e3f3c6bd14357651efb45a6bf8b..054df2de5fddd8bb6d0aaa447f45d738fa6470d5 100644 --- a/ets2panda/test/ast/parser/ets/async_ctor.ets +++ b/ets2panda/test/ast/parser/ets/async_ctor.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file 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..675310ad237a5e5dbdc80d997f6ea20de799d9cb 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,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/async_function_bad.ets b/ets2panda/test/ast/parser/ets/async_function_bad.ets index d7c4a852b25b8e90f91677213358c186e36d53bd..153462ab5e4b0c555f0d4a72d88af914e78dbbdc 100644 --- a/ets2panda/test/ast/parser/ets/async_function_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_function_bad.ets @@ -15,13 +15,14 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/async_method_bad.ets b/ets2panda/test/ast/parser/ets/async_method_bad.ets index 3e84247af818b2686db51ec994e8ca19f1b89dd1..6283ec1ebf293dc8d59d6c5154288a3c70d91c84 100644 --- a/ets2panda/test/ast/parser/ets/async_method_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_method_bad.ets @@ -17,6 +17,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/async_this.ets b/ets2panda/test/ast/parser/ets/async_this.ets index 7abb732b25bc33d6eea6962267f13c9980ca25e7..aa35f3570917bce2b243a615c27d78dbd788d474 100644 --- a/ets2panda/test/ast/parser/ets/async_this.ets +++ b/ets2panda/test/ast/parser/ets/async_this.ets @@ -19,4 +19,4 @@ class A{ } } -/* @@? 17:15 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ \ No newline at end of file +/* @@? 17:15 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/await_argument_null.ets b/ets2panda/test/ast/parser/ets/await_argument_null.ets index 80bafac1206b5a966adb6866503b595cb26e06ea..297460e100197225112c50ab4938f93555d6e874 100644 --- a/ets2panda/test/ast/parser/ets/await_argument_null.ets +++ b/ets2panda/test/ast/parser/ets/await_argument_null.ets @@ -18,6 +18,7 @@ async function foo(): Promise { return /* @@ label1 */null; } -/* @@@ label Error TypeError: Type 'null' can not be awaited, it is not a Promise. */ -/* @@@ label Error TypeError: Type 'null' cannot be assigned to type 'Object' */ -/* @@@ label1 Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ + +/* @@@ label Error Semantic error ESE0303: Type 'null' can not be awaited, it is not a Promise. */ +/* @@@ label Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Object' */ +/* @@@ label1 Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/await_object_bad.ets b/ets2panda/test/ast/parser/ets/await_object_bad.ets index f7d0995413fe66400d9770a2f20dfaefc65280ee..ddf0add86e746f5f7ebc551ee5cb61da32709a79 100644 --- a/ets2panda/test/ast/parser/ets/await_object_bad.ets +++ b/ets2panda/test/ast/parser/ets/await_object_bad.ets @@ -18,5 +18,6 @@ async function foo(): Promise { return /* @@ label1 */null; } -/* @@@ label Error TypeError: Type 'Int' can not be awaited, it is not a Promise. */ -/* @@@ label1 Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ + +/* @@@ label Error Semantic error ESE0303: Type 'Int' can not be awaited, it is not a Promise. */ +/* @@@ label1 Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/await_promise_bad.ets b/ets2panda/test/ast/parser/ets/await_promise_bad.ets index e1d10cf9598b5c59b6973b46dd952155bdba73f8..539c083f27289708dedba966f4bec22970e1d3c2 100644 --- a/ets2panda/test/ast/parser/ets/await_promise_bad.ets +++ b/ets2panda/test/ast/parser/ets/await_promise_bad.ets @@ -18,5 +18,6 @@ async function foo(): Promise { return /* @@ label1 */null; } -/* @@@ label Error TypeError: Type 'Object' can not be awaited, it is not a Promise. */ -/* @@@ label1 Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ + +/* @@@ label Error Semantic error ESE0303: Type 'Object' can not be awaited, it is not a Promise. */ +/* @@@ label1 Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ \ No newline at end of file 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..0497b2672746f57610b1a186d569099410cf54a9 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/calls.ets b/ets2panda/test/ast/parser/ets/calls.ets index 13ed2d7b93d00f57cb7a5670632e256a28af807a..a3a796882f7c8c6a3cf6b74b08b8a04ffd1b5c7b 100644 --- a/ets2panda/test/ast/parser/ets/calls.ets +++ b/ets2panda/test/ast/parser/ets/calls.ets @@ -26,4 +26,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/cast_expressions10.ets b/ets2panda/test/ast/parser/ets/cast_expressions10.ets index 8ac8ebd670fa49383494ee20d84df9610dc2ad99..230fd2fb12953fe2251f638e7ee615729150c782 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>' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/cast_expressions2.ets b/ets2panda/test/ast/parser/ets/cast_expressions2.ets index c624f52ae738db71dfb44d8a220c2636fae2be22..9b73755f08b425bb8469daf4c14c3180a5a5451d 100644 --- a/ets2panda/test/ast/parser/ets/cast_expressions2.ets +++ b/ets2panda/test/ast/parser/ets/cast_expressions2.ets @@ -20,4 +20,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/cast_expressions7.ets b/ets2panda/test/ast/parser/ets/cast_expressions7.ets index 7247dfdf88ee5b60713d5c8811b88bf925291ace..8a54294613389b7113ea7788df1294ef292753c6 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/cast_expressions9.ets b/ets2panda/test/ast/parser/ets/cast_expressions9.ets index 02e25d9248dc7c65d461c79ccee78286e2c69a4f..d252306a5c1297b065fed9db39876a3d6b4c0c3f 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>' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/circular_class_extends.ets b/ets2panda/test/ast/parser/ets/circular_class_extends.ets index 4cac2e3719f03516fa733c496a5644d10b11e338..3776b81dfd7b4d5e933c274549a3f826551bd348 100644 --- a/ets2panda/test/ast/parser/ets/circular_class_extends.ets +++ b/ets2panda/test/ast/parser/ets/circular_class_extends.ets @@ -24,4 +24,5 @@ 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 */ \ No newline at end of file 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..d77b005e3086df865cd6d74cf502226f328c35b6 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,9 @@ 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 */ \ No newline at end of file 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..3a7e12cfbd2db022bee4457eb15639f222389f4e 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,21 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets b/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets index f3b7579fd51a1e26cbc82f17157a013b409e6609..1375cee768383c372719054a7022c35ef51ddd78 100644 --- a/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets +++ b/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets @@ -21,4 +21,5 @@ 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. */ \ No newline at end of file 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..b257d061f2f6fa6309d6993ddafc81d6354c981c 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,5 @@ 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. */ \ No newline at end of file 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..8ac6dff56e79463bbfe674dbdff76cf47d3cc7b4 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets b/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets index a3c567456ef411d7be8c4380206d77b4d870ba18..7efe84d050b24f143b70abf668946cef112de0b2 100644 --- a/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets +++ b/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets @@ -23,6 +23,7 @@ function main(): void { alma(C); } -/* @@? 23:10 Error TypeError: Class or interface or enum '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 or enum 'C' cannot be used as object */ \ No newline at end of file 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 2adb2ac00ff1f27b077154722b6a676a9596be05..29ed598ef1af9d05f3414f13967819c16920811c 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,7 @@ console.log(Object) -/* @@? 16:13 Error TypeError: Class or interface or enum '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 or enum 'Object' cannot be used as object */ +/* @@? 16:13 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_composite_1.ets b/ets2panda/test/ast/parser/ets/class_composite_1.ets index c3a6a4f585f36b4ebb6dfb48f41520af39690457..1889f63d87c99fb91dab62bde590227f1933701c 100644 --- a/ets2panda/test/ast/parser/ets/class_composite_1.ets +++ b/ets2panda/test/ast/parser/ets/class_composite_1.ets @@ -17,5 +17,6 @@ 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 */ \ No newline at end of file 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..297c34df390938e5952235552570c85378edc49d 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,5 @@ 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' */ \ No newline at end of file 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..37cf79d826f10da8476a56a3c71e1301b78a745e 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,5 @@ 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. */ \ No newline at end of file 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..8854d5ebf3a3cf355a0390ac746eb62caac8fc66 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,5 @@ 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. */ \ No newline at end of file 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..9df4a89858e3d200fe3ebc8f61392076bb03b4db 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_5.ets b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_5.ets index 1d7d00c1c8b5f8481de9a641be11508ea2869a02..bcce72958327d624d4279f81e2ccf5b954fd8572 100644 --- a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_5.ets +++ b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_5.ets @@ -18,4 +18,5 @@ function main() : void /* @@ label */enum Color { Red, Green, Blue } } -/* @@@ label Error SyntaxError: Local enum declaration support is not yet implemented. */ + +/* @@@ label Error Syntax error ESY0040: Illegal start of ENUM expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_keyword.ets b/ets2panda/test/ast/parser/ets/class_keyword.ets index 93b3062592e6a82a9602391d9a7253617865f5ef..d0a40470abc34b2c76679b5523c8433aaadc4350 100644 --- a/ets2panda/test/ast/parser/ets/class_keyword.ets +++ b/ets2panda/test/ast/parser/ets/class_keyword.ets @@ -17,6 +17,7 @@ final kngkgj class B { } -/* @@? 16:7 Error SyntaxError: Unexpected token 'kngkgj'. */ -/* @@? 16:7 Error TypeError: Unresolved reference kngkgj */ -/* @@? 16:14 Error SyntaxError: Unexpected token 'class'. */ + +/* @@? 16:7 Error Syntax error ESY0227: Unexpected token 'kngkgj'. */ +/* @@? 16:7 Error Semantic error ESE0143: Unresolved reference kngkgj */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token 'class'. */ \ No newline at end of file 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..2acd9c20a913f5628107a72932002c17eb4ac72e 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,8 @@ 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. */ \ No newline at end of file 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..6d3ece28482c2c47e170587f68f68ba160379440 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,5 @@ 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. */ \ No newline at end of file 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 d37fc87aa761e373e36228c9dc6e28dd3586d808..58058d88388166f93a92829de81efbf1250704c9 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,8 @@ 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: Identifier expected, got 'string literal'. */ -/* @@? 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 ESY0224: Identifier expected, got 'string literal'. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file 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..3b1ed806315ea884eea987d7ab6f53d04ea473f1 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,6 @@ 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. */ \ No newline at end of file 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..5ab72df3128b5d5540e1932b0b3419f9fb4dff99 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. */ \ No newline at end of file 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..9fe3cd8d5516a52bafea6682e2f0d5e6f6221ba2 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. */ \ No newline at end of file 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..11f75ab6f29fdc4ca20e799be37710ed7c083737 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,6 @@ 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. */ \ No newline at end of file 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..c49c2c186c5e733c40a4cd669dfddf3a5e673660 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_optional_property.ets b/ets2panda/test/ast/parser/ets/class_optional_property.ets index 9440944513de817d3d869b884b3a64fdfa8da6d2..1c942e92e44fc0943f079f68027fc524db9c661a 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..34eb9742f373f504ff1dba58c879ec5e6b287ede 100644 --- a/ets2panda/test/ast/parser/ets/class_property_access.ets +++ b/ets2panda/test/ast/parser/ets/class_property_access.ets @@ -25,4 +25,5 @@ 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. */ \ No newline at end of file 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..217fddb4f773645160e45d8197835d45664941cd 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_variable_empty.ets b/ets2panda/test/ast/parser/ets/class_variable_empty.ets index cb91389b8db3d6d4c1d3554615ab4cf364381efa..fedfad26b65990000c3407cc1744f3f026decb46 100644 --- a/ets2panda/test/ast/parser/ets/class_variable_empty.ets +++ b/ets2panda/test/ast/parser/ets/class_variable_empty.ets @@ -21,7 +21,8 @@ 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 */ \ No newline at end of file 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..20f70004e8fc02ec3c6bdfe376f2bb7343019839 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,5 @@ 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. */ \ No newline at end of file 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..60882286be83664058eee497540fab0b34d48390 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets b/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets index 9b252bca1823743b16df1aea7bd63f8fad26182c..f60629c418efac6801d514e43fb2251c539567b6 100644 --- a/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets +++ b/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets @@ -31,5 +31,6 @@ 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' */ \ No newline at end of file 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..2dc8d568eab7f923973bb5ac38b21a95daa555b5 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets b/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets index b5087a482b4b6bc37b878d3be1d44f53cddc0e35..66cd64183a344087cde7748135b4460d283c598b 100644 --- a/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets +++ b/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructor_default_super.ets b/ets2panda/test/ast/parser/ets/constructor_default_super.ets index cc891353b46039ce1eabf52734ff36a98c72991b..2e1b6ab3eeb3cd5ecf106c0cefbd16439c3245a1 100644 --- a/ets2panda/test/ast/parser/ets/constructor_default_super.ets +++ b/ets2panda/test/ast/parser/ets/constructor_default_super.ets @@ -20,4 +20,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets b/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets index 394fe76b37fdec51866c7b2f685169df55b9892a..03bc8c8a1a6028d9773fec46658dc70dc95ccff6 100644 --- a/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets +++ b/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructor_super_call2.ets b/ets2panda/test/ast/parser/ets/constructor_super_call2.ets index d97df6e49e418120b7fb6150fce0d6dc87e43536..11c7de1cd4acc5c8eba3ec70f543d79efd735913 100644 --- a/ets2panda/test/ast/parser/ets/constructor_super_call2.ets +++ b/ets2panda/test/ast/parser/ets/constructor_super_call2.ets @@ -23,4 +23,5 @@ class B extends A { } } -/* @@@ label Error TypeError: Must call super constructor */ + +/* @@@ label Error Semantic error ESE0192: Must call super constructor */ \ No newline at end of file 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 6b09631bfbdf4398522d75642ca940451999740a..93b4b989ed402ec5f94ef38478d1097696cf045f 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,9 @@ 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 'xny'. */ -/* @@? 19:28 Error TypeError: Cannot find type 'xny'. */ + +/* @@? 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 'xny'. */ +/* @@? 19:28 Error Semantic error ESE0371: Cannot find type 'xny'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructor_type_parameters.ets b/ets2panda/test/ast/parser/ets/constructor_type_parameters.ets index ff1194075b9aad7afca50984b7a91e611b1e07b0..bf61caf38ce0e1e4aca2287c018f949119d22c51 100644 --- a/ets2panda/test/ast/parser/ets/constructor_type_parameters.ets +++ b/ets2panda/test/ast/parser/ets/constructor_type_parameters.ets @@ -17,4 +17,5 @@ class C { constructor(x: T) {} } -/* @@? 17:17 Error SyntaxError: Constructor should not have type parameters. */ + +/* @@? 17:17 Error Syntax error ESY0330: Constructor should not have type parameters. */ \ No newline at end of file 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..c01ac57b4d9cbe3f7af2513e3df4c180f27e022f 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,5 @@ 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. */ \ No newline at end of file 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..888460bfe67e0a2ca0e3655c1589c8dab7f0ff6e 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,5 @@ class A { } } -/* @@@ label Error SyntaxError: Type annotation isn't allowed for constructor. */ + +/* @@@ label Error Syntax error ESY0140: Type annotation isn't allowed for constructor. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructors.ets b/ets2panda/test/ast/parser/ets/constructors.ets index 7a9155c4706e5c26221d1897cfdb1ec6242a32d4..cd91ea46285d06e2c2c9b7116386baef8b22e7a1 100644 --- a/ets2panda/test/ast/parser/ets/constructors.ets +++ b/ets2panda/test/ast/parser/ets/constructors.ets @@ -34,4 +34,5 @@ class I1 extends /* @@ label */I { } } -/* @@@ label Error TypeError: Cannot inherit with 'final' modifier. */ + +/* @@@ label Error Semantic error ESE0178: Cannot inherit with 'final' modifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/continue_while_target_outside_lambda.ets b/ets2panda/test/ast/parser/ets/continue_while_target_outside_lambda.ets index 77a0f430c3448a5ada400060e8bf1ed525bbc26a..03b43ab8ede1a429dcbdde36a61efde173ed0af0 100644 --- a/ets2panda/test/ast/parser/ets/continue_while_target_outside_lambda.ets +++ b/ets2panda/test/ast/parser/ets/continue_while_target_outside_lambda.ets @@ -29,4 +29,5 @@ function main(): void { } } -/* @@? 26:17 Error TypeError: Continue or break target can't be outside the function */ + +/* @@? 26:17 Error Semantic error ESE49316: Continue or break target can't be outside the function */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/cycle_constructor.ets b/ets2panda/test/ast/parser/ets/cycle_constructor.ets index 39de52dd4507d888caeffb117e4955f3b9161270..b18e93b1e3f070e319a2ae3d099a56a640f6d995 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/decl_in_param.ets b/ets2panda/test/ast/parser/ets/decl_in_param.ets index 39e7ac9b8f22cb6f5796d6ff0e57cd8a085c4823..a8e1fbb130f4abd5e0705686780e928ce9e86931 100644 --- a/ets2panda/test/ast/parser/ets/decl_in_param.ets +++ b/ets2panda/test/ast/parser/ets/decl_in_param.ets @@ -19,6 +19,7 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_ambient_context.ets b/ets2panda/test/ast/parser/ets/declare_ambient_context.ets index f7284c2aee5079dbf8a3aca94887a2e31a0dfd61..8d9ba1c762c758d9b7b5bc8d0e312093bf6343b4 100644 --- a/ets2panda/test/ast/parser/ets/declare_ambient_context.ets +++ b/ets2panda/test/ast/parser/ets/declare_ambient_context.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_annotation.ets b/ets2panda/test/ast/parser/ets/declare_annotation.ets index ba73fcc9baeb39b9f037ef4395bdaca852d3a71b..7ab96bee620a96c25ec49abe89e0e8844ebd874c 100644 --- a/ets2panda/test/ast/parser/ets/declare_annotation.ets +++ b/ets2panda/test/ast/parser/ets/declare_annotation.ets @@ -27,12 +27,13 @@ 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:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file 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..5b33f5d4dd3bf61eb6ed00f52c1afa12af5d4af0 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,7 @@ 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. */ \ No newline at end of file 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..fdf2ef5c096edbe8a46fc2f538537669b7760f87 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,5 @@ 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. */ \ No newline at end of file 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..fda0698a7effbfc83df8b78408be6814491de361 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,7 @@ 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. */ \ No newline at end of file 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..de98e6fbdd661b8634863eb39242c8933c72be94 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,5 @@ 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. */ \ No newline at end of file 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..62d665e89cd15d1e091575e16ed413350cb24b3a 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_class_neg.ets b/ets2panda/test/ast/parser/ets/declare_class_neg.ets index 9426627656abb696ad89feccf9518d102251c1c2..a386c590fd9d51dc5f04e52589b5dfce76c6e053 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_neg.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_neg.ets @@ -19,6 +19,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_func_bad.ets b/ets2panda/test/ast/parser/ets/declare_func_bad.ets index e237b1dc8bebfb3371251b00dc23fbe6f1bcf802..695f32f998a5d9b146ad86769338de2a55f85a19 100644 --- a/ets2panda/test/ast/parser/ets/declare_func_bad.ets +++ b/ets2panda/test/ast/parser/ets/declare_func_bad.ets @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_namespace_5.ets b/ets2panda/test/ast/parser/ets/declare_namespace_5.ets index 0b586d7dafcea2a6f641907604702a9f9197c101..6f9f5c36d5ca69d46cd8dbfaa301c12d530ec68c 100644 --- a/ets2panda/test/ast/parser/ets/declare_namespace_5.ets +++ b/ets2panda/test/ast/parser/ets/declare_namespace_5.ets @@ -48,12 +48,13 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/default_parameter2.ets b/ets2panda/test/ast/parser/ets/default_parameter2.ets index be81d6ef8449081a84985e1bb611a482fc3de737..dc630fee1bdf7bcb20f54f41396fdf981fdaca47 100644 --- a/ets2panda/test/ast/parser/ets/default_parameter2.ets +++ b/ets2panda/test/ast/parser/ets/default_parameter2.ets @@ -28,5 +28,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/default_parameter3.ets b/ets2panda/test/ast/parser/ets/default_parameter3.ets index 80c76508f8a0a8e3b18f3bd1bc9ff341ff6df977..7689866544265f284fe84f0a3dec1c94df85febc 100644 --- a/ets2panda/test/ast/parser/ets/default_parameter3.ets +++ b/ets2panda/test/ast/parser/ets/default_parameter3.ets @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/default_parameters_multi_error.ets b/ets2panda/test/ast/parser/ets/default_parameters_multi_error.ets index 3f4edbb1c700575903a88ea0ab27aa72669a6e07..cacd86c69effde9548cecd149c8968934ad55249 100644 --- a/ets2panda/test/ast/parser/ets/default_parameters_multi_error.ets +++ b/ets2panda/test/ast/parser/ets/default_parameters_multi_error.ets @@ -22,5 +22,5 @@ function foo2 (x: int, y: int = 0, ...r: int[]): int { return 4; } -/* @@? 16:28 Error SyntaxError: Required parameter follows default parameter(s). */ -/* @@? 21:10 Error SyntaxError: Both optional and rest parameters are not allowed in function's parameter list. */ + +/* @@? 16:28 Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/differentTypeCompare.ets b/ets2panda/test/ast/parser/ets/differentTypeCompare.ets index 445b9063bde45cb0ae806160c22c423986ba8cd7..5924c4294e8cb0aa1320e52970ab7926041b8e15 100644 --- a/ets2panda/test/ast/parser/ets/differentTypeCompare.ets +++ b/ets2panda/test/ast/parser/ets/differentTypeCompare.ets @@ -23,4 +23,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets b/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets index c8ac00947b7ac426aeed4d561b90ed2f78b657c3..5b4e129e0d1784344e898b707380e85a8604c503 100644 --- a/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets +++ b/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/do_while.ets b/ets2panda/test/ast/parser/ets/do_while.ets index a0256a02dc90595b88b4f306486badc062f2360b..2af98fc0a9266f47fdcbb50391c9eb46e9265957 100644 --- a/ets2panda/test/ast/parser/ets/do_while.ets +++ b/ets2panda/test/ast/parser/ets/do_while.ets @@ -15,9 +15,10 @@ 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:79 Error Syntax error ESY0228: Unexpected token, expected 'while'. */ +/* @@? 24:79 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 24:79 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 24:79 Error Syntax error ESY0301: Missing condition in do while statement */ +/* @@? 24:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file 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..0a609bb609663867718f3733c91754788920c481 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,12 @@ 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:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file 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..e9fed1f7e9e04dc7f6a06d9ec76851fc6c0266e3 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,7 @@ 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:79 Error Syntax error ESY0301: Missing condition in do while statement */ +/* @@? 22:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file 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 743990625e793fc519feb7922cd42b9d706c3824..cb3e6f8f152ee2ebf5470252877ec3026be426eb 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,11 @@ interface Test { set color(s: string)() } -/* @@? 17:25 Error SyntaxError: Unexpected token '('. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:25 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 17:26 Error SyntaxError: Identifier expected. */ -/* @@? 17:26 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:26 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 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 ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 17:26 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:26 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:26 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file 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 13e8057f3e29df15b9105bc300765b9f14fb2713..9645f82a8513fc5909d6df8220b79a10b11e440c 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,12 @@ 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: Identifier expected, got 'end of stream'. */ -/* @@? 18:12 Error SyntaxError: Identifier expected. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:12 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 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 ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 18:12 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:12 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:12 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 19:1 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/duplicated_identifier.ets b/ets2panda/test/ast/parser/ets/duplicated_identifier.ets index b36f9db2dfe8b309828223807620c75b323ab72e..60f6ceed434f45df817616f5f29e64f20a1498b9 100644 --- a/ets2panda/test/ast/parser/ets/duplicated_identifier.ets +++ b/ets2panda/test/ast/parser/ets/duplicated_identifier.ets @@ -20,4 +20,5 @@ 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. */ \ No newline at end of file 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..bc75c88863cae7d5c0349211b5349e74d40e122f 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,7 @@ 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 */ \ No newline at end of file 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..1d4204acfbbe94114694fe985a06cc24fc7d8560 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,5 @@ 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' */ \ No newline at end of file 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..8f5aab3fe330e1c48fcea53cfc4c244c64285244 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,5 @@ 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' */ \ No newline at end of file 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..a48ec4b2d980168323db6a675dc95c2fed42ed1f 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' */ \ No newline at end of file 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..b68190fde70c176ccd7c8d3c1b9cd51b1f0727f9 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,6 @@ 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 */ \ No newline at end of file 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..4ce88df94753e8d1bbc4b9112be69de4ebc87357 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,5 @@ 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' */ \ No newline at end of file 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..af6e6e6df981aaf5c867ef5686d354bda1f5ab47 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/readonly_dynamic_class_interface.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/readonly_dynamic_class_interface.ets index f81878ad25902484504e643c6835ccecde2af278..33f801c135b580f67f2548120a93f807ec56da9a 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/readonly_dynamic_class_interface.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/readonly_dynamic_class_interface.ets @@ -29,6 +29,7 @@ function main() { i.age = 124 } -/* @@? 24:5 Error TypeError: The 'Readonly' property cannot be reassigned. */ -/* @@? 24:5 Error TypeError: Cannot assign to a readonly variable s */ -/* @@? 29:5 Error TypeError: The 'Readonly' property cannot be reassigned. */ + +/* @@? 24:5 Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@? 24:5 Error Semantic error ESE4002: Cannot assign to a readonly field s */ +/* @@? 29:5 Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ \ No newline at end of file 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..719ddbcf588ae591404679516f2d8e93b3916c2c 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,5 @@ 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. */ \ No newline at end of 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..60c56c32f9215fc4ef2ec6671ab37fbb837f033d 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,5 @@ 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. */ \ No newline at end of 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..b3d94bc1b2c21a6b2ecacb64c7e331743314d501 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets b/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets index 113b6cd6708e1901d8ee56ace99c9313b16601f7..83a11d0b40f43d983960afad1472d447f009d834 100644 --- a/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets +++ b/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets @@ -27,5 +27,6 @@ function main() { arktest.assertTrue(!"nothing was thrown") } -/* @@? 18:15 Error SyntaxError: Unexpected token 'import'. */ -/* @@? 18:9 Error TypeError: Type '*ERROR_TYPE*' can not be awaited, it is not a Promise. */ + +/* @@? 18:9 Error Semantic error ESE0303: Type '*ERROR_TYPE*' can not be awaited, it is not a Promise. */ +/* @@? 18:15 Error Syntax error ESY0227: Unexpected token 'import'. */ \ No newline at end of file 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..9f53ac2a0f3c02073eaf44f7548c950b834f498b 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,10 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum.ets b/ets2panda/test/ast/parser/ets/enum.ets index 3443eb3f6c38ac0318e3b1f6bdbc74e170d7ec40..cbbc0e578b2c6707c4151be8f2c8757c18c75ecb 100644 --- a/ets2panda/test/ast/parser/ets/enum.ets +++ b/ets2panda/test/ast/parser/ets/enum.ets @@ -66,4 +66,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum11.ets b/ets2panda/test/ast/parser/ets/enum11.ets index c78d967491c138158f757858b21bd5b205dc833c..c080ef951c87818803e7a1ab72b2f48e79d8215b 100644 --- a/ets2panda/test/ast/parser/ets/enum11.ets +++ b/ets2panda/test/ast/parser/ets/enum11.ets @@ -23,6 +23,7 @@ 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 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ +/* @@? 22:13 Warning 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum12.ets b/ets2panda/test/ast/parser/ets/enum12.ets index 2a7a1dd7bb85f4a4582329eabd7785f25ed30b8c..987c2803dce711267643c6676b34841290562a11 100644 --- a/ets2panda/test/ast/parser/ets/enum12.ets +++ b/ets2panda/test/ast/parser/ets/enum12.ets @@ -24,4 +24,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum13.ets b/ets2panda/test/ast/parser/ets/enum13.ets index 0a4828ea518acda1cb55ad1ecfcabffcb73ce963..02aaf0421edf9ff726b8602d2fb11953d725d59b 100644 --- a/ets2panda/test/ast/parser/ets/enum13.ets +++ b/ets2panda/test/ast/parser/ets/enum13.ets @@ -24,4 +24,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum14.ets b/ets2panda/test/ast/parser/ets/enum14.ets index d152c4368f58e8f01f5c12ac46b0d6b489639690..89c91195f6fb0930616e7a5bbf563d52e2a8b9db 100644 --- a/ets2panda/test/ast/parser/ets/enum14.ets +++ b/ets2panda/test/ast/parser/ets/enum14.ets @@ -24,4 +24,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum15.ets b/ets2panda/test/ast/parser/ets/enum15.ets index 2a32ffa2191b4f4c875c4bee460fe9c95697bed6..68a59203d14b829adad37352313504d40f2a2def 100644 --- a/ets2panda/test/ast/parser/ets/enum15.ets +++ b/ets2panda/test/ast/parser/ets/enum15.ets @@ -20,7 +20,7 @@ enum InvalidInitTypeEnum { } -/* @@? 18:11 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 19:7 Error SyntaxError: Only constant expression is expected in the field */ -/* @@? 19:7 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ + +/* @@? 18:11 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum16.ets b/ets2panda/test/ast/parser/ets/enum16.ets index 4b48931d3d476fb68d4b3b31bb00c84f625dffb5..f5c07201a17414b6e82a876b25722f09adc85e88 100644 --- a/ets2panda/test/ast/parser/ets/enum16.ets +++ b/ets2panda/test/ast/parser/ets/enum16.ets @@ -19,8 +19,9 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum17.ets b/ets2panda/test/ast/parser/ets/enum17.ets index ef121a53aaa5679da3c5b3891c2c0187d6ed8688..f70402e05f9c5717ad0aa023c9ee096a3be876ca 100644 --- a/ets2panda/test/ast/parser/ets/enum17.ets +++ b/ets2panda/test/ast/parser/ets/enum17.ets @@ -19,5 +19,6 @@ enum InvalidInitTypeEnum { Blue } -/* @@? 19:7 Error TypeError: Arithmetic operation causes an overflow. */ -/* @@? 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 ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 19:7 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum18.ets b/ets2panda/test/ast/parser/ets/enum18.ets index 8c34ab054c1f9a06c835f2351fa23d3412bc4f56..0cccb135f2320ca95df2ea3a6c583885366cbad7 100644 --- a/ets2panda/test/ast/parser/ets/enum18.ets +++ b/ets2panda/test/ast/parser/ets/enum18.ets @@ -19,5 +19,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum2.ets b/ets2panda/test/ast/parser/ets/enum2.ets index 7df33b51a9b38c04ecf2a850533de76cab848373..2e575735695d007ce608a1716ff025046144bb2a 100644 --- a/ets2panda/test/ast/parser/ets/enum2.ets +++ b/ets2panda/test/ast/parser/ets/enum2.ets @@ -38,7 +38,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum20.ets b/ets2panda/test/ast/parser/ets/enum20.ets index 3f79f66f30150ec4d0e6841a9a4a1187ea8b7f2d..14d4773f7f795254c0594752dc99486236cc75d9 100644 --- a/ets2panda/test/ast/parser/ets/enum20.ets +++ b/ets2panda/test/ast/parser/ets/enum20.ets @@ -22,7 +22,8 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum22.ets b/ets2panda/test/ast/parser/ets/enum22.ets index b052216cadf5f248d42a0991f53e6cafe16ce94e..adb6f0f49f8e0f284db5cd9547d6e39561bd0c64 100644 --- a/ets2panda/test/ast/parser/ets/enum22.ets +++ b/ets2panda/test/ast/parser/ets/enum22.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum23.ets b/ets2panda/test/ast/parser/ets/enum23.ets index fbea4d6c3b28da754b46afcf9aefa975a6e94f11..179f26504eb63777512cd80fa3c726f522f118c8 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum24.ets b/ets2panda/test/ast/parser/ets/enum24.ets index fd80f213a4d2e583a79223123e03042be85a6203..8969eb46d9f97b9c2032e716bc49dd1f382b7831 100644 --- a/ets2panda/test/ast/parser/ets/enum24.ets +++ b/ets2panda/test/ast/parser/ets/enum24.ets @@ -21,4 +21,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum26.ets b/ets2panda/test/ast/parser/ets/enum26.ets index 8a4845c43b47b781e121fce5ef0a367c9028e392..557f9ea9f9151875ff88c7f87e09d696e97a5c3b 100644 --- a/ets2panda/test/ast/parser/ets/enum26.ets +++ b/ets2panda/test/ast/parser/ets/enum26.ets @@ -20,6 +20,7 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum27.ets b/ets2panda/test/ast/parser/ets/enum27.ets index 1e38fdc9ccbd23cad43d8f136596e7b6b20be27b..e7b8b5476ce8ed05f6a51c2ef446e9d6aa0bee67 100644 --- a/ets2panda/test/ast/parser/ets/enum27.ets +++ b/ets2panda/test/ast/parser/ets/enum27.ets @@ -23,5 +23,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum28.ets b/ets2panda/test/ast/parser/ets/enum28.ets index 3c63eabaad9684e38fa8c2f8518015dbadb2bde5..9c2bee6d589742b4efd70d8752f6784a61d89a57 100644 --- a/ets2panda/test/ast/parser/ets/enum28.ets +++ b/ets2panda/test/ast/parser/ets/enum28.ets @@ -17,5 +17,4 @@ enum Color { Red = /* @@ label */`Line 1\nLine 2 ${1}`, } -/* @@@ label Error SyntaxError: String Interpolation Expression is not constant expression. */ -/* @@@ label Error TypeError: 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..99dbea081e9da5758aff2c93dc606bdbd6f4cd74 100644 --- a/ets2panda/test/ast/parser/ets/enum29.ets +++ b/ets2panda/test/ast/parser/ets/enum29.ets @@ -66,5 +66,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum31.ets b/ets2panda/test/ast/parser/ets/enum31.ets index 78bc7d8d2c0e91a50dea1257ee25d1952c6131a2..bb0c8a2e7b99cd2c4ab4105d7033b9f0d42c4c20 100644 --- a/ets2panda/test/ast/parser/ets/enum31.ets +++ b/ets2panda/test/ast/parser/ets/enum31.ets @@ -24,5 +24,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum32.ets b/ets2panda/test/ast/parser/ets/enum32.ets index 0201bd17b91dc3cbb9d27e83a5801fd9499bfe53..8b14289ed0dfb0addf47477d7cead59cff4972df 100644 --- a/ets2panda/test/ast/parser/ets/enum32.ets +++ b/ets2panda/test/ast/parser/ets/enum32.ets @@ -18,7 +18,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum34.ets b/ets2panda/test/ast/parser/ets/enum34.ets index 9fcdc33582450ae23757dd3ddf4d970e5d45f1f2..5326531f10cd3cc0efcc3fdd123aab3e1d21e0e9 100644 --- a/ets2panda/test/ast/parser/ets/enum34.ets +++ b/ets2panda/test/ast/parser/ets/enum34.ets @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum5.ets b/ets2panda/test/ast/parser/ets/enum5.ets index 74fc8ad53d3b69a340ce1d10c14a832d84654a6b..91b800d280429a82d0bdb446c65c08bbf5b1bf0b 100644 --- a/ets2panda/test/ast/parser/ets/enum5.ets +++ b/ets2panda/test/ast/parser/ets/enum5.ets @@ -18,6 +18,7 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum6.ets b/ets2panda/test/ast/parser/ets/enum6.ets index bea677468244cf076506c3f1a70adfe7e00d12a6..acdd731e922bc5fd39a64fa7b401abe2a5ba3383 100644 --- a/ets2panda/test/ast/parser/ets/enum6.ets +++ b/ets2panda/test/ast/parser/ets/enum6.ets @@ -25,4 +25,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum7.ets b/ets2panda/test/ast/parser/ets/enum7.ets index 9fb29fa64f841de53bd2c441141321fcecdd757f..b0b45e9c375d9a87fdce103093a470fa817cc8a1 100644 --- a/ets2panda/test/ast/parser/ets/enum7.ets +++ b/ets2panda/test/ast/parser/ets/enum7.ets @@ -21,4 +21,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum8.ets b/ets2panda/test/ast/parser/ets/enum8.ets index 5da56671e4696886529572cdbc959188dee1354b..71b8cc162111d821c5b6f7321fb96774dd823647 100644 --- a/ets2panda/test/ast/parser/ets/enum8.ets +++ b/ets2panda/test/ast/parser/ets/enum8.ets @@ -20,4 +20,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation3.ets b/ets2panda/test/ast/parser/ets/enumAnnotation3.ets index 17fc47a361df438e6b9e34a0765f1d222caba8c0..48875a6c2c5caa10876abe479fe39a47966a3071 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation3.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation3.ets @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation4.ets b/ets2panda/test/ast/parser/ets/enumAnnotation4.ets index 2816b123bbfe215c49f072278a0a92fd70ce361f..3dde30c9681cfb762133b3cccf366afe4236cd0d 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation5.ets b/ets2panda/test/ast/parser/ets/enumAnnotation5.ets index 64ff1a363563cd8cb88b37c7e1ccc12df2f30269..51a0c1c84e104fae9849603f242f3f58449d62d5 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation6.ets b/ets2panda/test/ast/parser/ets/enumAnnotation6.ets index b52526a67f952ca270ba61ea16bd1c25d2a59444..a0801c60b53a7d28cf43b5f635867894b0066a9b 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation6.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation6.ets @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file 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..84d699009802a18967e3d562e850a2e8ae2ba6d9 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,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum_default_negative.ets b/ets2panda/test/ast/parser/ets/enum_default_negative.ets index 28e438a43b2fc9e7a407c2214eed6f96314ed571..f88de8e1d2afddcdb2046b359b261c52d54d1a09 100644 --- a/ets2panda/test/ast/parser/ets/enum_default_negative.ets +++ b/ets2panda/test/ast/parser/ets/enum_default_negative.ets @@ -26,13 +26,14 @@ 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. */ -/* @@? 25: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 ':'. */ -/* @@? 39:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 39: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. */ +/* @@? 25: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 ':'. */ +/* @@? 39:83 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 39:83 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum_default_negative1.ets b/ets2panda/test/ast/parser/ets/enum_default_negative1.ets index 8764bff88cc296286f62e6bc0ae83d5b003e45dc..b2462468b2c4e0a085353a1273170bb724883dcf 100644 --- a/ets2panda/test/ast/parser/ets/enum_default_negative1.ets +++ b/ets2panda/test/ast/parser/ets/enum_default_negative1.ets @@ -23,8 +23,8 @@ enum B { } -/* @@? 17:9 Error SyntaxError: Unsupported operator for String. */ -/* @@? 17:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 22:9 Error SyntaxError: Only constant expression is expected in the field */ -/* @@? 22: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 ESE0346: Wrong type of operands for binary expression */ +/* @@? 17: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. */ \ No newline at end of file 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..f99ae1e23918ea8c91d5359150f3e1a83ecdbb1d 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,7 @@ 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 + +/* @@ label *//* @@? 22:79 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 22:79 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 22:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file 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..ec8164d0b751eed0a960b6b90c44c014b50936cb 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,5 @@ 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 + +/* @@ label *//* @@? 20:97 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ \ No newline at end of file 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..8d4c327aeb833bc3049daf65ba397899d9677a2e 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,6 @@ enum a -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 20:79 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 20:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file 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..d81162153a1bcd9ef6d98a4a9162a71234bc5531 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,6 @@ 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 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/parser/ets/export_after_statement.ets b/ets2panda/test/ast/parser/ets/export_after_statement.ets index cf56e544dead5fdb081574db5965292a1b5edff0..26df21a9c5c8577ca5133fe08a581414bb41611e 100644 --- a/ets2panda/test/ast/parser/ets/export_after_statement.ets +++ b/ets2panda/test/ast/parser/ets/export_after_statement.ets @@ -16,5 +16,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/export_as.ets b/ets2panda/test/ast/parser/ets/export_as.ets index f2c130fbe82e2eb4dc9f52b8c778f816c0390894..40370606717cb7b845f25cb130dccdf25894565c 100644 --- a/ets2panda/test/ast/parser/ets/export_as.ets +++ b/ets2panda/test/ast/parser/ets/export_as.ets @@ -15,6 +15,7 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/export_assignment.ets b/ets2panda/test/ast/parser/ets/export_assignment.ets index 7dc0bbfcc8fef31455835e3c8a417e11b8d73aba..2b848beddfe98df660f3ae62fb9fe4f07de866c7 100644 --- a/ets2panda/test/ast/parser/ets/export_assignment.ets +++ b/ets2panda/test/ast/parser/ets/export_assignment.ets @@ -15,7 +15,8 @@ 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 */ \ No newline at end of file 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..2bd078aa78a31ba91d479bf452191412d6b76234 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,5 @@ 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:106 Error Syntax error ESY0005: export default is not allowed to export multiple specifiers. */ \ No newline at end of file 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 dc07a979392b8b518cbf1c0fd1e5d8fe3f4e777b..d5666868802d51d25d31a7392083169377b5ff5c 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,7 +17,8 @@ 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 ')'. */ + +/* @@? 16:2 Error Semantic error ESE0371: Cannot find type 'AnimatableExtend'. */ +/* @@? 17:32 Error Semantic error ESE0371: Cannot find type 'TextAttribute'. */ +/* @@? 17:52 Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ +/* @@? 17:52 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ \ No newline at end of file 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 569109a6ae232c927b768b1b0ad0503b1a014a6a..e62bba408e21e22ce4b6478748fb2c1445cfa5e9 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,16 +16,17 @@ let a = (this: TextAttribute, this { this.width(width); return this; } -/* @@? 16:9 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 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: 'this' cannot be referenced from a static context */ -/* @@? 16:36 Error SyntaxError: Unexpected token '{'. */ -/* @@? 16:38 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 16:43 Error TypeError: Property 'width' does not exist on type 'ETSGLOBAL' */ -/* @@? 16:57 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 16:64 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 16:64 Error TypeError: All return statements in the function should be empty or have a value. */ + +/* @@? 16:9 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 16:14 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 16:16 Error Syntax error ESY0227: Unexpected token 'TextAttribute'. */ +/* @@? 16:16 Error Semantic error ESE0143: Unresolved reference TextAttribute */ +/* @@? 16:29 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:31 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 16:31 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 16:36 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 16:38 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 16:43 Error Semantic error ESE0087: Property 'width' does not exist on type 'ETSGLOBAL' */ +/* @@? 16:57 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 16:64 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 16:64 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ \ No newline at end of file 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..b3d3ad61538a3c4f3982d2c4255cb206516be801 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,7 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/fields.ets b/ets2panda/test/ast/parser/ets/fields.ets index 31cdc48edbacaced6e755ac2afbb339edea4b54f..0a67c363c14c1dd789847b78513537bbc7becf90 100644 --- a/ets2panda/test/ast/parser/ets/fields.ets +++ b/ets2panda/test/ast/parser/ets/fields.ets @@ -27,4 +27,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets b/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets index 83583c963ddb6645c42e4f1ca9d4a443e0e20a42..a9f338efb78ad7012ae86c16c322750f3bafd3fc 100644 --- a/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets +++ b/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets @@ -49,6 +49,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets b/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets index 6282df4a6f4eacb5f9983966dc7611735e9c0250..5fb11f5d4d7d3bbcd1b62d405055a1e948d90310 100644 --- a/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets +++ b/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets @@ -47,6 +47,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/forOfType.ets b/ets2panda/test/ast/parser/ets/forOfType.ets index 32ef6ae505a068762221a4729ebdbca661a6702e..a0138a2800ed21068c7611d776273098468e980a 100644 --- a/ets2panda/test/ast/parser/ets/forOfType.ets +++ b/ets2panda/test/ast/parser/ets/forOfType.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file 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 9ec9ec14aeb8d130d70cef40cceb0aa686ff19b0..ba60bb6ea5ec49cfdba14c46170db3236d1606c1 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,9 @@ for await (let k: int /* @@ label1 */= 0; /* @@ label2 */k < d.length; k++) { this.$_set_unsafe(k + 1, d[k]) } -/* @@? 16:38 Error SyntaxError: for-await-of loop variable declaration may not have an initializer. */ -/* @@? 16:58 Error SyntaxError: Unexpected token 'k'. */ -/* @@? 16:62 Error TypeError: Unresolved reference d */ -/* @@? 17:5 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 17:10 Error TypeError: Property '$_set_unsafe' does not exist on type 'ETSGLOBAL' */ + +/* @@@ 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 ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 17:10 Error Semantic error ESE0087: Property '$_set_unsafe' does not exist on type 'ETSGLOBAL' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/for_in.ets b/ets2panda/test/ast/parser/ets/for_in.ets index 922bde17d5a79170a098ebc31071f129909015d2..a959fd572429a1340430829c8a8c74aee7981e1d 100644 --- a/ets2panda/test/ast/parser/ets/for_in.ets +++ b/ets2panda/test/ast/parser/ets/for_in.ets @@ -17,6 +17,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/for_of_02.ets b/ets2panda/test/ast/parser/ets/for_of_02.ets index b30a1e168da0563f008e4aae0ddf9f67330f4da5..b2c788345fb3b8ca0c0cfa1a60f2a052f46a878a 100644 --- a/ets2panda/test/ast/parser/ets/for_of_02.ets +++ b/ets2panda/test/ast/parser/ets/for_of_02.ets @@ -32,4 +32,6 @@ function main(): void { } } -/* @@@ label Error TypeError: Source element type 'Double' is not assignable to the loop iterator type 'Float'. */ + +/* @@? 19:3 Error Semantic error ESE0069: Source element type 'String' is not assignable to the loop iterator type 'Int'. */ +/* @@@ label Error Semantic error ESE0069: Source element type 'Double' is not assignable to the loop iterator type 'Float'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/for_of_03.ets b/ets2panda/test/ast/parser/ets/for_of_03.ets index 12cd09f1b7c83b24c823afcb211af67be3284b9c..f56e10821bc8f5123ca9bf6b8f5e70aeb48db210 100644 --- a/ets2panda/test/ast/parser/ets/for_of_03.ets +++ b/ets2panda/test/ast/parser/ets/for_of_03.ets @@ -23,5 +23,6 @@ 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 '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/for_of_04.ets b/ets2panda/test/ast/parser/ets/for_of_04.ets index 0b51c9f55cf40b74822d6ecb8756c425f4897172..8b5e177dc6800ad2599573cd4a4d15d6f42bfa8e 100644 --- a/ets2panda/test/ast/parser/ets/for_of_04.ets +++ b/ets2panda/test/ast/parser/ets/for_of_04.ets @@ -25,14 +25,15 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/for_of_loop_variable.ets b/ets2panda/test/ast/parser/ets/for_of_loop_variable.ets index 58952390f714c6ef9b7d68e498d986c4613e9226..8025e022b206e57ec5c31392d9bf113c907341d8 100644 --- a/ets2panda/test/ast/parser/ets/for_of_loop_variable.ets +++ b/ets2panda/test/ast/parser/ets/for_of_loop_variable.ets @@ -30,7 +30,8 @@ for (let value = 40 /* @@ label2 */of iterable2) { console.log(value); } -/* @@@ label1 Error SyntaxError: for-of loop variable declaration may not have an initializer. */ -/* @@@ label2 Error SyntaxError: for-of loop variable declaration may not have an initializer. */ -/* @@? 18:1 Error TypeError: Source element type 'Double' is not assignable to the loop iterator type 'Int'. */ -/* @@? 28:1 Error TypeError: Source element type 'Double' is not assignable to the loop iterator type 'Int'. */ + +/* @@? 18:1 Error Semantic error ESE0069: Source element type 'Double' is not assignable to the loop iterator type 'Int'. */ +/* @@@ label1 Error Syntax error ESY0168: for-of loop variable declaration may not have an initializer. */ +/* @@? 28:1 Error Semantic error ESE0069: Source element type 'Double' is not assignable to the loop iterator type 'Int'. */ +/* @@@ label2 Error Syntax error ESY0168: for-of loop variable declaration may not have an initializer. */ \ No newline at end of file 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..ba5e46a9e8c96471e661d9b4579c7ed49335e90e 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets b/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets index 898c63dfdb1a236691c176fcb0238d285ffd5b22..dac80eeda3be1843815e4f7fc67f9c99b1a782b5 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets @@ -21,4 +21,5 @@ function foo() {} function main(): int { return 0 } -/* @@@ label Error TypeError: Duplicate type parameter 'T'. */ + +/* @@@ label Error Semantic error ESE0182: Duplicate type parameter 'T'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets b/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets index e781375637427b39b2f3a01cfc4c58d5d51629b7..8056285c36f4f3faf3d3fc82ad2d70b8114e4ce0 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets @@ -23,19 +23,20 @@ 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 ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets b/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets index 97ae8eaf9d04cc628a91d08b821648e500ea654a..59986083f28411d458fafd9a08d8057dc81962af 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets @@ -16,5 +16,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets index 8f9e154697a74265d340672a0a1e1ca74a72827b..364ec3bba0b63c712a51164cc5dfa1cbfb2703a3 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets index 7896f0b6aaafdb1eb61d90bde732a4a2f8e7fb9b..403e5859336c17d12dfc3e51053849d086137b4b 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets @@ -25,4 +25,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/function_decl.ets b/ets2panda/test/ast/parser/ets/function_decl.ets index 6b0e4ac7167bf74338907ec4cd962a2bcc465c80..6e830e78dffa8c3cdba4b2687f72eacc6300c137 100644 --- a/ets2panda/test/ast/parser/ets/function_decl.ets +++ b/ets2panda/test/ast/parser/ets/function_decl.ets @@ -14,4 +14,5 @@ */ 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. */ \ No newline at end of file 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..6d2ec26d3c1285463e93e5429118c052c542dde8 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,7 @@ 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'. */ \ No newline at end of file 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..4cb17fd9d63a1c644177b6fff7e6d7f96b7d3cd1 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,5 @@ let fn: (i: int) => int = () => {/* @@ label */return; }; -/* @@@ label Error TypeError: Missing return value. */ + +/* @@@ label Error Semantic error ESE0032: Missing return value. */ \ No newline at end of file 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 d093b49140cc9498eea509530543ee6c1d4217c8..279a5f27c4d85c655c2b5f1b6f75974f26e1aeff 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 '((p1: Int) => void)' cannot be assigned to type '((p1: Int) => Int)' */ +/* @@@ label Error Semantic error ESE0318: Type '(p1: Int) => void' cannot be assigned to type '(p1: 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..93fb5c9db4ca73c9e34ab3f143c59a76f957a094 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generator_function.ets b/ets2panda/test/ast/parser/ets/generator_function.ets index 7f865bb644004d26a4883231dd986a68aa88f577..13efbc1482a60e2ac063c617e084994897a334e2 100644 --- a/ets2panda/test/ast/parser/ets/generator_function.ets +++ b/ets2panda/test/ast/parser/ets/generator_function.ets @@ -14,4 +14,5 @@ */ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets b/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets index 0c3d58049100e5e4f6c69cc06e9bd648d943e716..19379fb02642718f8f6bb6cc9fef1b71227661ae 100644 --- a/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets +++ b/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets b/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets index 87657b52f3a78279ef1c66bc17490cc766deddcf..007e69c4588fad00701a4e900499a903e3c35924 100644 --- a/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets +++ b/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets @@ -23,5 +23,6 @@ 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 */ \ No newline at end of file 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..01871a9cfd97dc7647386f963b9a19735bde4bcc 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,5 @@ */ 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. */ \ No newline at end of file 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..cd495d03c478579d35a58767002514eca07daa00 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,5 @@ * 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. */ \ No newline at end of file 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..df87751eedc2826dee58f674ee5b4a30c6bd9454 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,5 @@ */ 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. */ \ No newline at end of file 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..8feab589cb7cfb9548aff71f71529d0e864dd595 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,5 @@ */ 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. */ \ No newline at end of file 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..01a8348068f0c4605e6d9680c8197d6f3769da4a 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,5 @@ */ 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. */ \ No newline at end of file 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..497672af1b30e7c8056ca4debd970f070fc22560 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,5 @@ */ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generic_error.ets b/ets2panda/test/ast/parser/ets/generic_error.ets index 195bb99fa68ac1963cc56e5125ac5d2ba0d50148..e33b78c26f780a237734166b6521657b25374ac2 100644 --- a/ets2panda/test/ast/parser/ets/generic_error.ets +++ b/ets2panda/test/ast/parser/ets/generic_error.ets @@ -23,4 +23,5 @@ 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 */ \ No newline at end of file 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..5c885acdfeacdcea40c7478929b9d0e240518188 --- /dev/null +++ b/ets2panda/test/ast/parser/ets/generic_lambda_err1.ets @@ -0,0 +1,29 @@ +/* + * 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 '=>'. */ \ No newline at end of file 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..146495a2e4347e3a8c97667691b9a9bcaa0609a9 --- /dev/null +++ b/ets2panda/test/ast/parser/ets/generic_lambda_err2.ets @@ -0,0 +1,40 @@ +/* + * 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. */ \ No newline at end of file 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..0eaf7533d5f579549aa99feba667b2f9c2ba21d2 --- /dev/null +++ b/ets2panda/test/ast/parser/ets/generic_lambda_err3.ets @@ -0,0 +1,48 @@ +/* + * 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:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file 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..bf889fff5052ef6eb59f848a0658e9ca594a6e1c 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,7 @@ 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! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generics_1.ets b/ets2panda/test/ast/parser/ets/generics_1.ets index de790ec0e44aeb449c3b38ccda4ba1b85a88fd37..cec2aa5aa8777a87f11d776e7f305d4a790a3583 100644 --- a/ets2panda/test/ast/parser/ets/generics_1.ets +++ b/ets2panda/test/ast/parser/ets/generics_1.ets @@ -36,5 +36,4 @@ function main(): void { /* @@ label */d.b.a.c = 127; } -/* @@@ label Error TypeError: Variable 'd' is used before being assigned. */ -/* @@@ label Error TypeError: There were errors during assign analysis (1) */ + 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..7f84171862041250e88a3068cb83e37dd67b37af 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,5 @@ 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 */ \ No newline at end of file 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..4ab03b37bf637e722f6909c521f9187e040e7913 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,7 @@ 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. */ \ No newline at end of file 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..2d6c575b29b66784e2e664a50aba3606c834ad8a 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/get_unexpected_void.ets b/ets2panda/test/ast/parser/ets/get_unexpected_void.ets index 0a698416952148b24f4b3c2561cf69d54104dd5e..846f1c1119262db95e9f1a3e4b249cf0e77ec130 100644 --- a/ets2panda/test/ast/parser/ets/get_unexpected_void.ets +++ b/ets2panda/test/ast/parser/ets/get_unexpected_void.ets @@ -17,5 +17,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets b/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets index 2247606d2b4079e8136a1d4f7c1b70749734e65a..7c5185d364cf60154133b5d3a0dc6d26b1973a21 100644 --- a/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets +++ b/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets @@ -21,4 +21,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/getter_native.ets b/ets2panda/test/ast/parser/ets/getter_native.ets index 2c36a49e5f31726058367aea48dcdd3c4e2acbb1..5330861a60b81029c14c07e421221abf7050cdf4 100644 --- a/ets2panda/test/ast/parser/ets/getter_native.ets +++ b/ets2panda/test/ast/parser/ets/getter_native.ets @@ -20,4 +20,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/getter_not_abstract.ets b/ets2panda/test/ast/parser/ets/getter_not_abstract.ets index aca30c3be7474c95d31d9b5b06797131a1731b82..fdbfff03cfb1ca98af3541ce4d99ed7ad5aadda3 100644 --- a/ets2panda/test/ast/parser/ets/getter_not_abstract.ets +++ b/ets2panda/test/ast/parser/ets/getter_not_abstract.ets @@ -20,6 +20,7 @@ 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. */ \ No newline at end of file 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..51a03bcbe966b4c74418452a92a7fb16e911b101 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,8 @@ 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 */ \ No newline at end of file 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..44e2e07dc4e602c0e7cb9a250c651f479126a193 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,6 @@ 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. */ \ No newline at end of file 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..59f90c91e142584862d8636e54cace3def98c7b9 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,5 @@ 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 */ \ No newline at end of file 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..fd9b6629b77ddac43d48f46b3083ee35a45a92f3 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'). */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/global_const_vars1.ets b/ets2panda/test/ast/parser/ets/global_const_vars1.ets index 5a02f4857ea19832129ae347522496bdeb7dac75..bae2156e0f18f30680f777f2dec62b5539e1c67d 100644 --- a/ets2panda/test/ast/parser/ets/global_const_vars1.ets +++ b/ets2panda/test/ast/parser/ets/global_const_vars1.ets @@ -18,4 +18,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/global_const_vars2.ets b/ets2panda/test/ast/parser/ets/global_const_vars2.ets index d84138433ce82362ab8006eaaaf14b6305b06bf5..037fee2dee174b87cc512c2a65841725e49555a5 100644 --- a/ets2panda/test/ast/parser/ets/global_const_vars2.ets +++ b/ets2panda/test/ast/parser/ets/global_const_vars2.ets @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/global_const_vars4.ets b/ets2panda/test/ast/parser/ets/global_const_vars4.ets index 5f80623d78dbe87c53149e547c7bfbc109312df3..58b11031697a39119e5b062f0e5d7a6f557694f6 100644 --- a/ets2panda/test/ast/parser/ets/global_const_vars4.ets +++ b/ets2panda/test/ast/parser/ets/global_const_vars4.ets @@ -27,4 +27,5 @@ class ABC { public main(): void {} } -/* @@@ label Error TypeError: Cannot assign to a readonly field date */ + +/* @@@ label Error Semantic error ESE4002: Cannot assign to a readonly field date */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/global_scope_boolean.ets b/ets2panda/test/ast/parser/ets/global_scope_boolean.ets index 2d098591f4424ad61268a926094f38395c9a50bb..2013b0d8c5f01f26ddc7a4f687ac9d972ec016c3 100644 --- a/ets2panda/test/ast/parser/ets/global_scope_boolean.ets +++ b/ets2panda/test/ast/parser/ets/global_scope_boolean.ets @@ -16,4 +16,4 @@ /* @@ label */true -/* @@@ label Error SyntaxError: Unexpected token ''. */ + diff --git a/ets2panda/test/ast/parser/ets/global_scope_string.ets b/ets2panda/test/ast/parser/ets/global_scope_string.ets index cece77cb820a9c902f3c954d0cef468a21bee9ec..275c25fb4f256b35622fbce74b07ae0ef20ed420 100644 --- a/ets2panda/test/ast/parser/ets/global_scope_string.ets +++ b/ets2panda/test/ast/parser/ets/global_scope_string.ets @@ -16,4 +16,4 @@ /* @@ label */"a\bcde\fg" -/* @@@ label Error SyntaxError: Unexpected token 'string literal'. */ + diff --git a/ets2panda/test/ast/parser/ets/illegal_break_statement.ets b/ets2panda/test/ast/parser/ets/illegal_break_statement.ets index 3dc1bb95b0fedf5110025cd5f4259b6303a8d9cd..05e699734f36625e820d9dd83dcc111f60f1bcce 100644 --- a/ets2panda/test/ast/parser/ets/illegal_break_statement.ets +++ b/ets2panda/test/ast/parser/ets/illegal_break_statement.ets @@ -27,8 +27,9 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets b/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets index 51b0927f20e34f8f11b9ac6404322c41acc2bace..b652755c4ca746e6c3748cf4cac4471933cb11c3 100644 --- a/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets +++ b/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets @@ -41,12 +41,13 @@ 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. */ \ No newline at end of file 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..81bb8b20ac1f32d65201a61ba354c315d1be450e 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/illegal_union_member_exp.ets b/ets2panda/test/ast/parser/ets/illegal_union_member_exp.ets index d49ec5f228f819638682307d1cdb941dc4cde96f..d56be06e29ca38eaf6d527045e6bd2b7e11962ee 100644 --- a/ets2panda/test/ast/parser/ets/illegal_union_member_exp.ets +++ b/ets2panda/test/ast/parser/ets/illegal_union_member_exp.ets @@ -23,4 +23,4 @@ function main(): void { } -/* @@@ label Error TypeError: Type String|Int[] is illegal in union member expression. */ + diff --git a/ets2panda/test/ast/parser/ets/import_assertion.ets b/ets2panda/test/ast/parser/ets/import_assertion.ets index bbf4ed4a28bea17c89c9a37aa2acf3f6143bb3bc..ff7f23ce54e151ae7e16dcc40a5148f83a619b74 100644 --- a/ets2panda/test/ast/parser/ets/import_assertion.ets +++ b/ets2panda/test/ast/parser/ets/import_assertion.ets @@ -16,7 +16,9 @@ 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. */ + +/* @@? 16:21 Error Fatal error F0016: Can't find prefix for 'mod' in /workspaces/arkcompiler/default-build/tools/es2panda/generated/arktsconfig.json */ +/* @@@ 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. */ \ No newline at end of file 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..f7e2a895c93fb5a176af0f8e2f397ab13f663584 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,7 @@ 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'. */ \ No newline at end of file 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..9d7219ea7a06de1c9348e6943dba00b39f04062a 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,5 @@ 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! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_require.ets b/ets2panda/test/ast/parser/ets/import_require.ets index ad8766f57b15aa3ff127e8aa45c4e8fd08d393da..713c2ab1a88d45619b7cf1eaf21c68009e1f91a9 100644 --- a/ets2panda/test/ast/parser/ets/import_require.ets +++ b/ets2panda/test/ast/parser/ets/import_require.ets @@ -15,7 +15,8 @@ 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 */ \ No newline at end of file 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..43bbddbebeda9a05473ffe84190b802980186f2e 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,9 @@ 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'. */ \ No newline at end of file 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..6e30e3057ce80507304eb4c9d379633fa10db79a 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,5 @@ 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' */ \ No newline at end of file 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..85c6614260e5aa6c9381cd2517278a211de72273 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,5 @@ 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 */ \ No newline at end of file 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..383dd2b63ef5277b99636ca2cfdcf2974f320a5e 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,9 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/export_and_import_class.ets b/ets2panda/test/ast/parser/ets/import_tests/export_and_import_class.ets index 373caaaa9af13a4b3387ef5a69f5fb949d239309..32833c04e2835a66d0562e91fc393555fad52ed4 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/export_and_import_class.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/export_and_import_class.ets @@ -22,3 +22,4 @@ export class InExport { let y = new InImport().y // ignored because used only in import +/* @@? import_type_error_in_class.ets:21:28 Error Semantic error ESE0318: Type '"InImport"' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/export_and_import_top_level.ets b/ets2panda/test/ast/parser/ets/import_tests/export_and_import_top_level.ets index 577206beed39350288f1234dea806d71c807c21e..47bf44d199e82e5785fd0b62c4ba35dcf430e126 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/export_and_import_top_level.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/export_and_import_top_level.ets @@ -18,3 +18,4 @@ import {fooImport} from "./import_type_error_top_level" export let inExport = fooImport() // ignored because used only in import +/* @@? import_type_error_top_level.ets:21:35 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ \ No newline at end of file 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..f2c0a8912aea99e2821b820fd9e349f264301637 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,6 @@ 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 '}'. */ \ No newline at end of file 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..c06b61916ba809828c3db3491abf22e3989a3c05 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,5 @@ function foo3(): void {} export {foo2,} export {/* @@ label */, foo3} -/* @@@ label Error SyntaxError: Unexpected token ','. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token ','. */ \ No newline at end of file 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..aed063eb8d267aade0fa3285c5212e6af82f7eca 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,5 @@ function main():void{ } -/* @@@ label Error TypeError: 'bar1' type does not exist. */ + +/* @@@ label Error Semantic error ESE0070: 'bar1' type does not exist. */ \ No newline at end of file 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..fb2c69a93902491d50670f9b5462be71b0a1628d 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,5 @@ 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' */ \ No newline at end of file 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..e2b30ecc9f3da53d8661afea2e62903872885ecc 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,5 @@ 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' */ \ No newline at end of file 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..a00123d3d8e5a8cd3a0f96cf4407163fbe440f2b 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,5 @@ 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' */ \ No newline at end of file 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..706d5f2f22abdebb829e4aa25b3ab06f7cfa47b9 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,6 @@ 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. */ \ No newline at end of file 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..ec910d9b3c1cdf335b7cccb91164aeee258a6677 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,6 @@ 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. */ \ No newline at end of file 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..967dd15fd64917eb4eb35a3ecf60c0b524b4ca36 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,5 @@ 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 */ \ No newline at end of file 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..f8fd932fb20b53575e56a1a7cdaa30973503c869 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,6 @@ 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 */ \ No newline at end of file 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..8e0c6d919fa7d48c32bb25cd94fbc495d58945e2 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,5 @@ 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 */ \ No newline at end of file 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..a40537a8730b39d8b2880bdc5b951059481b132f 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,6 @@ 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. */ \ No newline at end of file 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..302071b27cbf1c9ac71b8d3699596b49da34daa6 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,5 @@ 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. */ \ No newline at end of file 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..326272b7d605982525ec3037a246800037d05e8f 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,5 @@ 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. */ \ No newline at end of file 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..71d3f2ac0a2cb8bda61b005ebe4e702572d9f8a3 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,5 @@ 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. */ \ No newline at end of file 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..a6e5482d6c95a9165f06b2cd1e75ce49d8513daa 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,5 @@ 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. */ \ No newline at end of file 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..0e3a51abdd0e661367680be3a75ba25dfc2ea7dd 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,5 @@ 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. */ \ No newline at end of file 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..a261125ecbb09ef960c54c088260da282b693ab1 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,5 @@ 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. */ \ No newline at end of file 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..c54bdaf0d0008e7d208ec10781617c028a4b8434 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,5 @@ 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. */ \ No newline at end of file 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..c317289e6d3ef29d32461d76464c8e0dfb8225e2 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,5 @@ 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. */ \ No newline at end of file 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..d8a2b7531bbe4a79b49edd835f9e5c26516a1d66 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,5 @@ 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. */ \ No newline at end of file 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..9596d6dfab99b9e5e1987a80193f1fdd01989e3c 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,5 @@ 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. */ \ No newline at end of file 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..52c32116cf3044e1fca91a47c891168fbadff941 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,5 @@ 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. */ \ No newline at end of file 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..fcf94f6a767b6573b3f28164ff5ba317fdfb20e4 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,5 @@ 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. */ \ No newline at end of file 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..64a8e4c168dea312fddb8aa4b913d567392b8c1e 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,5 @@ 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. */ \ No newline at end of file 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..ad11dedbf57ab4cd3247af7f2f9d306261f9caca 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,5 @@ 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. */ \ No newline at end of file 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..6ae21b2404d09f81cfa41f0c5e7b21a0aec9c93c 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,5 @@ 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. */ \ No newline at end of file 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..5556336e2815979bd4fa20a40eee384de2403da9 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,5 @@ 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. */ \ No newline at end of file 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..0e3389ab9327bc501e16782dee7dc9a98a5bca2b 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,5 @@ 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. */ \ No newline at end of file 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..05e519a44ff1b06e5d60e0d735de7a90b36946da 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,5 @@ 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. */ \ No newline at end of file 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..f3621e5ba830d86c4d9c44a2094eb4e6a0ac0c4e 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,5 @@ 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. */ \ No newline at end of file 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..0ae13a5b7f73498eedc41dfe7e91b0cee2cce973 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,10 @@ 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'. */ \ No newline at end of file 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..561f26e7ce94bfdabfdd229a5f1f2f307a701b60 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,5 @@ 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' */ \ No newline at end of file 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..e9891b63df57281ed693905070c5a98225dee965 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,5 @@ 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' */ \ No newline at end of file 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..ddd053c2be7379ac6031e0fbec456ac2a7c4591e 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,5 @@ 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 */ \ No newline at end of file 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..d677789d5b51934653388db79ce19a6832a40ad3 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,5 @@ 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 */ \ No newline at end of file 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..20156589aafc5fbe6bfef40aab10d742c5e934c6 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,5 @@ import * /* @@ label */from "./module" -/* @@@ label Error SyntaxError: Unexpected token, expected 'as'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'as'. */ \ No newline at end of file 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..827ffff55a383ada8d41c98717a74fbfcbe561d4 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,10 @@ 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'. */ \ No newline at end of file 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..67f2bad53526414bf869555fb1f500cab6c65e48 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,5 @@ 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 */ \ No newline at end of file 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..5b4bac366c56ad8bbc197b0930d6dc91f17c7f65 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,5 @@ 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 */ \ No newline at end of file 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..51caff9ad9f1444f40bbf9e60ca7d4446f4e2dd8 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,6 @@ 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. */ \ No newline at end of file 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..c95dc28acfcf1a22cbd1b0b17061e45c1dcfe5ab 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,5 @@ 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. */ \ No newline at end of file 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..4b9d1f476fe6963970ed8e893a9b1c0d26be7e8b 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,6 @@ 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'. */ \ No newline at end of file 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..4de0376cf9c3c53f15f627a332bc9cb2b6d250b1 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,5 @@ 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. */ \ No newline at end of file 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..4e50e50d0184b6a5283541abd5e5ee7fa41a174f 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,5 @@ 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'. */ \ No newline at end of file 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..4fdac807e3192bb9ee03feae2798317fae59d12d 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,5 @@ 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. */ \ No newline at end of file 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..194032259d9768417fed894e8f96929dd1db4435 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,5 @@ 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. */ \ No newline at end of file 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..2e4b9788f626ab86378e7504ee1891eebfc39d0f 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,7 @@ 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 ';'. */ \ No newline at end of file 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..05331fa6539471092bbe33cdd2d6064e7c75ace5 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,6 @@ 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 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/parser/ets/index_not_support_such_type.ets b/ets2panda/test/ast/parser/ets/index_not_support_such_type.ets index c713e3133391f444913437cfa2c9202fed1f4723..87d7230305779322cb2d1b635b975948e7b6fc8a 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,13 @@ 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. */ \ No newline at end of file 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..567775e21d114de228dda94e0079017013097920 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,7 @@ 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. */ \ No newline at end of file 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..80849badc922c56d78ba5b65ce0d2a111cd99293 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,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/indexed_access_type_1.ets b/ets2panda/test/ast/parser/ets/indexed_access_type_1.ets index e61fe1d3fab1458a696e6e22bb016527c4ecfc77..373062f16ddec13ea11caf3774f2998538c1c852 100644 --- a/ets2panda/test/ast/parser/ets/indexed_access_type_1.ets +++ b/ets2panda/test/ast/parser/ets/indexed_access_type_1.ets @@ -16,5 +16,6 @@ type Point = /* @@ label1 */{x: number = 0; y: number = 0} type N = Point/* @@ label2 */["x"] -/* @@@ label1 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label2 Error SyntaxError: Indexed access types are not supported, use type name 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 ESY49888: Indexed access types are not supported, use type name instead! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/indexed_access_type_2.ets b/ets2panda/test/ast/parser/ets/indexed_access_type_2.ets index 479a44a0de92857745272bd7e96e12be612a355d..393273f356b09b2066c481c298fac1757e1ce668 100644 --- a/ets2panda/test/ast/parser/ets/indexed_access_type_2.ets +++ b/ets2panda/test/ast/parser/ets/indexed_access_type_2.ets @@ -16,4 +16,5 @@ class Point {x: number = 0; y: number = 0} type N = Point/* @@ label */["x"] -/* @@@ label Error SyntaxError: Indexed access types are not supported, use type name instead! */ + +/* @@@ label Error Syntax error ESY49888: Indexed access types are not supported, use type name instead! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets b/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets index ac7b4b0c7c171b9778e6ce94d1fd917e7cd6e608..e0377c7b0c72b29baef5dc9a8a858279bcc3a5ac 100644 --- a/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets +++ b/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/instanceof_on_type.ets b/ets2panda/test/ast/parser/ets/instanceof_on_type.ets index cb4b9dcc7b05ba006d5618998dd5107762e997e5..1569f816a0c3c78ba73dbef4b7409766a69e01e6 100644 --- a/ets2panda/test/ast/parser/ets/instanceof_on_type.ets +++ b/ets2panda/test/ast/parser/ets/instanceof_on_type.ets @@ -22,6 +22,7 @@ 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. */ \ No newline at end of file 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..ce0396fd9dcc8292a53ad8b7658de74f954f805a 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,5 @@ function main() b instanceof /* @@ label */a } -/* @@@ label Error TypeError: Cannot find type 'a'. */ + +/* @@@ label Error Semantic error ESE0371: Cannot find type 'a'. */ \ No newline at end of file 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..4ff4e282946f93065c08f9dcbd2f647c44745787 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,5 @@ 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. */ \ No newline at end of file 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..f11f6a21c5241b361edc1a59759279b9f03d033b 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface-override-function.ets b/ets2panda/test/ast/parser/ets/interface-override-function.ets index f874ad76b546004cab1f1691b90849f51273ddd0..e8fa6b813518635abe8406765f4a8d63bc6f6b46 100644 --- a/ets2panda/test/ast/parser/ets/interface-override-function.ets +++ b/ets2panda/test/ast/parser/ets/interface-override-function.ets @@ -26,4 +26,5 @@ interface J extends K { } -/* @@@ label Error SyntaxError: 'override' modifier cannot appear in interfaces. */ + +/* @@@ label Error Syntax error ESY0189: 'override' modifier cannot appear in interfaces. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface.ets b/ets2panda/test/ast/parser/ets/interface.ets index 2821c3c019f7328414ee348c7c331eb3bda9c326..3c26a2a62eb326ad39ccbdd6d3f14567a3ab0a79 100644 --- a/ets2panda/test/ast/parser/ets/interface.ets +++ b/ets2panda/test/ast/parser/ets/interface.ets @@ -17,4 +17,5 @@ interface G {} -/* @@@ label Error TypeError: Cannot find type 'FunctioN'. */ + +/* @@@ label Error Semantic error ESE0371: Cannot find type 'FunctioN'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceAbstract.ets b/ets2panda/test/ast/parser/ets/interfaceAbstract.ets index afd71e3dd2183f6badf79b7716dc7426793ba2fa..739b35650006011c4fac53ed8ed53fb310f872fe 100644 --- a/ets2panda/test/ast/parser/ets/interfaceAbstract.ets +++ b/ets2panda/test/ast/parser/ets/interfaceAbstract.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets index cce7b4d6387fac89c0cb1ad6ce06440c032df7e1..17691139fe2ca9ea01d217fd2240ebf2c6d9c57c 100644 --- a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets +++ b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets @@ -28,4 +28,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets index 2bbca592d67434ed18febf845d6310fed30a3e6f..f892cb136b6c9b62a85f95ecd93bc7a36358f728 100644 --- a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets +++ b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets @@ -33,6 +33,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets index f4e3a406f074f871f66c77caee431ecb3f273ae7..8fc0ec0180ec4cd6ccb2bc76772c1b76f77b1633 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets @@ -17,4 +17,5 @@ interface I { /* @@ label */native foo() } -/* @@@ label Error SyntaxError: Identifier expected, got 'native'. */ + +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'native'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets b/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets index ec065fd50ed84905103171d20f7e8c5e468d9967..69193bd664abe6a107d307f819e681efc816296f 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets @@ -17,6 +17,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets index b2e896848a93f9bbaa393fba8f7881d4678ca12c..b5efac0a6e5a1eb8c9e87627bfef5b8231708f40 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets @@ -17,6 +17,7 @@ interface I { private static foo() } -/* @@? 17:13 Error SyntaxError: Identifier expected. */ -/* @@? 17:13 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:13 Error SyntaxError: Identifier expected, got 'static'. */ + +/* @@? 17:13 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:13 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:13 Error Syntax error ESY0224: Identifier expected, got 'static'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets index 9d4cf23b2b73aaa2cf59d217586abac71c824b05..f87a96ac3c52633839d5c04ac443adddd94dd2ca 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: Identifier expected, got 'end of stream'. */ -/* @@? 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 ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets index ec59242f2dd87b01514430fd28b988bd9d7293d3..858c60a07e86786970b8cde78140427abb6667a2 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets @@ -17,4 +17,5 @@ interface I { /* @@ label */static foo() } -/* @@@ label Error SyntaxError: Identifier expected, got 'static'. */ + +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'static'. */ \ No newline at end of file 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..59c3f4dd7c777a8618d1b953d5242590c747ed69 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'. */ \ No newline at end of file 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..9f2de5a1edcacd686293cbe2b0c0aa43ca17d6d7 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 ')'. */ \ No newline at end of file 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..165f6fe846814b646b53cbb0f728cc5c1d42e0ea 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,5 @@ declare interface A { [index : number]: stringdd } -/* @@? 19:5 Error TypeError: Cannot find type 'stringdd'. */ + +/* @@? 19:5 Error Semantic error ESE0371: Cannot find type 'stringdd'. */ \ No newline at end of file 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 77e7f5b1ae19384e1b7d1afa6455e80019f3f78f..37b128f8ad5bc7df2cf942264fce5aeedd7bf841 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,16 @@ 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: Identifier expected, got 'end of stream'. */ -/* @@? 17:21 Error SyntaxError: Identifier expected. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:21 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 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 ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 17:21 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:21 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets b/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets index a186fd0f709b0ffee8baad3e0149ada2b9392fda..6b794022c897d937523b88abd1cd4c5d844e7a14 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_extends_class.ets b/ets2panda/test/ast/parser/ets/interface_extends_class.ets index 6e88716f0c466a20fc1b95f31c4989e730b5f135..01da371e5402d2a3824a3ed57669f87b02f762d3 100644 --- a/ets2panda/test/ast/parser/ets/interface_extends_class.ets +++ b/ets2panda/test/ast/parser/ets/interface_extends_class.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_instantiation.ets b/ets2panda/test/ast/parser/ets/interface_instantiation.ets index baa3579c4d6cea316f9eab3e3633b25b4d02d20a..6b5d55e89889081756a584f1e4524a8073e2171b 100644 --- a/ets2panda/test/ast/parser/ets/interface_instantiation.ets +++ b/ets2panda/test/ast/parser/ets/interface_instantiation.ets @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file 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..0d96c11f34865aa438fda66d16ce831b42d5bf8f 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_member_initialization.ets b/ets2panda/test/ast/parser/ets/interface_member_initialization.ets index 3af1b2d88d07ea06902df4a81a0130ece142d7a3..804be3ae84f44d9f1ba6456ba5db1787350c01b5 100644 --- a/ets2panda/test/ast/parser/ets/interface_member_initialization.ets +++ b/ets2panda/test/ast/parser/ets/interface_member_initialization.ets @@ -22,7 +22,8 @@ function main() } -/* @@? 17:14 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:16 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 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 ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 17:17 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file 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 59b147e1cf2be8e339f7f034ffd8e595f4cdf216..9b915a952da3b196e04d04d101e0e72e19fac89d 100644 --- a/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets +++ b/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets @@ -32,32 +32,33 @@ 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: Identifier expected, got 'end of stream'. */ -/* @@? 20:16 Error SyntaxError: Identifier expected. */ -/* @@? 20:16 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 20:16 Error SyntaxError: Identifier expected, got 'boolean'. */ -/* @@? 21:1 Error SyntaxError: Identifier expected. */ -/* @@? 22:1 Error TypeError: Unresolved reference inter */ -/* @@? 24:1 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 26:19 Error SyntaxError: Unexpected token '�ls'. */ -/* @@? 26:19 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 27:5 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 27:7 Error SyntaxError: Unexpected token '{'. */ -/* @@? 28:5 Error SyntaxError: Identifier expected, got 'constructor'. */ -/* @@? 28:5 Error SyntaxError: Hard keyword 'constructor' cannot be used as identifier */ -/* @@? 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. */ -/* @@? 64: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 ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 20:16 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 20:16 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 20:16 Error Syntax error ESY0224: Identifier expected, got 'boolean'. */ +/* @@? 21:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 22:1 Error Semantic error ESE0143: Unresolved reference inter */ +/* @@? 24:1 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 26:19 Error Syntax error ESY0227: Unexpected token '�ls'. */ +/* @@? 26:19 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 27:5 Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@? 27:7 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 28:5 Error Syntax error ESY0224: Identifier expected, got 'constructor'. */ +/* @@? 28:5 Error Syntax error ESY0316: Hard keyword 'constructor' cannot be used as identifier */ +/* @@? 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. */ +/* @@? 64:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file 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 b0d947afd4b4fd0ff936ef77dc80fbb03097f3b6..dccc99320ae8cf40100f563cb4c5e5a0d6c8fcd7 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,9 @@ interface I { : boolean } -/* @@? 17:5 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 17:7 Error SyntaxError: Identifier expected. */ -/* @@? 17:7 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:7 Error SyntaxError: Identifier expected, got 'boolean'. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ + +/* @@? 17:5 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 17:7 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:7 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:7 Error Syntax error ESY0224: Identifier expected, got 'boolean'. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file 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..e353da8c96b4596709804d61d333793e2e2a49b3 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_property_modifiers.ets b/ets2panda/test/ast/parser/ets/interface_property_modifiers.ets index b82e95fb28a418478f00d3c4359526633fd9a0f4..873dece0ad40c4128fa729f8fcd84825b0d27ba9 100644 --- a/ets2panda/test/ast/parser/ets/interface_property_modifiers.ets +++ b/ets2panda/test/ast/parser/ets/interface_property_modifiers.ets @@ -25,8 +25,9 @@ interface I { default f_def: number; } -/* @@? 21:5 Error SyntaxError: Identifier expected, got 'private'. */ -/* @@? 22:5 Error SyntaxError: Identifier expected, got 'protected'. */ -/* @@? 23:5 Error SyntaxError: Identifier expected, got 'public'. */ -/* @@? 24:5 Error SyntaxError: Identifier expected, got 'static'. */ -/* @@? 25:5 Error SyntaxError: Identifier expected, got 'default'. */ + +/* @@? 21:5 Error Syntax error ESY0224: Identifier expected, got 'private'. */ +/* @@? 22:5 Error Syntax error ESY0224: Identifier expected, got 'protected'. */ +/* @@? 23:5 Error Syntax error ESY0224: Identifier expected, got 'public'. */ +/* @@? 24:5 Error Syntax error ESY0224: Identifier expected, got 'static'. */ +/* @@? 25:5 Error Syntax error ESY0224: Identifier expected, got 'default'. */ \ No newline at end of file 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 f85d1b3626b0d4acd778c0e908db343c7a25a4b7..0dc51c9bcbe88d8f98792527ca2352effe878e79 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,5 @@ interface A{ static f!:string } -/* @@? 17:5 Error SyntaxError: Identifier expected, got 'static'. */ + +/* @@? 17:5 Error Syntax error ESY0224: Identifier expected, got 'static'. */ \ No newline at end of file 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..955d052f7d9ddedf01bcfa34e7609a5a28a59779 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,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaces2.ets b/ets2panda/test/ast/parser/ets/interfaces2.ets index fe80085b64ea1ee843167f5503307c876ee9fa27..693202545b66b6f348936937d151a92c280c8352 100644 --- a/ets2panda/test/ast/parser/ets/interfaces2.ets +++ b/ets2panda/test/ast/parser/ets/interfaces2.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaces3.ets b/ets2panda/test/ast/parser/ets/interfaces3.ets index c8fdf3fb554942ee2666b8fcdce50adad7c3639f..3e1653a1a39f4d83b804281715b441488b1d2223 100644 --- a/ets2panda/test/ast/parser/ets/interfaces3.ets +++ b/ets2panda/test/ast/parser/ets/interfaces3.ets @@ -17,6 +17,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/intersection_types.ets b/ets2panda/test/ast/parser/ets/intersection_types.ets index 8b7cdb919c87bc4a25acac934401a32628531162..6eab786289df51c16ba312e90b2039f323632539 100644 --- a/ets2panda/test/ast/parser/ets/intersection_types.ets +++ b/ets2panda/test/ast/parser/ets/intersection_types.ets @@ -25,4 +25,4 @@ interface Contact { type Employee = Identity & Contact -/* @@? 26:28 Error SyntaxError: Intersection types are not supported, use inheritance instead! */ \ No newline at end of file +/* @@? 26:28 Error Syntax error ESY145527: Intersection types are not supported, use inheritance instead! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalidEnums.ets b/ets2panda/test/ast/parser/ets/invalidEnums.ets index 82a8b213907bcb988ec02f600c8fb54fa4dba0d2..8a0f6c587b7bc359b1f10ea3c9e64893d7532e73 100644 --- a/ets2panda/test/ast/parser/ets/invalidEnums.ets +++ b/ets2panda/test/ast/parser/ets/invalidEnums.ets @@ -58,19 +58,20 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalidEnums1.ets b/ets2panda/test/ast/parser/ets/invalidEnums1.ets index 2021d1a65fdf77e5989dc25f8827933ee4ddfeef..6e01312a3d7c9d3d591bf3560c65b413073ae61d 100644 --- a/ets2panda/test/ast/parser/ets/invalidEnums1.ets +++ b/ets2panda/test/ast/parser/ets/invalidEnums1.ets @@ -26,7 +26,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalidTypes.ets b/ets2panda/test/ast/parser/ets/invalidTypes.ets index ebd93a9b39d70e3c481bb2da63ef8585ff57aab2..39400c6b36aaa65a2ee04eb9d244982a6d0e962f 100644 --- a/ets2panda/test/ast/parser/ets/invalidTypes.ets +++ b/ets2panda/test/ast/parser/ets/invalidTypes.ets @@ -37,40 +37,42 @@ 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 ESY0227: Unexpected token '...'. */ +/* @@? 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 ESY0138: Invalid Type. */ +/* @@? 26:12 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 26:12 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 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 ESY0227: Unexpected token '?'. */ +/* @@? 28:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 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 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 ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_access_static.ets b/ets2panda/test/ast/parser/ets/invalid_access_static.ets index 906e6cc94cbdf009a6f75dad94cfcfcf4919405f..c2274e62a9ca154edc244e2d97c09f4cd6a1b665 100644 --- a/ets2panda/test/ast/parser/ets/invalid_access_static.ets +++ b/ets2panda/test/ast/parser/ets/invalid_access_static.ets @@ -20,4 +20,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_access_static2.ets b/ets2panda/test/ast/parser/ets/invalid_access_static2.ets index 18ff34be45aa37e0ba8f671ef3083f2817e75770..21768bf700984b09cf6b72956ad617f074500d3c 100644 --- a/ets2panda/test/ast/parser/ets/invalid_access_static2.ets +++ b/ets2panda/test/ast/parser/ets/invalid_access_static2.ets @@ -22,4 +22,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets b/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets index b50d888aa835aed8c672a273c58d4cf8fe9cce72..b97756e9f21654bf4068c2e7332e4a8dbc75c914 100644 --- a/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets +++ b/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets @@ -15,20 +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: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: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 '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets b/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets index 826c56c07631a8182f7951235a6da189dc5de897..267b2944781e940f94a573be18bebe51815241be 100644 --- a/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets +++ b/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets @@ -15,5 +15,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets b/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets index fc163f36e8b8b9c6a40666d4abb9f49c388ab318..fda8fa49f728bd0900e724c90bb39fbda4acfc2a 100644 --- a/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets +++ b/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets @@ -23,5 +23,6 @@ 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 '=>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_object_expression.ets b/ets2panda/test/ast/parser/ets/invalid_object_expression.ets index 16850eb68271070dc0fd7ae73e2865ee262847c3..3a574f9eaec76afa19157ee4ee2560bc28317676 100644 --- a/ets2panda/test/ast/parser/ets/invalid_object_expression.ets +++ b/ets2panda/test/ast/parser/ets/invalid_object_expression.ets @@ -18,11 +18,12 @@ let obj: Record = { [this.viewModel.ads] : 123 } -/* @@? 18:5 Error SyntaxError: Unexpected token. */ -/* @@? 18:6 Error SyntaxError: Unexpected token. */ -/* @@? 18:6 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 18:11 Error TypeError: Property 'viewModel' does not exist on type 'ETSGLOBAL' */ -/* @@? 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 ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 18:11 Error Semantic error ESE0087: Property 'viewModel' does not exist on type 'ETSGLOBAL' */ +/* @@? 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_object_literal.ets b/ets2panda/test/ast/parser/ets/invalid_object_literal.ets index 4929e16649b88eca1af1fade82601c60320000c0..8220c31fbc18ce512bdb841cd2f8f21973eec4e6 100644 --- a/ets2panda/test/ast/parser/ets/invalid_object_literal.ets +++ b/ets2panda/test/ast/parser/ets/invalid_object_literal.ets @@ -36,6 +36,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets b/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets index 81f7135a04974d75af72ac520dc73069f77d7fb2..cc9fcc45e128e1f3895a9f6ec50ab8aba67af63e 100644 --- a/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets +++ b/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets @@ -17,11 +17,12 @@ 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: Identifier expected, got 'end of stream'. */ -/* @@? 17:6 Error SyntaxError: Identifier expected. */ -/* @@? 17:6 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:6 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ + +/* @@? 17:2 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 17:4 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@? 17:4 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:4 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 17:6 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:6 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:6 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file 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..44a1497a36717bc932f697c6ec154ae00873b6d5 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,9 @@ 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 '>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_syntax_in_object_literal.ets b/ets2panda/test/ast/parser/ets/invalid_syntax_in_object_literal.ets index 11b608f9bcec649f98413bc81fab1a948510360d..cd64f6d57285ccf86c66fd45aeb3076d14cc5a48 100644 --- a/ets2panda/test/ast/parser/ets/invalid_syntax_in_object_literal.ets +++ b/ets2panda/test/ast/parser/ets/invalid_syntax_in_object_literal.ets @@ -19,5 +19,6 @@ let a2: A2 = { } } -/* @@? 16:9 Error TypeError: Cannot find type 'A2'. */ -/* @@? 19:5 Error SyntaxError: Unexpected token, expected '>'. */ + +/* @@? 16:9 Error Semantic error ESE0371: Cannot find type 'A2'. */ +/* @@? 19:5 Error Syntax error ESY0228: Unexpected token, expected '>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_type.ets b/ets2panda/test/ast/parser/ets/invalid_type.ets index 36b08c0491a44c777dcbbfa168f921f647ed916e..8f0a9c627082a0483d5aa09334ef8cfdfac64e61 100644 --- a/ets2panda/test/ast/parser/ets/invalid_type.ets +++ b/ets2panda/test/ast/parser/ets/invalid_type.ets @@ -17,6 +17,7 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets b/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets index 814b8ad67da037693c17f0a3aeb06aef2da51219..67b519b06000f7bdcfc55764dcb43d2e7b054cf5 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! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/iterator_override_next.ets b/ets2panda/test/ast/parser/ets/iterator_override_next.ets index c932e57e519159aeef07dd931bdadd191cc1f3cf..8a95c9a3bfb9c9911f39499d4ffab4279255203d 100644 --- a/ets2panda/test/ast/parser/ets/iterator_override_next.ets +++ b/ets2panda/test/ast/parser/ets/iterator_override_next.ets @@ -17,5 +17,8 @@ class CLterator implements Iterator /* @@ label */{ next(): Iterator {} } -/* @@@ label Error TypeError: CLterator is not abstract and does not override abstract method next(): IteratorResult in Iterator */ + +/* @@@ label Error Semantic error ESE0190: CLterator is not abstract and does not override abstract method next(): IteratorResult in Iterator */ +/* @@? 17:9 Error Semantic error ESE0141: next(): Iterator in CLterator cannot override next(): IteratorResult in Iterator because overriding return type is not compatible with the other return type. */ +/* @@? 17:9 Error Semantic error ESE0136: Method next(): Iterator in CLterator not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_annotation.ets b/ets2panda/test/ast/parser/ets/keyof_annotation.ets index 4e64a018dd677e97b8e50ef5dbe93ceae4a751ad..97ce32191fe577462f657accbd0005b48dfbf70a 100644 --- a/ets2panda/test/ast/parser/ets/keyof_annotation.ets +++ b/ets2panda/test/ast/parser/ets/keyof_annotation.ets @@ -41,9 +41,10 @@ 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"' */ \ No newline at end of file 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..964cb928135516c43a9bf3815e21215690a46c87 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,10 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets b/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets index 682e4caa7326d503c0fbe17c2a0ad83fc78ed20d..66328ba6b5dfdf1b696ac2ea1cfca2bee95c75c4 100644 --- a/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets +++ b/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets @@ -33,11 +33,12 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_constraint.ets b/ets2panda/test/ast/parser/ets/keyof_constraint.ets index ed208c3516b71adf4ed70bfc607134a90356aff4..a75a3b66e03f9fc349d96737cd05014633b3bd55 100644 --- a/ets2panda/test/ast/parser/ets/keyof_constraint.ets +++ b/ets2panda/test/ast/parser/ets/keyof_constraint.ets @@ -30,6 +30,7 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_never.ets b/ets2panda/test/ast/parser/ets/keyof_never.ets index c8b75b81c4c9a4763dd82506f5fe521461f52e5f..5dadd691a95c47f895d0c9a280aae36ae9abd067 100644 --- a/ets2panda/test/ast/parser/ets/keyof_never.ets +++ b/ets2panda/test/ast/parser/ets/keyof_never.ets @@ -21,6 +21,7 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_parameter.ets b/ets2panda/test/ast/parser/ets/keyof_parameter.ets index 5d3c9af6412b7c082545ea040f81108d3df6c407..c87c75509c666ae59ca2cd4bc6a3dd8506365ee9 100644 --- a/ets2panda/test/ast/parser/ets/keyof_parameter.ets +++ b/ets2panda/test/ast/parser/ets/keyof_parameter.ets @@ -28,9 +28,10 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets b/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets index ceb6c262362bcecd9b9b97df63180c41e0a59c7c..1177339718a1232e94e400be5a9f9a0a649b5a59 100644 --- a/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets +++ b/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets @@ -18,5 +18,6 @@ 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"|"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"|"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"|"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"|"add"|"toByte"|"floatValue"|"toShort"|"toChar"|"valueOf"|"MIN_VALUE"|"MAX_VALUE"|"BIT_SIZE"|"BYTE_SIZE"' */ \ No newline at end of file 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..a65ace2f75d610cda852285a0dc3abddd567d42d 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,12 @@ 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"' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_smartcast.ets b/ets2panda/test/ast/parser/ets/keyof_smartcast.ets index 22ef6be9d47e999162b7a1de9dd4e544d9f82dbf..9f09d23a412563ffe9b122da4111f39ed54d4549 100644 --- a/ets2panda/test/ast/parser/ets/keyof_smartcast.ets +++ b/ets2panda/test/ast/parser/ets/keyof_smartcast.ets @@ -40,7 +40,8 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets b/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets index e1b1f5fb3d4426f1232433f005083a5af050b539..5375b55809ab5299f481ad44cf79e387613109c2 100644 --- a/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets +++ b/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets @@ -30,6 +30,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_union.ets b/ets2panda/test/ast/parser/ets/keyof_union.ets index fa9733238e5ae382a474890b6380ed92b56cdb33..60f765739dc33a8d270cd759b147b615849e75f9 100644 --- a/ets2panda/test/ast/parser/ets/keyof_union.ets +++ b/ets2panda/test/ast/parser/ets/keyof_union.ets @@ -33,9 +33,10 @@ 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'. */ \ No newline at end of file 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 70f6ff269172fab2cccf0bc86846ac89f5b165b0..355b4473631abd8edef6c40696d0fce08322fd58 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,12 @@ interface A { readonly static a = 45; } -/* @@? 17:2 Error SyntaxError: Identifier expected. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:11 Error SyntaxError: Identifier expected, got 'static'. */ -/* @@? 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: Identifier expected, got 'number literal'. */ -/* @@? 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 ESY0224: Identifier expected, got 'static'. */ +/* @@? 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 ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 17:24 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/labeled.ets b/ets2panda/test/ast/parser/ets/labeled.ets index c6e742534fef7cee9565a9277337eb47223ae0b8..2c4a4501972f4d6f9b84e36aba8cf12c8ae843a1 100644 --- a/ets2panda/test/ast/parser/ets/labeled.ets +++ b/ets2panda/test/ast/parser/ets/labeled.ets @@ -23,10 +23,11 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets b/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets index 3847e046a244373056e1af43467aaed6b7d691ca..cca9d294defe2a3720470f3e9c66d70bafd834c5 100644 --- a/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets +++ b/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file 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..572a76191cbacf470828244ecd03d422cb31d81d 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,7 @@ 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 + +/* @@ label2 *//* @@@ label Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file 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..2f2e0377fbb5e93168365f1ec68811791bb861d2 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,9 @@ 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:79 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 28:79 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 28:79 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 28:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file 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..828e3212b42221a0b8f50f49f60ddf19ffbf2893 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda-type-inference-neg2.ets b/ets2panda/test/ast/parser/ets/lambda-type-inference-neg2.ets index b0b3ab8163d1ff5e371b291220d62e82b9d96bb0..21cfe8fb928dd18f3824a97d8310f26eee5d6c10 100644 --- a/ets2panda/test/ast/parser/ets/lambda-type-inference-neg2.ets +++ b/ets2panda/test/ast/parser/ets/lambda-type-inference-neg2.ets @@ -22,4 +22,5 @@ function main(): void { } // This test should be negative because of the return type mismatch -/* @@@ label Error TypeError: placeholder */ + +/* @@? 21:30 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int' */ \ No newline at end of file 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 57cf66402c6795e32ea49191b52119d2385e2244..f284bb629c06172132c3fb3dc2935c0b2605e0f5 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 '((p1: Double, p2: String) => Boolean)' is not compatible with type '((p1: Int, p2: 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 '(p1: Double, p2: String) => Boolean' is not compatible with type '(p1: Int, p2: 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/lambdaWithWrongOptionalParameter.ets b/ets2panda/test/ast/parser/ets/lambdaWithWrongOptionalParameter.ets index aa61413645ae8fc766f4015100cc9f4535838559..be5bdd4c8de418ea3bc00d66087d41b4c6ac0fff 100644 --- a/ets2panda/test/ast/parser/ets/lambdaWithWrongOptionalParameter.ets +++ b/ets2panda/test/ast/parser/ets/lambdaWithWrongOptionalParameter.ets @@ -21,5 +21,5 @@ function main() { foo(2,3); } -/* @@? 17:25 Error TypeError: Expected initializer for parameter b. */ -/* @@? 1:1 Error SyntaxError: Required parameter follows default parameter(s). */ + +/* @@? 17:25 Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ \ No newline at end of file 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..8981c718b15c77454a0136a4db8dfa00b188ad38 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,20 @@ 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 ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:18 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 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 */ \ No newline at end of file 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..4abd0998c6b5967650cf2c80e555b2fc14f274c8 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,6 @@ 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 */ \ No newline at end of file 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..99e7bb1f30a7a3d101671acfbca09ed52f2f67c7 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' */ \ No newline at end of file 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..6fe9cc6261188263d90ef72d2f4895ea4e836925 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,6 @@ 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", "!", "!", "!", "!", "!", "!", "!") */ \ No newline at end of file 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..c93311c7bbf80e26d462a5faaa95b784442d4348 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,6 @@ 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", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ \ No newline at end of file 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..c21b8775608db3fd02de795824826256cdf159da 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,6 @@ 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", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ \ No newline at end of file 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..b14b8a14d2c1918a3c38a1ee145414967503abe4 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,6 @@ 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", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ \ No newline at end of file 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..3b09e45589acea62afcd130cf9250c0b22d763b8 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,6 @@ 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", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ \ No newline at end of file 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..48b4a83e3ace23c7949299e39d85ac4ffe92ed61 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,7 @@ 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 ')'. */ \ No newline at end of file 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..5d3116d3929d5f2a9e5448a2d7c9599c0a469151 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,5 @@ 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' */ \ No newline at end of file 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..66550be48f6282be4b95664c9154d9ecd29b576a 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,6 @@ 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'. */ \ No newline at end of file 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 71e579d5c20b86ada9ea7087a4d91c74bce64ddd..5c5231f36eaa0817c4816f277e661b06bdd134c0 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 '((p1: String) => Int)' is not compatible with type '((p1: String|undefined) => Int)' at index 2 */ +/* @@@ label Error Semantic error ESE0046: Type '(p1: String) => Int' is not compatible with type '(p1: 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 7b5506b921512e2d9ed8cffddb68292dd6c80b9c..c1ac325f66d578ee0f15478e89c5dd141e71bbf8 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 '((p1: String) => Int)' is not compatible with type '((p1: 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 '(p1: String) => Int' is not compatible with type '(p1: String|undefined) => Int' at index 2 */ diff --git a/ets2panda/test/ast/parser/ets/lambda_type_parameter_neg.ets b/ets2panda/test/ast/parser/ets/lambda_type_parameter_neg.ets index 27a6cc326f8b80b5fa3cab609483ebb8b12b36ce..8b563046c725a66a73e4d35fa8d58f53118d2605 100644 --- a/ets2panda/test/ast/parser/ets/lambda_type_parameter_neg.ets +++ b/ets2panda/test/ast/parser/ets/lambda_type_parameter_neg.ets @@ -15,8 +15,9 @@ let a = Int>(reader); -/* @@? 16:14 Error SyntaxError: Identifier expected, got '('. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 16:15 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 16:15 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:17 Error SyntaxError: Unexpected token '=>'. */ + +/* @@? 16:14 Error Syntax error ESY0224: Identifier expected, got '('. */ +/* @@? 16:15 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 16:15 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 16:15 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:17 Error Syntax error ESY0227: Unexpected token '=>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lexer001.ets b/ets2panda/test/ast/parser/ets/lexer001.ets index cae3c4706141881c7870b3fa681f51884b14ec09..c23910bf550234fade4db7421904bc8a32af37fc 100644 --- a/ets2panda/test/ast/parser/ets/lexer001.ets +++ b/ets2panda/test/ast/parser/ets/lexer001.ets @@ -14,4 +14,4 @@ */ /* @@ label */1 -/* @@@ label Error SyntaxError: Unexpected token 'number literal'. */ + diff --git a/ets2panda/test/ast/parser/ets/lexer002.ets b/ets2panda/test/ast/parser/ets/lexer002.ets index 788806465a855010bffb850f2c40618aedf8b30a..fe046150a94541bcceaaf34248d3b52d5e75c1fa 100644 --- a/ets2panda/test/ast/parser/ets/lexer002.ets +++ b/ets2panda/test/ast/parser/ets/lexer002.ets @@ -16,4 +16,4 @@ /* @@ label */1 -/* @@@ label Error SyntaxError: Unexpected token 'number literal'. */ + diff --git a/ets2panda/test/ast/parser/ets/lexer003.ets b/ets2panda/test/ast/parser/ets/lexer003.ets index 6e9900937bba4668ec5615a8ec6df2a61ba96918..d0ee068a8bd13b6d327dee1af973188d5a0f27d0 100644 --- a/ets2panda/test/ast/parser/ets/lexer003.ets +++ b/ets2panda/test/ast/parser/ets/lexer003.ets @@ -13,12 +13,11 @@ * 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 + +`${message ?? 'ver/* @@? 18:4 Error Semantic error ESE0143: Unresolved reference message */ +/* @@? 18:15 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@? 22:83 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ +/* @@? 22:83 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 22:83 Error Syntax error ESY0259: Unexpected token, expected '${' or '`' */ +/* @@? 22:83 Error Syntax error ESY0228: Unexpected token, expected '`'. */ \ No newline at end of file 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..7d1066b1a268c0007b3ee821623edcbbd762a5b8 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,7 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/literals/float-literal_neg.ets b/ets2panda/test/ast/parser/ets/literals/float-literal_neg.ets index 3d43515b3f14c29aca49f291d8fd92978bd256b6..8638330ef301a84d76867349e81cdb0dc54c0aae 100644 --- a/ets2panda/test/ast/parser/ets/literals/float-literal_neg.ets +++ b/ets2panda/test/ast/parser/ets/literals/float-literal_neg.ets @@ -18,6 +18,7 @@ let decimalPointMissing2 = -/* @@ label2 */100f let floatMAX = 3.4028235e+38f let moreThanFloatMAX = /*@@ label3 */3.4028236e+38f -/* @@@ label1 Error SyntaxError: Invalid number. */ -/* @@@ label2 Error SyntaxError: Invalid number. */ -/* @@@ label3 Error SyntaxError: Invalid number. */ + +/* @@@ label1 Error Syntax error ESY0249: Invalid number. */ +/* @@@ label2 Error Syntax error ESY0249: Invalid number. */ +/* @@@ label3 Error Syntax error ESY0249: Invalid number. */ \ No newline at end of file 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..4059e084e3278ea119c15665b465e8030b4e3c3d 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,5 @@ 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. */ \ No newline at end of file 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..07e68b2fcab2fef5615385fcc2d40469e688803a 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,5 @@ 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. */ \ No newline at end of file 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..87b652294378a871ad75029578a916e41ab03756 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,5 @@ 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. */ \ No newline at end of file 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..dd1b752673a8e30ed8dca57a822d8fc0a6908ffb 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,6 @@ 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. */ \ No newline at end of file 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..4a5f4017e2870ccccd5dd5608b67dd8953496da6 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,6 @@ 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. */ \ No newline at end of file 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..2b23261910dc21f3122338c8d664732d5ae64103 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,6 @@ 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. */ \ No newline at end of file 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..89cb53a986bf02280bcdf7d2dd8c3277073b59a2 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,6 @@ 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. */ \ No newline at end of file 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..e9461da6e8ed18926204f001880473808c518009 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,6 @@ 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. */ \ No newline at end of file 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..60b4f4d8801fde540ac6040fcbc83bb0846580da 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-enum.ets b/ets2panda/test/ast/parser/ets/local-enum.ets index 2e3a21b49c2cfbf661f330b8c092f0c1b7db522a..4f07a3ad49fd8441a9544dd93aa35949b7da5c6a 100644 --- a/ets2panda/test/ast/parser/ets/local-enum.ets +++ b/ets2panda/test/ast/parser/ets/local-enum.ets @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file 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..9f69771008138ba417b2e33d98b13421435e5b11 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,5 @@ 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. */ \ No newline at end of file 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..369f0e5fd48b10195021736484b0a577740990a7 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,5 @@ 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. */ \ No newline at end of file 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..f12fd9620aef6a7055a42e8527d2db81bcfa711b 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,5 @@ 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. */ \ No newline at end of file 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 f8c9594a0c5edaf835eb0b219606e9c22c18d442..5213548ac1dc1325a64def586f64ce2f1f953fd6 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,6 +21,7 @@ function foo() } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ -/* @@@ label2 Error SyntaxError: Identifier expected, got 'private'. */ + +/* @@@ 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. */ +/* @@@ label2 Error Syntax error ESY0224: Identifier expected, got 'private'. */ \ No newline at end of file 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 160115d07beb833deef3a602392484ce0b8318c4..74ddd3f3111317fe6ac6c7b2dc2d0e4ff97a6976 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,7 @@ 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. */ \ No newline at end of file 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 1444898726bc847d0f82521928648cb07f8c0414..94b71e67005c0020dd3345cdd32f5c487e808b41 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,6 @@ function foo() } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Identifier expected, got 'protected'. */ + +/* @@@ label1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label2 Error Syntax error ESY0224: Identifier expected, got 'protected'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets b/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets index fb98c611cf72e82dabf52ed5b9d8b9d8a005000b..7c6feb6ffbceeb93694d56d3e6a16a979a8a87e1 100644 --- a/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets +++ b/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets @@ -19,5 +19,6 @@ 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'. */ \ No newline at end of file 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..10bb56815dacf75309b19afb1182b3c903e09e77 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,6 @@ 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. */ \ No newline at end of file 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..98146a6e867b1352e532551b0c005234383a8549 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,6 @@ 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. */ \ No newline at end of file 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..1e55f68bcf145bb015b14fce2993aca822763ec4 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,5 @@ function bar(): void { } } -/* @@? 18:3 Error SyntaxError: Illegal start of CLASS expression. */ + +/* @@? 18:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ \ No newline at end of file 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..7c92956fd963de5b1f355ef4524869e0fc7e5039 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,14 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local_enum.ets b/ets2panda/test/ast/parser/ets/local_enum.ets index d39f52acf48b602c236a50ac6b7bb5f63fb43a4d..9a52895aa32fdc9db9f848335f7993dc36dcc5dc 100644 --- a/ets2panda/test/ast/parser/ets/local_enum.ets +++ b/ets2panda/test/ast/parser/ets/local_enum.ets @@ -37,12 +37,13 @@ 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: Identifier expected, got 'enum'. */ -/* @@? 37:11 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 37:12 Error TypeError: Cannot find type 'E1'. */ -/* @@? 38:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 21:3 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 24:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 29:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 32:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 37:4 Error Syntax error ESY0224: Identifier expected, got 'enum'. */ +/* @@? 37:11 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 37:12 Error Semantic error ESE0371: Cannot find type 'E1'. */ +/* @@? 38:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local_interface.ets b/ets2panda/test/ast/parser/ets/local_interface.ets index e645260fcad3857939f27856abde2dde52820e17..01b2797cd24493d470cd5ebf3eb641a48ef595eb 100644 --- a/ets2panda/test/ast/parser/ets/local_interface.ets +++ b/ets2panda/test/ast/parser/ets/local_interface.ets @@ -69,13 +69,13 @@ 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 +/* @@@ label1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label2 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@@ label3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label4 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@@ label5 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label6 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@@ label7 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label8 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label9 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label10 Error Syntax error ESY0040: Illegal start of CLASS expression. */ \ No newline at end of file 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..7a72eb7f5c327b08954f7603b14e9e3b355d5368 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. */ \ No newline at end of file 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..96949f97055ccbba9727713ff337b416f89bc642 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,6 @@ 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. */ \ No newline at end of file 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..aae46e40f4e38a7678427089106b6592c001e1ca 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,5 @@ function bar(): void { } } -/* @@? 18:3 Error SyntaxError: Illegal start of INTERFACE expression. */ + +/* @@? 18:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local_type_alias.ets b/ets2panda/test/ast/parser/ets/local_type_alias.ets index 9c22106c8c24dabefbd1ff49513229c39cd1e060..1deeb68cfbb08541c866f3a1a5b22506091c1245 100644 --- a/ets2panda/test/ast/parser/ets/local_type_alias.ets +++ b/ets2panda/test/ast/parser/ets/local_type_alias.ets @@ -39,14 +39,15 @@ 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: Identifier expected, got 'identification literal'. */ -/* @@? 39:14 Error SyntaxError: Identifier expected. */ + +/* @@? 19:3 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 23:3 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 26:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 31:7 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 31:12 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 34:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 39:9 Error Semantic error ESE0371: Cannot find type 'a'. */ +/* @@? 39:11 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 39:13 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 39:13 Error Syntax error ESY0224: Identifier expected, got 'identification literal'. */ +/* @@? 39:14 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/loops.ets b/ets2panda/test/ast/parser/ets/loops.ets index b615b0ecd600ac2732f80cbc1f4a68c4f34c2dc3..b753c0682a0ba8b2bef02147f4c35056d261522d 100644 --- a/ets2panda/test/ast/parser/ets/loops.ets +++ b/ets2panda/test/ast/parser/ets/loops.ets @@ -64,4 +64,5 @@ function labeledcontinue(): void { } } -/* @@? 19:15 Error TypeError: Unresolved reference i */ + +/* @@? 19:15 Error Semantic error ESE0143: Unresolved reference i */ \ No newline at end of file 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..4c3739e39aefa9072e4cfbf8b19b993ff1f467f9 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,5 @@ 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. */ \ No newline at end of file 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..2f395f0846cc50c639a3f807ef161b8468ac82b0 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,5 @@ 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. */ \ No newline at end of file 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..63be34bacece0380071b3df6388187e660f85a20 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,5 @@ 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 */ \ No newline at end of file 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..53b6d6df7042dc20ec5dbdb31ec2985301640a6c 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_full.ets b/ets2panda/test/ast/parser/ets/method_full.ets index 37360616d7fa7adea7537f9b7f035ea7f96a37c1..a86d080b8579551df3c4f8f812f165764fdaed0b 100644 --- a/ets2panda/test/ast/parser/ets/method_full.ets +++ b/ets2panda/test/ast/parser/ets/method_full.ets @@ -30,8 +30,9 @@ 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. */ \ No newline at end of file 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 b7dc7a4833f999c95fc9f1b6e430c54e82a2bc65..722ebcbb31dfa5dcf9b3c873a63879f55ad927b3 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,6 @@ abstract class A { abstract static /* @@ label */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. */ \ No newline at end of file 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 213f10bfdbfbd63f7d45218df474325752c772ce..70b71308529355dead1045b992d4bd39f0a2cd59 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,6 @@ class A { final static /* @@ label */foo() : void {} } -/* @@@ label Error TypeError: Invalid method modifier(s): a final method can't have abstract or static modifier. */ -/* @@@ label Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ + +/* @@@ label Error Semantic error ESE0048: Invalid method modifier(s): a final method can't have abstract or static modifier. */ +/* @@@ label Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ \ No newline at end of file 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..98ff8bfe5d0ecb01c0f2b5c0ff020a39f8820974 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,5 @@ 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 */ \ No newline at end of file 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..1c44b0532661ea3fbc0b65a336a09ecce952f8e3 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,5 @@ 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. */ \ No newline at end of file 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 8d596511c737d3cd9feb5fb66cff685908561fa5..298e2b0bb40a10a0871cc1725435072e1385b2a4 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,5 @@ abstract class A { native abstract /* @@ label */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. */ \ No newline at end of file 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 2ce06b448a72e6fb62ec17e7cfad9a9b68101a14..641ae326c37f520c047b26208fe87e1bb7f8b66d 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 /* @@ label */foo2() : void {}; } -/* @@@ label Error TypeError: Invalid method modifier(s): a final method can't have abstract or static modifier. */ -/* @@@ label Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0048: Invalid method modifier(s): a final method can't have abstract or static modifier. */ +/* @@@ label Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ \ No newline at end of file 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..c54c5f4a0b0f2890fa7087bb613de432b9b932ab 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,5 @@ 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 */ \ No newline at end of file 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..ce653a9216fc92d853da0ee0367cf0ba2d5d0a57 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,5 @@ a.instance_method () function main() {} -/* @@@ label Error TypeError: Cannot call abstract method! */ + +/* @@@ label Error Semantic error ESE0026: Cannot call abstract method! */ \ No newline at end of file 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 2f3b401762b1dd4d30b226eff78593d9dad3bd1f..393eac518188eefe65578227227279254a1afd10 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,6 @@ abstract class A { abstract final /* @@ label */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. */ \ No newline at end of file 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 477dbe2f37e9ac9d37e77f71761a7c9bfb1de7a9..6b169be6592ecde2de16aa8d7d4d5d6d8f7f2f0e 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,6 @@ abstract class A { abstract override /* @@ label */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. */ \ No newline at end of file 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 a2c56ede0044af09fe0be00c77ced7f88dd46a30..b5ae205b4b5ebedf4c39901bb5b4a6a5dd046372 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,6 @@ abstract class A { abstract native /* @@ label */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. */ \ No newline at end of file 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 cc9f684ee9ed943fe71459dfdcf1229785a6991d..d088537247171d084cea743311af4c349d112c6e 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,6 @@ abstract class A { static abstract /* @@ label */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. */ \ No newline at end of file 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 8b927eca6b07c8e478bdb52917ce7bdba0538d7d..47f27695fce76c8ca9222330e4e295f05d1c1b82 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,6 @@ class A { static final /* @@ label */foo(): void {} } -/* @@@ label Error TypeError: Invalid method modifier(s): a final method can't have abstract or static modifier. */ -/* @@@ label Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ + +/* @@@ label Error Semantic error ESE0048: Invalid method modifier(s): a final method can't have abstract or static modifier. */ +/* @@@ label Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ \ No newline at end of file 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 8ade4654402857b27cf2bc694c549c843bf3c743..f01c2f2b97d4d93a33407946e52173de9ad65837 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,5 @@ class A { static override /* @@ label */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. */ \ No newline at end of file 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 b8203667590acf961aeea74a80a0899f277b9804..be25234b3a3eb937c532e1916e22b77d5977856c 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,5 @@ abstract class A { final abstract /* @@ label */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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/methods.ets b/ets2panda/test/ast/parser/ets/methods.ets index de66f5d6614c181e68c6e380321f3e3bf504fff7..7780067b3d4e110a7cb8760d581461c24bd151c6 100644 --- a/ets2panda/test/ast/parser/ets/methods.ets +++ b/ets2panda/test/ast/parser/ets/methods.ets @@ -40,4 +40,5 @@ 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. */ \ No newline at end of file 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..c460e49e23436759317a70041b21a9182bf8f35c 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 ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/missing_implementation_1.ets b/ets2panda/test/ast/parser/ets/missing_implementation_1.ets index 2e7d7ff93f3d72b654329e920e7cd5dbaa781a43..1885c12349a3deb733d8aae174af9c475fbe7e0e 100644 --- a/ets2panda/test/ast/parser/ets/missing_implementation_1.ets +++ b/ets2panda/test/ast/parser/ets/missing_implementation_1.ets @@ -27,4 +27,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/missing_implementation_2.ets b/ets2panda/test/ast/parser/ets/missing_implementation_2.ets index 2b1080c3b72101e21521acb5e21a6b09c15e674b..522d5e4bdfec7234162d9ba7cb36721019516584 100644 --- a/ets2panda/test/ast/parser/ets/missing_implementation_2.ets +++ b/ets2panda/test/ast/parser/ets/missing_implementation_2.ets @@ -28,4 +28,5 @@ 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 */ \ No newline at end of file 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..1e4051efc6278efa36685e33231106b72fc18aad 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,11 @@ 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. */ \ No newline at end of file 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..542b95232740d6a5e0e473deb4fe1779664786ab 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,11 @@ 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. */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ \ No newline at end of file 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..c5926730e90d945bbfd8b0d4b64c654ae35fff3a 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,5 @@ if (true /* @@ label */{ console.log("hello!") } -/* @@@ label Error SyntaxError: Expected ')', got '{'. */ + +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ \ No newline at end of file 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..65aa178fc73de02ba5605a398470316da99b3750 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,6 @@ 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 '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/multi_typeerror_function_implicit_return_value.ets b/ets2panda/test/ast/parser/ets/multi_typeerror_function_implicit_return_value.ets index 3f63fe8177bcee9bc25244a985cae62bcd14b4aa..feee3ac6044b75024370283a5a8f48f463e8ea82 100644 --- a/ets2panda/test/ast/parser/ets/multi_typeerror_function_implicit_return_value.ets +++ b/ets2panda/test/ast/parser/ets/multi_typeerror_function_implicit_return_value.ets @@ -27,5 +27,5 @@ function main() { } -/* @@@ label Error TypeError: Function cannot have different primitive return types, require 'boolean', found 'int' */ -/* @@@ label1 Error TypeError: Function cannot have different primitive return types, require 'boolean', found 'double' */ + +/* @@? 22:3 Warning Warning W0026: Unreachable statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/multiple_fields.ets b/ets2panda/test/ast/parser/ets/multiple_fields.ets index 06b9aeef41f1ef56a8c6bc6e49dcc49c0e1797d6..f56baacb0a28383cafa6b7c59de9bfaea407e5b0 100644 --- a/ets2panda/test/ast/parser/ets/multiple_fields.ets +++ b/ets2panda/test/ast/parser/ets/multiple_fields.ets @@ -17,4 +17,5 @@ class C { x: int/* @@ label1 */, y: int; } -/* @@@ label1 Error SyntaxError: Unexpected token ','. */ + +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets b/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets index 33ed150ffb0b0683d54d777f9a5c22900aef7c90..3898ca05ba7b2d32b1c211dd6b441fd87df3b608 100644 --- a/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets +++ b/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets @@ -18,5 +18,6 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets b/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets index 85238afe011293b542092da862e593f4e294c88b..39fdee06fa5bfb0bbb88ebb39621596c7529e8ef 100644 --- a/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets +++ b/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets @@ -23,4 +23,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets b/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets index 3e9b32aba22f8674f3e6d54595d0f4e3901c030b..b1aadd29f37562830547780ccd8c0ef85ddd2219 100644 --- a/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets +++ b/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets @@ -17,4 +17,5 @@ function main(): void { let a : int |/* @@ label */; } -/* @@@ label Error SyntaxError: Invalid Type. */ + +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets b/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets index 62bc60bdda48ad0d2bcbc4cc7a297f27a9098ec7..e11c4c164d629704e136b5b609d9c1db4f6921de 100644 --- a/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets +++ b/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets @@ -19,4 +19,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets b/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets index 29e7f68e26259d8cf60a7be682fa00846a6a9c97..2614fc43bd8ec8f05c10b69fc8b067cebf4a487d 100644 --- a/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets +++ b/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets @@ -19,4 +19,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/named_types.ets b/ets2panda/test/ast/parser/ets/named_types.ets index f782419a4b73c7dbacc763f41aa72033b709fda4..9bb15a4f1428c0f495764ff8e6531c2b052a1e17 100644 --- a/ets2panda/test/ast/parser/ets/named_types.ets +++ b/ets2panda/test/ast/parser/ets/named_types.ets @@ -30,9 +30,10 @@ 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. */ +/* @@@ label1 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/named_types_1.ets b/ets2panda/test/ast/parser/ets/named_types_1.ets index 675be901c5b744a842d7bf44ed4050d93b1113a0..604e282450cd83964cab97018b73edd64ec6a76d 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/named_types_2.ets b/ets2panda/test/ast/parser/ets/named_types_2.ets index a7db49cd23cfbc5bfe173ce4784a87949e90173b..dda40c99d9da0f8fead4e06e33fadaa686fe0bc1 100644 --- a/ets2panda/test/ast/parser/ets/named_types_2.ets +++ b/ets2panda/test/ast/parser/ets/named_types_2.ets @@ -18,5 +18,6 @@ /* @@ label1 */ " -/* @@@ label Error SyntaxError: Newline is not allowed in strings */ -/* @@@ label1 Error SyntaxError: Newline is not allowed in strings */ + +/* @@? 16:1 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@@ label1 Error Syntax error ESY0265: Newline is not allowed in strings */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/namespace_bad_token.ets b/ets2panda/test/ast/parser/ets/namespace_bad_token.ets index 5576913d3324f063cc44624d95b259aba988a9d9..bc49485dfd3aee53dc295ccee334909231436217 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets index 77283eddc7c0ebf852da2640c81dde74ba8fb15a..173258738d1f78215d60bd3f303b4e32829e4758 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets @@ -17,4 +17,5 @@ namespace MySpace{ ... } -/* @@? 17:5 Error SyntaxError: Unexpected token '...'. */ + +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token '...'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets index 5d0d663fc1d74878ed558210347103ccbaeb8c84..d63b26c3c1b2ea3e2e8444b3f73f4d5a2c6b1924 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets @@ -15,4 +15,5 @@ namespace MySpace{ -/* @@? 19:1 Error SyntaxError: Unexpected token. */ + +/* @@? 19:62 Error Syntax error ESY0016: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets index 62b721754ed65fa7f8d507247ce4295830283d0d..7341504d64d9a4c16131fad993f874ecb9057bef 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets @@ -15,4 +15,5 @@ namespace MySpace{ }} -/* @@? 17:2 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:2 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets index f5dd2523aa7cf6bb2ad41a302f47289a40e598ca..c706e84cf6ea94c6b59fd3a6eeeff85d944d8d41 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets @@ -16,5 +16,6 @@ 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'. */ \ No newline at end of file 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..e138af31962f4c84933cb402259218e80b4bc003 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. */ \ No newline at end of file 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..75fa4edc26ef9ec5d1fb4243e5ee654458a28b14 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. */ \ No newline at end of file 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..2d0bb9628c2eae67957b657e648a28727613d11f 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/nested_function.ets b/ets2panda/test/ast/parser/ets/nested_function.ets index 881d82ec03d183aafa10499b4cbbfbe48ceb5ecf..89ff27e79d684381a192db3f5829bbeb3fab44e1 100644 --- a/ets2panda/test/ast/parser/ets/nested_function.ets +++ b/ets2panda/test/ast/parser/ets/nested_function.ets @@ -18,5 +18,6 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/nested_function_1.ets b/ets2panda/test/ast/parser/ets/nested_function_1.ets index 9325e91cb2144a96be05cbae65f6a510b50ca114..0303a779be9cf30188f72029892b2a503b84d6d0 100644 --- a/ets2panda/test/ast/parser/ets/nested_function_1.ets +++ b/ets2panda/test/ast/parser/ets/nested_function_1.ets @@ -25,5 +25,6 @@ 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 '}'. */ \ No newline at end of file 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..f567320cea24ab3f85495edf8b628ed3f58477c7 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,6 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/new_object_undefined.ets b/ets2panda/test/ast/parser/ets/new_object_undefined.ets index c18f4c8778319d51e1188f3c7cd2567ef34e7661..9dd438f1e131feff5b0f9c790ffc42d52625a800 100644 --- a/ets2panda/test/ast/parser/ets/new_object_undefined.ets +++ b/ets2panda/test/ast/parser/ets/new_object_undefined.ets @@ -19,5 +19,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/no-call-signatures.ets b/ets2panda/test/ast/parser/ets/no-call-signatures.ets index e2758cb7fc4ea4903d2c84301c56126f491bd424..8ad4650b96886b605964b0643296258e2ff6d566 100644 --- a/ets2panda/test/ast/parser/ets/no-call-signatures.ets +++ b/ets2panda/test/ast/parser/ets/no-call-signatures.ets @@ -23,6 +23,6 @@ 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 ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 23:5 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in fn. fn() is not allowed. */ +/* @@? 23:5 Error Semantic error ESE0002: Type 'DescribableFunction' has no call signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets b/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets index d0f5d9193ac71e92920c8f2f80fed687db5ff02f..e8b448eb89456051cd5f5ffef29bda0da62d720c 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/no-generic-lambda.ets b/ets2panda/test/ast/parser/ets/no-generic-lambda.ets index 3f19f5974ab588f34638937c4b1072753c758828..ed4c36d3b64e7d1043b996d1b35026ef4bbe5c49 100644 --- a/ets2panda/test/ast/parser/ets/no-generic-lambda.ets +++ b/ets2panda/test/ast/parser/ets/no-generic-lambda.ets @@ -19,7 +19,8 @@ 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:11 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 17:11 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 20:1 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/no_prototype.ets b/ets2panda/test/ast/parser/ets/no_prototype.ets index 2f70cb7112e9d176b0c326e6865da24e13facf2e..25fcf9b8eee9901668a630dd1001de71ad02ff89 100644 --- a/ets2panda/test/ast/parser/ets/no_prototype.ets +++ b/ets2panda/test/ast/parser/ets/no_prototype.ets @@ -23,14 +23,15 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/nolint_bad.ets b/ets2panda/test/ast/parser/ets/nolint_bad.ets index b4aa54d09744e878c4403a61fc3792f11e0aa11d..c0cbf9b0944026a793e93d273acb592d866db502 100644 --- a/ets2panda/test/ast/parser/ets/nolint_bad.ets +++ b/ets2panda/test/ast/parser/ets/nolint_bad.ets @@ -17,6 +17,7 @@ // 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! */ \ No newline at end of file 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..9cdd274aa3e6dadbd32871d9396903f1bc3d9d71 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets b/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets index 7ff657c8b2fabec9e4607e7d53ef1e9b8a960dcd..641ea6de8b8688b2636702ddb127faffb529dbac 100644 --- a/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets +++ b/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets @@ -22,4 +22,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/non_constant_expression.ets b/ets2panda/test/ast/parser/ets/non_constant_expression.ets index edb49055eba17dc00fac81b5d84cd69269860c90..76513ae5607b95900a85960687ddc863c1264965 100644 --- a/ets2panda/test/ast/parser/ets/non_constant_expression.ets +++ b/ets2panda/test/ast/parser/ets/non_constant_expression.ets @@ -22,4 +22,5 @@ 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. */ \ No newline at end of file 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..7269fe5ec43c0680e5e1748eefc0d93276c26692 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,13 @@ 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. */ \ No newline at end of file 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..8592a3414dd32b1168a353eb8b5c60a07b98fbeb 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/notnullable_neg.ets b/ets2panda/test/ast/parser/ets/notnullable_neg.ets index b48602f1bba30a4d60cd486fd6cfea721695a62b..9ad9d15fc2e5b9520d333219226478893439bfcf 100644 --- a/ets2panda/test/ast/parser/ets/notnullable_neg.ets +++ b/ets2panda/test/ast/parser/ets/notnullable_neg.ets @@ -17,25 +17,26 @@ function main() { let foo = (p: T): NonNullable<<<<<<<<<<<<<<<<<<<<<<<<<< =>p; } -/* @@? 17:15 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 17:20 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 17:22 Error TypeError: Unresolved reference T */ -/* @@? 17:23 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:24 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:26 Error SyntaxError: Unexpected token 'NonNullable'. */ -/* @@? 17:26 Error TypeError: Unresolved reference NonNullable */ -/* @@? 17:37 Error SyntaxError: Expected '>', got '<<'. */ -/* @@? 17:37 Error SyntaxError: Expected '<', got '<<'. */ -/* @@? 17:37 Error SyntaxError: Expected '>', got '<<'. */ -/* @@? 17:37 Error SyntaxError: Expected '<', got '<<'. */ -/* @@? 17:39 Error SyntaxError: Unexpected token '<<'. */ -/* @@? 17:43 Error SyntaxError: Unexpected token '<<'. */ -/* @@? 17:47 Error SyntaxError: Unexpected token '<<'. */ -/* @@? 17:51 Error SyntaxError: Unexpected token '<<'. */ -/* @@? 17:55 Error SyntaxError: Unexpected token '<<'. */ -/* @@? 17:59 Error SyntaxError: Unexpected token '<<'. */ -/* @@? 17:63 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 17:67 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 17:69 Error SyntaxError: Unexpected token 'p'. */ -/* @@? 17:69 Error TypeError: Unresolved reference p */ + +/* @@? 17:15 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 17:20 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 17:22 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 17:22 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:24 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:26 Error Syntax error ESY0227: Unexpected token 'NonNullable'. */ +/* @@? 17:26 Error Semantic error ESE0143: Unresolved reference NonNullable */ +/* @@? 17:37 Error Syntax error ESY0230: Expected '>', got '<<'. */ +/* @@? 17:37 Error Syntax error ESY0230: Expected '<', got '<<'. */ +/* @@? 17:37 Error Syntax error ESY0230: Expected '>', got '<<'. */ +/* @@? 17:37 Error Syntax error ESY0230: Expected '<', got '<<'. */ +/* @@? 17:39 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:43 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:47 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:51 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:55 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:59 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:63 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 17:67 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 17:69 Error Syntax error ESY0227: Unexpected token 'p'. */ +/* @@? 17:69 Error Semantic error ESE0143: Unresolved reference p */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets b/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets index 1b99782dc69e71eaec4b625b61197d7b97a4153a..95d5cdf08c229847d4701d7c63b47ca271066acc 100644 --- a/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets +++ b/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets @@ -37,5 +37,6 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/null_invalid.ets b/ets2panda/test/ast/parser/ets/null_invalid.ets index 809f968929494423e636fef954a10bbd05d6be07..fed322239b5dd078e9cba6af846b094569a9ee70 100644 --- a/ets2panda/test/ast/parser/ets/null_invalid.ets +++ b/ets2panda/test/ast/parser/ets/null_invalid.ets @@ -16,4 +16,5 @@ 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' */ \ No newline at end of file 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..781e4c1190f08ff91a603b680114c06f0ed77c66 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. */ \ No newline at end of file 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..192ccb2c0a3d0a798fc32927d3802f80eef7eb59 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets b/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets index 12ccf8b28d020a100e60e49be19f9ec6c860acb0..24febaaf8c778314ca863c8df1a9cc0c7b54ee25 100644 --- a/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets +++ b/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets @@ -16,9 +16,10 @@ 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 '}'. */ \ No newline at end of file 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..84f4bc678edfea2494f0c413a67488659b52b415 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,5 @@ function main() : void{ console.log(x) } -/* @@@ label Error SyntaxError: Unexpected token '&&='. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '&&='. */ \ No newline at end of file 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..87679dc509eaa32193d4d99d15d47d18853bd866 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,5 @@ function main() : void{ console.log(x) } -/* @@@ label Error SyntaxError: Unexpected token '??='. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '??='. */ \ No newline at end of file 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..33a92caf4bd46a97108c87b943b3e3289564626f 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,5 @@ function main() : void{ console.log(x) } -/* @@@ label Error SyntaxError: Unexpected token '||='. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '||='. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/optional-chaining-array.ets b/ets2panda/test/ast/parser/ets/optional-chaining-array.ets index fd1f441713577e5d01ba1621480a93c0f5c07440..f87833dc31d3d80a3ee5e30c18cb372f72f74f9e 100644 --- a/ets2panda/test/ast/parser/ets/optional-chaining-array.ets +++ b/ets2panda/test/ast/parser/ets/optional-chaining-array.ets @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file 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..b89a6d6426e20ca508b6856b7d5fdebbe6b1db1e 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,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/optional_field.ets b/ets2panda/test/ast/parser/ets/optional_field.ets index de1c1e5af0968cd6efff8304dddf08a43931420c..a3ed81a34aea2e0d69d479d37856f58413390a4c 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets b/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets index 53990715282575e277235f2886ac54e52dbc02fb..0d4083b345970a8142fdca895628e4234934878b 100644 --- a/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets +++ b/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets @@ -31,5 +31,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/optional_field_variable.ets b/ets2panda/test/ast/parser/ets/optional_field_variable.ets index 36a1540c411d2201827b16032f1d8b1fd6d2b043..02a4558e6396fe14a232cea0f5634360316741e0 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. */ \ No newline at end of file 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..01a79626543d9dac39c54be570800dd5c89839c5 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/overload_function_match_neg.ets b/ets2panda/test/ast/parser/ets/overload_function_match_neg.ets index 29b285ee8de457bb2963a4208ac60f6ca8f56640..28d69cbcd8d48165fce589e313313e79bdd986ac 100644 --- a/ets2panda/test/ast/parser/ets/overload_function_match_neg.ets +++ b/ets2panda/test/ast/parser/ets/overload_function_match_neg.ets @@ -33,6 +33,6 @@ let props: DummyArray = new DummyArray() }) ) -/* @@@ label1 Error TypeError: No matching call signature for push(...) */ -/* @@@ label2 Error TypeError: No matching construct signature for A("eaw1", (() => void)) */ -/* @@@ label3 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for push(...) */ +/* @@@ label2 Error Semantic error ESE0127: No matching construct signature for A("eaw1", () => void) */ +/* @@@ label3 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ 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 e13784c78fb6d8453e8ebffeeae3934d9b52b437..c50523fb6dd8dfa48e7818a308a0fd9ac378eddc 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,16 @@ 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: Identifier expected, got 'identification literal'. */ -/* @@? 16:39 Error SyntaxError: Identifier expected. */ -/* @@? 16:39 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 16:39 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 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 ESY0224: Identifier expected, got 'identification literal'. */ +/* @@? 16:39 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:39 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 16:39 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 30:76 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 30:76 Error Syntax error ESY0228: Unexpected token, expected '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets b/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets index 30982b269a131212016fea60daa5a5c850b0f2e4..47a13d50929bc950208c0a0240b5197ff2d42d0f 100644 --- a/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets +++ b/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets @@ -23,6 +23,7 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/override_method.ets b/ets2panda/test/ast/parser/ets/override_method.ets index e13c36a4168974051d2f3e08123d61ce3195d856..f00b75af69ec7fd936ddcb8cde4c5582be67f5b4 100644 --- a/ets2panda/test/ast/parser/ets/override_method.ets +++ b/ets2panda/test/ast/parser/ets/override_method.ets @@ -25,6 +25,7 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets b/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets index 622f2e74d6e20e856c1d1254502b95821c663357..3db7ea62b0d10d0fbdce9b1263c6aad0c66c849a 100644 --- a/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets +++ b/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets @@ -35,5 +35,6 @@ function foa(b: Partial>): void { /* @@ label */foo(/* @@ label1 */b); } -/* @@? 35:16 Error TypeError: No matching call signature for foo(Partial) */ -/* @@? 35:35 Error TypeError: Type 'Partial' is not compatible with type 'Partial' at index 1 */ + +/* @@@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partialGenericInterface_n.ets b/ets2panda/test/ast/parser/ets/partialGenericInterface_n.ets index 10af09be9ea880ba619aba6674ee726d14339e27..a7f1980498f595d1ad57f27ae06b9b0620b450b8 100644 --- a/ets2panda/test/ast/parser/ets/partialGenericInterface_n.ets +++ b/ets2panda/test/ast/parser/ets/partialGenericInterface_n.ets @@ -35,5 +35,4 @@ function foa(b: Partial>): void { /* @@ label */foo(/* @@ label1 */b, 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>, Partial>) */ + diff --git a/ets2panda/test/ast/parser/ets/partialInterface_n0.ets b/ets2panda/test/ast/parser/ets/partialInterface_n0.ets index 6097e8bfb6b306ffbca9dcd208c88b72ba277780..78d55d5b3b62c64e757983e73f0aba8a32e37e06 100644 --- a/ets2panda/test/ast/parser/ets/partialInterface_n0.ets +++ b/ets2panda/test/ast/parser/ets/partialInterface_n0.ets @@ -31,5 +31,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partialInterface_n1.ets b/ets2panda/test/ast/parser/ets/partialInterface_n1.ets index fcf39370fc970ce48ad2bbc0a02ce60dee2f87f5..3fa0a38f9dffe95753cebca8282010801037d0be 100644 --- a/ets2panda/test/ast/parser/ets/partialInterface_n1.ets +++ b/ets2panda/test/ast/parser/ets/partialInterface_n1.ets @@ -31,5 +31,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partialType_4.ets b/ets2panda/test/ast/parser/ets/partialType_4.ets index 138a81089d6ff0da4679186406e0ce935caab563..5bce13a46d958eb42c68419dc4520523c3dae8e5 100644 --- a/ets2panda/test/ast/parser/ets/partialType_4.ets +++ b/ets2panda/test/ast/parser/ets/partialType_4.ets @@ -79,9 +79,10 @@ class A>{ bar(initializers: Partial): void {} } -/* @@? 39:142 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 49:55 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 51:51 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 53:86 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 75:55 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 79:30 Error TypeError: T in Partial must be a class or an interface type. */ + +/* @@? 39:142 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 49:55 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 51:51 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 53:86 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 75:55 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 79:30 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partial_interface.ets b/ets2panda/test/ast/parser/ets/partial_interface.ets index f0d6fddb59e1a72ba38ce5eaad39ce4a7c64f641..2355fad83b4aada8a0a9f6723813cfa35849c9a1 100644 --- a/ets2panda/test/ast/parser/ets/partial_interface.ets +++ b/ets2panda/test/ast/parser/ets/partial_interface.ets @@ -32,6 +32,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partial_type_param1.ets b/ets2panda/test/ast/parser/ets/partial_type_param1.ets index 0ff07bf635902a8bde714b6eae5170e586c9577a..160b64e1bc1a40a3f455b6ad4e891461284e1eca 100644 --- a/ets2panda/test/ast/parser/ets/partial_type_param1.ets +++ b/ets2panda/test/ast/parser/ets/partial_type_param1.ets @@ -36,6 +36,7 @@ function generic(t: Partial): boolean { function main() { // Test that {i: 1} is accepted as Partial generic({i: 1}); -}/* @@? 32:41 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 38:5 Error TypeError: No matching call signature for generic(...) */ -/* @@? 38:17 Error TypeError: need to specify target type for class composite */ +} +/* @@? 32:41 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 38:5 Error Semantic error ESE0127: No matching call signature for generic(...) */ +/* @@? 38:17 Error Semantic error ESE0062: need to specify target type for class composite */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partial_type_param2.ets b/ets2panda/test/ast/parser/ets/partial_type_param2.ets index 7dbb5c559d86caf893bcae792c7a25b24ee8142a..3c940ef1f762f2b8eb23249f3f56660c1cf42c5f 100644 --- a/ets2panda/test/ast/parser/ets/partial_type_param2.ets +++ b/ets2panda/test/ast/parser/ets/partial_type_param2.ets @@ -34,6 +34,7 @@ function foo(i: Partial): number { function main() { // Test case: only 'i' is provided, 'j' is omitted foo({ i: 5 }); -}/* @@? 21:37 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 36:3 Error TypeError: No matching call signature for foo(...) */ -/* @@? 36:10 Error TypeError: need to specify target type for class composite */ +} +/* @@? 21:37 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 36:3 Error Semantic error ESE0127: No matching call signature for foo(...) */ +/* @@? 36:10 Error Semantic error ESE0062: need to specify target type for class composite */ \ No newline at end of file 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..372e7576c885391e7a028db79f6bf1553734a733 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,8 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets b/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets index fcf1050921731b38280481e1c63e3065af348567..34fd69920b3d4c05a166e6609ab6ca87e2d59cf7 100644 --- a/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets +++ b/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets @@ -31,5 +31,6 @@ 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) */ \ No newline at end of file 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..bc04e19a3422026f7fd9e603fcdd62cfeb0922e2 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,5 @@ class A { } } -/* @@@ label Error TypeError: 'classVal' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'classVal' is a static property of 'A' */ \ No newline at end of file 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..24c02e54600a9bffa4b51a4c1436442112b0bc37 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,5 @@ class A { } } -/* @@@ label Error TypeError: 'instanceVal' is an instance property of 'A' */ + +/* @@@ label Error Semantic error ESE0208: 'instanceVal' is an instance property of 'A' */ \ No newline at end of file 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..e731ddd2d9e909834c6d4e39c0a96ae06d77d60a 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,5 @@ class A { } } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ \ No newline at end of file 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..19791d7c19dce35febcc9f69c18e3bed1b3aa37e 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,5 @@ class A { } } -/* @@@ label Error TypeError: 'foo' is an instance property of 'A' */ + +/* @@@ label Error Semantic error ESE0208: 'foo' is an instance property of 'A' */ \ No newline at end of file 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..1c28a5acc8dc1f4b81d682ac1439524fabb19a1d 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,5 @@ function main() : void /* @@ label */A.foo(); } -/* @@@ label Error TypeError: Ambiguous reference to 'foo' */ + +/* @@@ label Error Semantic error ESE0061: Ambiguous reference to 'foo' */ \ No newline at end of file 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..9fb59e40a04c6e65fd55b3c4cf0aa25e0e5faa3f 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,5 @@ function main() : void /* @@ label */A.foo(); } -/* @@@ label Error TypeError: Ambiguous reference to 'foo' */ + +/* @@@ label Error Semantic error ESE0061: Ambiguous reference to 'foo' */ \ No newline at end of file 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..6ccfc09f53ff0bdf65e65114e7a801ff45a5b83d 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,5 @@ 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' */ \ No newline at end of file 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..5213567c67c7221198cc3d3b84ef3af2c7d78e24 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,5 @@ function main() : void /* @@ label */all.foo(); } -/* @@@ label Error TypeError: Ambiguous reference to 'foo' */ + +/* @@@ label Error Semantic error ESE0061: Ambiguous reference to 'foo' */ \ No newline at end of file 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..8adc315b83efe0bfbfbb0ff7d702e0dcf9ab2318 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,5 @@ export /* @@ label */{foo} from "./export" export {foo} from "./export_2" -/* @@@ label Error TypeError: Ambiguous export 'foo' */ + +/* @@@ label Error Semantic error ESE0362: Ambiguous export 'foo' */ \ No newline at end of file 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..4ee9940f70d1018936c6e30e6092ce822008f08c 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,5 @@ 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 */ \ No newline at end of file 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..8bbecddac7110d1f81570a57ad76050bf1c94356 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,18 @@ 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' */ \ No newline at end of file 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..49a717af482361591675ba10e445622ba83c748a 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,18 @@ 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' */ \ No newline at end of file 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..bca78711e5c3cf4a235ac436bdf382a0a58455d5 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,18 @@ 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' */ \ No newline at end of file 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..d41f18ba4576306e6c6fff50b1719c45bd38da9f 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,5 @@ 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' */ \ No newline at end of file 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..f664a4648f7db8d938fb696947ddc1cc937b5eb9 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,5 @@ 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 */ \ No newline at end of file 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..acffed8b2c202e3f303c46cddbf631ac6783b03a 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,6 @@ 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 */ \ No newline at end of file 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..2a4351674154340ce91da29080b419240a3b5bf4 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,6 @@ 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 */ \ No newline at end of file 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..cd73ad52dcef8a95570c26def6e21c6fc14378f4 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,7 @@ 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 */ \ No newline at end of file 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..fadfaef36700bd413d372dfc5affc31b876f585c 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,5 @@ 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]' */ \ No newline at end of file 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..5f03a45c765894c0f8bc94271275750acb73f34b 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,5 @@ 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' */ \ No newline at end of file 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..1e4b3717bac5198f455db585c617386a721d3c1a 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,5 @@ 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 */ \ No newline at end of file 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..5cf91aff9492388a43b3532f14ba5f859187eaf8 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,5 @@ 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. */ \ No newline at end of file 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..c5e2300f17b06d1ec8e4067d34d9411d9de27375 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,5 @@ 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]' */ \ No newline at end of file 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..2d917302436df3c2c585db6bda79398efa81f9f6 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,5 @@ 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' */ \ No newline at end of file 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..89ed00bda7da2bb71a297315264a33ec4d5ba7eb 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,6 @@ 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 */ \ No newline at end of file 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..0a696184e4782462e8ae465097d5ecae864916d4 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,7 @@ 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 */ \ No newline at end of file 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..37a1c6f07d8e2e0e77eb671b292ef3f50883a7d8 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets b/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets index 5b7703cef0ba2ece77c997481bd4f0d625a0c257..483bf4a2d49baf8264b46b47c36927eb17e41e58 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:31 Error SyntaxError: Unexpected token 'long'. */ -/* @@? 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:31 Error Syntax error ESY0227: Unexpected token 'long'. */ +/* @@? 17:39 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:42 Error Syntax error ESY0227: Unexpected token '=>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets index 9576c6e5dca877c7bd49cd37630481f83462afc5..5eaa1ae29401f54193668dcdcf29a2553e305ed9 100644 --- a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets +++ b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets @@ -35,4 +35,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets index f97561d5aa2d11de3fa195e3704b3834573614e5..0171158712681ea11cd58a79a2160643836921d1 100644 --- a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets +++ b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets @@ -30,5 +30,6 @@ function main() { arktest.assertEQ(a.a, false); } -/* @@@ warn Warning Warning: The instance field initializer expression cannot use the this. */ -/* @@@ label Error TypeError: Readonly field already initialized at declaration. */ + +/* @@@ warn Warning Warning W0010: The instance field initializer expression cannot use the this. */ +/* @@@ label Error Semantic error ESE0210: Readonly field already initialized at declaration. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly_interface_method.ets b/ets2panda/test/ast/parser/ets/readonly_interface_method.ets index 418b6c6ef1cc2ddca151538b9ab231979abba143..aea59c446dcc0baabf9b023d26ace6b697e2ad69 100644 --- a/ets2panda/test/ast/parser/ets/readonly_interface_method.ets +++ b/ets2panda/test/ast/parser/ets/readonly_interface_method.ets @@ -17,5 +17,6 @@ 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 '('. */ \ No newline at end of file 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 bc30adc771f5a6cb3e0f7e02a2bdb6e4fb0526aa..c86bebd5b7bdc85cef6e71713c716004450d6fb3 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,6 @@ function bar(a:Readonly){ bar(changeAbleVar) -/* @@@ label Error TypeError: Cannot assign to a readonly field 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 ESE4002: Cannot assign to a readonly field x */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly_union_negative.ets b/ets2panda/test/ast/parser/ets/readonly_union_negative.ets index 833780204cb589f67200d5a3e051eee28abb12e6..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") */ +/* @@? 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..4974180803a7cfe60a89c64805f6c6b1ee6746ec 100644 --- a/ets2panda/test/ast/parser/ets/recordIndexing.ets +++ b/ets2panda/test/ast/parser/ets/recordIndexing.ets @@ -22,14 +22,15 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets index aa08c98e228a4680db9434a7ba145d4714de524d..f94bae06d823bb8f695c7637312e3cefa201fa2f 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets @@ -19,4 +19,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets index d65646705f1c1b92083273927b1714233eebfc16..9ca8239ad14a7c28fade523031b11be323187115 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets @@ -21,4 +21,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets index 5d863c0d03274bc22ff7ccfad74f884258d62fdb..58e44a80f49491c12f733f43c1076aa69a9a71eb 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets @@ -18,4 +18,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets index eeee8b412bfb3c75206a98b61b52ed215ba5bc99..4d3bd869c6c8dd0a4d93ea2cb54ee44ff501033d 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets @@ -18,4 +18,5 @@ 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 */ \ No newline at end of file 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..9576aa3a9d0b11cd89b844ec2868daf322cca2c2 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,5 @@ 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 */ \ No newline at end of file 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..652a4bf2360f22929958ca9c49bd11f24a4996e3 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,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/record_init_check.ets b/ets2panda/test/ast/parser/ets/record_init_check.ets index 4c4eaffb810e18234834a48e636a1d3e8d94496c..7e379c2a8602179f839e86027f2a6cedbb5f7954 100644 --- a/ets2panda/test/ast/parser/ets/record_init_check.ets +++ b/ets2panda/test/ast/parser/ets/record_init_check.ets @@ -20,4 +20,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/record_object_value.ets b/ets2panda/test/ast/parser/ets/record_object_value.ets index 387f895fc826f96bd7b2c93cf2968037ca72d6f8..f126593d6782e726317d78de16afcf61209e3a8f 100644 --- a/ets2panda/test/ast/parser/ets/record_object_value.ets +++ b/ets2panda/test/ast/parser/ets/record_object_value.ets @@ -57,9 +57,9 @@ 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: Non-optional property 'salary' in type 'PersonInfoInterface' is missing in object literal. */ -/* @@@ label2 Error TypeError: Non-optional property 'age' in type 'PersonInfoInterface' is missing in object literal. */ -/* @@@ label3 Error TypeError: type PersonInfoInterface has no property named agee */ -/* @@@ label4 Error TypeError: type PersonInfoInterface has no property named other */ \ No newline at end of file +/* @@@ 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 ESE0400: Non-optional property 'salary' in type 'PersonInfoInterface' is missing in object literal. */ +/* @@@ label2 Error Semantic error ESE0400: Non-optional property 'age' in type 'PersonInfoInterface' is missing in object literal. */ +/* @@@ label3 Error Semantic error ESE0065: type PersonInfoInterface has no property named agee */ +/* @@@ label4 Error Semantic error ESE0065: type PersonInfoInterface has no property named other */ \ No newline at end of file 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..ee08f5763a032cbc1e8c253647b6b9ab964e7a91 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets b/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets index 20a5b6416fbc342948adc8c88e57bb7ffd8dd2c9..f933b75be6b12836a9a98b86a97ecb7bac5f5a5e 100644 --- a/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets +++ b/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets @@ -88,14 +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:66 Error SyntaxError: Intersection types are not supported, use inheritance instead! */ -/* @@? 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: Interface expected here. */ -/* @@? 73:6 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 85:1 Error TypeError: Indexed access is not supported for such expression type. */ + +/* @@? 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:66 Error Syntax error ESY145527: Intersection types are not supported, use inheritance instead! */ +/* @@? 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 ESE0179: Interface expected here. */ +/* @@? 73:6 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 85:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/required_multiple_fields.ets b/ets2panda/test/ast/parser/ets/required_multiple_fields.ets index 4b509c3fc17962c5ad0a61db92f5cf3ea207c88a..84c641fb02f001b16dfdd2657243041edbb7a384 100644 --- a/ets2panda/test/ast/parser/ets/required_multiple_fields.ets +++ b/ets2panda/test/ast/parser/ets/required_multiple_fields.ets @@ -32,12 +32,13 @@ 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: Non-optional property 'k' in type 'Required' is missing in object literal. */ -/* @@@ label3 Error TypeError: Class property 'k' needs to be initialized for Required. */ -/* @@@ label4 Error TypeError: Non-optional property 'j' in type 'Required' is missing in object literal. */ -/* @@@ label4 Error TypeError: Non-optional property 'k' in type 'Required' is missing in object literal. */ -/* @@@ 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 ESE0400: Non-optional property 'k' in type 'Required' is missing in object literal. */ +/* @@@ label3 Error Semantic error ESE0226: Class property 'k' needs to be initialized for Required. */ +/* @@@ label4 Error Semantic error ESE0400: Non-optional property 'j' in type 'Required' is missing in object literal. */ +/* @@@ label4 Error Semantic error ESE0400: Non-optional property 'k' in type 'Required' is missing in object literal. */ +/* @@@ 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. */ \ No newline at end of file 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..abff091b502e061afa4159f7ff5faba61334885e 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/reserved_type.ets b/ets2panda/test/ast/parser/ets/reserved_type.ets index 91edf9e1458d89688b3f50927abd04774b6092dc..571caf95dff67aa1b3d59edfef40f92619900794 100644 --- a/ets2panda/test/ast/parser/ets/reserved_type.ets +++ b/ets2panda/test/ast/parser/ets/reserved_type.ets @@ -34,12 +34,13 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_never.ets b/ets2panda/test/ast/parser/ets/rest_never.ets index dd17382ea1f90f1d379b532f9dd9097708c6ef38..c78cde8df98e3eb962560031c70926b51c4c0c51 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 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/parser/ets/rest_no_default.ets b/ets2panda/test/ast/parser/ets/rest_no_default.ets index 2964b29db0ba9ddcadaddf38749d9bf5b9c8ba51..83f9c10d97ec53c55dcf380886f5f4ca50cb108d 100644 --- a/ets2panda/test/ast/parser/ets/rest_no_default.ets +++ b/ets2panda/test/ast/parser/ets/rest_no_default.ets @@ -15,5 +15,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_no_optional.ets b/ets2panda/test/ast/parser/ets/rest_no_optional.ets index 2fe5e0e584e2cfc06bfa61e32080238af0599ef4..843a71bf048e5f199150a0552d665e49231d04f6 100644 --- a/ets2panda/test/ast/parser/ets/rest_no_optional.ets +++ b/ets2panda/test/ast/parser/ets/rest_no_optional.ets @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_03.ets b/ets2panda/test/ast/parser/ets/rest_parameter_03.ets index 798205d16639e413a2d19c417c57ff5d02101ecc..5bfd2a78bdeda37c8e74d4cafde64e161f4118c8 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_03.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_03.ets @@ -17,4 +17,4 @@ function foo (x: int, y: int = 0, ...r: int[]): int { return 4; } -/* @@? 16:10 Error SyntaxError: Both optional and rest parameters are not allowed in function's parameter list. */ + diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_04.ets b/ets2panda/test/ast/parser/ets/rest_parameter_04.ets index b175b93357c63158b7e8c9d77a7912d5593fef8a..7805cf8336d60ca4c37e6c853b2d2e6ffeae5403 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_04.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_04.ets @@ -17,7 +17,8 @@ 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 '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_05.ets b/ets2panda/test/ast/parser/ets/rest_parameter_05.ets index 53d71208a0886248013a2c68ab4204e05f1e5f78..f83a951d5700032f62ed57c5b80cd1a44785be0f 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_05.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_05.ets @@ -19,5 +19,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_06.ets b/ets2panda/test/ast/parser/ets/rest_parameter_06.ets index 2d75bc751833a693d8bbd69a5f7a52c8eec98461..74b96d2bf8f2064d99cf3e3f8e2d59d2414dc8ce 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_06.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_06.ets @@ -19,5 +19,6 @@ 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) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_07.ets b/ets2panda/test/ast/parser/ets/rest_parameter_07.ets index ac4c0fed73bf20d39a094c0413a303287c2fc910..8efda19d5dd97077f9f5cecac942b5b137bffacd 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_07.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_07.ets @@ -19,5 +19,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_08.ets b/ets2panda/test/ast/parser/ets/rest_parameter_08.ets index b81323e196d5a38eb30156dd2559cbe4e92e7df8..e338ed50a02b0a6180fbe60151320ca56f3f9e94 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_08.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_08.ets @@ -22,12 +22,13 @@ 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) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_09.ets b/ets2panda/test/ast/parser/ets/rest_parameter_09.ets index c958b2efe1158870f943ef205ec0ea298cf49f8f..acd52aeebe05ee409638dcceeecef2fd42a26fc5 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_09.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_09.ets @@ -22,5 +22,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_10.ets b/ets2panda/test/ast/parser/ets/rest_parameter_10.ets index db95f4b9b072594eeaef434067e33c86eee8179a..ca10d90941ac897510ab29f19faf2534bec6d436 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_10.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_10.ets @@ -22,5 +22,6 @@ 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) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_11.ets b/ets2panda/test/ast/parser/ets/rest_parameter_11.ets index 5750476b45c61d017f30953572399f04db80f51d..6d57474f2d9a196ddd2a9656c6083ee6c94612c7 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_11.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_11.ets @@ -22,5 +22,6 @@ 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) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_12.ets b/ets2panda/test/ast/parser/ets/rest_parameter_12.ets index 5b519005961a3ddb39329fe51fa1de4cec476a01..d4e8a5adfd16a91c6e34f8a100a0cc67c4f71056 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_12.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_12.ets @@ -24,9 +24,10 @@ 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) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_13.ets b/ets2panda/test/ast/parser/ets/rest_parameter_13.ets index 46f794926f745d3fcf69c72449cc26f3095e3e87..0a6b4628999d5eec652ad0a54a922c92bcdd1fc6 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_13.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_13.ets @@ -34,14 +34,15 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_14.ets b/ets2panda/test/ast/parser/ets/rest_parameter_14.ets index 73bbbb9eb079a4ae9c0701e4ac1a4f98d577a2e1..222b050781803d0f705af9d4b63c985b914f1e1e 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_14.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_14.ets @@ -21,5 +21,6 @@ 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. */ \ No newline at end of file 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..9c186f96f2f8ea233981309ef9a947a9279e7a05 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,6 @@ 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. */ \ No newline at end of file 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..e98fa29458076e80cfca7c2e0ec4c5d2a47dcefd 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,6 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/return_while_warning.ets b/ets2panda/test/ast/parser/ets/return_while_warning.ets index 08ae4d2f3a52b082999c9208b622ec843bb4c28c..c2136289b6283b32589542c5fafcf8fa0fe4097e 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/returntype_override_object.ets b/ets2panda/test/ast/parser/ets/returntype_override_object.ets index be73db7d84c954115d820d94947109f928fdfc1e..320eb331e267adcda465bf68ac48fcc7250141e8 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/returntype_override_primitive.ets b/ets2panda/test/ast/parser/ets/returntype_override_primitive.ets index bf844a84d31021380e6727cb725e6aaab3968f85..1d1e28a19afc5c10f55b7480496748b1e2ea4d52 100644 --- a/ets2panda/test/ast/parser/ets/returntype_override_primitive.ets +++ b/ets2panda/test/ast/parser/ets/returntype_override_primitive.ets @@ -25,5 +25,3 @@ class Derived extends Base { } } -/* @@? 23:17 Error TypeError: foo(i: double): Double in Derived cannot override foo(i: double): double in Base because overriding return type is not compatible with the other return type. */ -/* @@? 23:17 Error TypeError: Method foo(i: double): Double in Derived not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets b/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets index c5e9ad05f304c09b03cb90a973e47c8b9efd1113..9bf76acfa89e2f86fb35d74ce92080d0e1416008 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 */ \ No newline at end of file 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..a828677426ee785c0be380aa9fe3fdcf609877de 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets b/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets index f7e6f36d169ddfde8cb64ddeddccbfeb788108a2..24d4fea03e7d9a614b97a927dbc523c254204c85 100644 --- a/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets +++ b/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets @@ -17,5 +17,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/setter_native.ets b/ets2panda/test/ast/parser/ets/setter_native.ets index 1c9aa8b1453d50abd2b778fb6754ba20d283aad4..b1c075978df1307c2eee77e899b46a99ff65c2f8 100644 --- a/ets2panda/test/ast/parser/ets/setter_native.ets +++ b/ets2panda/test/ast/parser/ets/setter_native.ets @@ -20,4 +20,5 @@ 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. */ \ No newline at end of file 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..a5e6bd2e05653e2ded86d4049e968a79a56a0b74 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,6 @@ 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. */ \ No newline at end of file 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..cca6962ae73e3a5f347dde274f3d33029c704433 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,5 @@ 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. */ \ No newline at end of file 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..22b11831b0425b2004a0670ea2f4472b9dafa85f 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,5 @@ 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. */ \ No newline at end of file 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..a34b4390072ff4f4e06af29611742c8486542ece 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,7 @@ 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 */ \ No newline at end of file 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..3ae3e5284e13dae4b84a8619bb3e4c1ff926b9b2 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,5 @@ 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. */ \ No newline at end of file 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..181769dd30a918250b01b78060cb4ab9fe2484d9 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,8 @@ 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'. */ \ No newline at end of file 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..fbd0a34862d0ee5a14da41c16a4055773093a052 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,5 @@ 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. */ \ No newline at end of file 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..292de43db61b52789d75a0044183df7e7cb813dd 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,6 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/single_statement_1.ets b/ets2panda/test/ast/parser/ets/single_statement_1.ets index 64d355e22c7b69d900061a2c1f7e5d21333f481e..6b85cc05d5580f5bc97c952c9de3434f8555750c 100644 --- a/ets2panda/test/ast/parser/ets/single_statement_1.ets +++ b/ets2panda/test/ast/parser/ets/single_statement_1.ets @@ -20,14 +20,15 @@ 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 ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/single_statement_2.ets b/ets2panda/test/ast/parser/ets/single_statement_2.ets index 996fdd7fd487845d70c35809a94386d0a4b8ea2b..8e91859f000c1fa85b76d4070ef5ae3ceb46facb 100644 --- a/ets2panda/test/ast/parser/ets/single_statement_2.ets +++ b/ets2panda/test/ast/parser/ets/single_statement_2.ets @@ -20,14 +20,15 @@ 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 ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/special_signatures.ets b/ets2panda/test/ast/parser/ets/special_signatures.ets index 811f62bf38be89ba904fe9279ee87eb225cab517..19a614ba2f35ee262dc70e6609dffdf956f91cc9 100644 --- a/ets2panda/test/ast/parser/ets/special_signatures.ets +++ b/ets2panda/test/ast/parser/ets/special_signatures.ets @@ -17,6 +17,7 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets b/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets index 597d40da24509d4a5ed9746a12928d6ec6039eb0..51f26f851d322c2cf8556919c9f14cbf415da714 100644 --- a/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets +++ b/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets @@ -20,7 +20,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets b/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets index 2259dc49208c8e5bfe0fe9ea0cde14e0c51e9ed8..c913560ff97d09376d4b944d57e9dbc6f26c4338 100644 --- a/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets +++ b/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets @@ -20,4 +20,5 @@ 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 */ \ No newline at end of file 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..0b7941b135d6d858ce778284a30152c81f2eada8 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,8 @@ 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) */ + +/* @@@ label1 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for foo(Int, [Double, Double]) */ +/* @@@ label2 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for foo(Int, Double) */ \ No newline at end of file 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..834494d5e846e5869723b98440f8be780f5b2688 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,12 @@ 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) */ + +/* @@@ label1 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for foo([Double, Double]) */ +/* @@@ label2 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for foo(Double) */ +/* @@@ label3 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for moo(Int, [Double, Double]) */ +/* @@@ label4 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label4 Error Semantic error ESE0127: No matching call signature for moo(Int, Double) */ \ No newline at end of file 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..24c35e3aaf953a72cd3ec655aa093e0d7311a9d3 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,12 @@ 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) */ + +/* @@@ label1 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for foo([Double, Double]) */ +/* @@@ label2 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for foo(Double) */ +/* @@@ label3 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for moo(Int, [Double, Double]) */ +/* @@@ label4 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label4 Error Semantic error ESE0127: No matching call signature for moo(Int, Double) */ \ No newline at end of file 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..6161cad95cdd10c8e06f09661f06896195f92960 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 '}'. */ \ No newline at end of file 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..5d9a87e9693dcaa849da24a512b426babe5d67f1 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_block.ets b/ets2panda/test/ast/parser/ets/static_block.ets index 054302363657607fee25f1a324d2b4d0b8950bf7..920cf27425f0ce1a8172deb3445995ce2d6ff2ae 100644 --- a/ets2panda/test/ast/parser/ets/static_block.ets +++ b/ets2panda/test/ast/parser/ets/static_block.ets @@ -21,5 +21,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_field_1.ets b/ets2panda/test/ast/parser/ets/static_field_1.ets index a711e4124553ad0fa6c299c14437f0361c17c930..cc786afa7d3600650bca204a3278a5bec89738f6 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_field_2.ets b/ets2panda/test/ast/parser/ets/static_field_2.ets index e0457f45a5b19fa6cce2dac856821ea88962568d..179251ab599a65c4e5897a4d4a165e1b5904c89c 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_field_3.ets b/ets2panda/test/ast/parser/ets/static_field_3.ets index 2d3fd4b3a355f716e5296c90b311cfef6d8cf161..697f0cafe4b5e7a30f1180b7eb30f6852607e261 100644 --- a/ets2panda/test/ast/parser/ets/static_field_3.ets +++ b/ets2panda/test/ast/parser/ets/static_field_3.ets @@ -22,4 +22,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_field_4.ets b/ets2panda/test/ast/parser/ets/static_field_4.ets index f012dcab619796102661c2ab282f924cc0424560..f81c8d93fbba800b0b53c0c8cbf6dec4b8dcf1a8 100644 --- a/ets2panda/test/ast/parser/ets/static_field_4.ets +++ b/ets2panda/test/ast/parser/ets/static_field_4.ets @@ -26,5 +26,6 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_field_5.ets b/ets2panda/test/ast/parser/ets/static_field_5.ets index aabed3382f4083fa0e6b3ca092234e7957507a2f..ad18a7fa7920ae636490f14c815258ea1bede511 100644 --- a/ets2panda/test/ast/parser/ets/static_field_5.ets +++ b/ets2panda/test/ast/parser/ets/static_field_5.ets @@ -47,4 +47,5 @@ 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' */ \ No newline at end of file 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..05d92b6039168006976a3c8b58d092b8e7f3b579 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,5 @@ 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' */ \ No newline at end of file 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..650f773874be57423423eb47f1c9101b4d28524c 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,5 @@ 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' */ \ No newline at end of file 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..315b1f0d45623f8b87ec364c8d3613cf50875618 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,5 @@ 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' */ \ No newline at end of file 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..b3530633fd906ec14107617a8f2ff1e7b8bb3b01 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,5 @@ 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' */ \ No newline at end of file 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..c54cc1c4c657fac8f480509bc693fe3898281cc6 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,5 @@ 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' */ \ No newline at end of file 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..12c37846cf0f19cf4dc80ee7edea1b9a1ca3797e 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,5 @@ 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' */ \ No newline at end of file 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..2d28ed50c9513deacaa9080744d96c3bf228b5a4 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,5 @@ 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' */ \ No newline at end of file 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..f4cc6062d2221b7f4d40f65af41a10850260549e 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,5 @@ 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' */ \ No newline at end of file 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..b7992c649138e9361fdbeab12d7be884645826aa 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,5 @@ 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' */ \ No newline at end of file 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..61d353ef1c8908c19a186061dd5252a9cc81d83b 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,6 @@ 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' */ \ No newline at end of file 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..5bfef206a8a6e562b79f73d946bdd5dc0b81778c 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,5 @@ 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 */ \ No newline at end of file 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..e386dd63f2a2b5fd8546f83fcd2b32991ab887d2 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,5 @@ 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. */ \ No newline at end of file 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..6ae8092f8e7ef1fc8d0556f25c8823c88dce6d99 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,5 @@ 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. */ \ No newline at end of file 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..886cfa946b90871af0c08f7d54cfa662f6197740 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,6 @@ 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 */ \ No newline at end of file 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..71f0b62127426ad7d2baca1f93defe4fa9baaa1f 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,6 @@ 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. */ \ No newline at end of file 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 089413ea65b1b3e1a1336648b09ed9e5a5728420..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..d92a9134a9b77692c2a3772720a6b0140a82ef26 100644 --- a/ets2panda/test/ast/parser/ets/string_literal_01.ets +++ b/ets2panda/test/ast/parser/ets/string_literal_01.ets @@ -15,6 +15,7 @@ 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 */ \ No newline at end of file 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..aef5dea5382a9c24e22e17b1c2a88a185113f7aa 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,9 @@ 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:87 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 23:87 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 23:87 Error Semantic error ESE0363: Missing initializer in const declaration */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_export1.ets b/ets2panda/test/ast/parser/ets/struct_export1.ets index 6fa897ef35051f6641b2214c7fdba11f43751c9d..cf8ed2a009d401df00ef2d58478782a204d4c8cc 100644 --- a/ets2panda/test/ast/parser/ets/struct_export1.ets +++ b/ets2panda/test/ast/parser/ets/struct_export1.ets @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_extends_class.ets b/ets2panda/test/ast/parser/ets/struct_extends_class.ets index 42709eee1d8615b26c2bd35adfccfcf261570698..baf5d1c5665e6ddd2fb6de34380f3b49c6b9341a 100644 --- a/ets2panda/test/ast/parser/ets/struct_extends_class.ets +++ b/ets2panda/test/ast/parser/ets/struct_extends_class.ets @@ -22,4 +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:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_extends_interface.ets b/ets2panda/test/ast/parser/ets/struct_extends_interface.ets index 719f558829c8bf6ea006dad3ed1b6096cef89745..0e2f2cf3b0d1b912b158c3b98c8a169fb8b081cd 100644 --- a/ets2panda/test/ast/parser/ets/struct_extends_interface.ets +++ b/ets2panda/test/ast/parser/ets/struct_extends_interface.ets @@ -22,5 +22,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_extends_struct.ets b/ets2panda/test/ast/parser/ets/struct_extends_struct.ets index af090a527e457480c451fca729f3e709a23afecd..0f27c97e531351afc25191806e1b75633f1db6f7 100644 --- a/ets2panda/test/ast/parser/ets/struct_extends_struct.ets +++ b/ets2panda/test/ast/parser/ets/struct_extends_struct.ets @@ -22,6 +22,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_implements_interface.ets b/ets2panda/test/ast/parser/ets/struct_implements_interface.ets index 31481d72fa7d3786d03023322bcff9a627889f2e..d2883a29eb19bbf5edd70de12144d37d5621a2f5 100644 --- a/ets2panda/test/ast/parser/ets/struct_implements_interface.ets +++ b/ets2panda/test/ast/parser/ets/struct_implements_interface.ets @@ -22,4 +22,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_in_class.ets b/ets2panda/test/ast/parser/ets/struct_in_class.ets index 275cf87934f7cda8b2b953cec1ea7fbb19603c0e..670b0db65ef20d2492584eefa107e2efc19e0a7f 100644 --- a/ets2panda/test/ast/parser/ets/struct_in_class.ets +++ b/ets2panda/test/ast/parser/ets/struct_in_class.ets @@ -21,5 +21,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_in_interface.ets b/ets2panda/test/ast/parser/ets/struct_in_interface.ets index 60f3efa82e931dc331a994dee6a4786b6893660b..75abcdcad4030d76e7945583fe4c932faeb323d1 100644 --- a/ets2panda/test/ast/parser/ets/struct_in_interface.ets +++ b/ets2panda/test/ast/parser/ets/struct_in_interface.ets @@ -20,14 +20,15 @@ interface A { } } -/* @@? 17:16 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:18 Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@? 18:12 Error TypeError: Cannot find type 'B'. */ -/* @@? 18:14 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:14 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 19:20 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 19:22 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 19:22 Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@? 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 ESY0224: Identifier expected, got 'string literal'. */ +/* @@? 18:12 Error Semantic error ESE0371: Cannot find type 'B'. */ +/* @@? 18:14 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:14 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 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 ESY0224: Identifier expected, got 'string literal'. */ +/* @@? 20:5 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_in_struct.ets b/ets2panda/test/ast/parser/ets/struct_in_struct.ets index 96406ac56d2a47f5da3579cd4033de7d0af6807f..e0df9352f47d6af9aa6c42bb4e98dc797b2aa937 100644 --- a/ets2panda/test/ast/parser/ets/struct_in_struct.ets +++ b/ets2panda/test/ast/parser/ets/struct_in_struct.ets @@ -21,6 +21,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets b/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets index cdc157dbd5051411661877cb0773a556cc7068c3..f1922107b0cd0b58282ffb8d8000423d96a5a26b 100644 --- a/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets +++ b/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets @@ -20,4 +20,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_invalid_local.ets b/ets2panda/test/ast/parser/ets/struct_invalid_local.ets index eae483b3e33f6bcab33dbbbe7e9c6c931024fb75..a2db81a8b2fc29faf32d783ad6c36734d8527955 100644 --- a/ets2panda/test/ast/parser/ets/struct_invalid_local.ets +++ b/ets2panda/test/ast/parser/ets/struct_invalid_local.ets @@ -19,4 +19,5 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Illegal start of STRUCT expression. */ + +/* @@@ label Error Syntax error ESY0040: Illegal start of STRUCT expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets b/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets index 4ef929e9e6c37848faab5785255735412fdcafbe..c84d9044d5502970c93415ce6986a529262151ef 100644 --- a/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets +++ b/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets @@ -19,5 +19,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_keywords1.ets b/ets2panda/test/ast/parser/ets/struct_keywords1.ets index 7dcd3f5ee4243352140a7b5a6bdd91a18f524ada..dd6ce7e6abc365aa51648274e6abe1e158e9659e 100644 --- a/ets2panda/test/ast/parser/ets/struct_keywords1.ets +++ b/ets2panda/test/ast/parser/ets/struct_keywords1.ets @@ -54,4 +54,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_keywords2.ets b/ets2panda/test/ast/parser/ets/struct_keywords2.ets index 01c146278ebb453dde6e56385d226e8f01005281..2ceecb52a2d3380859272ff0212cf16cd34718ac 100644 --- a/ets2panda/test/ast/parser/ets/struct_keywords2.ets +++ b/ets2panda/test/ast/parser/ets/struct_keywords2.ets @@ -54,4 +54,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_keywords3.ets b/ets2panda/test/ast/parser/ets/struct_keywords3.ets index 93de56a5c0b4dfcfe2c0f3b5837e1ebe906c3a8c..277f095c0b1e2f56fa62ba85a06be0841ba1a565 100644 --- a/ets2panda/test/ast/parser/ets/struct_keywords3.ets +++ b/ets2panda/test/ast/parser/ets/struct_keywords3.ets @@ -83,5 +83,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_with_annotations.ets b/ets2panda/test/ast/parser/ets/struct_with_annotations.ets index 8f03d67f106f5d1256c636c8da6a90d3ee9779f1..c02349c308123ec53f93ae98da61f96b550281a1 100644 --- a/ets2panda/test/ast/parser/ets/struct_with_annotations.ets +++ b/ets2panda/test/ast/parser/ets/struct_with_annotations.ets @@ -31,4 +31,5 @@ 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. */ \ No newline at end of file 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..a86871647ee2c9f56a795ad275704b04da02051a 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/superInConstructor1.ets b/ets2panda/test/ast/parser/ets/superInConstructor1.ets index e1666bd8728ef0771a90ede55a0fa1e953d289c7..da22b213006c73bc317b090e9e86addcd117bf41 100644 --- a/ets2panda/test/ast/parser/ets/superInConstructor1.ets +++ b/ets2panda/test/ast/parser/ets/superInConstructor1.ets @@ -34,4 +34,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/superInConstructor2.ets b/ets2panda/test/ast/parser/ets/superInConstructor2.ets index 6afa6f51825c42e787270d5382be363da7c0d868..2c287d7ae6d1651dcc484dded6d8a728590b84c8 100644 --- a/ets2panda/test/ast/parser/ets/superInConstructor2.ets +++ b/ets2panda/test/ast/parser/ets/superInConstructor2.ets @@ -38,4 +38,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/superInConstructor3.ets b/ets2panda/test/ast/parser/ets/superInConstructor3.ets index 2cbd62e5c48db4d07e3c2fedae0a50d940ff6bda..26ac194816e241fa40fd7f8a41089f2d7a609853 100644 --- a/ets2panda/test/ast/parser/ets/superInConstructor3.ets +++ b/ets2panda/test/ast/parser/ets/superInConstructor3.ets @@ -44,4 +44,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/superStaticCall.ets b/ets2panda/test/ast/parser/ets/superStaticCall.ets index 119114d65c7dcc820833527c47e5d9ad6bce8455..282ee995ea480af8138ced58375a14fe03397fce 100644 --- a/ets2panda/test/ast/parser/ets/superStaticCall.ets +++ b/ets2panda/test/ast/parser/ets/superStaticCall.ets @@ -30,4 +30,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/super_field.ets b/ets2panda/test/ast/parser/ets/super_field.ets index 680e8dcaf7a0118e22d58bd33092863b57992742..d75834e65a7edf389ae58dd6925f0a7331f1712b 100644 --- a/ets2panda/test/ast/parser/ets/super_field.ets +++ b/ets2panda/test/ast/parser/ets/super_field.ets @@ -23,4 +23,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_alive_2.ets b/ets2panda/test/ast/parser/ets/switch_alive_2.ets index 59a09de8ca0aba99f7637eb93d35e331dad35386..5f4d0c5c17571025f3544d20f67b880af90cffba 100644 --- a/ets2panda/test/ast/parser/ets/switch_alive_2.ets +++ b/ets2panda/test/ast/parser/ets/switch_alive_2.ets @@ -24,4 +24,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_alive_3.ets b/ets2panda/test/ast/parser/ets/switch_alive_3.ets index 8dd956bacc209ef2175581d1e56a7c6045395e85..b356ae14843421e69badaf92ea61b6484b6d027e 100644 --- a/ets2panda/test/ast/parser/ets/switch_alive_3.ets +++ b/ets2panda/test/ast/parser/ets/switch_alive_3.ets @@ -26,4 +26,5 @@ function main(): int { return 0; } -/* @@@ label Warning Warning: Possible fall-through into case */ + +/* @@@ label Warning Warning W0020: Possible fall-through into case */ \ No newline at end of file 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..afcccfef131e5b7c2c8b911476f7269480e21b06 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,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_enum.ets b/ets2panda/test/ast/parser/ets/switch_enum.ets index ecccc8cdaee3fe1be8ba450b40bb654e7ff26226..d541b8f4bcda8d5350969c46ee52a4c2e85f838a 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum.ets @@ -24,4 +24,5 @@ function main(): void { } } -/* @@@ label Error TypeError: Case duplicate */ + +/* @@@ label Error Semantic error ESE0165: Case duplicate */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_enum2.ets b/ets2panda/test/ast/parser/ets/switch_enum2.ets index 3bb5002d1d2c8a9bd18ea51618a17d72572b29db..5aa7dd3e7f7d890ebfa03c1d97b7666d13030fc4 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum2.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum2.ets @@ -23,4 +23,5 @@ 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' */ \ No newline at end of file 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..5286263081ccfa666ab9e8f6c2f35598c68d445c 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,5 @@ function main() { } } -/* @@@ label Error TypeError: Case duplicate */ + +/* @@@ label Error Semantic error ESE0165: Case duplicate */ \ No newline at end of file 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..e368a1156010e72220de82e1fd0f076c84c535f1 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,5 @@ function main() { } } -/* @@@ label Error TypeError: Case duplicate */ + +/* @@@ label Error Semantic error ESE0165: Case duplicate */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_invalid.ets b/ets2panda/test/ast/parser/ets/switch_invalid.ets index 7c72bea595dfbcfaeb807895046d27a9dddf8110..462a240de9a3f5f1af85e73ec216d857af01d5df 100644 --- a/ets2panda/test/ast/parser/ets/switch_invalid.ets +++ b/ets2panda/test/ast/parser/ets/switch_invalid.ets @@ -16,52 +16,53 @@ 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:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_num_compare_char_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_num_compare_char_duplicate.ets index ddfc786ecbe2f6ecc4838718dcf13f397e384ec0..643ea3a951ca68c022cebbfe1b4f6f6d076f884a 100644 --- a/ets2panda/test/ast/parser/ets/switch_num_compare_char_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_num_compare_char_duplicate.ets @@ -23,4 +23,4 @@ function main() { } } -/* @@@ label Error TypeError: Case duplicate */ + 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 7cc78ce5c9e733894c7f5fcc934549f1fa3ec516..c7a7327bf4bf2db0ada1588f8ebc99f5ebe91cba 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,7 +40,8 @@ function main() { } } -/* @@@ label Error TypeError: Switch case type 'A' is not comparable to discriminant type 'E' */ -/* @@@ label Error TypeError: Enum switch case must be unqualified name of an enum constant */ -/* @@@ label1 Error TypeError: Switch case type 'A' is not comparable to discriminant type 'E' */ -/* @@@ label1 Error TypeError: Enum switch case must be unqualified name of an enum constant */ + +/* @@@ label Error Semantic error ESE0262: Switch case type 'A' is not comparable to discriminant type 'E' */ +/* @@@ label Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ +/* @@@ label1 Error Semantic error ESE0262: Switch case type 'A' is not comparable to discriminant type 'E' */ +/* @@@ label1 Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum_2.ets b/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum_2.ets index 8c9b63d463f80373117a0805d74764e515b61071..3d01174876b4c2a69247c36fb82485f7251f0301 100644 --- a/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum_2.ets +++ b/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum_2.ets @@ -39,4 +39,7 @@ function main() { } } -/* @@@ label 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' */ +/* @@@ label Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ +/* @@? 36:14 Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_readonly_member_enum.ets b/ets2panda/test/ast/parser/ets/switch_readonly_member_enum.ets index e39201f362628a0556c3179e3bb7d92a3b1ff858..8e88d3892b5d0243d023c401f4766a9ea8c3a204 100644 --- a/ets2panda/test/ast/parser/ets/switch_readonly_member_enum.ets +++ b/ets2panda/test/ast/parser/ets/switch_readonly_member_enum.ets @@ -41,5 +41,6 @@ function main() { } -/* @@@ label Error TypeError: Enum switch case must be unqualified name of an enum constant */ -/* @@@ label1 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 */ +/* @@@ label1 Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ \ No newline at end of file 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 7ca94b555bf3e31534e6f921669dca55fb0551ca..5e0acac3246385cb73bb3d99c74bef646c70fa8c 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,5 +40,6 @@ function main() { } } -/* @@@ label Error TypeError: Enum switch case must be unqualified name of an enum constant */ -/* @@@ label1 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 */ +/* @@@ label1 Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ \ No newline at end of file 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..600a1d34fd22bed30b06e3505cf7af8f7077fd8e 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,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/swtich_not_const.ets b/ets2panda/test/ast/parser/ets/swtich_not_const.ets index e01c4e24742249cf06c225b5dd359d68b88ae4dd..5f2c58281ab9562e76b9eb7fe4249da888811860 100644 --- a/ets2panda/test/ast/parser/ets/swtich_not_const.ets +++ b/ets2panda/test/ast/parser/ets/swtich_not_const.ets @@ -24,4 +24,5 @@ function main() { } } -/* @@@ label Error TypeError: Constant expression required */ + +/* @@@ label Error Semantic error ESE0163: Constant expression required */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/test_type_alias1.ets b/ets2panda/test/ast/parser/ets/test_type_alias1.ets index e1f3d4cf4fb619ecc62b3308fd715ff117793b38..e731491476d33f869804ccfb9e49d344d38dab35 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias1.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias1.ets @@ -15,7 +15,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/test_type_alias10.ets b/ets2panda/test/ast/parser/ets/test_type_alias10.ets index 79ed9bd2d0461a575f64b290b619da5092ebd8b7..47934fdd8d077425633e65d46c6414ee9a39a73f 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias10.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias10.ets @@ -16,4 +16,5 @@ type firstType = secondType; /* @@ label */type secondType = firstType; -/* @@@ label Error TypeError: Circular type alias reference */ + +/* @@@ label Error Semantic error ESE0311: Circular type alias reference */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/test_type_alias2.ets b/ets2panda/test/ast/parser/ets/test_type_alias2.ets index 7a71e94ce32217a905c56119b51c3b236669beee..0d360f600c8ccb45529a4d44b612fca0bd42f80c 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias2.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias2.ets @@ -15,4 +15,5 @@ type bar /* @@ label */number; -/* @@@ label Error SyntaxError: Expected '=', got 'identification literal'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '=', got 'identification literal'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/test_type_alias3.ets b/ets2panda/test/ast/parser/ets/test_type_alias3.ets index 3ff4cbb38cb89513d96acbccc565c531f1eb6e02..7673a293a13f43eab683680c53952a2a25c8a42e 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias3.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias3.ets @@ -15,4 +15,5 @@ type foo = /* @@ label */; -/* @@@ label Error SyntaxError: Invalid Type. */ + +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/test_type_alias4.ets b/ets2panda/test/ast/parser/ets/test_type_alias4.ets index d7fc3f50d8fe71c0d9138f2a0cf74e72054789e9..8b41fddf551932a82cf0e77ff17dad7d752bf3b5 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias4.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias4.ets @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/thisInConstructor.ets b/ets2panda/test/ast/parser/ets/thisInConstructor.ets index 652a510e20036ec34d6fb5506240b3eca61fd148..7c4cf81a430bebbd377c72ec563eb9ba393a4731 100644 --- a/ets2panda/test/ast/parser/ets/thisInConstructor.ets +++ b/ets2panda/test/ast/parser/ets/thisInConstructor.ets @@ -30,4 +30,5 @@ 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 */ \ No newline at end of file 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..61feecced1d4015dc17cb4027e9d6cb0b4985bd7 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,5 @@ 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. */ \ No newline at end of file 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..ed9512bcbff7e994b037256a93322e029e8f2dd1 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,5 @@ 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. */ \ No newline at end of file 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..445ad1b31e77841bf8dff650cabac44a80c10b39 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,5 @@ 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. */ \ No newline at end of file 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..f8026ddb817373af1b4267141f0677966dc3cbe3 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,6 @@ 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 */ \ No newline at end of file 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..f6c56f9c3048ecfd7b46ebe7880be8704760c307 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,5 @@ 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. */ \ No newline at end of file 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..2e7ba01ddf6e952712a4c63b67c6afaf68d0698f 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,7 @@ 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' */ \ No newline at end of file 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..edad9e5e9024d22d2d95737e0183b9a38cdb9fbf 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,15 @@ 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. */ \ No newline at end of file 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..c163824446adf3110160ed60ba223eebc0cc708e 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,5 @@ 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. */ \ No newline at end of file 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..c5373305b196cd7d2cdfb81bb85d45bfa401240b 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,5 @@ 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. */ \ No newline at end of file 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..703f084c982f7a6efa6eab15e10f0a7ff2767ef4 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,5 @@ 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. */ \ No newline at end of file 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..1d1e2f5864cbdf8be327a7fa4774ead3a40a34dd 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,5 @@ 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. */ \ No newline at end of file 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..01319e45b371d01eccb12afe1beb98f477cd9f31 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_invalid.ets index 06872469f6a7486522bade2cd8c3741be312a543..3208549aca61e1e6d79b1a5aa5874330912c8f47 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_invalid.ets @@ -18,5 +18,5 @@ class A {} let x: (i: int, a: A) => number; x = (i: int, t: /* @@ label */this): number => { return 2.0; }; -/* @@@ 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:5 Error TypeError: Type '(p1: int, p2: ETSGLOBAL) => double' cannot be assigned to type '(p1: Int, p2: A) => Double' */ +/* @@? 19:5 Error Semantic error ESE0318: Type '(p1: Int, p2: ETSGLOBAL) => Double' cannot be assigned to type '(p1: Int, p2: A) => Double' */ +/* @@@ 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..d09f3a6960f61884c5938608504ec94eb745371d 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_invalid.ets index 0a3e1ee4c924e488f79a121df2b8458631e74002..de9226e1757ceb10cc01e9bc6172889dc6582818 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_invalid.ets @@ -18,6 +18,6 @@ class A {} let x: (i: int, n: number) => A; x = (i: int, n: number): /* @@ label */this => { return new A(); }; -/* @@? 19:5 Error TypeError: Type '(p1: int, p2: double) => ETSGLOBAL' cannot be assigned to type '(p1: Int, p2: Double) => 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. */ -/* @@? 19:50 Error TypeError: Only extension function or a class method can return 'this' */ +/* @@? 19:5 Error Semantic error ESE0318: Type '(p1: Int, p2: Double) => ETSGLOBAL' cannot be assigned to type '(p1: Int, p2: Double) => A' */ +/* @@@ 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. */ +/* @@? 19:50 Error Semantic error ESE0031: Only extension function or a class method can return 'this' */ diff --git a/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets b/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets index 34985816d112490c281acefc2fad4fdf0adfa79b..bc88292e5984c554f6a2f44456c33d959edc78f9 100644 --- a/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets +++ b/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets @@ -17,4 +17,5 @@ } -/* @@@ label Error SyntaxError: Unexpected token 'static'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'static'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_comma_1.ets b/ets2panda/test/ast/parser/ets/trailing_comma_1.ets index 3bc32586c949fffa9d73f02178436b3f8757a27d..80c0f0ecb3e4547228cdfbcde7025464aa85642a 100644 --- a/ets2panda/test/ast/parser/ets/trailing_comma_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_comma_1.ets @@ -35,35 +35,36 @@ 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 ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_comma_2.ets b/ets2panda/test/ast/parser/ets/trailing_comma_2.ets index d2ec51613e8280210c80070ec230b269e16271a1..7b58bd2dcbd45732ab7e9d7c9085a4124fed47c0 100644 --- a/ets2panda/test/ast/parser/ets/trailing_comma_2.ets +++ b/ets2panda/test/ast/parser/ets/trailing_comma_2.ets @@ -19,8 +19,9 @@ 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) */ \ No newline at end of file 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..20d3eee22518fb200cacd9f010c2e2bfdd67700d 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 '{'. */ \ No newline at end of file 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..87914a18476e223e3f65424f2d3044e15dff030b 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") */ \ No newline at end of file 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 a5a1131ed5bb4b645c68b87d635b1a270bee8cf6..9324e83dcb9795465f0a8ed488952168cf6a2541 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..7c825c804dc9528b310269962c3b1e9fb995f390 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,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await.ets index d027186f56b1d9756629052fd19ff1497bc70cfc..74176ef90ed220c8343a3c9762b563d54ce00841 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await.ets @@ -15,8 +15,9 @@ async WeakMap => ...delete const { } -/* @@? 16:7 Error SyntaxError: 'async' flags must be used for functions only at top-level. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 16:28 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:28 Error SyntaxError: Rest parameter must be the last formal parameter. */ + +/* @@? 16:7 Error Syntax error ESY0202: 'async' flags must be used for functions only at top-level. */ +/* @@? 16:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:15 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 16:28 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:28 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await_fuzz.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await_fuzz.ets index 6cf13fb5c69a9f6874db79babbf3b307eca7fd3e..aed63ff9e677d399ee51097fe12ce531f33935e7 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await_fuzz.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await_fuzz.ets @@ -20,62 +20,63 @@ async WeakMap => ...delete const { Intl } = [ { opt } = [({} ? 4 : Array[-=])]; } -/* @@? 16:7 Error SyntaxError: 'async' flags must be used for functions only at top-level. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 16:28 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:28 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:43 Error SyntaxError: Unexpected token '='. */ -/* @@? 16:43 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:74 Error SyntaxError: Unexpected token '-='. */ -/* @@? 16:79 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 17:1 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:3 Error SyntaxError: Unexpected token '...'. */ -/* @@? 17:15 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 17:16 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:17 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token '0'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:23 Error TypeError: This expression is not callable. */ -/* @@? 17:23 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 17:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:27 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:29 Error SyntaxError: Unexpected token '88'. */ -/* @@? 17:38 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:39 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:41 Error SyntaxError: Unexpected token '...'. */ -/* @@? 17:44 Error SyntaxError: Unexpected token 'opt'. */ -/* @@? 17:44 Error TypeError: Unresolved reference opt */ -/* @@? 17:47 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:47 Error TypeError: This expression is not callable. */ -/* @@? 17:55 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:57 Error SyntaxError: Unexpected token. */ -/* @@? 17:62 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:62 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 17:71 Error SyntaxError: Unexpected token '?'. */ -/* @@? 17:73 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 17:75 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 17:77 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 17:78 Error SyntaxError: Unexpected token '}'. */ -/* @@? 17:87 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:88 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:89 Error SyntaxError: Unexpected token ']'. */ -/* @@? 18:2 Error SyntaxError: Unexpected token '>>>='. */ -/* @@? 18:7 Error SyntaxError: Unexpected token 'sub'. */ -/* @@? 18:7 Error TypeError: Unresolved reference sub */ -/* @@? 18:24 Error SyntaxError: Unexpected token 'await'. */ -/* @@? 18:24 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:24 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 18:24 Error TypeError: Type 'ArrayBuffer' can not be awaited, it is not a Promise. */ -/* @@? 18:30 Error SyntaxError: Class cannot be used as object. */ -/* @@? 18:42 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 18:58 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:60 Error TypeError: Unresolved reference missing */ -/* @@? 18:68 Error SyntaxError: Unexpected token ''. */ -/* @@? 18:68 Error SyntaxError: Newline is not allowed in strings */ -/* @@? 18:69 Error SyntaxError: Unexpected token '}'. */ -/* @@? 18:69 Error SyntaxError: Unexpected token '> __a:be'. */ -/* @@? 18:69 Error SyntaxError: Newline is not allowed in strings */ + +/* @@? 16:7 Error Syntax error ESY0202: 'async' flags must be used for functions only at top-level. */ +/* @@? 16:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:15 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 16:28 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:28 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:43 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 16:43 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:74 Error Syntax error ESY0227: Unexpected token '-='. */ +/* @@? 16:79 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 17:1 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:3 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 17:15 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 17:16 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:17 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token '0'. */ +/* @@? 17:21 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 17:22 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:23 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 17:23 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:27 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:29 Error Syntax error ESY0227: Unexpected token '88'. */ +/* @@? 17:38 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:39 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:41 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 17:44 Error Syntax error ESY0227: Unexpected token 'opt'. */ +/* @@? 17:44 Error Semantic error ESE0143: Unresolved reference opt */ +/* @@? 17:47 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:47 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 17:55 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:57 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:62 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:62 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 17:71 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 17:73 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 17:75 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 17:77 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 17:78 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 17:87 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:88 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:89 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 18:2 Error Syntax error ESY0227: Unexpected token '>>>='. */ +/* @@? 18:7 Error Syntax error ESY0227: Unexpected token 'sub'. */ +/* @@? 18:7 Error Semantic error ESE0143: Unresolved reference sub */ +/* @@? 18:24 Error Syntax error ESY0227: Unexpected token 'await'. */ +/* @@? 18:24 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:24 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 18:24 Error Semantic error ESE0303: Type 'ArrayBuffer' can not be awaited, it is not a Promise. */ +/* @@? 18:30 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 18:42 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 18:58 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:60 Error Semantic error ESE0143: Unresolved reference missing */ +/* @@? 18:68 Error Syntax error ESY0227: Unexpected token ''. */ +/* @@? 18:68 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@? 18:69 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 18:69 Error Syntax error ESY0227: Unexpected token '> __a:be'. */ +/* @@? 18:69 Error Syntax error ESY0265: Newline is not allowed in strings */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_rest_as_trailing_lambda.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_rest_as_trailing_lambda.ets index ac028631f889e1cf65524e219120082ad86f174a..bdb9a679571cb385c90c009d63f792066506e6d1 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_rest_as_trailing_lambda.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_rest_as_trailing_lambda.ets @@ -18,4 +18,5 @@ class A { } new A().foo( ()=>{} ){} -/* @@? 19:1 Error TypeError: No matching call signature with trailing lambda */ + +/* @@? 19:1 Error Semantic error ESE0140: No matching call signature with trailing lambda */ \ No newline at end of file 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..08450897eda3b749ae509e2231d5978ffb231369 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,5 @@ 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. */ \ No newline at end of file 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..9f6f02ff01c5b2a0b81af22c7f4a15efa1946559 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,5 @@ 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. */ \ No newline at end of file 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..4c6ed9fbcca2b8752d46add24c8676379064b981 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,5 @@ 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 */ \ No newline at end of file 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..f34056713c2620bebd25e453d6c4654c1abdb811 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,5 @@ 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 '{'. */ \ No newline at end of file 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..ae94106a2b42c71e26f974cd31a8666b2858d69f 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,6 @@ 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 */ \ No newline at end of file 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..8dca107727c29996407c62e467d2962497d6c8cc 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,7 @@ 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 '{'. */ \ No newline at end of file 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..3f83fa4665238c51756639c40ca3b869f0380216 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,7 @@ 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 '{'. */ \ No newline at end of file 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..8e9edda70cb41d09985c7ddb0182cec8e26c67f4 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,7 @@ 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 '{'. */ \ No newline at end of file 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..96aad9a15589d12244976a8ef2ba6bb5c5558b88 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,5 @@ 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 */ \ No newline at end of file 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..b8826cdf6b4577a95654acf47f0c27810f3f3e6b 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,5 @@ 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 '{'. */ \ No newline at end of file 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..dc5dfe0ac96a9d7e09ab653bdcb600e5b31ecc11 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,5 @@ 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 '{'. */ \ No newline at end of file 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..cfebd3f0afab31cc443a45a81e197fb073f08a8b 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,5 @@ function main() { } } -/* @@@ label Error SyntaxError: Unexpected token '{'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/tryBlockOnly.ets b/ets2panda/test/ast/parser/ets/tryBlockOnly.ets index af8966afe914a8283a81605fba65c60cf9e6a092..35fecca30b1de2e67d53f938fd356a578cc55dea 100644 --- a/ets2panda/test/ast/parser/ets/tryBlockOnly.ets +++ b/ets2panda/test/ast/parser/ets/tryBlockOnly.ets @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file 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..11af4130d3995f186ea32b21c45aa42ff4ac2678 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,5 @@ function foo5(): int { return 2; } } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ + +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ \ No newline at end of file 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..f8ab1f3a509a614b945da01765054f2525edd293 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,5 @@ 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. */ \ No newline at end of file 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..be5b544341c06a0b47ff1bfcf98faafe62d77a1c 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,5 @@ 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. */ \ No newline at end of file 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..bd2d62ec1690d2289d76016245378e64014e2788 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,5 @@ 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. */ \ No newline at end of file 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..1467d2e3e4dc8e0b356f34478245f970c267460f 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,5 @@ function foo(): int { } } -/* @@@ label Warning Warning: Unreachable statement. */ + +/* @@@ label Warning Warning W0026: Unreachable statement. */ \ No newline at end of file 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..caa559dcc24f2df72dcddbe68c0c31719d54169e 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,6 @@ 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. */ \ No newline at end of file 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..11ad715cf9b6d1bde3aadcdbb4013c7b6a5d2b78 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,5 @@ 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. */ \ No newline at end of file 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..52fccdfc78c7cf0828ffa91ab70512b5a66906bc 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,6 @@ 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. */ \ No newline at end of file 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..36de36b3915b952070a4512b8537d146d3b945dc 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ts-type-assertion.ets b/ets2panda/test/ast/parser/ets/ts-type-assertion.ets index 19a04aa602008f3e88724508f6c9eb865a393832..719995082a66c973b45d1efb2a6caaa15fe91dac 100644 --- a/ets2panda/test/ast/parser/ets/ts-type-assertion.ets +++ b/ets2panda/test/ast/parser/ets/ts-type-assertion.ets @@ -20,9 +20,10 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/tsas_binop.ets b/ets2panda/test/ast/parser/ets/tsas_binop.ets index 1bf78fdde5bb57698fd840c812006329b50382ed..10e2cf1cad19cc3eb3aa2ed3d08d59259cfdaa86 100644 --- a/ets2panda/test/ast/parser/ets/tsas_binop.ets +++ b/ets2panda/test/ast/parser/ets/tsas_binop.ets @@ -21,6 +21,7 @@ function main():void{ (1.0 as test) == test.a } -/* @@? 21:6 Error TypeError: Type 'Double' is not compatible with type 'Int' at index 1 */ -/* @@? 21:6 Error TypeError: No matching call signature for fromValue(Double) */ -/* @@? 21:6 Warning Warning: Enum cast is deprecated. Cast support from 'Double' to 'test' will be removed. */ + +/* @@? 21:6 Error Semantic error ESE0046: Type 'Double' is not compatible with type 'Int' at index 1 */ +/* @@? 21:6 Error Semantic error ESE0127: No matching call signature for fromValue(Double) */ +/* @@? 21:6 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Double' to 'test' will be removed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets b/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets index a894834153a0d79d97a16fadb5985a455c9349ce..0721c71730add4cf69045e5791c81ede578d2094 100644 --- a/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets +++ b/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets @@ -20,4 +20,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets b/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets index 093fa956bef06456fa83008ef6028cf71a8b2ebf..0d7d3f2d3fa54d512fa95760c206b3a014a50af1 100644 --- a/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets +++ b/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets @@ -17,14 +17,15 @@ 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. */ \ No newline at end of file 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..f567447aac157025198774e957160fb34004947e 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,12 @@ 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 ']'. */ \ No newline at end of file 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..130e74d26f44a3e9447dd7eb2948892429e6a6fb 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,8 @@ 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 ']'. */ \ No newline at end of file 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..ddefb56bb684dab5b14a1b899a5b324bcf60231e 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,12 @@ 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 ']'. */ \ No newline at end of file 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..2004437610ffd973257952aba91bec749dba3c57 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,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_argument_conversion.ets b/ets2panda/test/ast/parser/ets/type_argument_conversion.ets index 0de608fe9020f50ed3c1580f985d65463e304a91..51d32290aada15f7f3c9eb743a344be1cbd0be0a 100644 --- a/ets2panda/test/ast/parser/ets/type_argument_conversion.ets +++ b/ets2panda/test/ast/parser/ets/type_argument_conversion.ets @@ -30,8 +30,9 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_decution_unnecessary_boxing.ets b/ets2panda/test/ast/parser/ets/type_decution_unnecessary_boxing.ets index 7da96f2bada0993370bebb5e9bebd99ab9a0a375..7fbe17730175d3126ef05764c74c7f0f0959556a 100644 --- a/ets2panda/test/ast/parser/ets/type_decution_unnecessary_boxing.ets +++ b/ets2panda/test/ast/parser/ets/type_decution_unnecessary_boxing.ets @@ -21,4 +21,4 @@ y = true ? y:():int=>32 y = true ? ():int=>32:y x = /* @@ forbid_aggresive_constf */true ? x:"apple" -/* @@@ forbid_aggresive_constf Error TypeError: Type '((() => Long))|"apple"' cannot be assigned to type '(() => Long)' */ +/* @@@ forbid_aggresive_constf Error Semantic error ESE0318: Type '(() => Long)|"apple"' cannot be assigned to type '() => Long' */ diff --git a/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/export.ets b/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/export.ets index c9e6a3d14b282d27e55a8ac0681c6fdfa9d74997..3c3e4dd2762facc323e643e4a46a64537277fe95 100644 --- a/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/export.ets +++ b/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/export.ets @@ -47,7 +47,8 @@ class R {} let a = 0; -/* @@@ first Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ second Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ third Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ fourth Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ + +/* @@@ first Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ second Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ third Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ fourth Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/import.ets b/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/import.ets index a902fe01f1f5b6f6f04dba6cc0c500f08e7b7d40..27cb1c025db7435a0b534455aba549b35c87c189 100644 --- a/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/import.ets +++ b/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/import.ets @@ -32,8 +32,9 @@ import type { type /* @@ third */Q, type /* @@ fourth */R } from "./source" // import type {type /* @@ fifth */default as DD} from "./source" -/* @@@ first Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ second Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ third Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ fourth Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ fifth Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ + +/* @@@ first Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ second Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ third Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ fourth Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ fifth Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_from_1.ets b/ets2panda/test/ast/parser/ets/type_from_1.ets index 4e10098780338a90595bde28b021e1253aa4d147..89a9c48fcfd27736cfa6b9fcf9fc0163c4869fc5 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_from_generic.ets b/ets2panda/test/ast/parser/ets/type_from_generic.ets index 0a37ebe5477f7c4faada61cd74edcf9f439f2871..4f04d98908dfd62813b8b6ff561e65f185d94289 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. */ \ No newline at end of file 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..f8322d02aa749aad0237f61698a19c0d17a75c63 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'. */ \ No newline at end of file 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..a292e973fc7adceb6939d346cd8c2d4c19477a63 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,7 @@ 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. */ \ No newline at end of file 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 dd7dd59374f7b8d5957cc0806b7d318a3f341edd..6aed0cd72f64d29148a17dfb376a75f6524bc79d 100644 --- a/ets2panda/test/ast/parser/ets/type_from_utility_type.ets +++ b/ets2panda/test/ast/parser/ets/type_from_utility_type.ets @@ -32,11 +32,11 @@ 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. */ -/* @@? 17:37 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 21:39 Error TypeError: T in Required must be a class or an interface type. */ -/* @@? 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 */ + +/* @@? 17:37 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 21:39 Error Semantic error ESE124644: T in Required must be a class or an interface type. */ +/* @@? 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 */ \ No newline at end of file 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..c50f52ee31ac7c89292fc4ee86e1b830252347d9 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! */ \ No newline at end of file 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..dd2e24920f9f0d7949bac7e7c29b7b4367a6efe0 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,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_references.ets b/ets2panda/test/ast/parser/ets/type_references.ets index 4659ad2318d3ba2c6233d479ebf8516b534424c4..72a3ba3fb7ad26bf3b4168b2739f21c14970ba2a 100644 --- a/ets2panda/test/ast/parser/ets/type_references.ets +++ b/ets2panda/test/ast/parser/ets/type_references.ets @@ -18,6 +18,7 @@ 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! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_variance2.ets b/ets2panda/test/ast/parser/ets/type_variance2.ets index c7b077b0b6d2ae67d8c467c912f2edf81e0ec8e9..ab503e7605e4a625cc0565e5d116b4d76e6edc54 100644 --- a/ets2panda/test/ast/parser/ets/type_variance2.ets +++ b/ets2panda/test/ast/parser/ets/type_variance2.ets @@ -17,5 +17,6 @@ class C { constructor() {} } -/* @@@ label Error SyntaxError: Variance modifier is not allowed here. */ -/* @@? 17:35 Error SyntaxError: Constructor should not have type parameters. */ + +/* @@@ label Error Syntax error ESY0098: Variance modifier is not allowed here. */ +/* @@? 17:35 Error Syntax error ESY0330: Constructor should not have type parameters. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_variance3.ets b/ets2panda/test/ast/parser/ets/type_variance3.ets index ac07e70222713b01e40cfefff0ff9a023b32ed87..185d89038cb60a51d5b082bf77515ce6b109421d 100644 --- a/ets2panda/test/ast/parser/ets/type_variance3.ets +++ b/ets2panda/test/ast/parser/ets/type_variance3.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_variance4.ets b/ets2panda/test/ast/parser/ets/type_variance4.ets index f4495006d1460bfc3e504d864a6fa56ef2ab0e0b..80a750d9900c0e1face6330012dde89721859e61 100644 --- a/ets2panda/test/ast/parser/ets/type_variance4.ets +++ b/ets2panda/test/ast/parser/ets/type_variance4.ets @@ -17,4 +17,5 @@ // 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets b/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets index 8fa208a4cb59e61dc26920ba4164b4ace7054053..9c0ce4b7b47bffaab69905aba56c19f86a85f259 100644 --- a/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets +++ b/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets @@ -35,4 +35,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets b/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets index fe8f7863b73df4a4f792977e2cb8fb7ac5b987de..df44faa924ad2a4aad8895c57d8b9de5adde940e 100644 --- a/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets +++ b/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets @@ -39,17 +39,18 @@ 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 'xny'. */ -/* @@? 40:38 Error TypeError: Cannot find type 'xny'. */ + +/* @@? 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 'xny'. */ +/* @@? 40:38 Error Semantic error ESE0371: Cannot find type 'xny'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets b/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets index 069c51fb2f2b65c77959c4bb1af9b5001bce86c7..9de289b41cb619c5b4b63b3c7c4816fb6c964976 100644 --- a/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets +++ b/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets @@ -67,58 +67,59 @@ 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 ']'. */ + +/* @@? 1:3 Error Semantic error ESE0350: Class 'UnionType' is already defined with different type. */ +/* @@? 1:3 Error Semantic error ESE0350: Class 'TupleType' is already defined with different type. */ +/* @@? 21:19 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 21:30 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:41 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 32:42 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 35:44 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 35:59 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 35:59 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 35:60 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 38:19 Error Semantic error ESE0371: Cannot find type 'a'. */ +/* @@? 38:20 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 38:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 38:22 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 38:22 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 38:28 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 38:30 Error Syntax error ESY0227: Unexpected token 'b'. */ +/* @@? 38:33 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 38:33 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 38:39 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 41:19 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 41:22 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 41:26 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 41:32 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 41:43 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 41:43 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 41:44 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 41:46 Error Syntax error ESY0295: string is a predefined type, cannot be used as an identifier */ +/* @@? 44:41 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 44:60 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 54:34 Error Semantic error ESE0371: Cannot find type 'InvalidMap'. */ +/* @@? 54:44 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 57:45 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 57:63 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 57:67 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 58:12 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 59:23 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 59:23 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 59:24 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 59:25 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 60:29 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 60:40 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 61:27 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 61:28 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 61:29 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 61:30 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 62:13 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 62:16 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 62:20 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 62:22 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 62:22 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 62:23 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 62:35 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 62:36 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 62:37 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets b/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets index 2cce27da50794b50a4af00d6506dadd9a932e9fd..3e235acf36599d4b8bbb73ce4d365cbc78f68e2f 100644 --- a/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets +++ b/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets @@ -46,15 +46,16 @@ 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 ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets b/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets index 2ab98e4b5510f88e510b477c9f16a13dacdfec91..5bf139618b2045686bf80299f5052c0e8ba1d388 100644 --- a/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets +++ b/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets @@ -18,7 +18,8 @@ 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'. */ \ No newline at end of file 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..452601138956764cacc5a684c4ea2b299569f1ad 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,5 @@ */ function foo() {} -/* @@@ label Error TypeError: Type parameter 'T' has circular constraint dependency. */ + +/* @@@ label Error Semantic error ESE0184: Type parameter 'T' has circular constraint dependency. */ \ No newline at end of file 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..4f9ea79fb927aa72cb0187e7f8962ee7bd13ea00 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,5 @@ */ function foo() {} -/* @@@ label Error TypeError: Type parameter 'R' has circular constraint dependency. */ + +/* @@@ label Error Semantic error ESE0184: Type parameter 'R' has circular constraint dependency. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/types_decls.ets b/ets2panda/test/ast/parser/ets/types_decls.ets index 07eedb43d239c1de61878bc418c86c7169727375..261f6b312b21d901680c3183da1e73ffad3bab21 100644 --- a/ets2panda/test/ast/parser/ets/types_decls.ets +++ b/ets2panda/test/ast/parser/ets/types_decls.ets @@ -56,11 +56,12 @@ 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' */ \ No newline at end of file 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..7dcb76c39ddce08fba9a766efe178b20f028d5a7 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,6 @@ 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 ','. */ \ No newline at end of file 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..1d7d3e184e1d2e8686be822fc6f41972465fb869 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,6 @@ 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 ','. */ + +/* @@@ 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 ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unclosed_loop.ets b/ets2panda/test/ast/parser/ets/unclosed_loop.ets index a2b6128cce31c04e8cbd998c97ea543aee56a955..0b207628844c86b4237f892df2cfc426970001ba 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets b/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets index 2abca169321926501a282d84a1f0d18dc7195534..3a9e4bfa6a1bc4205d18223bc095385f56821a17 100644 --- a/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets +++ b/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets @@ -18,4 +18,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_1.ets b/ets2panda/test/ast/parser/ets/unexpected_token_1.ets index 475a31b33cba30f94bd5c14eccbe64c0a405dfa8..11048f73130a92a69b4b032de01a6fcb0f039cd8 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_1.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_1.ets @@ -15,6 +15,7 @@ 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 '&'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_10.ets b/ets2panda/test/ast/parser/ets/unexpected_token_10.ets index 71868b43eca0c7619e80f74a5e1a6389df2fb9ad..9a0c0e90823caa411eaa1591a4421dc5622c0a90 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_10.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_10.ets @@ -15,7 +15,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_11.ets b/ets2panda/test/ast/parser/ets/unexpected_token_11.ets index b64b32d7569f7a1fbb666e1fdd1460feaf464d77..d5a0954a5a0fe59802c3aedcdf8a400cf377a8e2 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_11.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_11.ets @@ -15,4 +15,5 @@ do {} /* @@ label */whi (true) -/* @@@ label Error SyntaxError: Unexpected token, expected 'while'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'while'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_12.ets b/ets2panda/test/ast/parser/ets/unexpected_token_12.ets index b963cbd92e14b2653a11f67ac71e6000351695b8..ad7b7cda9940d3a92325374c7e592bd5332b92ff 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_12.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_12.ets @@ -15,8 +15,9 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_13.ets b/ets2panda/test/ast/parser/ets/unexpected_token_13.ets index 74bc387d005ed21799eb7f390e104f24ac764327..99162704ea01d3c057fa166307c7c6348828e25d 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_13.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_13.ets @@ -15,5 +15,6 @@ 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:87 Error Syntax error ESY0151: Unexpected token, expected string literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_14.ets b/ets2panda/test/ast/parser/ets/unexpected_token_14.ets index 8cf75f4f62cb82167ab5e3e9842ce9d6b22db055..1d35016392199c32050c9ec9a412ca4ea60cad73 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_14.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_14.ets @@ -19,9 +19,10 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_15.ets b/ets2panda/test/ast/parser/ets/unexpected_token_15.ets index aee9c4ea50e86109aebfc34af4d24947cf226007..443b4505ee1c1efbfc69d3e14ce487be48583099 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_15.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_15.ets @@ -15,5 +15,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_16.ets b/ets2panda/test/ast/parser/ets/unexpected_token_16.ets index 4ed6781a78e42174017e681abed4f011348056da..9543c744aef30e251b9265f3618c29995709b2dd 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_16.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_16.ets @@ -31,4 +31,7 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Unexpected token 'break', expected ':' */ + +/* @@? 23:18 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int' */ +/* @@? 25:18 Error Semantic error ESE0262: Switch case type 'double' is not comparable to discriminant type 'int' */ +/* @@@ label Error Syntax error ESY0230: Expected ':', got 'break'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_17.ets b/ets2panda/test/ast/parser/ets/unexpected_token_17.ets index 436b195007b1ed2820ca7323ecbc7afc55d77cdd..79ffecdc3ea6063b09702dff1ef3f42d540c88b0 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_17.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_17.ets @@ -31,4 +31,7 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Unexpected token 'case', expected '{' */ + +/* @@? 23:18 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got 'case'. */ +/* @@? 25:32 Error Semantic error ESE0262: Switch case type 'double' is not comparable to discriminant type 'int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_18.ets b/ets2panda/test/ast/parser/ets/unexpected_token_18.ets index 9ca9cf1006f7ef9a110da298f2bdc73709ab8173..d0d4e7d4f9324118ea2b3e0bd5a5d52149e98a0c 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_18.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_18.ets @@ -15,4 +15,5 @@ try {} catch (e) /* @@ label */} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_19.ets b/ets2panda/test/ast/parser/ets/unexpected_token_19.ets index aef678ed24a88a6f2e6e32b3dfbd0eee47a2a1b2..e48bf552af45ac3dc5b631f7b6e5e486c50de315 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_19.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_19.ets @@ -15,5 +15,6 @@ 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:76 Error Syntax error ESY0228: Unexpected token, expected '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_2.ets b/ets2panda/test/ast/parser/ets/unexpected_token_2.ets index 9fd9559ad1515a22882477427558b628361fba78..2faead97ec85ae872b2a74e257e21743b2e29c43 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_2.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_2.ets @@ -36,6 +36,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_20.ets b/ets2panda/test/ast/parser/ets/unexpected_token_20.ets index 916eadf031f33e454509f83bf76db591d822e53b..2eaab14e674340ffc375691d7b9b46301dc8d930 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_20.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_20.ets @@ -15,4 +15,5 @@ try {} catch /* @@ label */e) {} finally {} -/* @@@ label Error SyntaxError: Expected '(', got 'identification literal'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_21.ets b/ets2panda/test/ast/parser/ets/unexpected_token_21.ets index d4101acf56b8e8fca0e6cfa59aea6d07374c3db3..a01423a544bc4507fe22328adb675da41b8fcf2c 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_21.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_21.ets @@ -17,6 +17,7 @@ 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 ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_22.ets b/ets2panda/test/ast/parser/ets/unexpected_token_22.ets index fe05d02bb24d57e3da37d855a2a57feb5c065231..e1f9ca2d11eef18672611d3675c41fc1fe846fb9 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 '((p1: 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 '(p1: 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..f05705fb8e9c6c80a34adc5d091c930fd615dab2 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_23.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_23.ets @@ -15,4 +15,5 @@ do {} while /* @@ label */[true) -/* @@@ label Error SyntaxError: Unexpected token, expected '('. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_24.ets b/ets2panda/test/ast/parser/ets/unexpected_token_24.ets index e2d0fa6af69635727945be0c8de612c57d282ad0..2c0a9a5a53c493af4dc9758ea33c8b75dff7ccad 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_24.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_24.ets @@ -27,6 +27,7 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_25.ets b/ets2panda/test/ast/parser/ets/unexpected_token_25.ets index 629580bc4ce8d47e158aff21a38af17a223a6f6d..ae15ac55a1cf312fbd28de0e3dd9d1fefac5b437 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_25.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_25.ets @@ -16,12 +16,13 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_26.ets b/ets2panda/test/ast/parser/ets/unexpected_token_26.ets index fb94eb1691a7e3d1245984ca1dee803dab3a3897..9fc31b8819e083637252254590fd2b517b3950c8 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_26.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_26.ets @@ -16,4 +16,5 @@ let x: int[] = [1,2,3] let y: int = x [0 -/* @@? 20:1 Error SyntaxError: Unexpected token, expected ']'. */ + +/* @@? 20:76 Error Syntax error ESY0228: Unexpected token, expected ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_27.ets b/ets2panda/test/ast/parser/ets/unexpected_token_27.ets index e9078503bc4fdca1d55b057e522d1ffed2767fa7..99920a0c470b32e1d1f174059655abb3ed500cc1 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_27.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_27.ets @@ -17,5 +17,6 @@ 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 ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_28.ets b/ets2panda/test/ast/parser/ets/unexpected_token_28.ets index b71e53851f5ff8c5c203de8f1c3e972b5513bc48..ea23f0cdbc8eb40d86b3291ebe74195de1e4ea22 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_28.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_28.ets @@ -17,11 +17,12 @@ 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:71 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 28:71 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 28:71 Error Syntax error ESY0228: Unexpected token, expected '}'. */ +/* @@? 28:71 Error Semantic error ESE0179: Interface expected here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_29.ets b/ets2panda/test/ast/parser/ets/unexpected_token_29.ets index b2c42936faed3a9b1d79437fe74fe213f925a6b3..839e8f362e45f9cf02e2b0d1ae25181b3cfefb85 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_29.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_29.ets @@ -19,11 +19,12 @@ 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 */ +/* @@@ label3 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@@ label4 Error Syntax error ESY0230: Expected ')', got '}'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 30:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_3.ets b/ets2panda/test/ast/parser/ets/unexpected_token_3.ets index 9d34f48d53b193ef073afadd2aae0901dbefa485..50ef4eb944986e745777e229c174b10ecfaa1fe0 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_3.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_3.ets @@ -36,7 +36,8 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_30.ets b/ets2panda/test/ast/parser/ets/unexpected_token_30.ets index 3dc7c9d7336bef806cd659af99df14cf0a3f51e3..9dc59f973970ba365a8925cf1e9679673e2d7030 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_30.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_30.ets @@ -19,6 +19,7 @@ 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 ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_31.ets b/ets2panda/test/ast/parser/ets/unexpected_token_31.ets index 01374410c399cf735780f40ecf9857927f864423..22b84e100bac43de477d8e5e6a87fb4b7d2e499c 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_31.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_31.ets @@ -17,16 +17,17 @@ 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: Indexed access is not supported for such expression type. */ -/* @@? 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 ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 17:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_32.ets b/ets2panda/test/ast/parser/ets/unexpected_token_32.ets index 001705a3bb6cbe9972183f2a4879b90db113f2c7..51c6d5944db14bc2e4783513a7cc54ca802a6127 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_32.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_32.ets @@ -15,7 +15,7 @@ class G'. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '}'. */ -/* @@@ label2 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@label2 */ \ No newline at end of file + +/* @@label2 *//* @@@ label Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 21:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_33.ets b/ets2panda/test/ast/parser/ets/unexpected_token_33.ets index 4041748031eb3917e2e8a0a0333a1d1d1c8a3a27..e557b6b0f7bff7dfa38eda84c3c5d3244c33cdc7 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_33.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_33.ets @@ -15,10 +15,11 @@ 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 '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_34.ets b/ets2panda/test/ast/parser/ets/unexpected_token_34.ets index 3ca38740cf7d71fc742887eb311d36c524a4dda8..e7e73ec951a4575f31344cee97470324b7da34e5 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_34.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_34.ets @@ -23,5 +23,7 @@ switch (a /* @@ label */{ console.log("bbb") } -/* @@@ label Error SyntaxError: Unexpected token '{', expected ')' */ + +/* @@? 18:9 Error Semantic error ESE0162: Incompatible types. Found: boolean, required: char , byte , short , int, long , Char , Byte , Short , Int, Long , String or an enum type */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_35.ets b/ets2panda/test/ast/parser/ets/unexpected_token_35.ets index c9915a5fa696322dd2c6ec6c24cc148a94884033..08acd4214889b307b397fc05a8df1cb34507874f 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_35.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_35.ets @@ -25,9 +25,10 @@ let sector: float }; } -/* @@? 21:5 Error TypeError: type Float has no property named radius */ -/* @@? 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 '}'. */ + +/* @@? 21:5 Error Semantic error ESE0065: type Float has no property named radius */ +/* @@? 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_36.ets b/ets2panda/test/ast/parser/ets/unexpected_token_36.ets index 742ce91981051144e90a977664d73ad99940f48f..d011e2f3279e6314d7e1f45cb10703cbbb52ead8 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_36.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_36.ets @@ -31,12 +31,13 @@ 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 '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_37.ets b/ets2panda/test/ast/parser/ets/unexpected_token_37.ets index 11db5876c009fc6c5d4e64f380c8e5ca43403e54..ea3170590c013d9c4ac55b37c55844495ba4365e 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_37.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_37.ets @@ -20,12 +20,13 @@ 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:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_38.ets b/ets2panda/test/ast/parser/ets/unexpected_token_38.ets index cf3bc0a1d1e7042f4be2f7e0befb1cd0e1697c59..11b98e2e0f66e6b08e01c5f268ad51cf88694baf 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_38.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_38.ets @@ -23,8 +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 '=>'. */ + +/* @@? 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 '=>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_39.ets b/ets2panda/test/ast/parser/ets/unexpected_token_39.ets index 31b0b10aa77b0e04546bbf80662de0414867140d..87f335ad218dff2f28bce61e8b9d420f5a0ac47b 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_39.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_39.ets @@ -15,4 +15,5 @@ let r: ((((number)))[]/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected ')'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_4.ets b/ets2panda/test/ast/parser/ets/unexpected_token_4.ets index 5c8a7e33b0a7cdcffcffad5ae7b1c6733ba5a9bd..8cc3aa6d977503da3bfccb4a112413f668dd1023 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_4.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_4.ets @@ -15,6 +15,7 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_40.ets b/ets2panda/test/ast/parser/ets/unexpected_token_40.ets index f4c93de60bcb1015d8d030e33b073458f658cca0..f7b9e15af5e03359815e01b4b8cca7f930c2a4fb 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_40.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_40.ets @@ -15,6 +15,7 @@ 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:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_41.ets b/ets2panda/test/ast/parser/ets/unexpected_token_41.ets index 40e2093999804fc0de7c2be2c6f293e4f1a95d2f..0e9b604a0b05e43c9bdcfea9a8e14b2107b7029a 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_41.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_41.ets @@ -17,8 +17,9 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_42.ets b/ets2panda/test/ast/parser/ets/unexpected_token_42.ets index 7d02e8a0d86580dace30a943bda8d11d344f709a..f212a9be3b91182d183085f98e30ab552bc13211 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_42.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_42.ets @@ -15,5 +15,6 @@ // 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:79 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_43.ets b/ets2panda/test/ast/parser/ets/unexpected_token_43.ets index 28f196a0b8551588190a7e8d924353e9d892a7a7..ffd132c22a737054c1200c12211f35b45b73fe57 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_43.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_43.ets @@ -15,9 +15,10 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_44.ets b/ets2panda/test/ast/parser/ets/unexpected_token_44.ets index ebff97f5b41c32730d6338cfbaa6a3c4ecc47237..2bb8803d32007d6209fae0068dc187f9d5fad7f6 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_44.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_44.ets @@ -19,4 +19,5 @@ do { ) } while /* @@ label */[true) -/* @@@ label Error SyntaxError: Unexpected token, expected '('. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_45.ets b/ets2panda/test/ast/parser/ets/unexpected_token_45.ets index 8ee88559f0d4d7d44166c0aff7163d66b15aa959..524a7b851c613039303110377e97bf911726e5d5 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_45.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_45.ets @@ -19,5 +19,5 @@ do { ) } while (true -/* @@@ label Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 23:93 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_46.ets b/ets2panda/test/ast/parser/ets/unexpected_token_46.ets index 5762664c26a8559d99bcc57b3e5d1f8974d471d5..5d4c312add78d84a97b5a160de43f65337d2acc9 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_46.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_46.ets @@ -19,7 +19,8 @@ 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 ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_47.ets b/ets2panda/test/ast/parser/ets/unexpected_token_47.ets index 875bd83b5a89bf6866f80faf63bde8eedd8455f8..7a07b932341145b6fc0a6ff9a3e85262fef40067 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_47.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_47.ets @@ -15,7 +15,8 @@ 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:79 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_48.ets b/ets2panda/test/ast/parser/ets/unexpected_token_48.ets index 9193aee2c196dabf4af57223a3dfe15599f718f4..95d95a7319e009873bcf08c4685e215b00a4c0d8 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_48.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_48.ets @@ -15,6 +15,7 @@ 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 ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_49.ets b/ets2panda/test/ast/parser/ets/unexpected_token_49.ets index a08589fe314f4dfdc1383e05db3d7502968d66b1..f9662e877c310c088a2c90e05c07b32a67c2a57b 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_49.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_49.ets @@ -18,7 +18,10 @@ 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:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_5.ets b/ets2panda/test/ast/parser/ets/unexpected_token_5.ets index 2e86dc60a27e9f0afe2dcd1c2c1be6805ba61e4b..d1407e3c8b12672d23eddf277ebe6b0f3046b5ef 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_5.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_5.ets @@ -15,7 +15,8 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_50.ets b/ets2panda/test/ast/parser/ets/unexpected_token_50.ets index d183229f0b8e87e1ba95936112d01c684d3f2688..e8e2fd7bd7edd764d05807b08b9b510a183a7c00 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_50.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_50.ets @@ -19,7 +19,10 @@ 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:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_51.ets b/ets2panda/test/ast/parser/ets/unexpected_token_51.ets index b923bdcaf3e8c88cd027a19062a6541f8b2707c2..3e9afd84f402264a9206f6cdc818639702a38905 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_51.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_51.ets @@ -22,8 +22,5 @@ console.log(/* @@ label */output(/* @@ label1 */"hehehe")) console.log(/* @@ label2 */output(/* @@ label3 */4)) // bug with type error is here -/* @@@ label1 Error TypeError: Type '"hehehe"' is not compatible with type 'Type' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for invoke0("hehehe") */ -/* @@@ label3 Error TypeError: Type 'int' is not compatible with type 'Type' at index 1 */ -/* @@@ label2 Error TypeError: No matching call signature for invoke0(int) */ + diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_52.ets b/ets2panda/test/ast/parser/ets/unexpected_token_52.ets index 9b65b55ca6dfc69334e73db9fd863823f19ec76a..e1d97607a1d84c646f0d0c78662cbf8eb909961c 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_52.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_52.ets @@ -18,16 +18,17 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_53.ets b/ets2panda/test/ast/parser/ets/unexpected_token_53.ets index da3f06e4cb2d8eb192d3942705f586e01a6871f4..84c5dec7329d29020ca56eb8f9f9d0075051a12f 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_53.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_53.ets @@ -25,17 +25,18 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_54.ets b/ets2panda/test/ast/parser/ets/unexpected_token_54.ets index 1f0ca0791bb28f9308589d8323323fe2e50d547f..e06e697c1606b627c223de7a9239bd1b9720fe43 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_54.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_54.ets @@ -23,4 +23,7 @@ switch (a/* @@ label */] { console.log("bbb") } -/* @@@ label Error SyntaxError: Unexpected token, expected ')'. */ + +/* @@? 18:9 Error Semantic error ESE0162: Incompatible types. Found: boolean, required: char , byte , short , int, long , Char , Byte , Short , Int, Long , String or an enum type */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got ']'. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_55.ets b/ets2panda/test/ast/parser/ets/unexpected_token_55.ets index 17ccd7464285434ae8ad3f976820d979401f83d1..385ef3755c9359176fe837a5de76970b6f8c3177 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_55.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_55.ets @@ -25,18 +25,19 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_56.ets b/ets2panda/test/ast/parser/ets/unexpected_token_56.ets index 7b68324c196dd725b88a8dd4bea2f34043942cf2..d56dba3e57549b9d1e8eee1296528172dc676b72 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_56.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_56.ets @@ -18,16 +18,17 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_57.ets b/ets2panda/test/ast/parser/ets/unexpected_token_57.ets index 3372ab6a51aaa4e6d9244f879ac89aee0fdd1518..052f750c33ae682397c0a914de366c6f6f68c359 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_57.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_57.ets @@ -17,5 +17,5 @@ function foo(a: int) {} foo(1 -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 21:97 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_58.ets b/ets2panda/test/ast/parser/ets/unexpected_token_58.ets index b6b5d9d26f6768c0d5b7aa8f9e728f06b90d4919..4fb63e65e8aaf44b4b3349ab6f6c72eaf6694058 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_58.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_58.ets @@ -17,5 +17,5 @@ function foo(a: int) {} foo(1, -/* @@@ label Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 21:93 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_59.ets b/ets2panda/test/ast/parser/ets/unexpected_token_59.ets index b35bc96dee2884ac963395c368587763b895d0b2..cea8e907d4adfe21733d865de272695f6bbd1b45 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_59.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_59.ets @@ -17,5 +17,5 @@ class A { x: int -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 21:93 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_6.ets b/ets2panda/test/ast/parser/ets/unexpected_token_6.ets index 7f3274cd03d9d771aa3ff2ed5e48c09602c35092..97d21f07346e8288d35d506021606481cfeddb63 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_6.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_6.ets @@ -17,4 +17,5 @@ while (true /* @@ label */{ console.log("hehehehe") } -/* @@@ label Error SyntaxError: Expected ')', got '{'. */ + +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_60.ets b/ets2panda/test/ast/parser/ets/unexpected_token_60.ets index be2e36498f72107b0bfc5aa799d2d89ba3a820c1..1572f586a69a3596be789fd6315eb207f254e0ac 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_60.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_60.ets @@ -19,4 +19,5 @@ function main(): void { } } -/* @@@ label1 Error SyntaxError: Expected ';', got 'identification literal'. */ + +/* @@@ label1 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_61.ets b/ets2panda/test/ast/parser/ets/unexpected_token_61.ets index 76c41c3aa432f2414e2e4c27053c8a3c7f2d55c7..e7e7cf93b974de4490519f2e20474d0764c70221 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_61.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_61.ets @@ -19,5 +19,6 @@ 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 ESE4001: Cannot assign to a constant variable i */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_62.ets b/ets2panda/test/ast/parser/ets/unexpected_token_62.ets index 78b6905b98b63eab7f505d42823d74c880bd42c7..6d15822fcc79b569d20637e463b924e0e5c7f7be 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_62.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_62.ets @@ -26,48 +26,48 @@ int = 10 ) => B = (p:+): A6=> { reƒurn _ew B(ô } |ó -/* @@? 17:9 Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@? 17:18 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:1 Error TypeError: Unresolved reference functioew */ -/* @@? 19:11 Error SyntaxError: Unexpected token 'Nu'. */ -/* @@? 19:11 Error TypeError: Unresolved reference Nu */ -/* @@? 20:1 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 20:1 Error TypeError: Unresolved reference nt */ -/* @@? 20:10 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 20:10 Error SyntaxError: Class cannot be used as object. */ -/* @@? 20:12 Error SyntaxError: Unexpected token '{'. */ -/* @@? 22:11 Error SyntaxError: Unexpected token 'Nu'. */ -/* @@? 23:1 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:1 Error SyntaxError: Unexpected token ')'. */ -/* @@? 24:2 Error SyntaxError: Unexpected token 'void'. */ -/* @@? 24:7 Error SyntaxError: Unexpected token '{'. */ -/* @@? 24:8 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:8 Error TypeError: Unresolved reference nt */ -/* @@? 24:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 24:18 Error SyntaxError: Unexpected token 'g'. */ -/* @@? 24:21 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 24:21 Error TypeError: Unresolved reference s */ -/* @@? 24:23 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 24:23 Error SyntaxError: Class cannot be used as object. */ -/* @@? 24:25 Error SyntaxError: Unexpected token '{'. */ -/* @@? 25:1 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 26:1 Error SyntaxError: Unexpected token ')'. */ -/* @@? 26:3 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 26:13 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 26:13 Error TypeError: Cannot find type ''. */ -/* @@? 26:14 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 26:14 Error SyntaxError: Expected '=>', got '+'. */ -/* @@? 26:15 Error SyntaxError: Unexpected token ')'. */ -/* @@? 26:16 Error SyntaxError: Unexpected token ':'. */ -/* @@? 26:18 Error SyntaxError: Unexpected token 'A6'. */ -/* @@? 26:18 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 26:18 Error TypeError: The type of parameter 'A6' cannot be inferred */ -/* @@? 26:25 Error TypeError: Unresolved reference reƒurn */ -/* @@? 26:32 Error SyntaxError: Unexpected token '_ew'. */ -/* @@? 26:32 Error TypeError: Unresolved reference _ew */ -/* @@? 26:36 Error SyntaxError: Unexpected token 'B'. */ -/* @@? 26:36 Error TypeError: No static $_invoke method and static $_instantiate method in B. B() is not allowed. */ -/* @@? 26:36 Error TypeError: Type 'B' has no call signatures. */ -/* @@? 26:40 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 27:2 Error TypeError: Unresolved reference ó */ -/* @@? 74:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 17:9 Error Syntax error ESY0230: Expected '{', got 'identification literal'. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:1 Error Semantic error ESE0143: Unresolved reference functioew */ +/* @@? 19:11 Error Syntax error ESY0227: Unexpected token 'Nu'. */ +/* @@? 19:11 Error Semantic error ESE0143: Unresolved reference Nu */ +/* @@? 20:1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 20:1 Error Semantic error ESE0143: Unresolved reference nt */ +/* @@? 20:10 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 20:10 Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@? 20:12 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 22:11 Error Syntax error ESY0227: Unexpected token 'Nu'. */ +/* @@? 23:1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:1 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 24:2 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@? 24:7 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 24:8 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:8 Error Semantic error ESE0143: Unresolved reference nt */ +/* @@? 24:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 24:18 Error Syntax error ESY0227: Unexpected token 'g'. */ +/* @@? 24:21 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 24:21 Error Semantic error ESE0143: Unresolved reference s */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@? 24:23 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 24:25 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 25:1 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 26:1 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 26:3 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 26:13 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 26:13 Error Semantic error ESE0371: Cannot find type ''. */ +/* @@? 26:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 26:14 Error Syntax error ESY0230: Expected '=>', got '+'. */ +/* @@? 26:15 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 26:16 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 26:18 Error Syntax error ESY0227: Unexpected token 'A6'. */ +/* @@? 26:18 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 26:18 Error Semantic error ESE0132: The type of parameter 'A6' cannot be inferred */ +/* @@? 26:25 Error Semantic error ESE0143: Unresolved reference reƒurn */ +/* @@? 26:32 Error Syntax error ESY0227: Unexpected token '_ew'. */ +/* @@? 26:32 Error Semantic error ESE0143: Unresolved reference _ew */ +/* @@? 26:36 Error Syntax error ESY0227: Unexpected token 'B'. */ +/* @@? 26:36 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in B. B() is not allowed. */ +/* @@? 26:40 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 27:2 Error Semantic error ESE0143: Unresolved reference ó */ +/* @@? 73:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_63.ets b/ets2panda/test/ast/parser/ets/unexpected_token_63.ets index 2cc94b998aaf2f7ba42a98f43c6e4fc8792aa8c6..979d119f068746c001e48e1ea2ce97eab663f230 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_63.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_63.ets @@ -27,36 +27,37 @@ 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: Unexpected token, expected an identifier. */ -/* @@? 18:9 Error SyntaxError: Unexpected token 'true'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:9 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 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: 'this' cannot be referenced from a static context */ -/* @@? 23:10 Error TypeError: Property 'func' does not exist on type 'ETSGLOBAL' */ -/* @@? 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 ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 23:10 Error Semantic error ESE0087: Property 'func' does not exist on type 'ETSGLOBAL' */ +/* @@? 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_7.ets b/ets2panda/test/ast/parser/ets/unexpected_token_7.ets index 43dc6c6c4724a541439142a096ba6ca08ef44780..4bb1fc4793424e30bdc735b777d6f89ade8da9e7 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_7.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_7.ets @@ -17,4 +17,5 @@ while /* @@ label */true) { console.log("hehehehe") } -/* @@@ label Error SyntaxError: Expected '(', got 'true'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'true'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_8.ets b/ets2panda/test/ast/parser/ets/unexpected_token_8.ets index 0e1150386e3952250fcc0a9e5660d176c480a06d..484bd165ec1650d5c619f5a3f8a8bfcc0c63976a 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_8.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_8.ets @@ -17,4 +17,5 @@ try { } catch (e /* @@ label1 */{} -/* @@@ label1 Error SyntaxError: Expected ')', got '{'. */ + +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_9.ets b/ets2panda/test/ast/parser/ets/unexpected_token_9.ets index 0afcc96121db1592af1a2b3a68d2f927300df698..d16573a39dd23c0cbfd9383cf4e0ddc73a27e732 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_9.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_9.ets @@ -15,5 +15,6 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/union_static_method.ets b/ets2panda/test/ast/parser/ets/union_static_method.ets index 9148df208530292b359e66cc5e9eb0d8dcdea57d..bac93b2ae2676a2610f43a304cea1d840cc3ed35 100644 --- a/ets2panda/test/ast/parser/ets/union_static_method.ets +++ b/ets2panda/test/ast/parser/ets/union_static_method.ets @@ -29,4 +29,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets b/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets index 81b8aca00ec4a458b1f2dd162afd4ad6882428f0..de8e7deef1e47d31d92edb8f7fefb8b2da3b94d3 100644 --- a/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets +++ b/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets @@ -21,12 +21,13 @@ classtext: string, reviver: ((key: string, value: Any) => Any) | 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:75 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:77 Error SyntaxError: Unexpected token 'type'. */ -/* @@? 22:83 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:75 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:77 Error Syntax error ESY0227: Unexpected token 'type'. */ +/* @@? 22:83 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 33:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/update_funcscope_error.ets b/ets2panda/test/ast/parser/ets/update_funcscope_error.ets index f3a70d83edb6aff6f0fd00d9faba068f5f92f335..99a1d534791f179f9e939f168add66d9bad7ee14 100644 --- a/ets2panda/test/ast/parser/ets/update_funcscope_error.ets +++ b/ets2panda/test/ast/parser/ets/update_funcscope_error.ets @@ -34,20 +34,20 @@ export const updateIfChanged = (t: Record) => { }; }; -/* @@? 21:19 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:19 Error TypeError: Unresolved reference u */ -/* @@? 24:7 Error TypeError: Type '((p1: Record) => Boolean)' is not compatible with type '((p1: Boolean, p2: Boolean, p3: Int, p4: 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 */ -/* @@? 30:16 Error TypeError: This expression is not callable. */ -/* @@? 32:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 33:12 Error TypeError: Unresolved reference reduceResult */ -/* @@? 33:12 Error TypeError: Unexpected return value, enclosing method return type is void. */ -/* @@? 35:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 21:19 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:19 Error Semantic error ESE0143: Unresolved reference u */ +/* @@? 24:7 Error Semantic error ESE0046: Type '(p1: Record) => Boolean' is not compatible with type '(p1: Boolean, p2: Boolean, p3: Int, p4: 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 */ +/* @@? 30:16 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 32:5 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 33:12 Error Semantic error ESE0143: Unresolved reference reduceResult */ +/* @@? 33:12 Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ +/* @@? 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..e0f8a64a6844513a49aeab5b36460989a154c95f 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_10.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_10.ets @@ -17,5 +17,6 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_11.ets b/ets2panda/test/ast/parser/ets/user_defined_11.ets index e04f80779fc9e643d032eebf66080cc8055ac2ec..734d3885b7334717869d1424ac3e1f49eb974613 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_11.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_11.ets @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_12.ets b/ets2panda/test/ast/parser/ets/user_defined_12.ets index aa91f5c7f9cf75dd0bd6c06371f74d7f8e20bed5..aa80ec89ff836409350fbfe9b0ee367c13d78645 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_12.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_12.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_13.ets b/ets2panda/test/ast/parser/ets/user_defined_13.ets index 15cf8e612bbc2a3fa6794deae82cecd9faada43c..d371c12a9262a95b259a21107fe24a43098a088e 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_13.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_13.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_14.ets b/ets2panda/test/ast/parser/ets/user_defined_14.ets index 31c17e0cc894d95cfb988decab385f757e4d58c6..ef22a3a54c895c111efbf6d3dab5fc677be5e1ab 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_14.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_14.ets @@ -17,5 +17,6 @@ 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 ESY0316: Hard keyword 'typeof' cannot be used as identifier */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'typeof'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_15.ets b/ets2panda/test/ast/parser/ets/user_defined_15.ets index 1d8a6b4ec1a5929580cb0ba044a884445a5c7156..a79609af34a660c7ae2cd02cdade974c9218ad6b 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_15.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_15.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_16.ets b/ets2panda/test/ast/parser/ets/user_defined_16.ets index 536b78e81079c4d3d73305b8e45e460c64c601a3..95911576cb60e8608a40fec30cba6a28771aa009 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_16.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_16.ets @@ -17,5 +17,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_17.ets b/ets2panda/test/ast/parser/ets/user_defined_17.ets index 316498fa684dbb3539321ad4f7107700960357eb..dd93b68dbe2dae281485c001c44dac7400cd65fc 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_17.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_17.ets @@ -17,5 +17,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_18.ets b/ets2panda/test/ast/parser/ets/user_defined_18.ets index b261560d447054e980b974d263298e2ad9d499dd..f3c697cae957d7db44a1b880920178413da0f1dd 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_18.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_18.ets @@ -17,5 +17,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_19.ets b/ets2panda/test/ast/parser/ets/user_defined_19.ets index 8f81e7dbc795a24a5188d7b7e80fe4eb86cfaa11..50c36e60e6ed50d7ea83cf5c8e5beb0d6a3233a4 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_19.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_19.ets @@ -17,6 +17,7 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_20.ets b/ets2panda/test/ast/parser/ets/user_defined_20.ets index 11c00c085ab04a1aaa9a32c9f8aa67f3a774f110..5e0fca9eb2a081628bd2f1137c348d6519bb4ec8 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_20.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_20.ets @@ -17,5 +17,6 @@ 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: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: bigint is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_21.ets b/ets2panda/test/ast/parser/ets/user_defined_21.ets index a7715989bf1d418e8d4c0263dca804341ef44563..6ceffcf5c802007e7a4b20b80247e93b4912b999 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_21.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_21.ets @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_23.ets b/ets2panda/test/ast/parser/ets/user_defined_23.ets index efb6979bc61e44de27990bbd37e84816bf8ad7ad..2768959eca6961ac46be41ae88ce6ee112f26e8e 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_23.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_23.ets @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_24.ets b/ets2panda/test/ast/parser/ets/user_defined_24.ets index fb94fe840a90385d19360ff6623d2612fba52c2e..424bf9bfcec909e4a790bdd96201e6089056fadf 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_24.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_24.ets @@ -17,5 +17,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_25.ets b/ets2panda/test/ast/parser/ets/user_defined_25.ets index 9f7ad7798dd07f44961e8e106382aa690d1aa895..0a1bc5b7514cf9c989dc23e16f4a870ec799b90d 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_25.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_25.ets @@ -17,8 +17,9 @@ 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 ','. */ -/* @@@ label3 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@@ 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 ESY0224: Identifier expected, got 'number literal'. */ +/* @@@ label4 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_5.ets b/ets2panda/test/ast/parser/ets/user_defined_5.ets index a20b8680d4ed2d7c4dac1f52b113a95206279b00..fb50033b3118bd90194bc9852540425be0d142a8 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_5.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_5.ets @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_7.ets b/ets2panda/test/ast/parser/ets/user_defined_7.ets index fbd4aae280a548002598f799cd017efd2105f26e..2090d64993c0a1e78367017158faca351bc753f9 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_7.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_7.ets @@ -17,8 +17,9 @@ 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 ','. */ -/* @@@ label3 Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@@ label4 Error SyntaxError: Identifier expected. */ + +/* @@@ label1 Error Syntax error ESY0295: double is a predefined type, cannot be used as an identifier */ +/* @@@ label2 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@@ label3 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@@ label3 Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ +/* @@@ label4 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_8.ets b/ets2panda/test/ast/parser/ets/user_defined_8.ets index 52278742dd3f8ed2e018321cb303a067e5bcf713..25f620b94f40df209b35f6ae79e854ec4d8b66c9 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_8.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_8.ets @@ -17,5 +17,6 @@ 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: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: string is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_9.ets b/ets2panda/test/ast/parser/ets/user_defined_9.ets index 1170c80f98c44b47ee10471aed582e5cd53019a1..6afa5057c1fac5ce4c2b3763e57f8156a9b34a72 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_9.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_9.ets @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/visible_signatures_1.ets b/ets2panda/test/ast/parser/ets/visible_signatures_1.ets index 7be7ca46cafcc0d527f869db047182a2e8d15a58..09baee9e421d95fd5f6925f6929470099843623c 100644 --- a/ets2panda/test/ast/parser/ets/visible_signatures_1.ets +++ b/ets2panda/test/ast/parser/ets/visible_signatures_1.ets @@ -27,6 +27,7 @@ function main(): void { } -/* @@? 20:13 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:13 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) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/visit_member_class_null_to_never.ets b/ets2panda/test/ast/parser/ets/visit_member_class_null_to_never.ets index a00400dec82d046278ea07ca396db4188a53b65e..a269c5038d77dc3abe0e1d56e7b91dc85fd55db8 100644 --- a/ets2panda/test/ast/parser/ets/visit_member_class_null_to_never.ets +++ b/ets2panda/test/ast/parser/ets/visit_member_class_null_to_never.ets @@ -35,4 +35,5 @@ function dasgAssert() { dasgAssert(); -/* @@? 23:15 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ + +/* @@? 23:15 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/parser/ets/while_with_empty_body.ets b/ets2panda/test/ast/parser/ets/while_with_empty_body.ets index 3e6ecfbf428e4e16bf84d14524414613a789cd6c..5b3260fc73542e7551a8a1e63c03a5bd61c42518 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,6 @@ 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 */ \ No newline at end of file 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..62e23ea51db281ca07743f1a576fb708dd2ac867 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,7 @@ 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:81 Error Syntax error ESY0301: Missing condition in while statement */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets b/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets index f4fc655e44f39ef00cd58b29bdbc188ba1e5a12b..ffb118633974ee5967f38a62fe4f3ad223682e97 100644 --- a/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets +++ b/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets @@ -20,4 +20,5 @@ file with CR LF line endings */ a -/* @@? 21:1 Error TypeError: Unresolved reference a */ + +/* @@? 21:1 Error Semantic error ESE0143: Unresolved reference a */ \ No newline at end of file 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..574539a72c8fab9461c5d9986798217a88da9a32 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,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets b/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets index 4b832e61e6c221c1df519b125d73134934bc02ed..fe964ed528ef56867b3966fe68f6134915f51a0b 100644 --- a/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets +++ b/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets @@ -20,8 +20,9 @@ class A { let a: readonly = new A(); -/* @@? 21:16 Error SyntaxError: Invalid Type. */ -/* @@? 21:16 Error SyntaxError: Unexpected token '<'. */ -/* @@? 21:16 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 21:20 Error SyntaxError: Unexpected token '='. */ -/* @@? 21:22 Error SyntaxError: Unexpected token 'new'. */ + +/* @@? 21:16 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:16 Error Syntax error ESY0227: Unexpected token '<'. */ +/* @@? 21:16 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 21:20 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 21:22 Error Syntax error ESY0227: Unexpected token 'new'. */ \ No newline at end of file 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..eb4ddf29b3c7ecce7ab6d4744d3dadd8f43292f9 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,6 @@ 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' */ \ No newline at end of file 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..c7913b9f517ab70d35ddde0dcfb070779f1f8b3b 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,6 @@ 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' */ \ No newline at end of file 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..c40f0c118283f59d072aa917c6ad3788360e7752 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,6 @@ 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. */ \ No newline at end of file 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..d562a8b87d94229f97ac493c645f47c9672b30ec 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,6 @@ 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. */ \ No newline at end of file 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 530534fa782f03c2c3d9a10dd5f7154ae432a355..2acd67b5fa65deca90aed92d47df89497abcf966 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets @@ -22,4 +22,5 @@ function main() /* @@ label */a = /* @@ label1 */5 } -/* @@@ label Error TypeError: Function name 'a' used in the wrong context */ + +/* @@@ label Error Semantic error ESE0144: Function name 'a' used in the wrong context */ \ No newline at end of file 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 48882b7c7920528a5074ff8189dc0bc9369e282d..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 293065f2be6d6ec129f06280c62208559a08d3d3..39fe05e9861f4fe7e350eb85d448c8c54ddd2db3 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_function_3.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_function_3.ets @@ -22,4 +22,5 @@ function main() a++ } -/* @@? 22:5 Error TypeError: Function name 'a' used in the wrong context */ + +/* @@? 22:5 Error Semantic error ESE0144: Function name 'a' used in the wrong context */ \ No newline at end of file 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..c1181754ab2c1f99491cecb52d242f3492dce059 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,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/InvalidExpressions.js b/ets2panda/test/ast/parser/js/InvalidExpressions.js index 110409e0fb929e2e38792f7017fd277d1b1fcac0..9a44739f74769be1ed702cab3ddb8545b66a16d0 100644 --- a/ets2panda/test/ast/parser/js/InvalidExpressions.js +++ b/ets2panda/test/ast/parser/js/InvalidExpressions.js @@ -70,86 +70,76 @@ async (x = await 7) /* @@ label56 */=> expression; (a, b) => { 7 /* @@ label57 */]; // This should be the last line to check syntax error about missing '}' -/* @@@ label Error SyntaxError: Illegal expression. Wrap left hand side or entire exponentiation in parentheses. */ -/* @@@ label1 Error SyntaxError: Unexpected token '<'. */ -/* @@@ label2 Error SyntaxError: Invalid left-hand side operator. */ -/* @@@ label3 Error SyntaxError: Assigning to 'eval' in strict mode is invalid. */ -/* @@@ label4 Error SyntaxError: Assigning to 'arguments' in strict mode is invalid. */ -/* @@@ label5 Error SyntaxError: Invalid left-hand side in prefix operation. */ -/* @@@ label6 Error SyntaxError: Assigning to 'arguments' in strict mode is invalid. */ -/* @@@ label7 Error SyntaxError: Assigning to 'eval' in strict mode is invalid. */ -/* @@@ label8 Error SyntaxError: Deleting local variable in strict mode. */ -/* @@@ label9 Error SyntaxError: Private fields can not be deleted. */ -/* @@@ label10 Error SyntaxError: 'import.Meta' may appear only with 'sourceType: module'. */ -/* @@@ label11 Error SyntaxError: 'import.Meta' may appear only with 'sourceType: module'. */ -/* @@@ label12 Error SyntaxError: 'import.Meta' may appear only with 'sourceType: module'. */ -/* @@@ label13 Error SyntaxError: 'import.Meta' may appear only with 'sourceType: module'. */ -/* @@@ label14 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@@ label15 Error SyntaxError: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ -/* @@@ label16 Error SyntaxError: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ -/* @@@ label17 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@@ label18 Error SyntaxError: Unexpected token '}'. */ -/* @@@ label19 Error SyntaxError: Insufficient formal parameter in arrow function. */ -/* @@@ label20 Error SyntaxError: Unexpected token '1'. */ -/* @@@ label20 Error SyntaxError: Unexpected token. */ -/* @@@ label20 Error SyntaxError: Expected ')', got 'number literal'. */ -/* @@@ label21 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label21 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label21 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label22 Error SyntaxError: Unexpected token '=>'. */ -/* @@@ label23 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@@ label23 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@@ label24 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label24 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label24 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label25 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@@ label26 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@@ label27 Error SyntaxError: Tagged Template Literals are not allowed in optionalChain. */ -/* @@@ label28 Error SyntaxError: Invalid left-hand side in array destructuring pattern. */ -/* @@@ label29 Error SyntaxError: Async methods cannot have a line terminator between 'async' and the property name. */ -/* @@@ label30 Error SyntaxError: Unexpected identifier. */ -/* @@@ label30 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@@ label31 Error SyntaxError: Getter must not have formal parameters. */ -/* @@@ label32 Error SyntaxError: Setter must have exactly one formal parameter. */ -/* @@@ label33 Error SyntaxError: Unexpected token. */ -/* @@@ label34 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@@ label34 Error SyntaxError: Unexpected identifier. */ -/* @@@ label35 Error SyntaxError: Unexpected token. */ -/* @@@ label36 Error SyntaxError: Unexpected token. */ -/* @@@ label37 Error SyntaxError: Missing initializer in destructuring declaration. */ -/* @@@ label38 Error SyntaxError: Invalid left-hand side in array destructuring pattern. */ -/* @@@ label39 Error SyntaxError: Object pattern can't contain methods. */ -/* @@@ label40 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label41 Error SyntaxError: Invalid left-hand side in array destructuring pattern. */ -/* @@@ label42 Error SyntaxError: Invalid destructuring assignment target. */ -/* @@@ label42 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@@ label43 Error SyntaxError: Invalid destructuring assignment target. */ -/* @@@ label43 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@@ label44 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@@ label44 Error SyntaxError: Expected ')', got 'number literal'. */ -/* @@@ label44 Error SyntaxError: Unexpected token '7'. */ -/* @@@ label45 Error SyntaxError: Unexpected token ']'. */ -/* @@@ label45 Error SyntaxError: Unexpected token ']'. */ -/* @@@ label45 Error SyntaxError: Unexpected token ']'. */ -/* @@@ label46 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label46 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label47 Error SyntaxError: Unexpected token '=>'. */ -/* @@@ label48 Error SyntaxError: Invalid destructuring assignment target. */ -/* @@@ label48 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@@ label49 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@@ label50 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@@ label50 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@@ label51 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label51 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label51 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label52 Error SyntaxError: Unexpected token '=>'. */ -/* @@@ label53 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@@ label54 Error SyntaxError: Unexpected token. */ -/* @@@ label55 Error SyntaxError: Invalid rest element. */ -/* @@@ label55 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@@ label56 Error SyntaxError: await is not allowed in arrow function parameters. */ -/* @@@ label56 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@@ label57 Error SyntaxError: Unexpected token ']'. */ -/* @@@ label57 Error SyntaxError: Unexpected token ']'. */ -/* @@@ label57 Error SyntaxError: Unexpected token ']'. */ -/* @@? 156:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@@ label Error Syntax error ESY0196: Illegal expression. Wrap left hand side or entire exponentiation in parentheses. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '<'. */ +/* @@@ label2 Error Syntax error ESY0053: Invalid left-hand side operator. */ +/* @@@ label3 Error Syntax error ESY0051: Assigning to 'eval' in strict mode is invalid. */ +/* @@@ label4 Error Syntax error ESY0057: Assigning to 'arguments' in strict mode is invalid. */ +/* @@@ label5 Error Syntax error ESY0071: Invalid left-hand side in prefix operation. */ +/* @@@ label6 Error Syntax error ESY0057: Assigning to 'arguments' in strict mode is invalid. */ +/* @@@ label7 Error Syntax error ESY0051: Assigning to 'eval' in strict mode is invalid. */ +/* @@@ label8 Error Syntax error ESY0050: Deleting local variable in strict mode. */ +/* @@@ label9 Error Syntax error ESY0070: Private fields can not be deleted. */ +/* @@@ label10 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ +/* @@@ label11 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ +/* @@@ label12 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ +/* @@@ label13 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ +/* @@@ label14 Error Syntax error ESY0068: The only valid meta property for import is import.Meta. */ +/* @@@ label15 Error Syntax error ESY0059: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ +/* @@@ label16 Error Syntax error ESY0059: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ +/* @@@ label17 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@@ label18 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@@ label19 Error Syntax error ESY0064: Insufficient formal parameter in arrow function. */ +/* @@@ label20 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@@ label20 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label20 Error Syntax error ESY0230: Expected ')', got 'number literal'. */ +/* @@@ label21 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label22 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@@ label23 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@@ label23 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@@ label24 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label25 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@@ label26 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@@ label27 Error Syntax error ESY0056: Tagged Template Literals are not allowed in optionalChain. */ +/* @@@ label28 Error Syntax error ESY0204: Invalid left-hand side in array destructuring pattern. */ +/* @@@ label29 Error Syntax error ESY0197: Async methods cannot have a line terminator between 'async' and the property name. */ +/* @@@ label30 Error Syntax error ESY0045: Unexpected identifier. */ +/* @@@ label30 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@@ label31 Error Syntax error ESY0058: Getter must not have formal parameters. */ +/* @@@ label32 Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ +/* @@@ label33 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label34 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@@ label34 Error Syntax error ESY0045: Unexpected identifier. */ +/* @@@ label35 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label36 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label37 Error Syntax error ESY0186: Missing initializer in destructuring declaration. */ +/* @@@ label38 Error Syntax error ESY0204: Invalid left-hand side in array destructuring pattern. */ +/* @@@ label39 Error Syntax error ESY0062: Object pattern can't contain methods. */ +/* @@@ label40 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label41 Error Syntax error ESY0204: Invalid left-hand side in array destructuring pattern. */ +/* @@@ label42 Error Syntax error ESY0049: Invalid destructuring assignment target. */ +/* @@@ label42 Error Syntax error ESY0148: Unexpected ArrowParameter element. */ +/* @@@ label43 Error Syntax error ESY0049: Invalid destructuring assignment target. */ +/* @@@ label43 Error Syntax error ESY0148: Unexpected ArrowParameter element. */ +/* @@@ label44 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@@ label44 Error Syntax error ESY0230: Expected ')', got 'number literal'. */ +/* @@@ label44 Error Syntax error ESY0227: Unexpected token '7'. */ +/* @@@ label45 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@@ label46 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label47 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@@ label48 Error Syntax error ESY0049: Invalid destructuring assignment target. */ +/* @@@ label48 Error Syntax error ESY0148: Unexpected ArrowParameter element. */ +/* @@@ label49 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@@ label50 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@@ label50 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@@ label51 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label52 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@@ label53 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@@ label54 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label55 Error Syntax error ESY0055: Invalid rest element. */ +/* @@@ label55 Error Syntax error ESY0148: Unexpected ArrowParameter element. */ +/* @@@ label56 Error Syntax error ESY0046: await is not allowed in arrow function parameters. */ +/* @@@ label56 Error Syntax error ESY0148: Unexpected ArrowParameter element. */ +/* @@@ label57 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 145:80 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/InvalidParserImpl.js b/ets2panda/test/ast/parser/js/InvalidParserImpl.js index c9a25dc5df258bdefeeb5613c3acc403d48f688a..875da4bfc5ef45835a5d34cc9f2a61b6b9ae8a29 100644 --- a/ets2panda/test/ast/parser/js/InvalidParserImpl.js +++ b/ets2panda/test/ast/parser/js/InvalidParserImpl.js @@ -49,21 +49,22 @@ 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. */ + +/* @@? 16:7 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:10 Error Syntax error ESY0227: 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. */ +/* @@? 30:6 Error Syntax error ESY0267: Private identifier can not be constructor. */ +/* @@? 35:12 Error Syntax error ESY0155: Classes may not have static property named prototype. */ +/* @@? 37:5 Error Syntax error ESY0144: Classes may not have a field named 'constructor'. */ +/* @@? 38:12 Error Syntax error ESY0155: Classes may not have static property named prototype. */ +/* @@? 40:5 Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ +/* @@? 41:5 Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ +/* @@? 43:5 Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ +/* @@? 43:11 Error Syntax error ESY0149: Constructor can not be special method. */ +/* @@? 46:12 Error Syntax error ESY0207: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ +/* @@? 46:18 Error Syntax error ESY0207: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ +/* @@? 49:14 Error Syntax error ESY0162: Undefined label. */ \ No newline at end of file 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..625e710518d430a60c84900fd4f08830655c4427 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,5 @@ 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. */ \ No newline at end of file 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..8fd2a8294430c19dc201fed4d4313e13226cab3d 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,5 @@ ++!a -/* @@@ label Error SyntaxError: Invalid left-hand side in prefix operation. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 19:103 Error Syntax error ESY0071: Invalid left-hand side in prefix operation. */ \ No newline at end of file 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..d7e36cb0886bff6adcdd8f83b1e589b4bf90150d 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,5 @@ 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:15 Error Syntax error ESY0068: The only valid meta property for import is import.Meta. */ \ No newline at end of file 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..5683fdadc4569421e0cf0ff82ba41cb722fd9428 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,6 @@ 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:15 Error Syntax error ESY0068: The only valid meta property for import is import.Meta. */ +/* @@? 21:1 Error Syntax error ESY0230: Expected ')', got 'import'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/module/import_meta_3.js b/ets2panda/test/ast/parser/js/module/import_meta_3.js index a5848b2b4e17d0f86f7ff165f3a041ce8e008a10..3681485435bf671a4850c39c17a25671d476dc9c 100644 --- a/ets2panda/test/ast/parser/js/module/import_meta_3.js +++ b/ets2panda/test/ast/parser/js/module/import_meta_3.js @@ -21,7 +21,7 @@ import.meta; import (impor -/* @@? 25:68 Error SyntaxError: Unexpected token, expected: ')'. */ + /* @@? 1:1 Node { "type": "Program" -} */ \ No newline at end of file +} *//* @@? 27:84 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file 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..abbf0ba5c5bea46681a250ea34b606be7e1be239 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,7 @@ 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 ')'. */ +/* @@? 25:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file 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..fed14152b6bf976028115d11731499f979a9754b 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/new-expression.js b/ets2panda/test/ast/parser/js/new-expression.js index 3a1a9bb9b5299cd76f8b0dbc6449eef1d944aa6c..7cad0c151d921bd53180303a90ee037d0d6aa0e3 100644 --- a/ets2panda/test/ast/parser/js/new-expression.js +++ b/ets2panda/test/ast/parser/js/new-expression.js @@ -15,4 +15,5 @@ new a()/* @@ label */{}; -/* @@@ label Error SyntaxError: Unexpected token '{'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/private_ctor_bad.js b/ets2panda/test/ast/parser/js/private_ctor_bad.js index 1b9477045f2682176e219e5d18c7db2125030c6d..3031035e624741719869e60eb371c8eb236331d8 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:6 Error Syntax error ESY0267: Private identifier can not be constructor. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/private_number_bad.js b/ets2panda/test/ast/parser/js/private_number_bad.js index 94cd82cad0adec7fc72ee2b4572247a0019ed93a..7d18e48325928ce68b4c3d60821714ad63fd1b77 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:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0269: Private identifier name can not be number. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/private_ref_bad.js b/ets2panda/test/ast/parser/js/private_ref_bad.js index cc4b234705d69a92b2be25ca18a4cc86fb8deede..f4858f4fe30665d4940f2e971d3f93dfc850a14f 100644 --- a/ets2panda/test/ast/parser/js/private_ref_bad.js +++ b/ets2panda/test/ast/parser/js/private_ref_bad.js @@ -18,4 +18,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/private_sqbracket_bad.js b/ets2panda/test/ast/parser/js/private_sqbracket_bad.js index 426ccec09f494b4ac77389b6317cfa181521c25e..5fe03ce657735211f061292e12fb1728ee9236b9 100644 --- a/ets2panda/test/ast/parser/js/private_sqbracket_bad.js +++ b/ets2panda/test/ast/parser/js/private_sqbracket_bad.js @@ -16,8 +16,9 @@ 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'. */ + +/* @@? 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 '}'. */ +/* @@? 18:1 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/private_string_bad.js b/ets2panda/test/ast/parser/js/private_string_bad.js index 58c411b6fd9fcc16fd4c6cbaa533c681c3b85836..43e45f97ec26f53b266c24fdecd945bebf3546df 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:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0268: Private identifier name can not be string. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/rest_params_1.js b/ets2panda/test/ast/parser/js/rest_params_1.js index 28a006da4bfa4cda8bbcd57e514296a8e93b6033..a53c622770d8430a84dbda9142a18db35796bb15 100644 --- a/ets2panda/test/ast/parser/js/rest_params_1.js +++ b/ets2panda/test/ast/parser/js/rest_params_1.js @@ -18,7 +18,7 @@ function f4(a, b,...c^ { } -/* @@? 16:22 Error SyntaxError: Unexpected token, expected an identifier. */ + /* @@? 1:1 Node { "type": "Program" -} */ \ No newline at end of file +} *//* @@? 16:22 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/static_property_prototype.js b/ets2panda/test/ast/parser/js/static_property_prototype.js index 9162d059454a7425a3b8b9719dca04481bd2cbe9..7d07d1200f5fbfdddf5632651e78012657c821c8 100644 --- a/ets2panda/test/ast/parser/js/static_property_prototype.js +++ b/ets2panda/test/ast/parser/js/static_property_prototype.js @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file 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..90d6d23c95a569efe567b24bbb6ac8a247cd8e11 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,7 @@ [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 ']'. */ \ No newline at end of file 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..d65d51640049af72dfce82cab3f6438822983951 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,5 @@ [a/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ']'. */ + +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-definition1.js b/ets2panda/test/ast/parser/js/test-class-definition1.js index cc74c1dfa0e143e0d4ce935a341afa6c70da1107..4646a8e43d1dc4a6c8234eecca762b4e5e08ec06 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition1.js +++ b/ets2panda/test/ast/parser/js/test-class-definition1.js @@ -20,4 +20,5 @@ class A { super/* @@ label */(); } } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ + +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-definition2.js b/ets2panda/test/ast/parser/js/test-class-definition2.js index 450865bc4883f944d6fbb0bb30aa771a18a2c85b..4eddd63ab4135d7a332a37886d7cb31282c32467 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition2.js +++ b/ets2panda/test/ast/parser/js/test-class-definition2.js @@ -23,4 +23,5 @@ class A { } } -/* @@@ label Error SyntaxError: Multiple constructor implementations are not allowed. */ + +/* @@@ label Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-definition3.js b/ets2panda/test/ast/parser/js/test-class-definition3.js index 9b0d1bd0609b2ea42a9926a37285496e1ab00151..1edc9b9d3ac2db047036e0b2c7f6d6d233acc730 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition3.js +++ b/ets2panda/test/ast/parser/js/test-class-definition3.js @@ -20,4 +20,5 @@ class B extends A { super/* @@ label */(); } } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ + +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-definition4.js b/ets2panda/test/ast/parser/js/test-class-definition4.js index 2b904bb27027f0d91940c6087f64eb6d81584e8c..cbe027c790afe688411793515ed9f8e824c31ba1 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition4.js +++ b/ets2panda/test/ast/parser/js/test-class-definition4.js @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-definition5.js b/ets2panda/test/ast/parser/js/test-class-definition5.js index 3fedf6b5786b0c3ad32cce6c288f01e2ff9c0b95..c7c580828d5929cb796f1dcf9ebdf4e018bd09d1 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition5.js +++ b/ets2panda/test/ast/parser/js/test-class-definition5.js @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file 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..759340d690b5ca884c6d1e8c80fa87c32d6dab4c 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,6 @@ 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 '}'. */ \ No newline at end of file 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..0e41d0d36c15dc1c2d8070e5ecb373779d31f0f7 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,5 @@ 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. */ \ No newline at end of file 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..6c2303fbb2a2c95b1e77f79954fa9d063b4ae1e3 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,5 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ + +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ \ No newline at end of file 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..76b48b16e9d57d7ea589d9f44d01c69918644ea2 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,5 @@ class A { } } -/* @@@ label Error SyntaxError: Variable 'a' has already been declared. */ + +/* @@@ label Error Syntax error ESY0000: Variable 'a' has already been declared. */ \ No newline at end of file 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..093a0ccf8a2be2b9d53f8d9418a6c008c8c1c055 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,5 @@ 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 */ \ No newline at end of file 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..4206298adbf027c55d73f0b0cbe2ec40dc3c6ea2 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,5 @@ function *g() { } } -/* @@? 19:13 Error SyntaxError: Unexpected strict mode reserved keyword. */ + +/* @@? 19:13 Error Syntax error ESY0264: Unexpected strict mode reserved keyword. */ \ No newline at end of file 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..3eee99b7ea9c930229fffc6fb105780edabd6ebc 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,5 @@ const c/* @@ label */; -/* @@@ label Error SyntaxError: Missing initializer in const declaration. */ + +/* @@@ label Error Syntax error ESY0100: Missing initializer in const declaration. */ \ No newline at end of file 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..5859b810d5df717377a916f217e42c0bfb7841b1 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,5 @@ switch (a) break; } -/* @@@ label Error SyntaxError: Illegal continue statement. */ + +/* @@@ label Error Syntax error ESY0165: Illegal continue statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-delete-identifier.js b/ets2panda/test/ast/parser/js/test-delete-identifier.js index 50d2a69b2d6df5421b3c682a5311d6f7d6b44037..6189f27f6cb75b1b4d2e5f6a87c45f4b98f93bba 100644 --- a/ets2panda/test/ast/parser/js/test-delete-identifier.js +++ b/ets2panda/test/ast/parser/js/test-delete-identifier.js @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file 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..0cfa8a331a2841fd0dd2527e4cb7e1a05a6b3421 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,5 @@ do a = 2 /* @@ label */while (a > b) -/* @@@ label Error SyntaxError: Unexpected token 'while'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'while'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-escaped-keyword.js b/ets2panda/test/ast/parser/js/test-escaped-keyword.js index 894e93267a0df969ffd06f35991f7af8099f5153..36f1f90698da3c31ecfef98f1db29f323d7ef984 100644 --- a/ets2panda/test/ast/parser/js/test-escaped-keyword.js +++ b/ets2panda/test/ast/parser/js/test-escaped-keyword.js @@ -16,4 +16,5 @@ 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. */ \ No newline at end of file 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..66bc9055ad9c42e05c9197049f9fcf7e4f0b788d 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,5 @@ ~a /* @@ label */b -/* @@@ label Error SyntaxError: Unexpected token 'b'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'b'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-for-1.js b/ets2panda/test/ast/parser/js/test-for-1.js index 9b2243661f8b6d858a65801f948acbb1cbc4e554..bf28098d380134aceeb09caa767cbf5883bb049e 100644 --- a/ets2panda/test/ast/parser/js/test-for-1.js +++ b/ets2panda/test/ast/parser/js/test-for-1.js @@ -16,6 +16,6 @@ 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 ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-for-2.js b/ets2panda/test/ast/parser/js/test-for-2.js index 050b2fa3d7e4793168e6401685b4c4b4376f11b4..9b033bbcd1215f31535dffba3b15840ad21f5702 100644 --- a/ets2panda/test/ast/parser/js/test-for-2.js +++ b/ets2panda/test/ast/parser/js/test-for-2.js @@ -15,5 +15,6 @@ 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 ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-for-3.js b/ets2panda/test/ast/parser/js/test-for-3.js index 35fd692b388d444db687ea8d0cbeb8f2df66082b..b36a92829cb4777de318f36566c87cf700b6ebe9 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'. */ + +/* @@@ label Error Syntax error ESY0167: Invalid left-hand side in 'For[In/Of]Statement'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-for-4.js b/ets2panda/test/ast/parser/js/test-for-4.js index 5c38c7a18639611eb5114d8436e3897c522faf1e..e7f275f15d69dd567d98f534f2e057c1910bffef 100644 --- a/ets2panda/test/ast/parser/js/test-for-4.js +++ b/ets2panda/test/ast/parser/js/test-for-4.js @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file 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..39fa8b91cbd71ef08117d8abca93356df25a1d84 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,5 @@ 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. */ \ No newline at end of file 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..3242e707402f977b7e772349288d3dce112731c9 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-if-1.js b/ets2panda/test/ast/parser/js/test-if-1.js index 74a15854c678220e9dc48131f5a2b3163de6eec6..bb50a507d3e92bd36042323f218466ab1545f58e 100644 --- a/ets2panda/test/ast/parser/js/test-if-1.js +++ b/ets2panda/test/ast/parser/js/test-if-1.js @@ -15,7 +15,8 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-if-2.js b/ets2panda/test/ast/parser/js/test-if-2.js index 56a941f110607ccd1550bcb82ba9abd6001cd7e7..a7c8732c66e42f089a9c18676aa7fcdb97a0937c 100644 --- a/ets2panda/test/ast/parser/js/test-if-2.js +++ b/ets2panda/test/ast/parser/js/test-if-2.js @@ -15,5 +15,6 @@ if(/* @@ label */) -/* @@@ label Error SyntaxError: Unexpected token ')'. */ -/* @@? 20:1 Error SyntaxError: Unexpected token 'end of stream'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-import-decl.js b/ets2panda/test/ast/parser/js/test-import-decl.js index c4238d22015ddafcdca0dd790c308fbdadf4248a..928bb99c0f18b0b440fc61a49c05ca13b47a6235 100644 --- a/ets2panda/test/ast/parser/js/test-import-decl.js +++ b/ets2panda/test/ast/parser/js/test-import-decl.js @@ -23,5 +23,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-imported-decl1.js b/ets2panda/test/ast/parser/js/test-imported-decl1.js index 7189810d14231e52fb49878d6c3c4859c10f82bc..00323683b66e1b19d79fc385f677cf90f096cf4f 100644 --- a/ets2panda/test/ast/parser/js/test-imported-decl1.js +++ b/ets2panda/test/ast/parser/js/test-imported-decl1.js @@ -20,4 +20,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-labelled-statement1.js b/ets2panda/test/ast/parser/js/test-labelled-statement1.js index 5ad2a83d1ff8c46c3ea6e30d109db66adf92f1e9..3e110bbb4ef216710332724595804a12098b3dd3 100644 --- a/ets2panda/test/ast/parser/js/test-labelled-statement1.js +++ b/ets2panda/test/ast/parser/js/test-labelled-statement1.js @@ -17,4 +17,5 @@ a: /* @@ label */a: 2; -/* @@@ label Error SyntaxError: Label already declared. */ + +/* @@@ label Error Syntax error ESY0214: Label already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-labelled-statement2.js b/ets2panda/test/ast/parser/js/test-labelled-statement2.js index eb1914fa4075a19929a3745e178b0a64eb75303d..2bed022827b8f3f8c4cff357684b33cd3f06e556 100644 --- a/ets2panda/test/ast/parser/js/test-labelled-statement2.js +++ b/ets2panda/test/ast/parser/js/test-labelled-statement2.js @@ -21,6 +21,7 @@ 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. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '!'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-let-redeclaration.js b/ets2panda/test/ast/parser/js/test-let-redeclaration.js index 82ad1aa3127db21706456d45541066b5394d971c..91d56ffc1a73fe8058252bdcbf1a5ece1fe62202 100644 --- a/ets2panda/test/ast/parser/js/test-let-redeclaration.js +++ b/ets2panda/test/ast/parser/js/test-let-redeclaration.js @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file 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..05ca522ab4a91793febc8e28b9f413755ac50e80 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,7 @@ 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 ')'. */ \ No newline at end of file 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..ef9e2a57dbe12eb8e2cf3d0585bdbc87f620d20a 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,5 @@ a[b -/* @@? 19:1 Error SyntaxError: Unexpected token, expected ']'. */ + +/* @@? 19:76 Error Syntax error ESY0228: Unexpected token, expected ']'. */ \ No newline at end of file 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..61eaf874fd581f7d58f13aedb46dfce964cd38b0 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,5 @@ "sfs".b[/* @@ label */] -/* @@@ label Error SyntaxError: Unexpected token ']'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file 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..0cbabaf0efb4cfaa4ea563282ef26e2585791f4e 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,5 @@ finally } -/* @@@ label Error SyntaxError: Unexpected token ')'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file 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..7b836ff05cba25620da8330bdd97600e19fda1f1 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,6 @@ /* @@ 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 */ \ No newline at end of file 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..36821f720ac0aa79ab5a889e4f67d555c793dea3 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,5 @@ a++ /* @@ label */++b; -/* @@@ label Error SyntaxError: Unexpected token '++'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '++'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js b/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js index 79129a23d05f9e1934e8b4132492f4658debf680..802de1e976e645f786a44743eae68b5c7aa32bd7 100644 --- a/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js +++ b/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js @@ -15,4 +15,5 @@ (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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js b/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js index 02ecbbf34b2dd1797f93663cb50acce42c4e21ad..17d4a35cc5104258855f074c660d0a69bbd41dac 100644 --- a/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js +++ b/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js @@ -15,4 +15,5 @@ (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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-numeric-separator1.js b/ets2panda/test/ast/parser/js/test-numeric-separator1.js index 3aa59dc00976d4ea8d0652cb9c1cdf1041becf77..55d9563c0b271a095c069ceebb41f7368f598572 100644 --- a/ets2panda/test/ast/parser/js/test-numeric-separator1.js +++ b/ets2panda/test/ast/parser/js/test-numeric-separator1.js @@ -15,5 +15,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-numeric-separator2.js b/ets2panda/test/ast/parser/js/test-numeric-separator2.js index 9d599954e0f0b76b843a0b5049944e07e3c7d04b..13202697d6b1c3281ac252edee127cdee0fbf977 100644 --- a/ets2panda/test/ast/parser/js/test-numeric-separator2.js +++ b/ets2panda/test/ast/parser/js/test-numeric-separator2.js @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-object-expression1.js b/ets2panda/test/ast/parser/js/test-object-expression1.js index b81d87164906b4a3bb94419787713159480f9fdd..24c4dd58fc1b349be2330314ce9e96467a672415 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression1.js +++ b/ets2panda/test/ast/parser/js/test-object-expression1.js @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-object-expression2.js b/ets2panda/test/ast/parser/js/test-object-expression2.js index 673247be37776ea8c24e8097aae0f8bf60159b4a..b5731930f9d236f33bc4fa09fd0a310583c68a11 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression2.js +++ b/ets2panda/test/ast/parser/js/test-object-expression2.js @@ -17,9 +17,10 @@ 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:8 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 18:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:10 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 18:13 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 18:14 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 18:15 Error Syntax error ESY0058: Getter must not have formal parameters. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-object-expression3.js b/ets2panda/test/ast/parser/js/test-object-expression3.js index 44f9f8159ae7653eae3e736313472df065747b12..08e4f4b7c9276df1d6ab5d34c62789555f3c1a0c 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression3.js +++ b/ets2panda/test/ast/parser/js/test-object-expression3.js @@ -17,4 +17,5 @@ a = { a/* @@ label */"foo", } -/* @@@ label Error SyntaxError: Unexpected token. */ + +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-object-expression4.js b/ets2panda/test/ast/parser/js/test-object-expression4.js index 7ca28c46e6bea613b8308fb83d2cac0b88b1b63b..50e58cb03c46d05f3d7a7aa1fa1462028b4a8b19 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression4.js +++ b/ets2panda/test/ast/parser/js/test-object-expression4.js @@ -18,4 +18,5 @@ a = { /* @@ label */if, } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ + +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-object-expression5.js b/ets2panda/test/ast/parser/js/test-object-expression5.js index 88182b2aca1a64198cb0e9f14da35fd6648f1a72..6ea019422ee6e399f0e87a2972696aa41cdc7b92 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression5.js +++ b/ets2panda/test/ast/parser/js/test-object-expression5.js @@ -17,4 +17,5 @@ var a = { a(){super/* @@ label */()} } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ + +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-object-proto.js b/ets2panda/test/ast/parser/js/test-object-proto.js index 779e712ae22b7afb0bcdb318b855abc941f82ef2..aa4a63daecc99d227217b228f990a4b2495f5f70 100644 --- a/ets2panda/test/ast/parser/js/test-object-proto.js +++ b/ets2panda/test/ast/parser/js/test-object-proto.js @@ -24,4 +24,5 @@ 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 */ \ No newline at end of file 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..e6093bb32b926e9ffe3450df226539c3df5e2c2c 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,5 @@ flags: [module] export default a = 1; export default /* @@ label */b = 2; -/* @@@ label Error SyntaxError: Variable '*default*' has already been declared. */ + +/* @@@ label Error Syntax error ESY0000: Variable '*default*' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-optional-chain.js b/ets2panda/test/ast/parser/js/test-optional-chain.js index cdfd98b73f1980bb1b7ff9a6964c6d12a5fccdb9..30b77159099ff4d9d1a5ead34c46be9f2c4096be 100644 --- a/ets2panda/test/ast/parser/js/test-optional-chain.js +++ b/ets2panda/test/ast/parser/js/test-optional-chain.js @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field1.js b/ets2panda/test/ast/parser/js/test-private-field1.js index dd35ab34c96a46598315cb715dde0e89bfe5fe74..eefaf2a02d752ce03ba6e053c7e44980b9bd0d40 100644 --- a/ets2panda/test/ast/parser/js/test-private-field1.js +++ b/ets2panda/test/ast/parser/js/test-private-field1.js @@ -15,5 +15,6 @@ #a -/* @@? 20:1 Error SyntaxError: Unexpected private identifier. */ -/* @@? 20:1 Error SyntaxError: Unexpected token 'end of stream'. */ + +/* @@? 20:78 Error Syntax error ESY0047: Unexpected private identifier. */ +/* @@? 20:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field10.js b/ets2panda/test/ast/parser/js/test-private-field10.js index e8861c6d35f4469836e6ab7050af554bb2050b53..9e5d4c66bb7642310995e0ec323b63e63fddc12c 100644 --- a/ets2panda/test/ast/parser/js/test-private-field10.js +++ b/ets2panda/test/ast/parser/js/test-private-field10.js @@ -22,6 +22,7 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field11.js b/ets2panda/test/ast/parser/js/test-private-field11.js index 997b776d42717ea27cd22adfcf203fe57b9e9e03..abd21a4e9a141b15b1a33b2d274676dabf29f68e 100644 --- a/ets2panda/test/ast/parser/js/test-private-field11.js +++ b/ets2panda/test/ast/parser/js/test-private-field11.js @@ -22,5 +22,6 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field12.js b/ets2panda/test/ast/parser/js/test-private-field12.js index 58ab28d14bee5f367293f43dd799d1b2d0793dc7..2e4954af36594826454c5d642842419da29c890f 100644 --- a/ets2panda/test/ast/parser/js/test-private-field12.js +++ b/ets2panda/test/ast/parser/js/test-private-field12.js @@ -20,4 +20,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field13.js b/ets2panda/test/ast/parser/js/test-private-field13.js index 81c16a20853a8d6accf1805d8acb7d087c8e8d17..13ade90ebbdd1b6813aecebb4fa6b0a59971b530 100644 --- a/ets2panda/test/ast/parser/js/test-private-field13.js +++ b/ets2panda/test/ast/parser/js/test-private-field13.js @@ -23,4 +23,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field14.js b/ets2panda/test/ast/parser/js/test-private-field14.js index 24b21c458093f253fba860d27134562af5892fe6..593138d5a7b12fbaf8b633d1552cae78bebb7872 100644 --- a/ets2panda/test/ast/parser/js/test-private-field14.js +++ b/ets2panda/test/ast/parser/js/test-private-field14.js @@ -18,4 +18,5 @@ class A { get #a() { } /* @@ label */} -/* @@@ label Error SyntaxError: Private field has already been declared. */ + +/* @@@ label Error Syntax error ESY0154: Private field has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field15.js b/ets2panda/test/ast/parser/js/test-private-field15.js index b292a8428c834977b6d696db001c499a9851fb89..3c18847272c6d4aece0709f4f921670ddde8996c 100644 --- a/ets2panda/test/ast/parser/js/test-private-field15.js +++ b/ets2panda/test/ast/parser/js/test-private-field15.js @@ -19,4 +19,5 @@ class A { #a; /* @@ label */} -/* @@@ label Error SyntaxError: Private field has already been declared. */ + +/* @@@ label Error Syntax error ESY0154: Private field has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field16.js b/ets2panda/test/ast/parser/js/test-private-field16.js index a58effdc72902f13c6f31b46f86e27af94830089..3aa687b6b08d07e1053134bdff04359290b2ab77 100644 --- a/ets2panda/test/ast/parser/js/test-private-field16.js +++ b/ets2panda/test/ast/parser/js/test-private-field16.js @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field2.js b/ets2panda/test/ast/parser/js/test-private-field2.js index c02d9744d79b83e0f652aeae6f1fdbff0427f497..b4293be73ea9b299c548cb7237dea97bdbe4755f 100644 --- a/ets2panda/test/ast/parser/js/test-private-field2.js +++ b/ets2panda/test/ast/parser/js/test-private-field2.js @@ -18,4 +18,5 @@ class A { #a; /* @@ label */} -/* @@@ label Error SyntaxError: Private field has already been declared. */ + +/* @@@ label Error Syntax error ESY0154: Private field has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field3.js b/ets2panda/test/ast/parser/js/test-private-field3.js index b771d6c46e509b5d783dd9c0b35c01191c81f4e5..e1cac5e8c4ef425b041d581cac3d9ba8d1de36aa 100644 --- a/ets2panda/test/ast/parser/js/test-private-field3.js +++ b/ets2panda/test/ast/parser/js/test-private-field3.js @@ -17,4 +17,5 @@ class A { # /* @@ label */a; } -/* @@@ label Error SyntaxError: Unexpected token in private field. */ + +/* @@@ label Error Syntax error ESY0160: Unexpected token in private field. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field4.js b/ets2panda/test/ast/parser/js/test-private-field4.js index aaafa582fd5b9df98a9410ed6081b781ada1c3e7..f2a50ed849d95f4dc567ff5ee22519130de8ca68 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:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0269: Private identifier name can not be number. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field5.js b/ets2panda/test/ast/parser/js/test-private-field5.js index 42d887f36697791f05895c0e34ebe75e3c99cba3..9d6b86197fb22fd4793c59fe1595b7a1d7cf31a5 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:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0268: Private identifier name can not be string. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field6.js b/ets2panda/test/ast/parser/js/test-private-field6.js index 61ad4ec580da94a69e9ba8fb7f87b3787743e9a6..5bc7e3c7ebc57ebbaba1f831b40a4dd70b973e8d 100644 --- a/ets2panda/test/ast/parser/js/test-private-field6.js +++ b/ets2panda/test/ast/parser/js/test-private-field6.js @@ -17,5 +17,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field7.js b/ets2panda/test/ast/parser/js/test-private-field7.js index 89b26dfd6e94631e7e19615f31bf1e5a9ed9dd1b..1fe3ae9fc3aa5eecbd001cd48653d989048a1539 100644 --- a/ets2panda/test/ast/parser/js/test-private-field7.js +++ b/ets2panda/test/ast/parser/js/test-private-field7.js @@ -18,6 +18,7 @@ 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 ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field8.js b/ets2panda/test/ast/parser/js/test-private-field8.js index 0f59c9ee6841a3e027ee117a0ba5ea375d175cf1..c04d54ec2ce07a98c8d52b39edf7c61fc7576b3f 100644 --- a/ets2panda/test/ast/parser/js/test-private-field8.js +++ b/ets2panda/test/ast/parser/js/test-private-field8.js @@ -20,4 +20,5 @@ class A { } } -/* @@@ label Error SyntaxError: Private fields can not be deleted. */ + +/* @@@ label Error Syntax error ESY0070: Private fields can not be deleted. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field9.js b/ets2panda/test/ast/parser/js/test-private-field9.js index 2ac3526e83ed5dba2f7cdc39894e677ee2b83309..54d8d45dd4714a4b941ae86c814d89b8d2d844f2 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:6 Error Syntax error ESY0267: Private identifier can not be constructor. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-super-expression.js b/ets2panda/test/ast/parser/js/test-super-expression.js index d795b9419616619a95aade13ef803ea429e32be6..3d7a0783501ae01573a8ef42ff51b4580e3ffe4c 100644 --- a/ets2panda/test/ast/parser/js/test-super-expression.js +++ b/ets2panda/test/ast/parser/js/test-super-expression.js @@ -15,4 +15,5 @@ super/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected super keyword. */ + +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-switch-1.js b/ets2panda/test/ast/parser/js/test-switch-1.js index 2fb0a42d31e75442ab5d076df90a389195f15b17..dcc270e602d02cf5f985d024ce6ed4670f9dcd62 100644 --- a/ets2panda/test/ast/parser/js/test-switch-1.js +++ b/ets2panda/test/ast/parser/js/test-switch-1.js @@ -16,9 +16,9 @@ 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 + +/* @@ label *//* @@? 24:79 Error Syntax error ESY0230: Expected '(', got 'end of stream'. */ +/* @@? 24:79 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-switch-2.js b/ets2panda/test/ast/parser/js/test-switch-2.js index 626f257980cac5759aab5f778f62b0e1fddff5e3..4c97ee1ed73ae002f596cd795558e518226896c0 100644 --- a/ets2panda/test/ast/parser/js/test-switch-2.js +++ b/ets2panda/test/ast/parser/js/test-switch-2.js @@ -18,8 +18,8 @@ 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 + +/* @@ label1 *//* @@@ label Error Syntax error ESY0230: Expected '(', got '{'. */ +/* @@? 25:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 25:79 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ +/* @@? 25:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-switch-3.js b/ets2panda/test/ast/parser/js/test-switch-3.js index e7f19e9a553baf2af1535356c71ed1d939f510bb..c7134e106087dd5688a03c000ebca739a869fd5b 100644 --- a/ets2panda/test/ast/parser/js/test-switch-3.js +++ b/ets2panda/test/ast/parser/js/test-switch-3.js @@ -18,4 +18,5 @@ switch (/* @@ label */) { } -/* @@@ label Error SyntaxError: Unexpected token ')'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-switch-4.js b/ets2panda/test/ast/parser/js/test-switch-4.js index 69f096163ee559dcdeda8be04b55aeadab479a74..aba7847df00168ae299457069de9e85ef8997fe6 100644 --- a/ets2panda/test/ast/parser/js/test-switch-4.js +++ b/ets2panda/test/ast/parser/js/test-switch-4.js @@ -20,5 +20,6 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-switch-5.js b/ets2panda/test/ast/parser/js/test-switch-5.js index 97f728907ce7d16a43536f772de38f8332b9a699..743ffb75efd16bc3450e7a38baa1930397e8da62 100644 --- a/ets2panda/test/ast/parser/js/test-switch-5.js +++ b/ets2panda/test/ast/parser/js/test-switch-5.js @@ -19,4 +19,5 @@ switch (alma) { /* @@ label */default: } -/* @@@ label Error SyntaxError: Multiple default clauses. */ + +/* @@@ label Error Syntax error ESY0171: Multiple default clauses. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-switch-6.js b/ets2panda/test/ast/parser/js/test-switch-6.js index 0d312b32b4a1a00199ae59a9850e0ad889013687..5617698c97ef7fb055d605e47190bcf006d4d857 100644 --- a/ets2panda/test/ast/parser/js/test-switch-6.js +++ b/ets2panda/test/ast/parser/js/test-switch-6.js @@ -17,4 +17,5 @@ switch (a) { case 1: AnimationPlaybackEvent() /* @@ label */case 2: } -/* @@@ label Error SyntaxError: Unexpected token 'case'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'case'. */ \ No newline at end of file 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..e6cf5ac4ff7a877dd745873ec3aea02d1b079e0b 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,10 @@ * 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 '`'. */ + ` +/* @@? 18:1 Error Syntax error ESY0228: Unexpected token, expected '`'. */ +/* @@? 18:2 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 18:2 Error Syntax error ESY0259: Unexpected token, expected '${' or '`' */ +/* @@? 18:2 Error Syntax error ESY0228: Unexpected token, expected '`'. */'. */ \ No newline at end of file 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..78591bd03dec86bd4ad5daa57ea4905e0de2c783 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,5 @@ fa`${/* @@ label */}` -/* @@@ label Error SyntaxError: Unexpected token '}'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file 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..3cb25407fcb522a5de6d9c3b5874b11fe0b308ef 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,5 @@ throw /* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token ';'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token ';'. */ \ No newline at end of file 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..e749eee90be161481bcfcd00051ed7a30821d925 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,5 @@ finally } -/* @@@ label Error SyntaxError: Variable 'e' has already been declared. */ + +/* @@@ label Error Syntax error ESY0000: Variable 'e' has already been declared. */ \ No newline at end of file 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..a3ff3240deec74bb04400436f650969bf474725f 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,5 @@ try { } -/* @@@ label Error SyntaxError: Missing catch or finally clause. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 20:91 Error Syntax error ESY0169: Missing catch or finally clause. */ \ No newline at end of file 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..59ee5ef681777a572486cddec4d8333fcfe95327 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,5 @@ var a = 078; -/* @@? 19:9 Error SyntaxError: Implicit octal literal not allowed. */ + +/* @@? 19:9 Error Syntax error ESY0257: Implicit octal literal not allowed. */ \ No newline at end of file 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..00052703f29c4608b453cfdfeec730f19f1c34d6 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,6 @@ /* @@ 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 '{'. */ \ No newline at end of file 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..0e586965e8491c95d8662054270b803cfe80a625 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,9 @@ 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 + +/* @@ label2 *//* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@@ label1 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label1 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file 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..2d9c8efee4f0bb225c7ba25ea6453aec4a1d002a 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,6 @@ 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 + +/* @@ label1 *//* @@@ label Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 21:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file 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..953ee65ba2ff8fd1ed43aebe15e308b3a83a45ea 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,6 @@ 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 ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test_yield.js b/ets2panda/test/ast/parser/js/test_yield.js index 172fafb5afd8b49d2da7514d6036513caec5dcc3..e5fe8501052a192dc0febe8ef6e7025437db503e 100644 --- a/ets2panda/test/ast/parser/js/test_yield.js +++ b/ets2panda/test/ast/parser/js/test_yield.js @@ -15,4 +15,5 @@ function* g(x = yield) {} -/* @@? 16:17 Error SyntaxError: Yield is not allowed in generator parameters. */ + +/* @@? 16:17 Error Syntax error ESY0054: Yield is not allowed in generator parameters. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/this-expression.js b/ets2panda/test/ast/parser/js/this-expression.js index 884e65196010ee62a126622aa5a4316a560c97f8..b81c42df4b2753e909defe6f29e4c237f06b5dad 100644 --- a/ets2panda/test/ast/parser/js/this-expression.js +++ b/ets2panda/test/ast/parser/js/this-expression.js @@ -16,5 +16,6 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/trailing_comma_1.js b/ets2panda/test/ast/parser/js/trailing_comma_1.js index 888adab493601c9471360105aa3d3436714c22e4..012c15638c39cd932fa9088b09fc29ba00125c75 100644 --- a/ets2panda/test/ast/parser/js/trailing_comma_1.js +++ b/ets2panda/test/ast/parser/js/trailing_comma_1.js @@ -36,15 +36,15 @@ 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 + +/* @@ label9 *//* @@@ label Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@@ label2 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@@ label5 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@@ label6 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@@ label6 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@@ label7 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label8 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 50:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/trailing_comma_2.js b/ets2panda/test/ast/parser/js/trailing_comma_2.js index fa3316363bea3530701714caadb5cc792c35f870..ff50cc3f71bd2bf10d927501ee2285650b67586c 100644 --- a/ets2panda/test/ast/parser/js/trailing_comma_2.js +++ b/ets2panda/test/ast/parser/js/trailing_comma_2.js @@ -19,4 +19,5 @@ class C { let a = new C(12,) -/* @@@ label1 Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_1.js b/ets2panda/test/ast/parser/js/unexpected_token_1.js index d0132c02e2f3c3c0b9166bf21e30e3f79a3fd79d..8ca8977d5aaa5c60aea3fbf592b9ea8e7b386cb4 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_1.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_1.js @@ -16,6 +16,6 @@ class A /* @@ label */} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ -/* @@@ label1 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label1 */ \ No newline at end of file + +/* @@ label1 *//* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 21:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_10.js b/ets2panda/test/ast/parser/js/unexpected_token_10.js index 753eb9b61211c7f84ebb142dac38d0b507be2882..83c8f06852207b02e5ccde7fea60efca5fd24ea3 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_10.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_10.js @@ -22,8 +22,5 @@ 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 ESY0228: Unexpected token, expected ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_2.js b/ets2panda/test/ast/parser/js/unexpected_token_2.js index dc3a13f5b5ae0dacb41f029f635017ebbb43ca03..1f2e7605256c69bed331a81ac55d0cc5efaa858c 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_2.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_2.js @@ -15,4 +15,5 @@ !(!(((a || b))); -/* @@? 16:16 Error SyntaxError: Expected ')', got ';'. */ + +/* @@? 16:16 Error Syntax error ESY0230: Expected ')', got ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_3.js b/ets2panda/test/ast/parser/js/unexpected_token_3.js index 59018135dcb77861fbb7669e441e84e065eefad4..a9dc4d2fd0d9559af2ae8e75388e9b9c4248bd1c 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_3.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_3.js @@ -15,11 +15,10 @@ (...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 ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:6 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:12 Error Syntax error ESY0260: Unterminated RegExp. */ +/* @@? 16:18 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:18 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_4.js b/ets2panda/test/ast/parser/js/unexpected_token_4.js index d2c8f1b4b7fa500391b6fb850ceff7c215851259..4a8c07fe34b2a4cd95f980e77bd5001728fc3ebe 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_4.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_4.js @@ -17,4 +17,5 @@ /* @@? 1:1 Node { "type": "Program" } */ -/* @@? 16:7 Error SyntaxError: Unexpected token, expected '=>'. */ + +/* @@? 16:7 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_5.js b/ets2panda/test/ast/parser/js/unexpected_token_5.js index 277e2391b1e824f4f09f60753c6699a33712387a..fd89fad6e9533579cf9d4706a3e44512c36fb03e 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_5.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_5.js @@ -15,7 +15,8 @@ ()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 ESY0228: Unexpected token, expected '=>'. */ +/* @@? 16:5 Error Syntax error ESY0260: Unterminated RegExp. */ +/* @@? 16:11 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:11 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_6.js b/ets2panda/test/ast/parser/js/unexpected_token_6.js index add8ae031a6d194e2224b739e20cbb9228a0925b..4154f1bf1f759e885cba470950de4e31b8251cba 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_6.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_6.js @@ -15,8 +15,5 @@ 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 ESY0228: Unexpected token, expected '=>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_7.js b/ets2panda/test/ast/parser/js/unexpected_token_7.js index 670d0eb8b9b57762fef071953e0c7ce43b23629a..22dc65c928a292632e0094276e111b7fcea8a0a9 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_7.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_7.js @@ -18,8 +18,9 @@ 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:6 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:12 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:11 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 26:79 Error Syntax error ESY0154: Private field has already been declared. */ +/* @@? 26:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_8.js b/ets2panda/test/ast/parser/js/unexpected_token_8.js index d60a277cb841477f050726bf88bfc40733f9ef0a..8133dc52acfb88529d9451e8206dc5dbe36d7293 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_8.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_8.js @@ -18,7 +18,8 @@ class B { } -/* @@? 17:17 Error SyntaxError: Unexpected token, expected ';'. */ + /* @@? 1:1 Node { "type": "Program" } */ +/* @@? 17:17 Error Syntax error ESY0228: Unexpected token, expected ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/InvalidExpressions.ts b/ets2panda/test/ast/parser/ts/InvalidExpressions.ts index a833ab8f087723666ccba472b881ec1d5e693813..af41366ba3747e0361477a69e09a5eb32c7b4b77 100644 --- a/ets2panda/test/ast/parser/ts/InvalidExpressions.ts +++ b/ets2panda/test/ast/parser/ts/InvalidExpressions.ts @@ -30,27 +30,23 @@ 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 ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/InvalidLexer.ts b/ets2panda/test/ast/parser/ts/InvalidLexer.ts index f3c25a0f3be939ca859c0f2235f2306f036cdf7b..7002635c7740517c307f724fe35ef0053bf0e28d 100644 --- a/ets2panda/test/ast/parser/ts/InvalidLexer.ts +++ b/ets2panda/test/ast/parser/ts/InvalidLexer.ts @@ -26,15 +26,16 @@ funct\u{0069}on `string ${expr -/* @@? 16:7 Error SyntaxError: Invalid RegExp flag */ -/* @@? 16:7 Error SyntaxError: Unexpected token: 'identification literal'. */ -/* @@? 18:8 Error SyntaxError: Invalid RegExp flag */ -/* @@? 20:5 Error SyntaxError: Unterminated RegExp */ -/* @@? 20:5 Error SyntaxError: Expected an identifier */ -/* @@? 20:5 Error SyntaxError: Unexpected token: 'identification literal'. */ -/* @@? 22:1 Error SyntaxError: Unexpected strict mode reserved keyword */ -/* @@? 24:1 Error SyntaxError: Escape sequences are not allowed in keywords */ -/* @@? 40:66 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@? 40:66 Error SyntaxError: Unterminated string */ -/* @@? 40:66 Error SyntaxError: Unexpected token, expected '${' or '`' */ -/* @@? 40:66 Error SyntaxError: Unexpected token, expected '`' */ + +/* @@? 16:2 Error Syntax error ESY0246: Invalid RegExp flag. */ +/* @@? 16:7 Error Syntax error ESY0227: Unexpected token 'ar'. */ +/* @@? 18:2 Error Syntax error ESY0246: Invalid RegExp flag. */ +/* @@? 20:2 Error Syntax error ESY0260: Unterminated RegExp. */ +/* @@? 20:5 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 20:5 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 22:1 Error Syntax error ESY0264: Unexpected strict mode reserved keyword. */ +/* @@? 24:1 Error Syntax error ESY0271: Escape sequences are not allowed in keyword. */ +/* @@? 40:83 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ +/* @@? 40:83 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 40:83 Error Syntax error ESY0259: Unexpected token, expected '${' or '`' */ +/* @@? 40:83 Error Syntax error ESY0228: Unexpected token, expected '`'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts b/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts index b334b4420c6381b071c550e72f72651e7c196159..7cfbf6a709ef5eabcee5d9ebb6d69d0f5b3a7c38 100644 --- a/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts +++ b/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts @@ -29,5 +29,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/InvalidStatements.ts b/ets2panda/test/ast/parser/ts/InvalidStatements.ts index 77b3f7d2edb80ad59003a86ca5ecd2f498a887fd..299a1339fb808d814b3c6fa264dfd202cf4ba9d4 100644 --- a/ets2panda/test/ast/parser/ts/InvalidStatements.ts +++ b/ets2panda/test/ast/parser/ts/InvalidStatements.ts @@ -110,55 +110,14 @@ 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. */ \ No newline at end of file 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..609760dc726a8ee741d2cd9e54ce8516cd0e0ed8 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,14 @@ 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'. */ +/* @@? 32:77 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ +/* @@? 32:77 Error Syntax error ESY0169: Missing catch or finally clause. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-as-expression.ts b/ets2panda/test/ast/parser/ts/test-as-expression.ts index 56b3171f4909a54e9bd36589bb617defd038b1e6..c5c397099d90524b888e72e2896e0f55208c45fd 100644 --- a/ets2panda/test/ast/parser/ts/test-as-expression.ts +++ b/ets2panda/test/ast/parser/ts/test-as-expression.ts @@ -15,4 +15,5 @@ var a = 5 as/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor1.ts b/ets2panda/test/ast/parser/ts/test-class-constructor1.ts index 1ccc5e93c322b9b059663a0dc69c60ff1ab244bd..d1b613930228a08796eb7456eaae8952d36a799a 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor1.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor1.ts @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor2.ts b/ets2panda/test/ast/parser/ts/test-class-constructor2.ts index d189cf44caf3742378c6a8532a45e3730c6d23f9..daf8089b0a1e55c7bbab259ef119e573986472db 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor2.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor2.ts @@ -20,5 +20,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor3.ts b/ets2panda/test/ast/parser/ts/test-class-constructor3.ts index ea2c133598778eb5c50f353318a03c8595a11886..cb9a8030cbfaea8d8fc4ffe675e94755154292f3 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor3.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor3.ts @@ -17,5 +17,6 @@ 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 '('. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor5.ts b/ets2panda/test/ast/parser/ts/test-class-constructor5.ts index bbab046f313602cd08d8482e5ec351437850c08d..c2cb4829b9120304af99ed554266e9e3512482fc 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor5.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor5.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton1.ts b/ets2panda/test/ast/parser/ts/test-class-definiton1.ts index c214c788a6370be0a8a049e314969aedeac7968e..b9d52306887ed1fa07559a56c0dc69289b45c7e6 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton1.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton1.ts @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton10.ts b/ets2panda/test/ast/parser/ts/test-class-definiton10.ts index fdec1479394b891d431eb85414d53d9b8f2b96ae..c387eb377961221277ad6f017b8d4ebd9f6a422f 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton10.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton10.ts @@ -18,4 +18,5 @@ 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 ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton11.ts b/ets2panda/test/ast/parser/ts/test-class-definiton11.ts index f33123bc3c68ac1b99cd31646d2cce7467098aed..d7b2cb73a0ca9c421aab94a2326d29cacca2d402 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton11.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton11.ts @@ -18,6 +18,7 @@ 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 ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton12.ts b/ets2panda/test/ast/parser/ts/test-class-definiton12.ts index d041f867ef0b2994fc9e4896c7db749039dc945d..4c747f891706e6f14209d942801ff28be39aaa0f 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton12.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton12.ts @@ -18,6 +18,7 @@ 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 ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton13.ts b/ets2panda/test/ast/parser/ts/test-class-definiton13.ts index de5a5f1b3fd6809160893ed5226076d718d747c0..2aa046a3026368d069ae6a11c8850a188d1d4252 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton13.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton13.ts @@ -18,6 +18,7 @@ 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 ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton14.ts b/ets2panda/test/ast/parser/ts/test-class-definiton14.ts index 2c1ee6e93d43ef940cd218336177b94bb11e15a0..93dfa71ee4b3fbb1fdb06c6483713e957264c439 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton14.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton14.ts @@ -18,6 +18,7 @@ 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 ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton15.ts b/ets2panda/test/ast/parser/ts/test-class-definiton15.ts index c974e0fd1ce38d6b85bb2deb9d638e199c766a5a..83e48bdb14cb78d5c0aa5ea86d5f41948e421aaa 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton15.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton15.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton16.ts b/ets2panda/test/ast/parser/ts/test-class-definiton16.ts index 2d97cbc8dd7b9ffdff8241abf44274ae61e5f745..a54f6145d016fb3eb3b52df86e3342dfab744df0 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton16.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton16.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton17.ts b/ets2panda/test/ast/parser/ts/test-class-definiton17.ts index 8b97572a18eab27eeb21295b4bac8f90908ed713..992be7c25aac178d4ae7fed32d2af8e50ad3e632 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton17.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton17.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton2.ts b/ets2panda/test/ast/parser/ts/test-class-definiton2.ts index d7fc4cecac040f98c9c10e5fca6c3cadd54c7c46..5562fcbe14a0a2a2195aaf5fab6e1e1e26655275 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton2.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton2.ts @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton3.ts b/ets2panda/test/ast/parser/ts/test-class-definiton3.ts index 59a930fc943a830de41eaae1967740c8dea14246..7591dd84215dab8df957566cffcca79c6e40ffb8 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton3.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton3.ts @@ -18,5 +18,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton4.ts b/ets2panda/test/ast/parser/ts/test-class-definiton4.ts index aca44c435f2460c153049e52306e4321291bf5c7..c238b38e35c8597c9b1472a2b983d0cd9365ac2f 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton4.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton4.ts @@ -17,4 +17,5 @@ class Foo { *b/* @@ label */; } -/* @@@ label Error SyntaxError: Expected '(' */ + +/* @@@ label Error Syntax error ESY0000: Expected '(' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton5.ts b/ets2panda/test/ast/parser/ts/test-class-definiton5.ts index acace0fa02745fa84bb898c047382517c013c598..5309a1cb6f277056818389dd2267fd3385e9fff9 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton5.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton5.ts @@ -17,4 +17,5 @@ class Foo { readonly /* @@ label */static a = "foo"; } -/* @@@ label Error SyntaxError: Unexpected modifier. */ + +/* @@@ label Error Syntax error ESY0153: Unexpected modifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton6.ts b/ets2panda/test/ast/parser/ts/test-class-definiton6.ts index 21f5b66d8160a4ace1c8f42cb4862df1409127d5..562bc347172084b1db1d7ce401bdbb25a6f0db7c 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton6.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton6.ts @@ -18,4 +18,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton8.ts b/ets2panda/test/ast/parser/ts/test-class-definiton8.ts index 8472ae50ee4b03f5ff6ee9445d667a5531cf2ad5..142e0a486ffa8327e0ace9b51c32b44fba9f4e68 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton8.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton8.ts @@ -18,6 +18,7 @@ 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 ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton9.ts b/ets2panda/test/ast/parser/ts/test-class-definiton9.ts index f553f84e330320d30a492812ad1e805acf11615f..a06c0bb1e3f1faa9502665e78a9528a1cb88c2a3 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton9.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton9.ts @@ -18,4 +18,5 @@ class Foo { a /* @@ label */b; } -/* @@@ label Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts index bbe0b20f43d7d4a5d53bb250a3d39b3818a587bc..f961c3e777610f6ad3bebac283a83c5cdf83296c 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts @@ -19,4 +19,5 @@ enum Foo { B = "foo", } -/* @@@ label Error SyntaxError: Unexpected token in enum member. */ + +/* @@@ label Error Syntax error ESY0178: Unexpected token in enum member. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts index 65153bf5a9520e9c6e35ab8872649264e6e90e3a..41359a51fe55ce4375fc985c5b200b6a79fc1f1c 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts @@ -18,5 +18,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts index 6f12c1ed67eb9a90ce2bad6cde7d23c2e4ca9019..b234fd02ad13c7c2ae955f9f3bf0986c72130d2b 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts @@ -19,4 +19,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts index e3d003fd16a9da4b2948b4db9d12463841e2d175..b85d5d004aad5d904f15f1ef7978a6f972c34deb 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts @@ -20,4 +20,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-decl1.ts b/ets2panda/test/ast/parser/ts/test-func-decl1.ts index 3fcd175a9f2c99caaf8199bf778bfdf60d9baf86..ec206d56b05ab9e306a3d311a855a7246b2920fa 100644 --- a/ets2panda/test/ast/parser/ts/test-func-decl1.ts +++ b/ets2panda/test/ast/parser/ts/test-func-decl1.ts @@ -18,4 +18,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-param1.ts b/ets2panda/test/ast/parser/ts/test-func-param1.ts index f16a2aada4015b379c91778ddc177361d66297b7..c5c34c305b201469f926acfea145f1b098db0fe3 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param1.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param1.ts @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-param2.ts b/ets2panda/test/ast/parser/ts/test-func-param2.ts index 11b3e19601568366b5b5b8d8418f594274a42e2a..e11e7567c39c0b3e845c7c7ec789b806f174df74 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param2.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param2.ts @@ -18,4 +18,4 @@ function foo(a, this/* @@ label */) { } -/* @@@ label Error SyntaxError: A 'this' parameter must be the first parameter */ + diff --git a/ets2panda/test/ast/parser/ts/test-func-param3.ts b/ets2panda/test/ast/parser/ts/test-func-param3.ts index e90bfc07a9f5b47a0956ca47f0922cd6b6477997..d92cd24739a1e5f15fbca24e3a3a6bb786ba34d2 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param3.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param3.ts @@ -18,4 +18,4 @@ class A { constructor(this/* @@ label */) { } } -/* @@@ label Error SyntaxError: A constructor cannot have a 'this' 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..d2b5c43dba8aa4850d456167e51bc3fd541c24cd 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param4.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param4.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-param5.ts b/ets2panda/test/ast/parser/ts/test-func-param5.ts index 62eb41dd805eae608a0e74a82abf5e37d38ca35a..14e7865074e8316186f40454ab8ad87bf19f7176 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param5.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param5.ts @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-param6.ts b/ets2panda/test/ast/parser/ts/test-func-param6.ts index 7f86b48c4b3705a218cf339bb6def540490825bc..cf24a54eb75084113c727923037188e98774cf64 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param6.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param6.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-param7.ts b/ets2panda/test/ast/parser/ts/test-func-param7.ts index 6c399c9c5ec675869aa17fb3d3a877158142886d..1804aefcd8d74ebc2e02454bb30a2c4ef19f3920 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param7.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param7.ts @@ -15,4 +15,5 @@ function foo(...a/* @@ label */?) { } -/* @@@ label Error SyntaxError: A rest parameter cannot be optional */ + +/* @@@ label Error Syntax error ESY0000: A rest parameter cannot be optional */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-param8.ts b/ets2panda/test/ast/parser/ts/test-func-param8.ts index 199bf613aa038cbb5eaae130d094c220618c0384..7c199bb386b86e24d154cebe1a71de344caaba38 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param8.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param8.ts @@ -15,4 +15,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-interface2.ts b/ets2panda/test/ast/parser/ts/test-interface2.ts index 9e3c4b26f6c39782c30d55d4bed86f79ddad8026..f2a9bf24c2467f03ca3830969a449660da0305ef 100644 --- a/ets2panda/test/ast/parser/ts/test-interface2.ts +++ b/ets2panda/test/ast/parser/ts/test-interface2.ts @@ -15,5 +15,6 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-interface3.ts b/ets2panda/test/ast/parser/ts/test-interface3.ts index d1b5c8ff3cb4e75e8caf0f32991f027ed0f75f68..023e2b403a9ae86003f2ccaba1db223b78feb6a3 100644 --- a/ets2panda/test/ast/parser/ts/test-interface3.ts +++ b/ets2panda/test/ast/parser/ts/test-interface3.ts @@ -18,6 +18,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-intersection1.ts b/ets2panda/test/ast/parser/ts/test-intersection1.ts index 5f7a74d2ee1ec5c31bd1f285adfc7e32b76d201b..81bd0255c0a72684255562e8f0923208e8816210 100644 --- a/ets2panda/test/ast/parser/ts/test-intersection1.ts +++ b/ets2panda/test/ast/parser/ts/test-intersection1.ts @@ -15,4 +15,5 @@ var a: & /* @@ label */| string; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-intersection2.ts b/ets2panda/test/ast/parser/ts/test-intersection2.ts index 21c9d47287ca2c1c598949dca0e82e97f0d71f19..8b62c4be2f5adcbbe7d6781f2ea9d0a4fc5fe1ff 100644 --- a/ets2panda/test/ast/parser/ts/test-intersection2.ts +++ b/ets2panda/test/ast/parser/ts/test-intersection2.ts @@ -15,4 +15,5 @@ var a: & & string; -/* @@? 17:10 Error SyntaxError: Type expected */ + +/* @@? 17:10 Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-intersection3.ts b/ets2panda/test/ast/parser/ts/test-intersection3.ts index 10336782821bffc248562cbfc6a858e05a4560ee..73783bf131f0272085c24b5089c6db2fa11a1f0b 100644 --- a/ets2panda/test/ast/parser/ts/test-intersection3.ts +++ b/ets2panda/test/ast/parser/ts/test-intersection3.ts @@ -15,4 +15,5 @@ var a: string &/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts index 6640a316670f0087a177ad25bc1116e4b12f5b12..e95eb632da018366f4e4c0fc0d0446eee6d353c7 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts index 13ae8554e52028bb1529dcec03dd9a628a11906e..e05f44b62f68a22c10118777bc95d6dc8f390d30 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts index b535684a38b7317f642f4ba690fcc4c8dcdb6839..8a7d4cf8d5349b8f401e5bda300830ca8f730115 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts index 410a1c868d07e8c6257c42ea00f7455dfbd7cec5..284de280d91f315a8048c20e3da3ef8155cff716 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts index 42a17db689297fff86dcdaada39aaee11baf4043..ad7fd28a10fe078f1cfa964aa5d3ddd3655adf67 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts index 5d5853b366486156f65f63935291f8eb45d72c87..64ec7ece7b9d36087725efb63186319ae1bf28ad 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts index 67ef724d0daf128ba0fc276e7c60f51604bf3144..eb30bf609822105fad7869694462caf3776e8813 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts @@ -15,4 +15,5 @@ declare /* @@ label */a = 5; -/* @@@ label Error SyntaxError: Unexpected token 'a'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'a'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts index 0afef8fac7321b16b6e0137d50463c15a0e507cb..448a3c0a9c42c0209158259cd96f07936106b7fb 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts index 6948187728ca194a3c55197db86a063a70c4ad40..aab51eb8d074a751b9b529ae5f6cd03b64f5360c 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts index 531c13878bc37bc39f5436409a37439d0e7fe7e5..6fb176542e1443c50fb734603949aa2f5c3b66c5 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-member-expression1.ts b/ets2panda/test/ast/parser/ts/test-member-expression1.ts index 5d8d1a5857ae789f272bc30e9a2675f728158ad1..be4bfbf88c38bfae4d3b6c78a92f9b0b1b8afba9 100644 --- a/ets2panda/test/ast/parser/ts/test-member-expression1.ts +++ b/ets2panda/test/ast/parser/ts/test-member-expression1.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-member-expression2.ts b/ets2panda/test/ast/parser/ts/test-member-expression2.ts index afd65877fe129867093f082e311f1a3a18d08428..c6c6725df7226263c816dd14fb6068fd7917afa4 100644 --- a/ets2panda/test/ast/parser/ts/test-member-expression2.ts +++ b/ets2panda/test/ast/parser/ts/test-member-expression2.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file 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..8d253bddd0dd7fa394234adffe8cc1d036cdab3d 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,5 @@ type Foo = string extends number /* @@ label */extends string ?number: string; -/* @@@ label Error SyntaxError: '?' expected. */ + +/* @@@ label Error Syntax error ESY0000: '?' expected. */ \ No newline at end of file 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..bf8c7b034191ed01f879aea12dde5c25a185faa0 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,5 @@ type Foo = string extends number ? number extends /* @@ label */: string; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file 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..fcd573e4f37ebb93f402cecd9fe5f6cd245db8fc 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,5 @@ type Foo = string extends number ? number /* @@ label */string : string; -/* @@@ label Error SyntaxError: ':' expected. */ + +/* @@@ label Error Syntax error ESY0000: ':' expected. */ \ No newline at end of file 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..0add84c2b25cb3fa473c405eb4619ca50fe41f07 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,5 @@ type Foo = string extends number ? number : string extends/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file 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..4de68f9d19dcd00980edab8e750f1cd16848a949 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,5 @@ 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. */ \ No newline at end of file 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..c19c0f4a47c5c84078bade9b0a663a75737a7128 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,5 @@ 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. */ \ No newline at end of file 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..1f1101938235b9000732feddff1afb70b88196a5 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,5 @@ 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. */ \ No newline at end of file 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..a12aa99356975935fb26c01e7aa1630685e7c3ce 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,5 @@ var ctor: new (a: number, b: string)/* @@ label */; -/* @@@ label Error SyntaxError: '=>' expected */ + +/* @@@ label Error Syntax error ESY0000: '=>' expected */ \ No newline at end of file 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..d7370196ee2ac1472d366bd1173ed3b6b364ab9d 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,5 @@ var ctor: abstract new (a: number, b: string)/* @@ label */; -/* @@@ label Error SyntaxError: '=>' expected */ + +/* @@@ label Error Syntax error ESY0000: '=>' expected */ \ No newline at end of file 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..f37c602c71944ac490bdb46bc9465bc089557760 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,5 @@ var ctor1: new /* @@ label */abstract (a: number, b: string) => number; -/* @@@ label Error SyntaxError: '(' expected */ + +/* @@@ label Error Syntax error ESY0000: '(' expected */ \ No newline at end of file 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..d08be540e3417a4923ab342df01587f71073d885 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,5 @@ var ctor1: abstract /* @@ label */(a: number, b: string) => number; -/* @@@ label Error SyntaxError: Unexpected token '('. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '('. */ \ No newline at end of file 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..bf4c6a27f65de282a79082d0709b5ee67f0b738e 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,5 @@ 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 */ \ No newline at end of file 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..9b8d83f2bc53c675eb39d4a738e5178d978eb4cd 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,5 @@ 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 */ \ No newline at end of file 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..fea42263b6dbbc3e4e6ec2c091c38cfd7822667f 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,5 @@ type Foo = { readonly [prop /* @@ label */keyof T] }; -/* @@@ label Error SyntaxError: Unexpected token, expected ']' */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token, expected ']' */ \ No newline at end of file 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..d26453c3b7f6937c088dc4ff85d7c4c36696addc 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,5 @@ type Foo = { readonly [prop in keyof T /* @@ label */+] }; -/* @@@ label Error SyntaxError: ']' expected */ + +/* @@@ label Error Syntax error ESY0000: ']' expected */ \ No newline at end of file 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..1a66dcaa8dda003f258cc550d6aa4d8a12e8f56d 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,5 @@ type Foo = { readonly [prop in keyof T]+/* @@ label */-? }; -/* @@@ label Error SyntaxError: '?' expected. */ + +/* @@@ label Error Syntax error ESY0000: '?' expected. */ \ No newline at end of file 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..75067cca125cdc2ad42899fddcaecdd9caf185ad 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,5 @@ type Foo = { readonly [prop in keyof T]/* @@ label */3 }; -/* @@@ label Error SyntaxError: ';' expected */ + +/* @@@ label Error Syntax error ESY0000: ';' expected */ \ No newline at end of file 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..3599a8cd6d74e4c2b7bca214554cd77cfecf5ef6 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,5 @@ type Foo = { readonly [prop in keyof T];/* @@ label */3 }; -/* @@@ label Error SyntaxError: '}' expected */ + +/* @@@ label Error Syntax error ESY0000: '}' expected */ \ No newline at end of file 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..77680be6ede852a95cb387f7e1fe1559763a4ae4 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,5 @@ 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. */ \ No newline at end of file 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..687b69bd8fba20a9c5bf16287c5a1a2cf1eadaec 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,5 @@ 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. */ \ No newline at end of file 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..462fc17438f17126f1f0455afa9d444f16961b2f 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,5 @@ 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. */ \ No newline at end of file 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..48d79fdd9599afc7b4e621e35ebf3d71ea04b3eb 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,5 @@ 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. */ \ No newline at end of file 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..5af8e64f680cddc8e2d5fc70093d61fbd71213d2 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,5 @@ 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. */ \ No newline at end of file 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..4c54d1cd455d27fdccb92bd00eee896207348299 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,6 @@ 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. */ \ No newline at end of file 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..c760186a62364d439710a45174c37c0e0082e400 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,5 @@ 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. */ \ No newline at end of file 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..d3ba98d114d389606321bf4a36dc688f1917d2c3 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,5 @@ 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. */ \ No newline at end of file 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..03bb383d472d710da887dc9115c34c4790692f3c 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,5 @@ 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. */ \ No newline at end of file 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..4ae0157c1baee891b84076beca41caa8c277f163 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,5 @@ 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. */ \ No newline at end of file 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..41be9df91af5d14656c65dfccdba522bd0b9b723 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,5 @@ 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. */ \ No newline at end of file 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..d3f2b5bb8fef863676f3492dd6264b1809069af6 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,5 @@ 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. */ \ No newline at end of file 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..7c6efc21d4a2279eb73123b95325cd108f3be535 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,5 @@ var var1: (is: number | string) => asserts is/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file 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..cbe0aba28883e463b14669c6eb5f56dd44100fcd 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,6 @@ 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. */ \ No newline at end of file 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..7ce338850da917beb3be517c3a5980658c58da89 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,5 @@ var var1: (is: number | string) => asserts is is /* @@ label */number; -/* @@@ label Error SyntaxError: Unexpected token 'number'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'number'. */ \ No newline at end of file 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..852db4626c32c9c1b7448accdbf82e4d72f37240 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,6 @@ 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. */ \ No newline at end of file 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..633c7050dfe312f8da5e23e9d8fa7334272bc9a5 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,5 @@ var var1: (is: number | string) => asserts /* @@ label */(number | string); -/* @@@ label Error SyntaxError: Unexpected token '('. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '('. */ \ No newline at end of file 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..d6499d75a716f1d89fef8e9de8d20070035ff42b 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,7 @@ 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. */ \ No newline at end of file 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..04adf8cc8e4b79f8622b5b53ba67821a1d757f9a 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,6 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type1.ts b/ets2panda/test/ast/parser/ts/test-tuple-type1.ts index 65623f6e6f8b80aff515d9b59e388e6e6ceb20cc..19fd4cf23252f0c5ac995432811275b8eee65903 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type1.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type1.ts @@ -15,4 +15,5 @@ var a: [a: number /* @@ label */string] -/* @@@ label Error SyntaxError: ',' expected. */ + +/* @@@ label Error Syntax error ESY0000: ',' expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type2.ts b/ets2panda/test/ast/parser/ts/test-tuple-type2.ts index a35f7497449c0a629fdb865ce0aafe3c871e6b0b..e6faf2631d1b83e0f6ccb6033b67f8e088df98c4 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type2.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type2.ts @@ -15,4 +15,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type3.ts b/ets2panda/test/ast/parser/ts/test-tuple-type3.ts index 50d373ad4345c7dd375c79d1d3b89edb9dc30ec7..8f6464eec1b10e861be969c8e64e3062b29b06ef 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type3.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type3.ts @@ -15,4 +15,5 @@ var a: [/* @@ label */?number] -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type4.ts b/ets2panda/test/ast/parser/ts/test-tuple-type4.ts index 96b803c26cbed50f3fb766da8672f421d5f3b84f..6f436d0187e7a0d70c9a13679f46b8f31e0846ee 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type4.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type4.ts @@ -15,4 +15,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-alias1.ts b/ets2panda/test/ast/parser/ts/test-type-alias1.ts index 56857f29567b4d579aba4995502f7f098c1ada30..3cfbc173f7cf26816bbe8077fb1981445f61ef0d 100644 --- a/ets2panda/test/ast/parser/ts/test-type-alias1.ts +++ b/ets2panda/test/ast/parser/ts/test-type-alias1.ts @@ -15,4 +15,5 @@ type /* @@ label */5 = number; -/* @@@ label Error SyntaxError: Identifier expected */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-alias2.ts b/ets2panda/test/ast/parser/ts/test-type-alias2.ts index 29a44170b2c3e83ee3f21f52530289d02cb893d3..fd610f218d19eeb26d8da3b8c737aad31dd91e79 100644 --- a/ets2panda/test/ast/parser/ts/test-type-alias2.ts +++ b/ets2panda/test/ast/parser/ts/test-type-alias2.ts @@ -15,4 +15,5 @@ type bar /* @@ label */number; -/* @@@ label Error SyntaxError: '=' expected */ + +/* @@@ label Error Syntax error ESY0000: '=' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-alias3.ts b/ets2panda/test/ast/parser/ts/test-type-alias3.ts index 58b78a4eda5978bd2a0fbb6f3934b6705eed3132..8f2bb2315420c2b1474f1ef4e482e71ceeb9a61e 100644 --- a/ets2panda/test/ast/parser/ts/test-type-alias3.ts +++ b/ets2panda/test/ast/parser/ts/test-type-alias3.ts @@ -15,4 +15,5 @@ type foo = /* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-literal1.ts b/ets2panda/test/ast/parser/ts/test-type-literal1.ts index b89c916aefafe34729dbc93754817f6705a33156..cd7e1dfd2b8c5273f13070cb15abdfff399c687a 100644 --- a/ets2panda/test/ast/parser/ts/test-type-literal1.ts +++ b/ets2panda/test/ast/parser/ts/test-type-literal1.ts @@ -15,4 +15,5 @@ var a: { [a /* @@ label */} -/* @@@ label Error SyntaxError: Unexpected token, expected ']' */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token, expected ']' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-literal2.ts b/ets2panda/test/ast/parser/ts/test-type-literal2.ts index c34c624295c9ef8dccd60416cb27019504a63a05..df169b587c6cc057c0cd146874fdc00d23c212ea 100644 --- a/ets2panda/test/ast/parser/ts/test-type-literal2.ts +++ b/ets2panda/test/ast/parser/ts/test-type-literal2.ts @@ -16,5 +16,6 @@ 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 ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-literal3.ts b/ets2panda/test/ast/parser/ts/test-type-literal3.ts index 67cb855452acf733015a9849d2befa32aaf76c73..da0845587da04fbbc3a6cf621bb186685d34a5d9 100644 --- a/ets2panda/test/ast/parser/ts/test-type-literal3.ts +++ b/ets2panda/test/ast/parser/ts/test-type-literal3.ts @@ -15,4 +15,5 @@ var a: { a /* @@ label */new ()} -/* @@@ label Error SyntaxError: Unexpected token, expected ','. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-query1.ts b/ets2panda/test/ast/parser/ts/test-type-query1.ts index 4c318a3be36eae1921439fe02735405082483e7b..24325b50bacfcd7a7f28fcafce600c7c3adcbd00 100644 --- a/ets2panda/test/ast/parser/ts/test-type-query1.ts +++ b/ets2panda/test/ast/parser/ts/test-type-query1.ts @@ -15,4 +15,5 @@ var a: typeof /* @@ label */5; -/* @@@ label Error SyntaxError: Identifier expected. */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-query2.ts b/ets2panda/test/ast/parser/ts/test-type-query2.ts index 0d818a460f7bfa8a7ccc49b9bfb9564ecc42cb09..1ebed45c154d84ee1d226c1fe70ad99756bfda08 100644 --- a/ets2panda/test/ast/parser/ts/test-type-query2.ts +++ b/ets2panda/test/ast/parser/ts/test-type-query2.ts @@ -15,5 +15,5 @@ var a: typeof -/* @@@ label Error SyntaxError: Identifier expected. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 19:79 Error Syntax error ESY0000: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_class_constructor.ts b/ets2panda/test/ast/parser/ts/test_class_constructor.ts index d525f7e84258e15e2e94906485ca65c87e3ae902..8dbdd8a2021de90308d48dfd4b45fcbef9c245d7 100644 --- a/ets2panda/test/ast/parser/ts/test_class_constructor.ts +++ b/ets2panda/test/ast/parser/ts/test_class_constructor.ts @@ -17,4 +17,5 @@ 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'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator1.ts b/ets2panda/test/ast/parser/ts/test_decorator1.ts index b9f36f8cb8f76e675db7726a7ca971c1bb1d95d4..db65aca8c0dc72c80315c4d6508169e3d96ac4a5 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator1.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator1.ts @@ -15,4 +15,5 @@ function foo(/* @@ label */@dec a) { }; -/* @@@ label Error SyntaxError: Decorators are not valid here */ + +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator2.ts b/ets2panda/test/ast/parser/ts/test_decorator2.ts index 529242eebedef5763c45f754348428fa4ebfee15..7c76191d9ae651a46d0a44cd43d2e488eea11138 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator2.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator2.ts @@ -18,4 +18,5 @@ class Foo { } -/* @@@ label Error SyntaxError: Decorators are not valid here */ + +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator4.ts b/ets2panda/test/ast/parser/ts/test_decorator4.ts index 8f9f96b6bd058e4fba2b6029d1bdb028346d87e5..3b1af4c220a0a9d66023b853c05a287f77d66d07 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator4.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator4.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator5.ts b/ets2panda/test/ast/parser/ts/test_decorator5.ts index c03cf07a957179d307f774d68e8d396f74676125..00bdf5f34224fbe3e6b85f3fd0b0c2f0a06892e4 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator5.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator5.ts @@ -17,4 +17,5 @@ class Foo { /* @@ label */@dec constructor() { }; } -/* @@@ label Error SyntaxError: Decorators are not valid here. */ + +/* @@@ label Error Syntax error ESY0183: Decorators are not valid here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator6.ts b/ets2panda/test/ast/parser/ts/test_decorator6.ts index 05ca31aae07fcf782b374951a9becf3cd0c16406..48dc445b688a026d5c7a126bf35161ea3c4e7231 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator6.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator6.ts @@ -18,5 +18,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator7.ts b/ets2panda/test/ast/parser/ts/test_decorator7.ts index 46fab91f86f529a44b8f81100946b28c86c52b80..f783f22d7642d15e866c5eac56f43362f20fb220 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator7.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator7.ts @@ -17,4 +17,5 @@ /* @@ label */@bar export default function foo() { } -/* @@@ label Error SyntaxError: Decorators are not valid here */ + +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator8.ts b/ets2panda/test/ast/parser/ts/test_decorator8.ts index 5b8940b432ec0f30416ad18bac60894872a2abb9..42d294809981192d5c7571d864b65d6ba95130ee 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator8.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator8.ts @@ -17,4 +17,5 @@ /* @@ label */@bar export function foo() { } -/* @@@ label Error SyntaxError: Decorators are not valid here */ + +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_generators.ts b/ets2panda/test/ast/parser/ts/test_generators.ts index 06fe8230f5b9bdb489e9c2b7332c53a712fe9ab9..18c15c6757c80d042a8d08918e6e37199e9ae08e 100644 --- a/ets2panda/test/ast/parser/ts/test_generators.ts +++ b/ets2panda/test/ast/parser/ts/test_generators.ts @@ -18,5 +18,6 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_insufficient_param.ts b/ets2panda/test/ast/parser/ts/test_insufficient_param.ts index 41ee6d26764c4c0129680f1c94a836e7d79bcae7..c88c32b9fd8302df7c082062900fbd45e81bdb7b 100644 --- a/ets2panda/test/ast/parser/ts/test_insufficient_param.ts +++ b/ets2panda/test/ast/parser/ts/test_insufficient_param.ts @@ -15,4 +15,5 @@ async (()=> {}, a) /* @@ label */=> expression; -/* @@@ label Error SyntaxError: Insufficient formal parameter in arrow function. */ + +/* @@@ label Error Syntax error ESY0064: Insufficient formal parameter in arrow function. */ \ No newline at end of file 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..288ab5139cc07f665b8395dfad03f71edd5faa3e 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,5 @@ ({ 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. */ \ No newline at end of file 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..7c0dd24d11a32ab34622f7d601b2d461d8a2a6ff 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,5 @@ 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. */ \ No newline at end of file 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..d91fa90f9764b361313e13eb413fd544ca5e19c1 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_module1.ts b/ets2panda/test/ast/parser/ts/test_module1.ts index 7d5b5e89bd0d93137525b5fefe5d31072b0b33ab..b3d5c12a4e1b04e3d83f09d8b8e5fcc0e7113428 100644 --- a/ets2panda/test/ast/parser/ts/test_module1.ts +++ b/ets2panda/test/ast/parser/ts/test_module1.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_module2.ts b/ets2panda/test/ast/parser/ts/test_module2.ts index 84c40c4ac39a01e122dcabc3810c325bddcf571c..01d9c4504b1e535962b0b4830ef31242dafa22bf 100644 --- a/ets2panda/test/ast/parser/ts/test_module2.ts +++ b/ets2panda/test/ast/parser/ts/test_module2.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_module3.ts b/ets2panda/test/ast/parser/ts/test_module3.ts index 3860d86a142e7f5eb2b6b5753c6e150490f0114a..a89bd4b47663dfb6bdd4720d64c218f3d95b244b 100644 --- a/ets2panda/test/ast/parser/ts/test_module3.ts +++ b/ets2panda/test/ast/parser/ts/test_module3.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_module4.ts b/ets2panda/test/ast/parser/ts/test_module4.ts index 18bb7931806a0126547a5290b35f67b42447d7c5..989d7b2189e38b165cde4a39ff77fbac3cb2b7ee 100644 --- a/ets2panda/test/ast/parser/ts/test_module4.ts +++ b/ets2panda/test/ast/parser/ts/test_module4.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_module5.ts b/ets2panda/test/ast/parser/ts/test_module5.ts index 7356e6b1477496735b70b4094b1df37b2abc4425..095e9fd37ecd6aaa828199ece02f65f461b3f41c 100644 --- a/ets2panda/test/ast/parser/ts/test_module5.ts +++ b/ets2panda/test/ast/parser/ts/test_module5.ts @@ -17,4 +17,5 @@ declare module "foo" { import a = require(/* @@ label */bar); } -/* @@@ label Error SyntaxError: String literal expected. */ + +/* @@@ label Error Syntax error ESY0000: String literal expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_module6.ts b/ets2panda/test/ast/parser/ts/test_module6.ts index 7c30c6bf5e6aef39a20fef5a6af8940e4583da86..fa8a817b7a3de6dd7da29f398db6ecab6156e94e 100644 --- a/ets2panda/test/ast/parser/ts/test_module6.ts +++ b/ets2panda/test/ast/parser/ts/test_module6.ts @@ -17,4 +17,5 @@ declare module "foo" { import a = require("bar"/* @@ label */[0]); } -/* @@@ label Error SyntaxError: ')' expected. */ + +/* @@@ label Error Syntax error ESY0000: ')' expected. */ \ No newline at end of file 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..0d032ff3e83178b043d0f78ffa2de953f8f87ad2 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,5 @@ */ 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. */ \ No newline at end of file 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..25c5893fec50c0ccfb4cd96b9a203947bce87334 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,5 @@ 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 */ \ No newline at end of file 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..cb9570fdd07340c19b64cf0db011f5809817c933 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,5 @@ 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. */ \ No newline at end of file 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..7a6f4384eca41bde2c17fa26dbce747d4e327a54 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,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_this_type1.ts b/ets2panda/test/ast/parser/ts/test_this_type1.ts index be642e88bc64efe83895f90a13e201f0203cbbf1..83c00d738e220295cda8c4c1a0431304aca62d01 100644 --- a/ets2panda/test/ast/parser/ts/test_this_type1.ts +++ b/ets2panda/test/ast/parser/ts/test_this_type1.ts @@ -15,4 +15,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_this_type2.ts b/ets2panda/test/ast/parser/ts/test_this_type2.ts index 723834f27818aed694e27852c3dec88fe68ab31f..366b36dd639e90c066e62239a3ec193534166cd3 100644 --- a/ets2panda/test/ast/parser/ts/test_this_type2.ts +++ b/ets2panda/test/ast/parser/ts/test_this_type2.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_unexpected_token.ts b/ets2panda/test/ast/parser/ts/test_unexpected_token.ts index a611c1c8f5432cbe5e0d6bbe5115995ff099528a..056cc50c3d525ab40f27463e15b1ec6739a520af 100644 --- a/ets2panda/test/ast/parser/ts/test_unexpected_token.ts +++ b/ets2panda/test/ast/parser/ts/test_unexpected_token.ts @@ -17,4 +17,5 @@ const obj = { /* @@ label */+: 1 }; -/* @@@ label Error SyntaxError: Unexpected token. */ + +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_yield_escaped.ts b/ets2panda/test/ast/parser/ts/test_yield_escaped.ts index 32f77654e05c8c81465b62b8c4edbac1cdb2b246..80f3bf13f302cfec5e4421d1876b78fc02b0608b 100644 --- a/ets2panda/test/ast/parser/ts/test_yield_escaped.ts +++ b/ets2panda/test/ast/parser/ts/test_yield_escaped.ts @@ -18,8 +18,9 @@ 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 '='. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_1.ts b/ets2panda/test/ast/parser/ts/trailing_comma_1.ts index 9d968c5565c30f90ccf12a1f8dcb32113bf95bf6..c18075c266d0fd982937bc74a79f30f85195c34f 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_1.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_1.ts @@ -17,4 +17,5 @@ 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 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_2.ts b/ets2panda/test/ast/parser/ts/trailing_comma_2.ts index 7eb947a90390d4298cac064c2e2801886e7fe18a..94db3578274971f76ac759727805f62ea3dfbb8b 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_2.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_2.ts @@ -19,4 +19,5 @@ class C { let a = new C(12,) // OK -/* @@@ label1 Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_3.ts b/ets2panda/test/ast/parser/ts/trailing_comma_3.ts index c30d5c3a7b7fa49b8e45642e9f0eb6259b43a0fd..f9048b21db6472c101d1524958cc1b423eee3894 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_3.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_3.ts @@ -17,4 +17,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_4.ts b/ets2panda/test/ast/parser/ts/trailing_comma_4.ts index 9518bba08f88322331547821f7352e9f2b231af3..f53d018f4e19301c4a257b86daf9b19beb5de1c5 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_4.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_4.ts @@ -27,10 +27,11 @@ 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 ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_1.ts b/ets2panda/test/ast/parser/ts/unexpected_token_1.ts index 95d73ea9c1da530acdbb9317e0600a56f1013a6c..e544772441ce7bb4f4c1e92256c25882bfeb2589 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_1.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_1.ts @@ -16,4 +16,5 @@ try {} catch (e: Error /* @@ label */{} finally {} -/* @@@ label Error SyntaxError: Unexpected token '{', expected ')'. */ + +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_10.ts b/ets2panda/test/ast/parser/ts/unexpected_token_10.ts index 4c56f59de64fe5279e6211633b77ad427c474bdc..35f92273fdd757c903e87137c359054f8248696e 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_10.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_10.ts @@ -18,4 +18,5 @@ declare namespace a /* @@ label */let a: int; } -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_11.ts b/ets2panda/test/ast/parser/ts/unexpected_token_11.ts index 7bcdfead1347524ecae975d84176a9d7f9bfedfd..1c88a398e096620c2ed41580e1a3b82ac757a513 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_11.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_11.ts @@ -19,5 +19,6 @@ 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 '('. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_12.ts b/ets2panda/test/ast/parser/ts/unexpected_token_12.ts index 3f98921b899c0806028c5630a897cd8d09ddf11c..f53d965da7c89bb3b4cf05ea8788ce70e33bbe43 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_12.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_12.ts @@ -17,8 +17,5 @@ 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 ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_13.ts b/ets2panda/test/ast/parser/ts/unexpected_token_13.ts index a0326ee542b267f7ec844e42e76a1a0eabb119b1..3dd6bffea1f4ecdb217343eca45b476c94e1a964 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_13.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_13.ts @@ -17,8 +17,5 @@ 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 ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_14.ts b/ets2panda/test/ast/parser/ts/unexpected_token_14.ts index 781564443d0097abef9d4827c6a1bf8b1926ef77..fb5ac660e49ec0fe0910037d2a418540988ad0c9 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_14.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_14.ts @@ -16,7 +16,7 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_15.ts b/ets2panda/test/ast/parser/ts/unexpected_token_15.ts index dcc9d190891bc112e4d416b67665285f735473d7..48aef48a81235c8b75657b1e75ed84948c2b1dfd 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_15.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_15.ts @@ -15,7 +15,8 @@ declare module "foo" -/* @@? 22:1 Error SyntaxError: Unexpected token, expected ';'. */ + /* @@? 1:1 Node { "type": "Program" } */ +/* @@? 22:76 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file 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..a8434db83b1dea6477c722feb6cfecfaf839dc07 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_17.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_17.ts @@ -18,10 +18,11 @@ 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 ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_2.ts b/ets2panda/test/ast/parser/ts/unexpected_token_2.ts index 31b139aadf6b976527f62fdbb4c66bb91250a08e..261dbcb72e0c12ff7f7d6de2830abfdbdb65196d 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_2.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_2.ts @@ -16,4 +16,5 @@ try {} catch (e: Error) {} finally /* @@ label */} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_3.ts b/ets2panda/test/ast/parser/ts/unexpected_token_3.ts index f16aadec6921a5081d7fcf99189fa54ef892eb64..a4de39527db736d083c016f47bc0c7ddfa82b89e 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_3.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_3.ts @@ -16,8 +16,5 @@ 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. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_4.ts b/ets2panda/test/ast/parser/ts/unexpected_token_4.ts index 8fc4d10d94a6b0ec6081864bf933e9f9240138fc..40bbf125042cde34c9d72aa3237d496e01a60c8a 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_4.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_4.ts @@ -16,9 +16,10 @@ 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 '.'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_5.ts b/ets2panda/test/ast/parser/ts/unexpected_token_5.ts index 9bba340e00884b9dec20835c7c5c2e350116bc4a..9cc2822edaae376bd2b82a1e6d6c8f57158eaff2 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_5.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_5.ts @@ -16,5 +16,6 @@ import foo -/* @@? 21:1 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 21:1 Error SyntaxError: Unexpected token, expected string literal. */ + +/* @@? 21:87 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 21:87 Error Syntax error ESY0151: Unexpected token, expected string literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_6.ts b/ets2panda/test/ast/parser/ts/unexpected_token_6.ts index b5f57ff54abf47a2ceb4411d4a6975faa9092f85..1a30b88a5c6f6e7cd85aca24973866ad9c9b0f30 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_6.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_6.ts @@ -17,5 +17,5 @@ import foo frm from -/* @@@ label Error SyntaxError: Unexpected token, expected string literal. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 21:102 Error Syntax error ESY0151: Unexpected token, expected string literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_7.ts b/ets2panda/test/ast/parser/ts/unexpected_token_7.ts index d8bc503952bf4039c8285bce59c10ea4764d7a62..ab392060d8cc3a7ec62f1ae3fa67de321ae3d206 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_7.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_7.ts @@ -17,7 +17,8 @@ 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 '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_8.ts b/ets2panda/test/ast/parser/ts/unexpected_token_8.ts index 61db49560d6c5e43b10570ee07576eb0a22f5efa..143ad2f5d3c6b315593b264990624a275236b1f3 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_8.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_8.ts @@ -17,6 +17,6 @@ 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 + +/* @@ label *//* @@? 22:79 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ +/* @@? 22:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_9.ts b/ets2panda/test/ast/parser/ts/unexpected_token_9.ts index f3f09596da6a23afa423c78cc140b408cbd3d51e..eefa639cedcfed863667bb5389dc54b6f55c3ef2 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_9.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_9.ts @@ -18,7 +18,7 @@ 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 + +/* @@ label2 *//* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt b/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt index 52549502c874a6d816279c01f5c519fd6c679fc4..27d489fd02a9fa2316ddfdcdc3246919ee8c51a4 100644 --- a/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt +++ b/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt @@ -497,4 +497,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 bad59cb1216411ec7865274a006148d216c6f510..e2e61343fe78e56df3c5ef5659e049d795890695 100644 --- a/ets2panda/test/compiler/ets/FunctionType2-expected.txt +++ b/ets2panda/test/compiler/ets/FunctionType2-expected.txt @@ -684,4 +684,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 aa97c234217bffc3f6d4c50f18ae3e6101342309..021c5e1e301da4fcc29482e8b11d408bfd5e81b9 100644 --- a/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt +++ b/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt @@ -986,10 +986,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/catch-soft-keyword-expected.txt b/ets2panda/test/compiler/ets/catch-soft-keyword-expected.txt index 689d8a583f8d3fba32b086ad002181cd12e51170..79bcbf24af79d30f4b515e89262ddaf7c5e3cc9b 100644 --- a/ets2panda/test/compiler/ets/catch-soft-keyword-expected.txt +++ b/ets2panda/test/compiler/ets/catch-soft-keyword-expected.txt @@ -913,4 +913,4 @@ } } } -Warning: The catch statement with type annotation is deprecated, use catch(e). [catch-soft-keyword.ets:26:19] +[catch-soft-keyword.ets:26:19] Warning W33781: The catch statement with type annotation is deprecated, use catch(e). diff --git a/ets2panda/test/compiler/ets/catchParamScope-expected.txt b/ets2panda/test/compiler/ets/catchParamScope-expected.txt index 5ef16e9c33c9c536f8a397d253550bcd76cda147..b02ff658890dc064f8f9ad564bcad4af7441f4b5 100644 --- a/ets2panda/test/compiler/ets/catchParamScope-expected.txt +++ b/ets2panda/test/compiler/ets/catchParamScope-expected.txt @@ -719,4 +719,4 @@ } } } -Warning: The catch statement with type annotation is deprecated, use catch(e). [catchParamScope.ets:22:25] +[catchParamScope.ets:22:25] Warning W33781: The catch statement with type annotation is deprecated, use catch(e). diff --git a/ets2panda/test/compiler/ets/dynamic-equality-expected.txt b/ets2panda/test/compiler/ets/dynamic-equality-expected.txt index fecd0a6f63fdf3a00b0ef4e6c68755d1f4fd773c..ec99bfc8cb42f92892e681e8abbb8b5042f3c45e 100644 --- a/ets2panda/test/compiler/ets/dynamic-equality-expected.txt +++ b/ets2panda/test/compiler/ets/dynamic-equality-expected.txt @@ -586,6 +586,6 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamic-equality.ets:20:19] -TypeError: Unresolved reference A [dynamic-equality.ets:23:13] -TypeError: This expression is not callable. [dynamic-equality.ets:24:13] +[dynamic-equality.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamic-equality.ets:23:13] Semantic error ESE0143: Unresolved reference A +[dynamic-equality.ets:24:13] Semantic error ESE0289: This expression is not callable. diff --git a/ets2panda/test/compiler/ets/dynamicJsImport-expected.txt b/ets2panda/test/compiler/ets/dynamicJsImport-expected.txt index 67588904560acacdaa8c362570a5b6c414794bd3..716f8a1e9a07ef4795ec304153fec6f26a41b6ec 100644 --- a/ets2panda/test/compiler/ets/dynamicJsImport-expected.txt +++ b/ets2panda/test/compiler/ets/dynamicJsImport-expected.txt @@ -876,9 +876,9 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamicJsImport.ets:20:25] -TypeError: Cannot find import: dynamic_import_tests [dynamicJsImport.ets:21:19] -TypeError: Cannot find type 'B'. [dynamicJsImport.ets:24:12] -TypeError: Cannot find type 'B'. [dynamicJsImport.ets:24:20] -TypeError: Indexed access is not supported for such expression type. [dynamicJsImport.ets:26:13] -TypeError: This expression is not callable. [dynamicJsImport.ets:27:5] +[dynamicJsImport.ets:20:25] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamicJsImport.ets:21:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamicJsImport.ets:24:12] Semantic error ESE0371: Cannot find type 'B'. +[dynamicJsImport.ets:24:20] Semantic error ESE0371: Cannot find type 'B'. +[dynamicJsImport.ets:26:13] Semantic error ESE0252: Indexed access is not supported for such expression type. +[dynamicJsImport.ets:27:5] Semantic error ESE0289: This expression is not callable. diff --git a/ets2panda/test/compiler/ets/dynamicLambda-expected.txt b/ets2panda/test/compiler/ets/dynamicLambda-expected.txt index 95b5d0209e7168fab812c65dc3a586ec9a92bfe7..33f216926b55b9a5b3e753f95783bdc68a214c1e 100644 --- a/ets2panda/test/compiler/ets/dynamicLambda-expected.txt +++ b/ets2panda/test/compiler/ets/dynamicLambda-expected.txt @@ -957,6 +957,6 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamicLambda.ets:20:19] -TypeError: Cannot find type 'A'. [dynamicLambda.ets:23:17] -TypeError: This expression is not callable. [dynamicLambda.ets:25:15] +[dynamicLambda.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamicLambda.ets:23:17] Semantic error ESE0371: Cannot find type 'A'. +[dynamicLambda.ets:25:15] Semantic error ESE0289: This expression is not callable. diff --git a/ets2panda/test/compiler/ets/dynamicLambdaJSValue-expected.txt b/ets2panda/test/compiler/ets/dynamicLambdaJSValue-expected.txt index 296165a9a9a7a2796ec56b13ebf1db345236e39b..bc57f93a04680613cfaf23a41798c5b06b72396c 100644 --- a/ets2panda/test/compiler/ets/dynamicLambdaJSValue-expected.txt +++ b/ets2panda/test/compiler/ets/dynamicLambdaJSValue-expected.txt @@ -1084,6 +1084,6 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamicLambdaJSValue.ets:20:19] -TypeError: Cannot find type 'A'. [dynamicLambdaJSValue.ets:23:17] -TypeError: Type '(x: Int, y: Int) => Int' cannot be assigned to type 'JSValue' [dynamicLambdaJSValue.ets:24:22] +[dynamicLambdaJSValue.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamicLambdaJSValue.ets:23:17] Semantic error ESE0371: Cannot find type 'A'. +[dynamicLambdaJSValue.ets:24:22] Semantic error ESE0318: Type '(x: Int, y: Int) => Int' cannot be assigned to type 'JSValue' diff --git a/ets2panda/test/compiler/ets/dynamicLambdaJSValueCast-expected.txt b/ets2panda/test/compiler/ets/dynamicLambdaJSValueCast-expected.txt index 2a5529ec8c13d7cb764027db8129bbaf823a069c..b78d1694d8b2f7b1fc6d0072c0dd645282b3b56c 100644 --- a/ets2panda/test/compiler/ets/dynamicLambdaJSValueCast-expected.txt +++ b/ets2panda/test/compiler/ets/dynamicLambdaJSValueCast-expected.txt @@ -954,5 +954,5 @@ } } } -TypeError: Type '(x: Int) => Int' cannot be assigned to type 'JSValue' [dynamicLambdaJSValueCast.ets:17:22] -TypeError: Cannot cast type 'JSValue' to '(x: Int) => Int' [dynamicLambdaJSValueCast.ets:18:31] +[dynamicLambdaJSValueCast.ets:17:22] Semantic error ESE0318: Type '(x: Int) => Int' cannot be assigned to type 'JSValue' +[dynamicLambdaJSValueCast.ets:18:31] Semantic error ESE0326: Cannot cast type 'JSValue' to '(x: Int) => Int' diff --git a/ets2panda/test/compiler/ets/dynamicObjectLiteral-expected.txt b/ets2panda/test/compiler/ets/dynamicObjectLiteral-expected.txt index decf489697ff7dde6ff4385fee9c0a686b15b9a3..7fa0609b135ea4a9f90ad2ddfaa1e364005f5d25 100644 --- a/ets2panda/test/compiler/ets/dynamicObjectLiteral-expected.txt +++ b/ets2panda/test/compiler/ets/dynamicObjectLiteral-expected.txt @@ -528,5 +528,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamicObjectLiteral.ets:27:19] -TypeError: Cannot find type 'A'. [dynamicObjectLiteral.ets:30:12] +[dynamicObjectLiteral.ets:27:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamicObjectLiteral.ets:30:12] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/dynamic_call-expected.txt b/ets2panda/test/compiler/ets/dynamic_call-expected.txt index 5c70e7ec48213dc69ced04e8372748beaf7fec54..b94cd1a3b787202f2bc6bd17752aa1bdd5576434 100644 --- a/ets2panda/test/compiler/ets/dynamic_call-expected.txt +++ b/ets2panda/test/compiler/ets/dynamic_call-expected.txt @@ -688,5 +688,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamic_call.ets:20:19] -TypeError: Cannot find type 'A'. [dynamic_call.ets:23:17] +[dynamic_call.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamic_call.ets:23:17] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/dynamic_instanceof_error-expected.txt b/ets2panda/test/compiler/ets/dynamic_instanceof_error-expected.txt index 35066bc751bcbefa9bac9411c5d95eb561d2e9ca..db2bbbddaf289a4488a400a98d7e8615f11914f4 100644 --- a/ets2panda/test/compiler/ets/dynamic_instanceof_error-expected.txt +++ b/ets2panda/test/compiler/ets/dynamic_instanceof_error-expected.txt @@ -558,5 +558,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamic_instanceof_error.ets:20:19] -TypeError: Cannot find type 'A'. [dynamic_instanceof_error.ets:24:24] +[dynamic_instanceof_error.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamic_instanceof_error.ets:24:24] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/func-ref-private-expected.txt b/ets2panda/test/compiler/ets/func-ref-private-expected.txt index 366e04aca1409bb32ee19ea67bea5457eeb082f3..1a330673ac5553ea7068163ca05c6254136955aa 100644 --- a/ets2panda/test/compiler/ets/func-ref-private-expected.txt +++ b/ets2panda/test/compiler/ets/func-ref-private-expected.txt @@ -948,4 +948,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 bba7486bd0d81fb5254798f00adc13b418b83e9b..da8663869e0b24038275ba9ae2d05747cef45816 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 @@ -780,6 +780,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/inferTypeOfArray-expected.txt b/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt index a63f52add40f9d0734dcc1a52cd44d961ebc68d9..1bbd2674729ea919ac84d3e6ceaf1514dedf00c7 100644 --- a/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt +++ b/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt @@ -803,7 +803,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/ets/instanceof_dyndecl_dynvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_dyndecl_dynvalue-expected.txt index e8908296233f2e2dfe7a9ca84fb12bfb62a2367e..1db72fdee596f289c80ab1ed0a191a1e3d996588 100644 --- a/ets2panda/test/compiler/ets/instanceof_dyndecl_dynvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_dyndecl_dynvalue-expected.txt @@ -617,5 +617,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_dyndecl_dynvalue.ets:20:19] -TypeError: Cannot find type 'A'. [instanceof_dyndecl_dynvalue.ets:24:25] +[instanceof_dyndecl_dynvalue.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_dyndecl_dynvalue.ets:24:25] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/instanceof_dynvalue_dynvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_dynvalue_dynvalue-expected.txt index 6c7b64c6b8bce2589d3c89c000a708d8c204f4d3..8aac979e54ac9d83d65c33b22c8c719924dac7e2 100644 --- a/ets2panda/test/compiler/ets/instanceof_dynvalue_dynvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_dynvalue_dynvalue-expected.txt @@ -584,6 +584,6 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_dynvalue_dynvalue.ets:20:22] -TypeError: Cannot find type 'B'. [instanceof_dynvalue_dynvalue.ets:22:16] -TypeError: Cannot find type 'A'. [instanceof_dynvalue_dynvalue.ets:23:25] +[instanceof_dynvalue_dynvalue.ets:20:22] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_dynvalue_dynvalue.ets:22:16] Semantic error ESE0371: Cannot find type 'B'. +[instanceof_dynvalue_dynvalue.ets:23:25] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/instanceof_dynvalue_jsvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_dynvalue_jsvalue-expected.txt index 46eaeb81b6883e42163545028f4b0f105ea1004b..0d05d8608375c4ec572f9ddbb98601e5a60d55a3 100644 --- a/ets2panda/test/compiler/ets/instanceof_dynvalue_jsvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_dynvalue_jsvalue-expected.txt @@ -537,5 +537,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_dynvalue_jsvalue.ets:20:19] -TypeError: Cannot find type 'A'. [instanceof_dynvalue_jsvalue.ets:22:16] +[instanceof_dynvalue_jsvalue.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_dynvalue_jsvalue.ets:22:16] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/instanceof_etsobject_dynvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_etsobject_dynvalue-expected.txt index ae13f67544f6a35b70fea3949ce809d861bebb24..92a9d296b298ba1e9bb8cb4af5e6108f777c63e7 100644 --- a/ets2panda/test/compiler/ets/instanceof_etsobject_dynvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_etsobject_dynvalue-expected.txt @@ -81,157 +81,6 @@ } } }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "B", - "loc": { - "start": { - "line": 22, - "column": 7, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 22, - "column": 8, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - } - ], - "loc": { - "start": { - "line": 22, - "column": 9, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 24, - "column": 9, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 1, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 24, - "column": 9, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, { "type": "ClassDeclaration", "definition": { @@ -673,6 +522,157 @@ "program": "instanceof_etsobject_dynvalue.ets" } } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "B", + "loc": { + "start": { + "line": 22, + "column": 7, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 22, + "column": 8, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "kind": "constructor", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [], + "body": { + "type": "BlockStatement", + "statements": [], + "loc": { + "start": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + } + ], + "loc": { + "start": { + "line": 22, + "column": 9, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 24, + "column": 9, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 1, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 24, + "column": 9, + "program": "instanceof_etsobject_dynvalue.ets" + } + } } ], "loc": { @@ -688,5 +688,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_etsobject_dynvalue.ets:20:19] -TypeError: Cannot find type 'A'. [instanceof_etsobject_dynvalue.ets:25:25] +[instanceof_etsobject_dynvalue.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_etsobject_dynvalue.ets:25:25] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/instanceof_etsobject_jsvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_etsobject_jsvalue-expected.txt index bc4a15e5b08e124df6219f8558fd4bb6d1ba016c..9fedae54a25c264d764fd193bf1a68a1eb22d6db 100644 --- a/ets2panda/test/compiler/ets/instanceof_etsobject_jsvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_etsobject_jsvalue-expected.txt @@ -1,157 +1,6 @@ { "type": "Program", "statements": [ - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "A", - "loc": { - "start": { - "line": 20, - "column": 7, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 20, - "column": 8, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - } - ], - "loc": { - "start": { - "line": 20, - "column": 9, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 22, - "column": 9, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 1, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 22, - "column": 9, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, { "type": "ClassDeclaration", "definition": { @@ -593,6 +442,157 @@ "program": "instanceof_etsobject_jsvalue.ets" } } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "A", + "loc": { + "start": { + "line": 20, + "column": 7, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 20, + "column": 8, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "kind": "constructor", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [], + "body": { + "type": "BlockStatement", + "statements": [], + "loc": { + "start": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "loc": { + "start": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "loc": { + "start": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + } + ], + "loc": { + "start": { + "line": 20, + "column": 9, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 22, + "column": 9, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "loc": { + "start": { + "line": 20, + "column": 1, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 22, + "column": 9, + "program": "instanceof_etsobject_jsvalue.ets" + } + } } ], "loc": { diff --git a/ets2panda/test/compiler/ets/instanceof_jsvalue_dynvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_jsvalue_dynvalue-expected.txt index b0726672a71dda1e2136249740398b0becb3e7ca..be55cd27c0e91ff03ecd87866562ddfcec82d2d1 100644 --- a/ets2panda/test/compiler/ets/instanceof_jsvalue_dynvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_jsvalue_dynvalue-expected.txt @@ -537,5 +537,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_jsvalue_dynvalue.ets:20:19] -TypeError: Cannot find type 'A'. [instanceof_jsvalue_dynvalue.ets:23:25] +[instanceof_jsvalue_dynvalue.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_jsvalue_dynvalue.ets:23:25] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/instanceof_object_dynvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_object_dynvalue-expected.txt index 4fcde150c9b3b55b85e31ca6a2128a73645d4fae..e5d67996981cd712b2ddf0e35f352620be873542 100644 --- a/ets2panda/test/compiler/ets/instanceof_object_dynvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_object_dynvalue-expected.txt @@ -537,5 +537,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_object_dynvalue.ets:20:19] -TypeError: Cannot find type 'A'. [instanceof_object_dynvalue.ets:23:25] +[instanceof_object_dynvalue.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_object_dynvalue.ets:23:25] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/instanceof_x_dyndecl-expected.txt b/ets2panda/test/compiler/ets/instanceof_x_dyndecl-expected.txt index 899f9c2a5b320f887b0405f02165a5822e077f67..f89cd36d5f9156bd87c8cbe49371e6a190c3e051 100644 --- a/ets2panda/test/compiler/ets/instanceof_x_dyndecl-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_x_dyndecl-expected.txt @@ -208,157 +208,6 @@ } } }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "A", - "loc": { - "start": { - "line": 23, - "column": 7, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 23, - "column": 8, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - } - ], - "loc": { - "start": { - "line": 23, - "column": 9, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 25, - "column": 9, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 1, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 25, - "column": 9, - "program": "instanceof_x_dyndecl.ets" - } - } - }, { "type": "ClassDeclaration", "definition": { @@ -1960,6 +1809,157 @@ "program": "instanceof_x_dyndecl.ets" } } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "A", + "loc": { + "start": { + "line": 23, + "column": 7, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 23, + "column": 8, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "kind": "constructor", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [], + "body": { + "type": "BlockStatement", + "statements": [], + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + } + ], + "loc": { + "start": { + "line": 23, + "column": 9, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 25, + "column": 9, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 1, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 25, + "column": 9, + "program": "instanceof_x_dyndecl.ets" + } + } } ], "loc": { @@ -1975,5 +1975,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_x_dyndecl.ets:20:24] -TypeError: Cannot find type 'AValue'. [instanceof_x_dyndecl.ets:37:26] +[instanceof_x_dyndecl.ets:20:24] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_x_dyndecl.ets:37:26] Semantic error ESE0371: Cannot find type 'AValue'. diff --git a/ets2panda/test/compiler/ets/instanceof_x_etstype-expected.txt b/ets2panda/test/compiler/ets/instanceof_x_etstype-expected.txt index 80a344fa7b41b4e7a68d5a441b1f0c8527d4397f..f85b75fc57b1fc4b4f619c60cfa5a2cbe248cc68 100644 --- a/ets2panda/test/compiler/ets/instanceof_x_etstype-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_x_etstype-expected.txt @@ -166,16 +166,16 @@ "definition": { "id": { "type": "Identifier", - "name": "A", + "name": "ETSGLOBAL", "loc": { "start": { - "line": 23, - "column": 7, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 23, - "column": 8, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" } } @@ -187,22 +187,23 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "constructor", + "name": "main", "loc": { "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_etstype.ets" + "line": 1, + "column": 1, + "program": null }, "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_etstype.ets" + "line": 1, + "column": 1, + "program": null } } }, - "kind": "constructor", - "static": false, + "kind": "method", + "accessibility": "public", + "static": true, "optional": false, "computed": false, "value": { @@ -211,17 +212,17 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "constructor", + "name": "main", "loc": { "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_etstype.ets" + "line": 1, + "column": 1, + "program": null }, "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_etstype.ets" + "line": 1, + "column": 1, + "program": null } } }, @@ -234,39 +235,39 @@ "statements": [], "loc": { "start": { - "line": 23, - "column": 10, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 23, - "column": 10, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 23, - "column": 10, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 23, - "column": 10, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 23, - "column": 10, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 23, - "column": 10, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" } } @@ -276,84 +277,36 @@ "start": { "line": 1, "column": 1, - "program": null + "program": "instanceof_x_etstype.ets" }, "end": { "line": 1, "column": 1, - "program": null + "program": "instanceof_x_etstype.ets" } } - } - ], - "loc": { - "start": { - "line": 23, - "column": 9, - "program": "instanceof_x_etstype.ets" }, - "end": { - "line": 24, - "column": 6, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 1, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 24, - "column": 6, - "program": "instanceof_x_etstype.ets" - } - } - }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "B", - "loc": { - "start": { - "line": 24, - "column": 7, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 24, - "column": 8, - "program": "instanceof_x_etstype.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "constructor", + "name": "fn_object", "loc": { "start": { - "line": 24, + "line": 26, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 24, - "column": 10, + "line": 26, + "column": 19, "program": "instanceof_x_etstype.ets" } } }, - "kind": "constructor", - "static": false, + "kind": "method", + "accessibility": "public", + "static": true, "optional": false, "computed": false, "value": { @@ -362,16 +315,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "constructor", + "name": "fn_object", "loc": { "start": { - "line": 24, + "line": 26, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 24, - "column": 10, + "line": 26, + "column": 19, "program": "instanceof_x_etstype.ets" } } @@ -379,197 +332,232 @@ "generator": false, "async": false, "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], + "params": [ + { + "type": "ETSParameterExpression", + "name": { + "type": "Identifier", + "name": "o", + "typeAnnotation": { + "type": "ETSTypeReference", + "part": { + "type": "ETSTypeReferencePart", + "name": { + "type": "Identifier", + "name": "Object", + "loc": { + "start": { + "line": 26, + "column": 23, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 26, + "column": 29, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 26, + "column": 23, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 26, + "column": 29, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 26, + "column": 23, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 26, + "column": 29, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 26, + "column": 20, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 26, + "column": 29, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 26, + "column": 20, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 26, + "column": 29, + "program": "instanceof_x_etstype.ets" + } + } + } + ], + "returnType": { + "type": "ETSPrimitiveType", "loc": { "start": { - "line": 24, - "column": 10, + "line": 26, + "column": 32, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 24, - "column": 10, + "line": 26, + "column": 39, "program": "instanceof_x_etstype.ets" } } }, - "loc": { - "start": { - "line": 24, - "column": 10, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 24, - "column": 10, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 24, - "column": 10, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 24, - "column": 10, - "program": "instanceof_x_etstype.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - } - ], - "loc": { - "start": { - "line": 24, - "column": 9, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 26, - "column": 9, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 24, - "column": 1, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 26, - "column": 9, - "program": "instanceof_x_etstype.ets" - } - } - }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "ETSGLOBAL", - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 1, - "column": 1, - "program": "instanceof_x_etstype.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "main", - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - }, - "kind": "method", - "accessibility": "public", - "static": true, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "main", - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], "body": { "type": "BlockStatement", - "statements": [], + "statements": [ + { + "type": "ReturnStatement", + "argument": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "Identifier", + "name": "o", + "loc": { + "start": { + "line": 27, + "column": 12, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 27, + "column": 13, + "program": "instanceof_x_etstype.ets" + } + } + }, + "right": { + "type": "ETSTypeReference", + "part": { + "type": "ETSTypeReferencePart", + "name": { + "type": "Identifier", + "name": "B", + "loc": { + "start": { + "line": 27, + "column": 25, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 27, + "column": 26, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 27, + "column": 25, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 27, + "column": 26, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 27, + "column": 25, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 27, + "column": 26, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 27, + "column": 12, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 27, + "column": 26, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 27, + "column": 5, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 27, + "column": 27, + "program": "instanceof_x_etstype.ets" + } + } + } + ], "loc": { "start": { - "line": 1, - "column": 1, + "line": 26, + "column": 40, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 1, - "column": 1, + "line": 28, + "column": 2, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 1, - "column": 1, + "line": 26, + "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 1, - "column": 1, + "line": 28, + "column": 2, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 1, - "column": 1, + "line": 26, + "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 1, - "column": 1, + "line": 28, + "column": 2, "program": "instanceof_x_etstype.ets" } } @@ -577,13 +565,13 @@ "overloads": [], "loc": { "start": { - "line": 1, + "line": 26, "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 1, - "column": 1, + "line": 28, + "column": 2, "program": "instanceof_x_etstype.ets" } } @@ -592,16 +580,16 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "fn_object", + "name": "fn_ets_object", "loc": { "start": { - "line": 26, + "line": 30, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 19, + "line": 30, + "column": 23, "program": "instanceof_x_etstype.ets" } } @@ -617,16 +605,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "fn_object", + "name": "fn_ets_object", "loc": { "start": { - "line": 26, + "line": 30, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 19, + "line": 30, + "column": 23, "program": "instanceof_x_etstype.ets" } } @@ -646,68 +634,68 @@ "type": "ETSTypeReferencePart", "name": { "type": "Identifier", - "name": "Object", + "name": "A", "loc": { "start": { - "line": 26, - "column": 23, + "line": 30, + "column": 27, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 29, + "line": 30, + "column": 28, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 26, - "column": 23, + "line": 30, + "column": 27, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 29, + "line": 30, + "column": 28, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 26, - "column": 23, + "line": 30, + "column": 27, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 29, + "line": 30, + "column": 28, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 26, - "column": 20, + "line": 30, + "column": 24, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 29, + "line": 30, + "column": 28, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 26, - "column": 20, + "line": 30, + "column": 24, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 29, + "line": 30, + "column": 28, "program": "instanceof_x_etstype.ets" } } @@ -717,13 +705,13 @@ "type": "ETSPrimitiveType", "loc": { "start": { - "line": 26, - "column": 32, + "line": 30, + "column": 31, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 39, + "line": 30, + "column": 38, "program": "instanceof_x_etstype.ets" } } @@ -741,12 +729,12 @@ "name": "o", "loc": { "start": { - "line": 27, + "line": 31, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 27, + "line": 31, "column": 13, "program": "instanceof_x_etstype.ets" } @@ -761,12 +749,12 @@ "name": "B", "loc": { "start": { - "line": 27, + "line": 31, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 27, + "line": 31, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -774,12 +762,12 @@ }, "loc": { "start": { - "line": 27, + "line": 31, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 27, + "line": 31, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -787,12 +775,12 @@ }, "loc": { "start": { - "line": 27, + "line": 31, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 27, + "line": 31, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -800,12 +788,12 @@ }, "loc": { "start": { - "line": 27, + "line": 31, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 27, + "line": 31, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -813,12 +801,12 @@ }, "loc": { "start": { - "line": 27, + "line": 31, "column": 5, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 27, + "line": 31, "column": 27, "program": "instanceof_x_etstype.ets" } @@ -827,12 +815,12 @@ ], "loc": { "start": { - "line": 26, - "column": 40, + "line": 30, + "column": 39, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 28, + "line": 32, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -840,12 +828,12 @@ }, "loc": { "start": { - "line": 26, + "line": 30, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 28, + "line": 32, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -853,12 +841,12 @@ }, "loc": { "start": { - "line": 26, + "line": 30, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 28, + "line": 32, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -867,12 +855,12 @@ "overloads": [], "loc": { "start": { - "line": 26, + "line": 30, "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 28, + "line": 32, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -882,16 +870,16 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "fn_ets_object", + "name": "fn_jsvalue", "loc": { "start": { - "line": 30, + "line": 34, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 23, + "line": 34, + "column": 20, "program": "instanceof_x_etstype.ets" } } @@ -907,16 +895,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "fn_ets_object", + "name": "fn_jsvalue", "loc": { "start": { - "line": 30, + "line": 34, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 23, + "line": 34, + "column": 20, "program": "instanceof_x_etstype.ets" } } @@ -936,68 +924,68 @@ "type": "ETSTypeReferencePart", "name": { "type": "Identifier", - "name": "A", + "name": "JSValue", "loc": { "start": { - "line": 30, - "column": 27, + "line": 34, + "column": 24, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 28, + "line": 34, + "column": 31, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 30, - "column": 27, + "line": 34, + "column": 24, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 28, + "line": 34, + "column": 31, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 30, - "column": 27, + "line": 34, + "column": 24, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 28, + "line": 34, + "column": 31, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 30, - "column": 24, + "line": 34, + "column": 21, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 28, + "line": 34, + "column": 31, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 30, - "column": 24, + "line": 34, + "column": 21, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 28, + "line": 34, + "column": 31, "program": "instanceof_x_etstype.ets" } } @@ -1007,13 +995,13 @@ "type": "ETSPrimitiveType", "loc": { "start": { - "line": 30, - "column": 31, + "line": 34, + "column": 34, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 38, + "line": 34, + "column": 41, "program": "instanceof_x_etstype.ets" } } @@ -1031,12 +1019,12 @@ "name": "o", "loc": { "start": { - "line": 31, + "line": 35, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 31, + "line": 35, "column": 13, "program": "instanceof_x_etstype.ets" } @@ -1051,12 +1039,12 @@ "name": "B", "loc": { "start": { - "line": 31, + "line": 35, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 31, + "line": 35, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1064,12 +1052,12 @@ }, "loc": { "start": { - "line": 31, + "line": 35, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 31, + "line": 35, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1077,12 +1065,12 @@ }, "loc": { "start": { - "line": 31, + "line": 35, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 31, + "line": 35, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1090,12 +1078,12 @@ }, "loc": { "start": { - "line": 31, + "line": 35, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 31, + "line": 35, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1103,12 +1091,12 @@ }, "loc": { "start": { - "line": 31, + "line": 35, "column": 5, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 31, + "line": 35, "column": 27, "program": "instanceof_x_etstype.ets" } @@ -1117,12 +1105,12 @@ ], "loc": { "start": { - "line": 30, - "column": 39, + "line": 34, + "column": 42, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 32, + "line": 36, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1130,12 +1118,12 @@ }, "loc": { "start": { - "line": 30, + "line": 34, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 32, + "line": 36, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1143,12 +1131,12 @@ }, "loc": { "start": { - "line": 30, + "line": 34, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 32, + "line": 36, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1157,12 +1145,12 @@ "overloads": [], "loc": { "start": { - "line": 30, + "line": 34, "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 32, + "line": 36, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1172,16 +1160,16 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "fn_jsvalue", + "name": "fn_dyn_value", "loc": { "start": { - "line": 34, + "line": 38, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 20, + "line": 38, + "column": 22, "program": "instanceof_x_etstype.ets" } } @@ -1197,16 +1185,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "fn_jsvalue", + "name": "fn_dyn_value", "loc": { "start": { - "line": 34, + "line": 38, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 20, + "line": 38, + "column": 22, "program": "instanceof_x_etstype.ets" } } @@ -1226,68 +1214,68 @@ "type": "ETSTypeReferencePart", "name": { "type": "Identifier", - "name": "JSValue", + "name": "AValue", "loc": { "start": { - "line": 34, - "column": 24, + "line": 38, + "column": 26, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 31, + "line": 38, + "column": 32, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 34, - "column": 24, + "line": 38, + "column": 26, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 31, + "line": 38, + "column": 32, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 34, - "column": 24, + "line": 38, + "column": 26, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 31, + "line": 38, + "column": 32, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 34, - "column": 21, + "line": 38, + "column": 23, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 31, + "line": 38, + "column": 32, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 34, - "column": 21, + "line": 38, + "column": 23, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 31, + "line": 38, + "column": 32, "program": "instanceof_x_etstype.ets" } } @@ -1297,13 +1285,13 @@ "type": "ETSPrimitiveType", "loc": { "start": { - "line": 34, - "column": 34, + "line": 38, + "column": 35, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 41, + "line": 38, + "column": 42, "program": "instanceof_x_etstype.ets" } } @@ -1321,12 +1309,12 @@ "name": "o", "loc": { "start": { - "line": 35, + "line": 39, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 35, + "line": 39, "column": 13, "program": "instanceof_x_etstype.ets" } @@ -1341,12 +1329,12 @@ "name": "B", "loc": { "start": { - "line": 35, + "line": 39, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 35, + "line": 39, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1354,12 +1342,12 @@ }, "loc": { "start": { - "line": 35, + "line": 39, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 35, + "line": 39, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1367,12 +1355,12 @@ }, "loc": { "start": { - "line": 35, + "line": 39, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 35, + "line": 39, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1380,12 +1368,12 @@ }, "loc": { "start": { - "line": 35, + "line": 39, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 35, + "line": 39, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1393,12 +1381,12 @@ }, "loc": { "start": { - "line": 35, + "line": 39, "column": 5, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 35, + "line": 39, "column": 27, "program": "instanceof_x_etstype.ets" } @@ -1407,12 +1395,12 @@ ], "loc": { "start": { - "line": 34, - "column": 42, + "line": 38, + "column": 43, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 36, + "line": 40, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1420,12 +1408,12 @@ }, "loc": { "start": { - "line": 34, + "line": 38, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 36, + "line": 40, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1433,12 +1421,12 @@ }, "loc": { "start": { - "line": 34, + "line": 38, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 36, + "line": 40, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1447,12 +1435,12 @@ "overloads": [], "loc": { "start": { - "line": 34, + "line": 38, "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 36, + "line": 40, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1462,16 +1450,16 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "fn_dyn_value", + "name": "fn_dyn_decl", "loc": { "start": { - "line": 38, + "line": 42, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 22, + "line": 42, + "column": 21, "program": "instanceof_x_etstype.ets" } } @@ -1487,16 +1475,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "fn_dyn_value", + "name": "fn_dyn_decl", "loc": { "start": { - "line": 38, + "line": 42, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 22, + "line": 42, + "column": 21, "program": "instanceof_x_etstype.ets" } } @@ -1516,68 +1504,68 @@ "type": "ETSTypeReferencePart", "name": { "type": "Identifier", - "name": "AValue", + "name": "ADeclared", "loc": { "start": { - "line": 38, - "column": 26, + "line": 42, + "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 32, + "line": 42, + "column": 34, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 38, - "column": 26, + "line": 42, + "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 32, + "line": 42, + "column": 34, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 38, - "column": 26, + "line": 42, + "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 32, + "line": 42, + "column": 34, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 38, - "column": 23, + "line": 42, + "column": 22, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 32, + "line": 42, + "column": 34, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 38, - "column": 23, + "line": 42, + "column": 22, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 32, + "line": 42, + "column": 34, "program": "instanceof_x_etstype.ets" } } @@ -1587,13 +1575,13 @@ "type": "ETSPrimitiveType", "loc": { "start": { - "line": 38, - "column": 35, + "line": 42, + "column": 37, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 42, + "line": 42, + "column": 44, "program": "instanceof_x_etstype.ets" } } @@ -1611,12 +1599,12 @@ "name": "o", "loc": { "start": { - "line": 39, + "line": 43, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 39, + "line": 43, "column": 13, "program": "instanceof_x_etstype.ets" } @@ -1631,12 +1619,12 @@ "name": "B", "loc": { "start": { - "line": 39, + "line": 43, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 39, + "line": 43, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1644,12 +1632,12 @@ }, "loc": { "start": { - "line": 39, + "line": 43, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 39, + "line": 43, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1657,12 +1645,12 @@ }, "loc": { "start": { - "line": 39, + "line": 43, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 39, + "line": 43, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1670,12 +1658,12 @@ }, "loc": { "start": { - "line": 39, + "line": 43, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 39, + "line": 43, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1683,12 +1671,12 @@ }, "loc": { "start": { - "line": 39, + "line": 43, "column": 5, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 39, + "line": 43, "column": 27, "program": "instanceof_x_etstype.ets" } @@ -1697,12 +1685,12 @@ ], "loc": { "start": { - "line": 38, - "column": 43, + "line": 42, + "column": 45, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 40, + "line": 44, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1710,12 +1698,12 @@ }, "loc": { "start": { - "line": 38, + "line": 42, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 40, + "line": 44, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1723,12 +1711,12 @@ }, "loc": { "start": { - "line": 38, + "line": 42, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 40, + "line": 44, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1737,38 +1725,237 @@ "overloads": [], "loc": { "start": { - "line": 38, + "line": 42, "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 40, + "line": 44, "column": 2, "program": "instanceof_x_etstype.ets" } } + } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "instanceof_x_etstype.ets" + } + } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "A", + "loc": { + "start": { + "line": 23, + "column": 7, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 23, + "column": 8, + "program": "instanceof_x_etstype.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + } + } + }, + "kind": "constructor", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [], + "body": { + "type": "BlockStatement", + "statements": [], + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + } + ], + "loc": { + "start": { + "line": 23, + "column": 9, + "program": "instanceof_x_etstype.ets" }, + "end": { + "line": 24, + "column": 6, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 1, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 24, + "column": 6, + "program": "instanceof_x_etstype.ets" + } + } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "B", + "loc": { + "start": { + "line": 24, + "column": 7, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 24, + "column": 8, + "program": "instanceof_x_etstype.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "fn_dyn_decl", + "name": "constructor", "loc": { "start": { - "line": 42, + "line": 24, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 42, - "column": 21, + "line": 24, + "column": 10, "program": "instanceof_x_etstype.ets" } } }, - "kind": "method", - "accessibility": "public", - "static": true, + "kind": "constructor", + "static": false, "optional": false, "computed": false, "value": { @@ -1777,16 +1964,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "fn_dyn_decl", + "name": "constructor", "loc": { "start": { - "line": 42, + "line": 24, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 42, - "column": 21, + "line": 24, + "column": 10, "program": "instanceof_x_etstype.ets" } } @@ -1794,232 +1981,45 @@ "generator": false, "async": false, "expression": false, - "params": [ - { - "type": "ETSParameterExpression", - "name": { - "type": "Identifier", - "name": "o", - "typeAnnotation": { - "type": "ETSTypeReference", - "part": { - "type": "ETSTypeReferencePart", - "name": { - "type": "Identifier", - "name": "ADeclared", - "loc": { - "start": { - "line": 42, - "column": 25, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 42, - "column": 34, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 42, - "column": 25, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 42, - "column": 34, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 42, - "column": 25, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 42, - "column": 34, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 42, - "column": 22, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 42, - "column": 34, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 42, - "column": 22, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 42, - "column": 34, - "program": "instanceof_x_etstype.ets" - } - } - } - ], - "returnType": { - "type": "ETSPrimitiveType", - "loc": { - "start": { - "line": 42, - "column": 37, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 42, - "column": 44, - "program": "instanceof_x_etstype.ets" - } - } - }, + "params": [], "body": { "type": "BlockStatement", - "statements": [ - { - "type": "ReturnStatement", - "argument": { - "type": "BinaryExpression", - "operator": "instanceof", - "left": { - "type": "Identifier", - "name": "o", - "loc": { - "start": { - "line": 43, - "column": 12, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 43, - "column": 13, - "program": "instanceof_x_etstype.ets" - } - } - }, - "right": { - "type": "ETSTypeReference", - "part": { - "type": "ETSTypeReferencePart", - "name": { - "type": "Identifier", - "name": "B", - "loc": { - "start": { - "line": 43, - "column": 25, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 43, - "column": 26, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 43, - "column": 25, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 43, - "column": 26, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 43, - "column": 25, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 43, - "column": 26, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 43, - "column": 12, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 43, - "column": 26, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 43, - "column": 5, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 43, - "column": 27, - "program": "instanceof_x_etstype.ets" - } - } - } - ], + "statements": [], "loc": { "start": { - "line": 42, - "column": 45, + "line": 24, + "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 44, - "column": 2, + "line": 24, + "column": 10, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 42, + "line": 24, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 44, - "column": 2, + "line": 24, + "column": 10, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 42, + "line": 24, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 44, - "column": 2, + "line": 24, + "column": 10, "program": "instanceof_x_etstype.ets" } } @@ -2027,40 +2027,40 @@ "overloads": [], "loc": { "start": { - "line": 42, + "line": 1, "column": 1, - "program": "instanceof_x_etstype.ets" + "program": null }, "end": { - "line": 44, - "column": 2, - "program": "instanceof_x_etstype.ets" + "line": 1, + "column": 1, + "program": null } } } ], "loc": { "start": { - "line": 1, - "column": 1, + "line": 24, + "column": 9, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 1, - "column": 1, + "line": 26, + "column": 9, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 1, + "line": 24, "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 1, - "column": 1, + "line": 26, + "column": 9, "program": "instanceof_x_etstype.ets" } } @@ -2079,5 +2079,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_x_etstype.ets:20:24] -TypeError: Cannot find type 'AValue'. [instanceof_x_etstype.ets:38:26] +[instanceof_x_etstype.ets:20:24] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_x_etstype.ets:38:26] Semantic error ESE0371: Cannot find type 'AValue'. diff --git a/ets2panda/test/compiler/ets/instanceof_x_object-expected.txt b/ets2panda/test/compiler/ets/instanceof_x_object-expected.txt index 7452015f13e0197a1dadfc752aba4525fce2e84c..27550a88af581e6687fdb26b319483e9b16ce7f2 100644 --- a/ets2panda/test/compiler/ets/instanceof_x_object-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_x_object-expected.txt @@ -161,157 +161,6 @@ } } }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "A", - "loc": { - "start": { - "line": 23, - "column": 7, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 23, - "column": 8, - "program": "instanceof_x_object.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - } - ], - "loc": { - "start": { - "line": 23, - "column": 9, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 25, - "column": 9, - "program": "instanceof_x_object.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 1, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 25, - "column": 9, - "program": "instanceof_x_object.ets" - } - } - }, { "type": "ClassDeclaration", "definition": { @@ -1913,6 +1762,157 @@ "program": "instanceof_x_object.ets" } } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "A", + "loc": { + "start": { + "line": 23, + "column": 7, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 23, + "column": 8, + "program": "instanceof_x_object.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + } + } + }, + "kind": "constructor", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [], + "body": { + "type": "BlockStatement", + "statements": [], + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + } + ], + "loc": { + "start": { + "line": 23, + "column": 9, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 25, + "column": 9, + "program": "instanceof_x_object.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 1, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 25, + "column": 9, + "program": "instanceof_x_object.ets" + } + } } ], "loc": { @@ -1928,5 +1928,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_x_object.ets:20:24] -TypeError: Cannot find type 'AValue'. [instanceof_x_object.ets:37:26] +[instanceof_x_object.ets:20:24] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_x_object.ets:37:26] Semantic error ESE0371: Cannot find type 'AValue'. diff --git a/ets2panda/test/compiler/ets/requiredType_11-expected.txt b/ets2panda/test/compiler/ets/requiredType_11-expected.txt index 928d444bf567fabd57b2e2b6591f142d7021f825..6a916cfe06891dc6beb9d563b8a6c2499a7527ad 100644 --- a/ets2panda/test/compiler/ets/requiredType_11-expected.txt +++ b/ets2panda/test/compiler/ets/requiredType_11-expected.txt @@ -1200,4 +1200,4 @@ } } } -TypeError: T in Required must be a class or an interface type. [requiredType_11.ets:21:18] +[requiredType_11.ets:21:18] Semantic error ESE124644: T in Required must be a class or an interface type. diff --git a/ets2panda/test/compiler/ets/requiredType_9-expected.txt b/ets2panda/test/compiler/ets/requiredType_9-expected.txt index 09a5ac29720bc19d41b4efdbbac29e9e43e63d3e..5286988a075cc9b6c4679a678423f7e8e45a635e 100644 --- a/ets2panda/test/compiler/ets/requiredType_9-expected.txt +++ b/ets2panda/test/compiler/ets/requiredType_9-expected.txt @@ -1600,5 +1600,5 @@ } } } -TypeError: T in Required must be a class or an interface type. [requiredType_9.ets:22:19] -TypeError: T in Required must be a class or an interface type. [requiredType_9.ets:23:19] +[requiredType_9.ets:22:19] Semantic error ESE124644: T in Required must be a class or an interface type. +[requiredType_9.ets:23:19] Semantic error ESE124644: T in Required must be a class or an interface type. diff --git a/ets2panda/test/compiler/ets/tryDefaultCatches-expected.txt b/ets2panda/test/compiler/ets/tryDefaultCatches-expected.txt index 6ac688c6b1a7a8aa0231d4f1cb1cae5e7f4fcc6d..0d28fdc950327d2ca5355ff4bfafc5e53233e456 100644 --- a/ets2panda/test/compiler/ets/tryDefaultCatches-expected.txt +++ b/ets2panda/test/compiler/ets/tryDefaultCatches-expected.txt @@ -435,4 +435,4 @@ } } } -Warning: The catch statement with type annotation is deprecated, use catch(e). [tryDefaultCatches.ets:19:15] +[tryDefaultCatches.ets:19:15] Warning W33781: The catch statement with type annotation is deprecated, use catch(e). diff --git a/ets2panda/test/parser/as/test_class_method-expected.txt b/ets2panda/test/parser/as/test_class_method-expected.txt index 843ef4bf1b7524f43a72ce189648bb0c4cf204bc..5abbe7f401f4ad7a02f9f850df8d44f7ef982338 100644 --- a/ets2panda/test/parser/as/test_class_method-expected.txt +++ b/ets2panda/test/parser/as/test_class_method-expected.txt @@ -145,8 +145,8 @@ "type": "Identifier", "name": "a", "typeAnnotation": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i32", "loc": { @@ -162,6 +162,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 18, @@ -190,8 +191,8 @@ } ], "returnType": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i32", "loc": { @@ -207,6 +208,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 18, @@ -317,3 +319,4 @@ } } } +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_class_property-expected.txt b/ets2panda/test/parser/as/test_class_property-expected.txt index 7630be5b95403ad8a3cae86b72295b2f98f3da42..60cbf426763e377e35e159ff9d7dfbbceeec00f6 100644 --- a/ets2panda/test/parser/as/test_class_property-expected.txt +++ b/ets2panda/test/parser/as/test_class_property-expected.txt @@ -150,8 +150,8 @@ "optional": false, "computed": false, "typeAnnotation": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i32", "loc": { @@ -167,6 +167,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 18, @@ -235,3 +236,4 @@ } } } +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_decorators1-expected.txt b/ets2panda/test/parser/as/test_decorators1-expected.txt index 2f688ddaa421c963aa67397c3b7a5f9282612223..0299fad2fec0ddde9730cbd3298926158a06a31b 100644 --- a/ets2panda/test/parser/as/test_decorators1-expected.txt +++ b/ets2panda/test/parser/as/test_decorators1-expected.txt @@ -1,151 +1,2 @@ -{ - "type": "Program", - "statements": [ - { - "type": "FunctionDeclaration", - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "inline", - "decorators": [], - "loc": { - "start": { - "line": 17, - "column": 2, - "program": "test_decorators1.ts" - }, - "end": { - "line": 17, - "column": 8, - "program": "test_decorators1.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 1, - "program": "test_decorators1.ts" - }, - "end": { - "line": 17, - "column": 8, - "program": "test_decorators1.ts" - } - } - } - ], - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "foo", - "decorators": [], - "loc": { - "start": { - "line": 18, - "column": 10, - "program": "test_decorators1.ts" - }, - "end": { - "line": 18, - "column": 13, - "program": "test_decorators1.ts" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "returnType": { - "type": "NamedType", - "name": { - "type": "Identifier", - "name": "void", - "decorators": [], - "loc": { - "start": { - "line": 18, - "column": 17, - "program": "test_decorators1.ts" - }, - "end": { - "line": 18, - "column": 21, - "program": "test_decorators1.ts" - } - } - }, - "isNullable": false, - "loc": { - "start": { - "line": 18, - "column": 17, - "program": "test_decorators1.ts" - }, - "end": { - "line": 18, - "column": 21, - "program": "test_decorators1.ts" - } - } - }, - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 18, - "column": 22, - "program": "test_decorators1.ts" - }, - "end": { - "line": 19, - "column": 2, - "program": "test_decorators1.ts" - } - } - }, - "loc": { - "start": { - "line": 18, - "column": 1, - "program": "test_decorators1.ts" - }, - "end": { - "line": 19, - "column": 2, - "program": "test_decorators1.ts" - } - } - }, - "loc": { - "start": { - "line": 18, - "column": 1, - "program": "test_decorators1.ts" - }, - "end": { - "line": 19, - "column": 2, - "program": "test_decorators1.ts" - } - } - } - ], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "test_decorators1.ts" - }, - "end": { - "line": 20, - "column": 1, - "program": "test_decorators1.ts" - } - } -} +[test_decorators1.ts:17:1] Syntax error ESY0000: Decorators are not valid here +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_decorators4-expected.txt b/ets2panda/test/parser/as/test_decorators4-expected.txt index eb82cf15bb9c7745739162c806ef16502041f4bf..3dd59a68ca45d5bb0f38ff28a92d143bdfe7c85a 100644 --- a/ets2panda/test/parser/as/test_decorators4-expected.txt +++ b/ets2panda/test/parser/as/test_decorators4-expected.txt @@ -1,271 +1 @@ -{ - "type": "Program", - "statements": [ - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "Foo", - "loc": { - "start": { - "line": 17, - "column": 7, - "program": "test_decorators4.ts" - }, - "end": { - "line": 17, - "column": 10, - "program": "test_decorators4.ts" - } - } - }, - "superClass": null, - "implements": [], - "constructor": { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - }, - "end": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - }, - "end": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - }, - "end": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - }, - "end": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - }, - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "a", - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 6, - "program": "test_decorators4.ts" - } - } - }, - "kind": "method", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "returnType": { - "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "i32", - "loc": { - "start": { - "line": 19, - "column": 10, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 13, - "program": "test_decorators4.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 10, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 13, - "program": "test_decorators4.ts" - } - } - }, - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 19, - "column": 14, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 17, - "program": "test_decorators4.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 6, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 17, - "program": "test_decorators4.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 6, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 17, - "program": "test_decorators4.ts" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 18, - "column": 5, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 17, - "program": "test_decorators4.ts" - } - } - } - ], - "loc": { - "start": { - "line": 17, - "column": 11, - "program": "test_decorators4.ts" - }, - "end": { - "line": 21, - "column": 1, - "program": "test_decorators4.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 1, - "program": "test_decorators4.ts" - }, - "end": { - "line": 21, - "column": 1, - "program": "test_decorators4.ts" - } - } - } - ], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "test_decorators4.ts" - }, - "end": { - "line": 21, - "column": 1, - "program": "test_decorators4.ts" - } - } -} +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..d1a3bcdae8483d7288b1e781bdc0cf78faaf1ab3 100644 --- a/ets2panda/test/parser/as/test_interface-expected.txt +++ b/ets2panda/test/parser/as/test_interface-expected.txt @@ -14,7 +14,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], "loc": { "start": { "line": 18, @@ -33,7 +32,6 @@ "name": { "type": "Identifier", "name": "u8", - "decorators": [], "loc": { "start": { "line": 18, @@ -82,7 +80,6 @@ "key": { "type": "Identifier", "name": "b", - "decorators": [], "loc": { "start": { "line": 19, @@ -101,7 +98,6 @@ "name": { "type": "Identifier", "name": "Array", - "decorators": [], "loc": { "start": { "line": 19, @@ -123,7 +119,6 @@ "name": { "type": "Identifier", "name": "i32", - "decorators": [], "loc": { "start": { "line": 19, @@ -199,7 +194,6 @@ "key": { "type": "Identifier", "name": "c", - "decorators": [], "loc": { "start": { "line": 20, @@ -228,7 +222,6 @@ "name": { "type": "Identifier", "name": "Array", - "decorators": [], "loc": { "start": { "line": 20, @@ -250,7 +243,6 @@ "name": { "type": "Identifier", "name": "i64", - "decorators": [], "loc": { "start": { "line": 20, @@ -306,7 +298,6 @@ } } }, - "decorators": [], "loc": { "start": { "line": 20, @@ -328,7 +319,6 @@ "name": { "type": "Identifier", "name": "void", - "decorators": [], "loc": { "start": { "line": 20, @@ -356,7 +346,6 @@ } } }, - "decorators": [], "loc": { "start": { "line": 20, @@ -376,7 +365,6 @@ "name": { "type": "Identifier", "name": "u64", - "decorators": [], "loc": { "start": { "line": 20, @@ -417,7 +405,6 @@ } } }, - "decorators": [], "loc": { "start": { "line": 20, @@ -439,7 +426,6 @@ "name": { "type": "Identifier", "name": "Array", - "decorators": [], "loc": { "start": { "line": 20, @@ -461,7 +447,6 @@ "name": { "type": "Identifier", "name": "u8", - "decorators": [], "loc": { "start": { "line": 20, @@ -518,7 +503,6 @@ } }, "optional": true, - "decorators": [], "loc": { "start": { "line": 20, @@ -538,7 +522,6 @@ "name": { "type": "Identifier", "name": "bool", - "decorators": [], "loc": { "start": { "line": 20, @@ -586,7 +569,6 @@ "key": { "type": "Identifier", "name": "k", - "decorators": [], "loc": { "start": { "line": 21, @@ -609,7 +591,6 @@ "name": { "type": "Identifier", "name": "v128", - "decorators": [], "loc": { "start": { "line": 21, @@ -637,7 +618,6 @@ } } }, - "decorators": [], "loc": { "start": { "line": 21, @@ -660,7 +640,6 @@ "name": { "type": "Identifier", "name": "R", - "decorators": [], "loc": { "start": { "line": 21, @@ -692,7 +671,6 @@ "name": { "type": "Identifier", "name": "U", - "decorators": [], "loc": { "start": { "line": 21, @@ -738,7 +716,6 @@ "name": { "type": "Identifier", "name": "i8", - "decorators": [], "loc": { "start": { "line": 21, @@ -789,7 +766,6 @@ "name": { "type": "Identifier", "name": "i8", - "decorators": [], "loc": { "start": { "line": 22, @@ -817,7 +793,6 @@ } } }, - "decorators": [], "loc": { "start": { "line": 22, @@ -836,7 +811,6 @@ "name": { "type": "Identifier", "name": "v128", - "decorators": [], "loc": { "start": { "line": 22, @@ -895,7 +869,6 @@ "id": { "type": "Identifier", "name": "foo", - "decorators": [], "loc": { "start": { "line": 17, @@ -918,7 +891,6 @@ "name": { "type": "Identifier", "name": "T", - "decorators": [], "loc": { "start": { "line": 17, @@ -937,7 +909,6 @@ "name": { "type": "Identifier", "name": "i32", - "decorators": [], "loc": { "start": { "line": 17, @@ -983,7 +954,6 @@ "name": { "type": "Identifier", "name": "Z", - "decorators": [], "loc": { "start": { "line": 17, @@ -1002,7 +972,6 @@ "name": { "type": "Identifier", "name": "externref", - "decorators": [], "loc": { "start": { "line": 17, @@ -1084,3 +1053,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 ed6592dc6af4774ac6c3545dff8515faf4c23db6..e39f1aecc8ce6203a48217bf801e00dcb054909e 100644 --- a/ets2panda/test/parser/as/test_object_literal-expected.txt +++ b/ets2panda/test/parser/as/test_object_literal-expected.txt @@ -79,7 +79,7 @@ { "type": "Property", "method": false, - "shorthand": false, + "shorthand": true, "computed": false, "key": { "type": "StringLiteral", @@ -285,4 +285,4 @@ } } } -TypeError: Block-scoped variable 'a' used before its declaration [test_object_literal.ts:17:5] +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 429ae2cd6d68dd21cd54a92afa16281ee84cd720..c368aa8e463185a38745639a604dd4f9b4690420 100644 --- a/ets2panda/test/parser/as/test_type_annotation-expected.txt +++ b/ets2panda/test/parser/as/test_type_annotation-expected.txt @@ -10,13 +10,29 @@ "type": "Identifier", "name": "a", "typeAnnotation": { - "type": "TSUnionType", - "types": [ - { - "type": "TSArrayType", - "elementType": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", + "loc": { + "start": { + "line": 17, + "column": 16, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 17, + "column": 20, + "program": "test_type_annotation.ts" + } + } + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i32", "loc": { @@ -32,6 +48,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 17, @@ -44,37 +61,22 @@ "program": "test_type_annotation.ts" } } - }, - "annotations": [], - "loc": { - "start": { - "line": 17, - "column": 8, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 17, - "column": 13, - "program": "test_type_annotation.ts" - } } - }, - { - "type": "TSNullKeyword", - "loc": { - "start": { - "line": 17, - "column": 16, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 17, - "column": 20, - "program": "test_type_annotation.ts" - } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null } } - ], + }, + "isNullable": true, "loc": { "start": { "line": 17, @@ -145,8 +147,8 @@ "type": "Identifier", "name": "a", "typeAnnotation": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i8", "loc": { @@ -162,6 +164,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 18, @@ -192,10 +195,10 @@ "type": "Identifier", "name": "b", "typeAnnotation": { - "type": "TSLiteralType", - "literal": { - "type": "BooleanLiteral", - "value": true, + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "bool", "loc": { "start": { "line": 18, @@ -209,6 +212,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 18, @@ -237,39 +241,73 @@ } ], "returnType": { - "type": "TSArrayType", - "elementType": { - "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "i64", - "loc": { - "start": { - "line": 18, - "column": 28, - "program": "test_type_annotation.ts" + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", + "loc": { + "start": { + "line": 19, + "column": 1, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 19, + "column": 4, + "program": "test_type_annotation.ts" + } + } + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "i64", + "loc": { + "start": { + "line": 18, + "column": 28, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 18, + "column": 31, + "program": "test_type_annotation.ts" + } + } }, - "end": { - "line": 18, - "column": 31, - "program": "test_type_annotation.ts" + "isNullable": false, + "loc": { + "start": { + "line": 18, + "column": 28, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 18, + "column": 31, + "program": "test_type_annotation.ts" + } } } - }, + ], "loc": { "start": { - "line": 18, - "column": 28, - "program": "test_type_annotation.ts" + "line": 1, + "column": 1, + "program": null }, "end": { - "line": 18, - "column": 31, - "program": "test_type_annotation.ts" + "line": 1, + "column": 1, + "program": null } } }, - "annotations": [], + "isNullable": false, "loc": { "start": { "line": 18, @@ -277,8 +315,8 @@ "program": "test_type_annotation.ts" }, "end": { - "line": 18, - "column": 33, + "line": 19, + "column": 4, "program": "test_type_annotation.ts" } } @@ -290,8 +328,8 @@ "program": "test_type_annotation.ts" }, "end": { - "line": 18, - "column": 33, + "line": 19, + "column": 4, "program": "test_type_annotation.ts" } } @@ -347,29 +385,143 @@ "type": "Identifier", "name": "c", "typeAnnotation": { - "type": "TSArrayType", - "elementType": { - "type": "TSArrayType", - "elementType": { - "type": "TSArrayType", - "elementType": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", + "loc": { + "start": { + "line": 20, + "column": 1, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 20, + "column": 4, + "program": "test_type_annotation.ts" + } + } + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { "type": "Identifier", - "name": "u64", + "name": "Array", "loc": { "start": { "line": 19, - "column": 8, + "column": 15, "program": "test_type_annotation.ts" }, "end": { "line": 19, - "column": 11, + "column": 16, "program": "test_type_annotation.ts" } } }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", + "loc": { + "start": { + "line": 19, + "column": 13, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 19, + "column": 14, + "program": "test_type_annotation.ts" + } + } + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "u64", + "loc": { + "start": { + "line": 19, + "column": 8, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 19, + "column": 11, + "program": "test_type_annotation.ts" + } + } + }, + "isNullable": false, + "loc": { + "start": { + "line": 19, + "column": 8, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 19, + "column": 11, + "program": "test_type_annotation.ts" + } + } + } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + }, + "isNullable": false, + "loc": { + "start": { + "line": 19, + "column": 8, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 19, + "column": 14, + "program": "test_type_annotation.ts" + } + } + } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + }, + "isNullable": false, "loc": { "start": { "line": 19, @@ -378,40 +530,26 @@ }, "end": { "line": 19, - "column": 11, + "column": 16, "program": "test_type_annotation.ts" } } - }, - "annotations": [], - "loc": { - "start": { - "line": 19, - "column": 8, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 19, - "column": 13, - "program": "test_type_annotation.ts" - } } - }, - "annotations": [], + ], "loc": { "start": { - "line": 19, - "column": 8, - "program": "test_type_annotation.ts" + "line": 1, + "column": 1, + "program": null }, "end": { - "line": 19, - "column": 15, - "program": "test_type_annotation.ts" + "line": 1, + "column": 1, + "program": null } } }, - "annotations": [], + "isNullable": false, "loc": { "start": { "line": 19, @@ -419,8 +557,8 @@ "program": "test_type_annotation.ts" }, "end": { - "line": 19, - "column": 17, + "line": 20, + "column": 4, "program": "test_type_annotation.ts" } } @@ -488,7 +626,24 @@ "type": "Identifier", "name": "b", "typeAnnotation": { - "type": "TSVoidKeyword", + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "void", + "loc": { + "start": { + "line": 20, + "column": 16, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 20, + "column": 20, + "program": "test_type_annotation.ts" + } + } + }, + "isNullable": false, "loc": { "start": { "line": 20, @@ -519,8 +674,8 @@ "type": "Identifier", "name": "c", "typeAnnotation": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i32", "loc": { @@ -536,6 +691,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 20, @@ -565,39 +721,73 @@ } ], "returnType": { - "type": "TSArrayType", - "elementType": { - "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "u8", - "loc": { - "start": { - "line": 20, - "column": 34, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 20, - "column": 36, - "program": "test_type_annotation.ts" - } - } - }, + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", "loc": { "start": { "line": 20, - "column": 34, + "column": 38, "program": "test_type_annotation.ts" }, "end": { "line": 20, - "column": 36, + "column": 39, "program": "test_type_annotation.ts" } } }, - "annotations": [], + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "u8", + "loc": { + "start": { + "line": 20, + "column": 34, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 20, + "column": 36, + "program": "test_type_annotation.ts" + } + } + }, + "isNullable": false, + "loc": { + "start": { + "line": 20, + "column": 34, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 20, + "column": 36, + "program": "test_type_annotation.ts" + } + } + } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + }, + "isNullable": false, "loc": { "start": { "line": 20, @@ -606,7 +796,7 @@ }, "end": { "line": 20, - "column": 38, + "column": 39, "program": "test_type_annotation.ts" } } @@ -619,7 +809,7 @@ }, "end": { "line": 20, - "column": 38, + "column": 39, "program": "test_type_annotation.ts" } } @@ -641,13 +831,29 @@ "type": "Identifier", "name": "b", "typeAnnotation": { - "type": "TSUnionType", - "types": [ - { - "type": "TSArrayType", - "elementType": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", + "loc": { + "start": { + "line": 20, + "column": 51, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 20, + "column": 55, + "program": "test_type_annotation.ts" + } + } + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i64", "loc": { @@ -663,6 +869,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 20, @@ -675,37 +882,22 @@ "program": "test_type_annotation.ts" } } - }, - "annotations": [], - "loc": { - "start": { - "line": 20, - "column": 43, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 20, - "column": 48, - "program": "test_type_annotation.ts" - } } - }, - { - "type": "TSNullKeyword", - "loc": { - "start": { - "line": 20, - "column": 51, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 20, - "column": 55, - "program": "test_type_annotation.ts" - } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null } } - ], + }, + "isNullable": true, "loc": { "start": { "line": 20, @@ -734,13 +926,29 @@ } ], "returnType": { - "type": "TSUnionType", - "types": [ - { - "type": "TSArrayType", - "elementType": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", + "loc": { + "start": { + "line": 20, + "column": 67, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 20, + "column": 71, + "program": "test_type_annotation.ts" + } + } + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { "type": "Identifier", "name": "u8", "loc": { @@ -756,6 +964,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 20, @@ -768,37 +977,22 @@ "program": "test_type_annotation.ts" } } - }, - "annotations": [], - "loc": { - "start": { - "line": 20, - "column": 60, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 20, - "column": 64, - "program": "test_type_annotation.ts" - } } - }, - { - "type": "TSNullKeyword", - "loc": { - "start": { - "line": 20, - "column": 67, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 20, - "column": 71, - "program": "test_type_annotation.ts" - } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null } } - ], + }, + "isNullable": true, "loc": { "start": { "line": 20, @@ -881,4 +1075,4 @@ } } } -TypeError: Cannot find name i32 [test_type_annotation.ts:17:8] +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_decl_import-expected.txt b/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_decl_import-expected.txt index 1504892bccdb8757d2cf4dc3529a1d0c3d3d3167..b57c66ea62579c9e1a4ff1573eaa5c56b3ccfc25 100644 --- a/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_decl_import-expected.txt +++ b/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_decl_import-expected.txt @@ -180,106 +180,44 @@ "definition": { "id": { "type": "Identifier", - "name": "B", + "name": "ETSGLOBAL", "loc": { "start": { - "line": 22, - "column": 7, + "line": 1, + "column": 1, "program": "dynamic_decl_import.ets" }, "end": { - "line": 22, - "column": 8, + "line": 1, + "column": 1, "program": "dynamic_decl_import.ets" } } }, "superClass": null, - "implements": [ - { - "type": "TSClassImplements", - "expression": { - "type": "ETSTypeReference", - "part": { - "type": "ETSTypeReferencePart", - "name": { - "type": "Identifier", - "name": "I", - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 21, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 21, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 21, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - } - } - } - ], + "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "f1", + "name": "main", "loc": { "start": { - "line": 23, - "column": 14, + "line": 31, + "column": 10, "program": "dynamic_decl_import.ets" }, "end": { - "line": 23, - "column": 16, + "line": 31, + "column": 14, "program": "dynamic_decl_import.ets" } } }, "kind": "method", "accessibility": "public", - "static": false, + "static": true, "optional": false, "computed": false, "value": { @@ -288,16 +226,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "f1", + "name": "main", "loc": { "start": { - "line": 23, - "column": 14, + "line": 31, + "column": 10, "program": "dynamic_decl_import.ets" }, "end": { - "line": 23, - "column": 16, + "line": 31, + "column": 14, "program": "dynamic_decl_import.ets" } } @@ -305,625 +243,18 @@ "generator": false, "async": false, "expression": false, - "params": [ - { - "type": "ETSParameterExpression", - "name": { - "type": "Identifier", - "name": "p", - "typeAnnotation": { - "type": "ETSTypeReference", - "part": { - "type": "ETSTypeReferencePart", - "name": { - "type": "Identifier", - "name": "string", - "loc": { - "start": { - "line": 23, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 23, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 23, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 23, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 17, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 23, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 17, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 23, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - } - ], + "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { - "line": 23, - "column": 29, + "line": 31, + "column": 18, "program": "dynamic_decl_import.ets" }, "end": { - "line": 23, - "column": 35, - "program": "dynamic_decl_import.ets" - } - } - }, - "body": { - "type": "BlockStatement", - "statements": [ - { - "type": "ReturnStatement", - "argument": { - "type": "NumberLiteral", - "value": 10, - "loc": { - "start": { - "line": 24, - "column": 16, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 24, - "column": 18, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 24, - "column": 9, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 24, - "column": 19, - "program": "dynamic_decl_import.ets" - } - } - } - ], - "loc": { - "start": { - "line": 23, - "column": 36, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 25, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 16, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 25, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 16, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 25, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 23, - "column": 14, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 25, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "f2", - "loc": { - "start": { - "line": 26, - "column": 14, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 16, - "program": "dynamic_decl_import.ets" - } - } - }, - "kind": "method", - "accessibility": "public", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "f2", - "loc": { - "start": { - "line": 26, - "column": 14, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 16, - "program": "dynamic_decl_import.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [ - { - "type": "ETSParameterExpression", - "name": { - "type": "Identifier", - "name": "p", - "typeAnnotation": { - "type": "ETSPrimitiveType", - "loc": { - "start": { - "line": 26, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 17, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 17, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - } - ], - "returnType": { - "type": "ETSTypeReference", - "part": { - "type": "ETSTypeReferencePart", - "name": { - "type": "Identifier", - "name": "string", - "loc": { - "start": { - "line": 26, - "column": 29, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 35, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 29, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 35, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 29, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 35, - "program": "dynamic_decl_import.ets" - } - } - }, - "body": { - "type": "BlockStatement", - "statements": [ - { - "type": "ReturnStatement", - "argument": { - "type": "StringLiteral", - "value": "abc", - "loc": { - "start": { - "line": 27, - "column": 16, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 27, - "column": 21, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 27, - "column": 9, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 27, - "column": 21, - "program": "dynamic_decl_import.ets" - } - } - } - ], - "loc": { - "start": { - "line": 26, - "column": 36, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 28, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 16, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 28, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 16, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 28, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 26, - "column": 14, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 28, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - } - ], - "loc": { - "start": { - "line": 22, - "column": 22, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 31, - "column": 9, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 1, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 31, - "column": 9, - "program": "dynamic_decl_import.ets" - } - } - }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "ETSGLOBAL", - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 1, - "column": 1, - "program": "dynamic_decl_import.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "main", - "loc": { - "start": { - "line": 31, - "column": 10, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 31, - "column": 14, - "program": "dynamic_decl_import.ets" - } - } - }, - "kind": "method", - "accessibility": "public", - "static": true, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "main", - "loc": { - "start": { - "line": 31, - "column": 10, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 31, - "column": 14, - "program": "dynamic_decl_import.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "returnType": { - "type": "ETSPrimitiveType", - "loc": { - "start": { - "line": 31, - "column": 18, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 31, - "column": 22, + "line": 31, + "column": 22, "program": "dynamic_decl_import.ets" } } @@ -1514,174 +845,741 @@ }, "loc": { "start": { - "line": 36, + "line": 36, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 36, + "column": 16, + "program": "dynamic_decl_import.ets" + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "object": { + "type": "Identifier", + "name": "A", + "loc": { + "start": { + "line": 37, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 37, + "column": 6, + "program": "dynamic_decl_import.ets" + } + } + }, + "property": { + "type": "Identifier", + "name": "f2", + "loc": { + "start": { + "line": 37, + "column": 7, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 37, + "column": 9, + "program": "dynamic_decl_import.ets" + } + } + }, + "computed": false, + "optional": false, + "loc": { + "start": { + "line": 37, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 37, + "column": 9, + "program": "dynamic_decl_import.ets" + } + } + }, + "right": { + "type": "Identifier", + "name": "f2", + "loc": { + "start": { + "line": 37, + "column": 12, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 37, + "column": 14, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 37, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 37, + "column": 14, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 37, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 37, + "column": 14, + "program": "dynamic_decl_import.ets" + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "foo", + "loc": { + "start": { + "line": 39, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 39, + "column": 8, + "program": "dynamic_decl_import.ets" + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "obj", + "loc": { + "start": { + "line": 39, + "column": 9, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 39, + "column": 12, + "program": "dynamic_decl_import.ets" + } + } + } + ], + "optional": false, + "loc": { + "start": { + "line": 39, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 39, + "column": 13, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 39, "column": 5, "program": "dynamic_decl_import.ets" }, "end": { - "line": 36, - "column": 16, + "line": 39, + "column": 13, "program": "dynamic_decl_import.ets" } } + } + ], + "loc": { + "start": { + "line": 31, + "column": 23, + "program": "dynamic_decl_import.ets" }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "object": { - "type": "Identifier", - "name": "A", - "loc": { - "start": { - "line": 37, - "column": 5, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 37, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "property": { + "end": { + "line": 40, + "column": 2, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 31, + "column": 10, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 40, + "column": 2, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 31, + "column": 10, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 40, + "column": 2, + "program": "dynamic_decl_import.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 31, + "column": 1, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 40, + "column": 2, + "program": "dynamic_decl_import.ets" + } + } + } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "dynamic_decl_import.ets" + } + } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "B", + "loc": { + "start": { + "line": 22, + "column": 7, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 8, + "program": "dynamic_decl_import.ets" + } + } + }, + "superClass": null, + "implements": [ + { + "type": "TSClassImplements", + "expression": { + "type": "ETSTypeReference", + "part": { + "type": "ETSTypeReferencePart", + "name": { + "type": "Identifier", + "name": "I", + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 21, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 21, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 21, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + } + } + } + ], + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "f1", + "loc": { + "start": { + "line": 23, + "column": 14, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 23, + "column": 16, + "program": "dynamic_decl_import.ets" + } + } + }, + "kind": "method", + "accessibility": "public", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "f1", + "loc": { + "start": { + "line": 23, + "column": 14, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 23, + "column": 16, + "program": "dynamic_decl_import.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [ + { + "type": "ETSParameterExpression", + "name": { + "type": "Identifier", + "name": "p", + "typeAnnotation": { + "type": "ETSTypeReference", + "part": { + "type": "ETSTypeReferencePart", + "name": { "type": "Identifier", - "name": "f2", + "name": "string", "loc": { "start": { - "line": 37, - "column": 7, + "line": 23, + "column": 20, "program": "dynamic_decl_import.ets" }, "end": { - "line": 37, - "column": 9, + "line": 23, + "column": 26, "program": "dynamic_decl_import.ets" } } }, - "computed": false, - "optional": false, "loc": { "start": { - "line": 37, - "column": 5, + "line": 23, + "column": 20, "program": "dynamic_decl_import.ets" }, "end": { - "line": 37, - "column": 9, + "line": 23, + "column": 26, "program": "dynamic_decl_import.ets" } } }, - "right": { - "type": "Identifier", - "name": "f2", - "loc": { - "start": { - "line": 37, - "column": 12, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 37, - "column": 14, - "program": "dynamic_decl_import.ets" - } + "loc": { + "start": { + "line": 23, + "column": 20, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 23, + "column": 26, + "program": "dynamic_decl_import.ets" } + } + }, + "loc": { + "start": { + "line": 23, + "column": 17, + "program": "dynamic_decl_import.ets" }, + "end": { + "line": 23, + "column": 26, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 17, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 23, + "column": 26, + "program": "dynamic_decl_import.ets" + } + } + } + ], + "returnType": { + "type": "ETSPrimitiveType", + "loc": { + "start": { + "line": 23, + "column": 29, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 23, + "column": 35, + "program": "dynamic_decl_import.ets" + } + } + }, + "body": { + "type": "BlockStatement", + "statements": [ + { + "type": "ReturnStatement", + "argument": { + "type": "NumberLiteral", + "value": 10, "loc": { "start": { - "line": 37, - "column": 5, + "line": 24, + "column": 16, "program": "dynamic_decl_import.ets" }, "end": { - "line": 37, - "column": 14, + "line": 24, + "column": 18, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 24, + "column": 9, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 24, + "column": 19, + "program": "dynamic_decl_import.ets" + } + } + } + ], + "loc": { + "start": { + "line": 23, + "column": 36, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 25, + "column": 6, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 16, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 25, + "column": 6, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 16, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 25, + "column": 6, + "program": "dynamic_decl_import.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 23, + "column": 14, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 25, + "column": 6, + "program": "dynamic_decl_import.ets" + } + } + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "f2", + "loc": { + "start": { + "line": 26, + "column": 14, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 16, + "program": "dynamic_decl_import.ets" + } + } + }, + "kind": "method", + "accessibility": "public", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "f2", + "loc": { + "start": { + "line": 26, + "column": 14, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 16, + "program": "dynamic_decl_import.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [ + { + "type": "ETSParameterExpression", + "name": { + "type": "Identifier", + "name": "p", + "typeAnnotation": { + "type": "ETSPrimitiveType", + "loc": { + "start": { + "line": 26, + "column": 20, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 26, "program": "dynamic_decl_import.ets" } } }, "loc": { "start": { - "line": 37, - "column": 5, + "line": 26, + "column": 17, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 26, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 26, + "column": 17, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 26, + "program": "dynamic_decl_import.ets" + } + } + } + ], + "returnType": { + "type": "ETSTypeReference", + "part": { + "type": "ETSTypeReferencePart", + "name": { + "type": "Identifier", + "name": "string", + "loc": { + "start": { + "line": 26, + "column": 29, "program": "dynamic_decl_import.ets" }, "end": { - "line": 37, - "column": 14, + "line": 26, + "column": 35, "program": "dynamic_decl_import.ets" } } }, + "loc": { + "start": { + "line": 26, + "column": 29, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 35, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 26, + "column": 29, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 35, + "program": "dynamic_decl_import.ets" + } + } + }, + "body": { + "type": "BlockStatement", + "statements": [ { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "foo", - "loc": { - "start": { - "line": 39, - "column": 5, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 39, - "column": 8, - "program": "dynamic_decl_import.ets" - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "obj", - "loc": { - "start": { - "line": 39, - "column": 9, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 39, - "column": 12, - "program": "dynamic_decl_import.ets" - } - } - } - ], - "optional": false, + "type": "ReturnStatement", + "argument": { + "type": "StringLiteral", + "value": "abc", "loc": { "start": { - "line": 39, - "column": 5, + "line": 27, + "column": 16, "program": "dynamic_decl_import.ets" }, "end": { - "line": 39, - "column": 13, + "line": 27, + "column": 21, "program": "dynamic_decl_import.ets" } } }, "loc": { "start": { - "line": 39, - "column": 5, + "line": 27, + "column": 9, "program": "dynamic_decl_import.ets" }, "end": { - "line": 39, - "column": 13, + "line": 27, + "column": 21, "program": "dynamic_decl_import.ets" } } @@ -1689,39 +1587,39 @@ ], "loc": { "start": { - "line": 31, - "column": 23, + "line": 26, + "column": 36, "program": "dynamic_decl_import.ets" }, "end": { - "line": 40, - "column": 2, + "line": 28, + "column": 6, "program": "dynamic_decl_import.ets" } } }, "loc": { "start": { - "line": 31, - "column": 10, + "line": 26, + "column": 16, "program": "dynamic_decl_import.ets" }, "end": { - "line": 40, - "column": 2, + "line": 28, + "column": 6, "program": "dynamic_decl_import.ets" } } }, "loc": { "start": { - "line": 31, - "column": 10, + "line": 26, + "column": 16, "program": "dynamic_decl_import.ets" }, "end": { - "line": 40, - "column": 2, + "line": 28, + "column": 6, "program": "dynamic_decl_import.ets" } } @@ -1729,40 +1627,142 @@ "overloads": [], "loc": { "start": { - "line": 31, - "column": 1, + "line": 26, + "column": 14, "program": "dynamic_decl_import.ets" }, "end": { - "line": 40, - "column": 2, + "line": 28, + "column": 6, "program": "dynamic_decl_import.ets" } } + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + } + } + }, + "kind": "constructor", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [], + "body": { + "type": "BlockStatement", + "statements": [], + "loc": { + "start": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } } ], "loc": { "start": { - "line": 1, - "column": 1, + "line": 22, + "column": 22, "program": "dynamic_decl_import.ets" }, "end": { - "line": 1, - "column": 1, + "line": 31, + "column": 9, "program": "dynamic_decl_import.ets" } } }, "loc": { "start": { - "line": 1, + "line": 22, "column": 1, "program": "dynamic_decl_import.ets" }, "end": { - "line": 1, - "column": 1, + "line": 31, + "column": 9, "program": "dynamic_decl_import.ets" } } @@ -1781,5 +1781,5 @@ } } } -TypeError: B is not abstract and does not implement getter for s property in I [dynamic_decl_import.ets:22:22] -TypeError: class B can not implements interface I which is from dynamic declaration file. [dynamic_decl_import.ets:22:22] +[dynamic_decl_import.ets:22:22] Semantic error ESE0188: B is not abstract and does not implement getter for s property in I +[dynamic_decl_import.ets:22:22] Semantic error ESE24143: class B can not implements interface I which is from dynamic declaration file. diff --git a/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_iface_decl_bad-expected.txt b/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_iface_decl_bad-expected.txt index e95dcaf92a26c65e952b3326eb93066f87481d41..f5fa50aa863b726b7f085725cafbca3d9651886d 100644 --- a/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_iface_decl_bad-expected.txt +++ b/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_iface_decl_bad-expected.txt @@ -86,105 +86,44 @@ "definition": { "id": { "type": "Identifier", - "name": "A", + "name": "ETSGLOBAL", "loc": { "start": { - "line": 22, - "column": 7, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 22, - "column": 8, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" } } }, "superClass": null, - "implements": [ - { - "type": "TSClassImplements", - "expression": { - "type": "ETSTypeReference", - "part": { - "type": "ETSTypeReferencePart", - "name": { - "type": "Identifier", - "name": "I", - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_iface_decl_bad.ets" - }, - "end": { - "line": 22, - "column": 21, - "program": "dynamic_iface_decl_bad.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_iface_decl_bad.ets" - }, - "end": { - "line": 22, - "column": 21, - "program": "dynamic_iface_decl_bad.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_iface_decl_bad.ets" - }, - "end": { - "line": 22, - "column": 21, - "program": "dynamic_iface_decl_bad.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_iface_decl_bad.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_iface_decl_bad.ets" - } - } - } - ], + "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "constructor", + "name": "main", "loc": { "start": { - "line": 22, - "column": 23, - "program": "dynamic_iface_decl_bad.ets" + "line": 1, + "column": 1, + "program": null }, "end": { - "line": 22, - "column": 23, - "program": "dynamic_iface_decl_bad.ets" + "line": 1, + "column": 1, + "program": null } } }, - "kind": "constructor", - "static": false, + "kind": "method", + "accessibility": "public", + "static": true, "optional": false, "computed": false, "value": { @@ -193,17 +132,17 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "constructor", + "name": "main", "loc": { "start": { - "line": 22, - "column": 23, - "program": "dynamic_iface_decl_bad.ets" + "line": 1, + "column": 1, + "program": null }, "end": { - "line": 22, - "column": 23, - "program": "dynamic_iface_decl_bad.ets" + "line": 1, + "column": 1, + "program": null } } }, @@ -216,39 +155,39 @@ "statements": [], "loc": { "start": { - "line": 22, - "column": 23, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 22, - "column": 23, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" } } }, "loc": { "start": { - "line": 22, - "column": 23, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 22, - "column": 23, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" } } }, "loc": { "start": { - "line": 22, - "column": 23, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 22, - "column": 23, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" } } @@ -258,38 +197,38 @@ "start": { "line": 1, "column": 1, - "program": null + "program": "dynamic_iface_decl_bad.ets" }, "end": { "line": 1, "column": 1, - "program": null + "program": "dynamic_iface_decl_bad.ets" } } } ], "loc": { "start": { - "line": 22, - "column": 22, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 24, - "column": 2, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" } } }, "loc": { "start": { - "line": 22, + "line": 1, "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 24, - "column": 2, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" } } @@ -299,44 +238,105 @@ "definition": { "id": { "type": "Identifier", - "name": "ETSGLOBAL", + "name": "A", "loc": { "start": { - "line": 1, - "column": 1, + "line": 22, + "column": 7, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, + "line": 22, + "column": 8, "program": "dynamic_iface_decl_bad.ets" } } }, "superClass": null, - "implements": [], + "implements": [ + { + "type": "TSClassImplements", + "expression": { + "type": "ETSTypeReference", + "part": { + "type": "ETSTypeReferencePart", + "name": { + "type": "Identifier", + "name": "I", + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_iface_decl_bad.ets" + }, + "end": { + "line": 22, + "column": 21, + "program": "dynamic_iface_decl_bad.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_iface_decl_bad.ets" + }, + "end": { + "line": 22, + "column": 21, + "program": "dynamic_iface_decl_bad.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_iface_decl_bad.ets" + }, + "end": { + "line": 22, + "column": 21, + "program": "dynamic_iface_decl_bad.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_iface_decl_bad.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_iface_decl_bad.ets" + } + } + } + ], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "main", + "name": "constructor", "loc": { "start": { - "line": 1, - "column": 1, - "program": null + "line": 22, + "column": 23, + "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, - "program": null + "line": 22, + "column": 23, + "program": "dynamic_iface_decl_bad.ets" } } }, - "kind": "method", - "accessibility": "public", - "static": true, + "kind": "constructor", + "static": false, "optional": false, "computed": false, "value": { @@ -345,17 +345,17 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "main", + "name": "constructor", "loc": { "start": { - "line": 1, - "column": 1, - "program": null + "line": 22, + "column": 23, + "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, - "program": null + "line": 22, + "column": 23, + "program": "dynamic_iface_decl_bad.ets" } } }, @@ -368,39 +368,39 @@ "statements": [], "loc": { "start": { - "line": 1, - "column": 1, + "line": 22, + "column": 23, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, + "line": 22, + "column": 23, "program": "dynamic_iface_decl_bad.ets" } } }, "loc": { "start": { - "line": 1, - "column": 1, + "line": 22, + "column": 23, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, + "line": 22, + "column": 23, "program": "dynamic_iface_decl_bad.ets" } } }, "loc": { "start": { - "line": 1, - "column": 1, + "line": 22, + "column": 23, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, + "line": 22, + "column": 23, "program": "dynamic_iface_decl_bad.ets" } } @@ -410,38 +410,38 @@ "start": { "line": 1, "column": 1, - "program": "dynamic_iface_decl_bad.ets" + "program": null }, "end": { "line": 1, "column": 1, - "program": "dynamic_iface_decl_bad.ets" + "program": null } } } ], "loc": { "start": { - "line": 1, - "column": 1, + "line": 22, + "column": 22, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, + "line": 24, + "column": 2, "program": "dynamic_iface_decl_bad.ets" } } }, "loc": { "start": { - "line": 1, + "line": 22, "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, + "line": 24, + "column": 2, "program": "dynamic_iface_decl_bad.ets" } } @@ -460,5 +460,5 @@ } } } -TypeError: A is not abstract and does not override abstract method f1(p: String): Double in I [dynamic_iface_decl_bad.ets:22:22] -TypeError: class A can not implements interface I which is from dynamic declaration file. [dynamic_iface_decl_bad.ets:22:22] +[dynamic_iface_decl_bad.ets:22:22] Semantic error ESE0190: A is not abstract and does not override abstract method f1(p: String): Double in I +[dynamic_iface_decl_bad.ets:22:22] Semantic error ESE24143: class A can not implements interface I which is from dynamic declaration file. diff --git a/ets2panda/test/parser/ets/dynamic_import_tests/modules/instanceof-expected.txt b/ets2panda/test/parser/ets/dynamic_import_tests/modules/instanceof-expected.txt index fc76bf75e5823d628d886528aa5b35e8fb727d9d..0d226767c1e413dcb815388b2f66cc305a7a7af8 100644 --- a/ets2panda/test/parser/ets/dynamic_import_tests/modules/instanceof-expected.txt +++ b/ets2panda/test/parser/ets/dynamic_import_tests/modules/instanceof-expected.txt @@ -1,6 +1,54 @@ { "type": "Program", "statements": [ + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "ETSGLOBAL", + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "instanceof.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "instanceof.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "instanceof.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "instanceof.ets" + } + } + }, + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "instanceof.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "instanceof.ets" + } + } + }, { "type": "ClassDeclaration", "definition": { @@ -302,54 +350,6 @@ "program": "instanceof.ets" } } - }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "ETSGLOBAL", - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "instanceof.ets" - }, - "end": { - "line": 1, - "column": 1, - "program": "instanceof.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "instanceof.ets" - }, - "end": { - "line": 1, - "column": 1, - "program": "instanceof.ets" - } - } - }, - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "instanceof.ets" - }, - "end": { - "line": 1, - "column": 1, - "program": "instanceof.ets" - } - } } ], "loc": { 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 982735de844b85db78138777a9c2ba9fba1de24a..68d25a8c849b819bcfaf7dbe9ca38769f5156850 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 @@ -382,3 +382,4 @@ } } } +[import_several_2.ets:16:14] Warning W125428: 'foo' has already imported 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 a8eb8a7897add9f7297860a38cb989019f25d2af..a15f7fdcfd27ae0f7bbe640ac88a93b0ae5c9c9c 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 @@ -564,3 +564,4 @@ } } } +[import_several_7.ets:16:21] Warning W32596: 'foo' is explicitly used with alias several times 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 ff444fa8a993a4352e1309b1b1c9f253944383e9..3b28bdee0a17ea7b47e3478a6bf332c456114b71 100644 --- 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 @@ -325,4 +325,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 ff49dbefdea3ee238b2260158a00746a68daae38..13b2432c6ac0edc36217a7eb3f5322841bbc2f59 100644 --- 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 @@ -325,4 +325,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 ad0878f219d21ec6e02d6ecdf4d3904eb760385b..3ecb29df7007943406a44ab2090cdcbc3c475506 100644 --- a/ets2panda/test/parser/ets/instanceof-expected.txt +++ b/ets2panda/test/parser/ets/instanceof-expected.txt @@ -930,4 +930,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 826fb2699d8260a1832c33e033c4bc750b69196b..f60d6f67ee2d41df34a5983b0293df5e7a244fb8 100644 --- a/ets2panda/test/parser/ets/interfaces-expected.txt +++ b/ets2panda/test/parser/ets/interfaces-expected.txt @@ -1346,4 +1346,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 69f3b15827ba7e545333afac6893d7fcb0ac61e4..e904f7fdcf0f313cac6d23ccee1e3c1ed87fc36f 100644 --- a/ets2panda/test/parser/ets/literals-expected.txt +++ b/ets2panda/test/parser/ets/literals-expected.txt @@ -1448,4 +1448,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 fab1f541b7a8583f6014d2a4463f1078acf812d9..d2d1eecb249bf3149d714e24901cee3d101e7138 100644 --- a/ets2panda/test/parser/ets/re_export/import_10-expected.txt +++ b/ets2panda/test/parser/ets/re_export/import_10-expected.txt @@ -262,4 +262,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 83bc4e0efbb3f46283438048c8fafdc2931914b5..486afe375268b4b1c6d97b1b756b7b3030f06925 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 @@ -357,4 +357,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/switch2-expected.txt b/ets2panda/test/parser/ets/switch2-expected.txt index d74844750a45c393e8c07852fa9551af5ff0a58c..55bde82ff359f0e35ec9192ef0442edc79a88649 100644 --- a/ets2panda/test/parser/ets/switch2-expected.txt +++ b/ets2panda/test/parser/ets/switch2-expected.txt @@ -713,6 +713,6 @@ } } } -TypeError: Switch case type 'int' is not comparable to discriminant type 'byte' [switch2.ets:21:8] -TypeError: Switch case type 'int' is not comparable to discriminant type 'byte' [switch2.ets:22:8] -TypeError: Switch case type 'int' is not comparable to discriminant type 'byte' [switch2.ets:25:8] +[switch2.ets:21:8] Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'byte' +[switch2.ets:22:8] Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'byte' +[switch2.ets:25:8] Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'byte' diff --git a/ets2panda/test/parser/ets/switch_char_compare_num-expected.txt b/ets2panda/test/parser/ets/switch_char_compare_num-expected.txt index 713d9a69eae3d03c8fb4743884e74ff0551fe7b4..8a7f5f2bf7af368ec56ecbc2dd0927bc9f6fc301 100644 --- a/ets2panda/test/parser/ets/switch_char_compare_num-expected.txt +++ b/ets2panda/test/parser/ets/switch_char_compare_num-expected.txt @@ -364,4 +364,4 @@ } } } -TypeError: Switch case type 'int' is not comparable to discriminant type 'char' [switch_char_compare_num.ets:21:14] +[switch_char_compare_num.ets:21:14] Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'char' diff --git a/ets2panda/test/parser/ets/test_jsvalue_get_double-expected.txt b/ets2panda/test/parser/ets/test_jsvalue_get_double-expected.txt index 18767c6050af85c973b5ba6801145941eaa45ab2..04e560f11987575db389ad336fba970d17ccf7aa 100644 --- a/ets2panda/test/parser/ets/test_jsvalue_get_double-expected.txt +++ b/ets2panda/test/parser/ets/test_jsvalue_get_double-expected.txt @@ -304,4 +304,4 @@ } } } -TypeError: Type 'JSValue' cannot be assigned to type 'Double' [test_jsvalue_get_double.ets:17:21] +[test_jsvalue_get_double.ets:17:21] Semantic error ESE0318: Type 'JSValue' cannot be assigned to type 'Double' diff --git a/ets2panda/test/parser/ets/test_jsvalue_get_property_1-expected.txt b/ets2panda/test/parser/ets/test_jsvalue_get_property_1-expected.txt index 1872e3814941c4721ee4b95a9ee363abd49cbde0..9ba1c0cac9cf84ce0edf2c5c3d82a4a912771408 100644 --- a/ets2panda/test/parser/ets/test_jsvalue_get_property_1-expected.txt +++ b/ets2panda/test/parser/ets/test_jsvalue_get_property_1-expected.txt @@ -335,4 +335,4 @@ } } } -TypeError: Property 'prop_name' does not exist on type 'JSValue' [test_jsvalue_get_property_1.ets:17:23] +[test_jsvalue_get_property_1.ets:17:23] Semantic error ESE0087: Property 'prop_name' does not exist on type 'JSValue' diff --git a/ets2panda/test/parser/ets/test_jsvalue_get_property_2-expected.txt b/ets2panda/test/parser/ets/test_jsvalue_get_property_2-expected.txt index ba25d79ccda22e55a4b2d4d05aca6e07c9785e30..d627a4825aba81791adcd9ea888fa3518e926652 100644 --- a/ets2panda/test/parser/ets/test_jsvalue_get_property_2-expected.txt +++ b/ets2panda/test/parser/ets/test_jsvalue_get_property_2-expected.txt @@ -335,4 +335,4 @@ } } } -TypeError: Property 'prop_name_1' does not exist on type 'JSValue' [test_jsvalue_get_property_2.ets:17:23] +[test_jsvalue_get_property_2.ets:17:23] Semantic error ESE0087: Property 'prop_name_1' does not exist on type 'JSValue' diff --git a/ets2panda/test/parser/ets/test_jsvalue_set_double-expected.txt b/ets2panda/test/parser/ets/test_jsvalue_set_double-expected.txt index ec60fb2752fed459de6316aeaff25676ad49deba..efaccee96b97d8fb6464f4c1385af7bb5eb55ea4 100644 --- a/ets2panda/test/parser/ets/test_jsvalue_set_double-expected.txt +++ b/ets2panda/test/parser/ets/test_jsvalue_set_double-expected.txt @@ -445,4 +445,4 @@ } } } -TypeError: Type 'Double' cannot be assigned to type 'JSValue' [test_jsvalue_set_double.ets:18:9] +[test_jsvalue_set_double.ets:18:9] Semantic error ESE0318: Type 'Double' cannot be assigned to type 'JSValue' diff --git a/ets2panda/test/parser/ets/test_type_alias6-expected.txt b/ets2panda/test/parser/ets/test_type_alias6-expected.txt index 23c786fedf14a76b2645aba775d68158cee7b45e..ae1650de4cdedaabd3a34abf5a280856e8b52d12 100644 --- a/ets2panda/test/parser/ets/test_type_alias6-expected.txt +++ b/ets2panda/test/parser/ets/test_type_alias6-expected.txt @@ -267,5 +267,5 @@ } } } -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] +[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 diff --git a/ets2panda/test/parser/ets/type_alias_1-expected.txt b/ets2panda/test/parser/ets/type_alias_1-expected.txt index 2c757add14ece72f363787ae2a2e1d942dd5dce0..6979a689e84d190a263a102182b4b6313d4c439d 100644 --- a/ets2panda/test/parser/ets/type_alias_1-expected.txt +++ b/ets2panda/test/parser/ets/type_alias_1-expected.txt @@ -423,4 +423,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/parser/js/test-conditional-expression-expected.txt b/ets2panda/test/parser/js/test-conditional-expression-expected.txt index bd941ea332dbc30db52ab528550bb4b60c4543fb..2399eaee92d7f0c86b1a8d1635e8d26795c8a24a 100644 --- a/ets2panda/test/parser/js/test-conditional-expression-expected.txt +++ b/ets2panda/test/parser/js/test-conditional-expression-expected.txt @@ -439,7 +439,7 @@ "loc": { "start": { "line": 25, - "column": 1, + "column": 6, "program": "test-conditional-expression.js" }, "end": { @@ -484,7 +484,7 @@ "loc": { "start": { "line": 25, - "column": 1, + "column": 6, "program": "test-conditional-expression.js" }, "end": { diff --git a/ets2panda/test/parser/js/test-private-field-expected.txt b/ets2panda/test/parser/js/test-private-field-expected.txt index 2dda79cd02189f4fa9f5903b0562dd0f0482b800..1d8f94ea2d3a89db6d7cf9909615b1e2fdf36011 100644 --- a/ets2panda/test/parser/js/test-private-field-expected.txt +++ b/ets2panda/test/parser/js/test-private-field-expected.txt @@ -698,7 +698,7 @@ "start": { "line": 1, "column": 1, - "program": null + "program": "test-private-field.js" }, "end": { "line": 24, diff --git a/ets2panda/test/parser/ts/test-func-param-expected.txt b/ets2panda/test/parser/ts/test-func-param-expected.txt index 6c34035c3540cafb664dbca77a50bad17e1f0d2b..c1ae3afceda1a5db9db00bcf15e31f7430e0c8d4 100644 --- a/ets2panda/test/parser/ts/test-func-param-expected.txt +++ b/ets2panda/test/parser/ts/test-func-param-expected.txt @@ -2568,4 +2568,3 @@ } } } -TypeError: Parameter b implicitly has any type. [test-func-param.ts:19:31] diff --git a/ets2panda/test/parser/ts/test-keyword-declare-expected.txt b/ets2panda/test/parser/ts/test-keyword-declare-expected.txt index 320bfdef5bdcb421a8ec1aa84bc7b371ac9344ea..ac0ba03e0ebfc85dfb81278329d5372209f96a03 100644 --- a/ets2panda/test/parser/ts/test-keyword-declare-expected.txt +++ b/ets2panda/test/parser/ts/test-keyword-declare-expected.txt @@ -1372,4 +1372,3 @@ } } } -TypeError: Variable var1 implicitly has an any type. [test-keyword-declare.ts:17:5] diff --git a/ets2panda/test/parser/ts/test-keyword-declare7-expected.txt b/ets2panda/test/parser/ts/test-keyword-declare7-expected.txt index 33d600634ee41c3fd07470d512bb567783b06a68..468e07947418b0641fd5a1ddbda456be7ee7a0da 100644 --- a/ets2panda/test/parser/ts/test-keyword-declare7-expected.txt +++ b/ets2panda/test/parser/ts/test-keyword-declare7-expected.txt @@ -211,4 +211,3 @@ } } } -TypeError: Function implementation is missing or not immediately following the declaration. [test-keyword-declare7.ts:17:18] diff --git a/ets2panda/test/parser/ts/test-tuple-type-expected.txt b/ets2panda/test/parser/ts/test-tuple-type-expected.txt index 7705c1da37645fd778843112e34148fb84149bc5..137233782ae735ad9e971a80cba54b5f764bd3d4 100644 --- a/ets2panda/test/parser/ts/test-tuple-type-expected.txt +++ b/ets2panda/test/parser/ts/test-tuple-type-expected.txt @@ -1034,4 +1034,3 @@ } } } -TypeError: Cannot find name A [test-tuple-type.ts:21:9] diff --git a/ets2panda/test/parser/ts/test-type-literal-expected.txt b/ets2panda/test/parser/ts/test-type-literal-expected.txt index 6dd28129a98eed7f31db5743b805587136bfcfb0..a84c17f00749bbbc2c74448e837ecd911bfe90ec 100644 --- a/ets2panda/test/parser/ts/test-type-literal-expected.txt +++ b/ets2panda/test/parser/ts/test-type-literal-expected.txt @@ -1123,4 +1123,3 @@ } } } -TypeError: Parameter k implicitly has any type. [test-type-literal.ts:17:70] diff --git a/ets2panda/test/parser/ts/test_decorator-expected.txt b/ets2panda/test/parser/ts/test_decorator-expected.txt index a9628fae8786cc143290792522b2b1072fa4306d..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 --- a/ets2panda/test/parser/ts/test_decorator-expected.txt +++ b/ets2panda/test/parser/ts/test_decorator-expected.txt @@ -1,865 +0,0 @@ -{ - "type": "Program", - "statements": [ - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "Baz", - "decorators": [], - "loc": { - "start": { - "line": 18, - "column": 7, - "program": "test_decorator.ts" - }, - "end": { - "line": 18, - "column": 10, - "program": "test_decorator.ts" - } - } - }, - "superClass": null, - "implements": [], - "constructor": { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "decorators": [], - "loc": { - "start": { - "line": 27, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 16, - "program": "test_decorator.ts" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "name": "a", - "typeAnnotation": { - "type": "TSAnyKeyword", - "loc": { - "start": { - "line": 27, - "column": 23, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 26, - "program": "test_decorator.ts" - } - } - }, - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "g", - "decorators": [], - "loc": { - "start": { - "line": 27, - "column": 18, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 19, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 27, - "column": 17, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 19, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 27, - "column": 20, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 21, - "program": "test_decorator.ts" - } - } - } - ], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 27, - "column": 28, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 31, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 27, - "column": 16, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 31, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 27, - "column": 16, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 31, - "program": "test_decorator.ts" - } - } - }, - "overloads": [], - "decorators": [], - "loc": { - "start": { - "line": 27, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 31, - "program": "test_decorator.ts" - } - } - }, - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "a", - "decorators": [], - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 19, - "column": 6, - "program": "test_decorator.ts" - } - } - }, - "kind": "method", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "loc": { - "start": { - "line": 19, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 19, - "column": 9, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 19, - "column": 9, - "program": "test_decorator.ts" - } - } - }, - "overloads": [], - "decorators": [], - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 19, - "column": 9, - "program": "test_decorator.ts" - } - } - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "a", - "decorators": [], - "loc": { - "start": { - "line": 21, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 21, - "column": 6, - "program": "test_decorator.ts" - } - } - }, - "kind": "method", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 21, - "column": 9, - "program": "test_decorator.ts" - }, - "end": { - "line": 21, - "column": 12, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 21, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 21, - "column": 12, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 21, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 21, - "column": 12, - "program": "test_decorator.ts" - } - } - }, - "overloads": [], - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "c", - "decorators": [], - "loc": { - "start": { - "line": 20, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 20, - "column": 7, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 20, - "column": 7, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 20, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 21, - "column": 12, - "program": "test_decorator.ts" - } - } - }, - { - "type": "ClassProperty", - "key": { - "type": "Identifier", - "name": "c", - "decorators": [], - "loc": { - "start": { - "line": 23, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 23, - "column": 6, - "program": "test_decorator.ts" - } - } - }, - "static": false, - "readonly": false, - "declare": false, - "optional": false, - "computed": false, - "typeAnnotation": { - "type": "TSNumberKeyword", - "loc": { - "start": { - "line": 23, - "column": 8, - "program": "test_decorator.ts" - }, - "end": { - "line": 23, - "column": 14, - "program": "test_decorator.ts" - } - } - }, - "definite": false, - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "d", - "decorators": [], - "loc": { - "start": { - "line": 22, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 22, - "column": 7, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 22, - "column": 7, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 22, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 23, - "column": 6, - "program": "test_decorator.ts" - } - } - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "b", - "decorators": [], - "loc": { - "start": { - "line": 25, - "column": 9, - "program": "test_decorator.ts" - }, - "end": { - "line": 25, - "column": 10, - "program": "test_decorator.ts" - } - } - }, - "kind": "set", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "name": "f", - "decorators": [], - "loc": { - "start": { - "line": 25, - "column": 11, - "program": "test_decorator.ts" - }, - "end": { - "line": 25, - "column": 12, - "program": "test_decorator.ts" - } - } - } - ], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 25, - "column": 14, - "program": "test_decorator.ts" - }, - "end": { - "line": 25, - "column": 17, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 25, - "column": 10, - "program": "test_decorator.ts" - }, - "end": { - "line": 25, - "column": 17, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 25, - "column": 10, - "program": "test_decorator.ts" - }, - "end": { - "line": 25, - "column": 17, - "program": "test_decorator.ts" - } - } - }, - "overloads": [], - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "e", - "decorators": [], - "loc": { - "start": { - "line": 24, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 24, - "column": 7, - "program": "test_decorator.ts" - } - } - }, - "arguments": [], - "optional": false, - "loc": { - "start": { - "line": 24, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 24, - "column": 9, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 24, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 24, - "column": 9, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 24, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 25, - "column": 17, - "program": "test_decorator.ts" - } - } - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "b", - "decorators": [], - "loc": { - "start": { - "line": 26, - "column": 9, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 10, - "program": "test_decorator.ts" - } - } - }, - "kind": "get", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [ - { - "type": "ReturnStatement", - "argument": { - "type": "NumberLiteral", - "value": 1, - "loc": { - "start": { - "line": 26, - "column": 22, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 23, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 15, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 24, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 26, - "column": 13, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 26, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 10, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 26, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 10, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 26, - "program": "test_decorator.ts" - } - } - }, - "overloads": [], - "decorators": [], - "loc": { - "start": { - "line": 26, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 26, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 18, - "column": 11, - "program": "test_decorator.ts" - }, - "end": { - "line": 29, - "column": 1, - "program": "test_decorator.ts" - } - } - }, - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "foo", - "decorators": [], - "loc": { - "start": { - "line": 17, - "column": 2, - "program": "test_decorator.ts" - }, - "end": { - "line": 17, - "column": 5, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 1, - "program": "test_decorator.ts" - }, - "end": { - "line": 17, - "column": 5, - "program": "test_decorator.ts" - } - } - }, - { - "type": "Decorator", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "bar", - "decorators": [], - "loc": { - "start": { - "line": 17, - "column": 7, - "program": "test_decorator.ts" - }, - "end": { - "line": 17, - "column": 10, - "program": "test_decorator.ts" - } - } - }, - "arguments": [], - "optional": false, - "loc": { - "start": { - "line": 17, - "column": 7, - "program": "test_decorator.ts" - }, - "end": { - "line": 17, - "column": 12, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 17, - "column": 12, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 18, - "column": 1, - "program": "test_decorator.ts" - }, - "end": { - "line": 29, - "column": 1, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "test_decorator.ts" - }, - "end": { - "line": 29, - "column": 1, - "program": "test_decorator.ts" - } - } -} diff --git a/ets2panda/test/parser/ts/test_decorator3-expected.txt b/ets2panda/test/parser/ts/test_decorator3-expected.txt index 8bff6131815a899d712ec4d1f3a397011d4dd3cf..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 --- a/ets2panda/test/parser/ts/test_decorator3-expected.txt +++ b/ets2panda/test/parser/ts/test_decorator3-expected.txt @@ -1,452 +0,0 @@ -{ - "type": "Program", - "statements": [ - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "Foo", - "decorators": [], - "loc": { - "start": { - "line": 18, - "column": 7, - "program": "test_decorator3.ts" - }, - "end": { - "line": 18, - "column": 10, - "program": "test_decorator3.ts" - } - } - }, - "superClass": null, - "implements": [], - "constructor": { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "decorators": [], - "loc": { - "start": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - }, - "end": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - }, - "end": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - }, - "end": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - }, - "end": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - } - } - }, - "overloads": [], - "decorators": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - }, - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "baz", - "decorators": [], - "loc": { - "start": { - "line": 19, - "column": 14, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 17, - "program": "test_decorator3.ts" - } - } - }, - "kind": "set", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "name": "a", - "decorators": [], - "loc": { - "start": { - "line": 19, - "column": 18, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 19, - "program": "test_decorator3.ts" - } - } - } - ], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 19, - "column": 21, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 24, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 17, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 24, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 17, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 24, - "program": "test_decorator3.ts" - } - } - }, - "overloads": [], - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "dec", - "decorators": [], - "loc": { - "start": { - "line": 19, - "column": 6, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 9, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 9, - "program": "test_decorator3.ts" - } - } - } - ], - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 24, - "program": "test_decorator3.ts" - } - } - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "baz", - "decorators": [], - "loc": { - "start": { - "line": 20, - "column": 14, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 17, - "program": "test_decorator3.ts" - } - } - }, - "kind": "get", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 20, - "column": 20, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 23, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 17, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 23, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 17, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 23, - "program": "test_decorator3.ts" - } - } - }, - "overloads": [], - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "dec", - "decorators": [], - "loc": { - "start": { - "line": 20, - "column": 6, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 9, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 5, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 9, - "program": "test_decorator3.ts" - } - } - } - ], - "loc": { - "start": { - "line": 20, - "column": 5, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 23, - "program": "test_decorator3.ts" - } - } - } - ], - "loc": { - "start": { - "line": 18, - "column": 11, - "program": "test_decorator3.ts" - }, - "end": { - "line": 21, - "column": 2, - "program": "test_decorator3.ts" - } - } - }, - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "bar", - "decorators": [], - "loc": { - "start": { - "line": 17, - "column": 2, - "program": "test_decorator3.ts" - }, - "end": { - "line": 17, - "column": 5, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 1, - "program": "test_decorator3.ts" - }, - "end": { - "line": 17, - "column": 5, - "program": "test_decorator3.ts" - } - } - } - ], - "loc": { - "start": { - "line": 18, - "column": 1, - "program": "test_decorator3.ts" - }, - "end": { - "line": 21, - "column": 2, - "program": "test_decorator3.ts" - } - } - } - ], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "test_decorator3.ts" - }, - "end": { - "line": 21, - "column": 2, - "program": "test_decorator3.ts" - } - } -} diff --git a/ets2panda/test/parser/ts/test_generic-expected.txt b/ets2panda/test/parser/ts/test_generic-expected.txt index eced1f8ca915eecbafea350adb82a1242b95fb21..b80307b6c052ac48d8f9b9e216e602ae0d45e3db 100644 --- a/ets2panda/test/parser/ts/test_generic-expected.txt +++ b/ets2panda/test/parser/ts/test_generic-expected.txt @@ -7900,4 +7900,3 @@ } } } -TypeError: This reference refers to a value, but is being used as a type here. Did you mean to use 'typeof'? [test_generic.ts:17:59] diff --git a/ets2panda/test/test-lists/srcdumper/srcdumper-ets-ignored.txt b/ets2panda/test/test-lists/srcdumper/srcdumper-ets-ignored.txt index a7c61d98b5e0d63f34bc7ea57656c420ae827273..ea809445205fb7f3f81a4a16741b2bb522e36311 100644 --- a/ets2panda/test/test-lists/srcdumper/srcdumper-ets-ignored.txt +++ b/ets2panda/test/test-lists/srcdumper/srcdumper-ets-ignored.txt @@ -31,6 +31,8 @@ runtime/ets/labeledStatement.ets runtime/ets/namespace_tests/namespace_import_type_test/namespace_export.ets runtime/ets/newArrayCreationUnionType.ets parser/ets/dynamic_import_tests/modules/module.ets +parser/ets/import_tests/import_several_2.ets +parser/ets/import_tests/import_several_7.ets # FailKind.ES2PANDA_FAIL diff --git a/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json b/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json index 8dd7ddc8c1ce87ac427e2988afaa5e0243ed6bc9..650b113f886580c3ba87809e12b6be14eb796f02 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", + "stdout": "Fatal error F0013: Invalid ArkTsConfig: incorrect-include/arktsconfig.json\nArkTS config error EAC0010: The 'include' must have array type\n", "stderr": "" } diff --git a/ets2panda/util/diagnostic.cpp b/ets2panda/util/diagnostic.cpp index 1f3f8e079072085e18157f76b227b7c711db97f1..e8fd5f722a6d0b96e159d7d357fdd8aba68c114a 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 fafbd060751628dfc277531c464eee7ea21cbd46..46164a00708da066a64f0179e85901a69dc9c8cd 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 bb8e6f39eca5bff4e51557d8cd44aa3786da5065..8c7987a94999e52a6ea7a33713c820e4f08d52c3 100644 --- a/ets2panda/util/diagnostic/semantic.yaml +++ b/ets2panda/util/diagnostic/semantic.yaml @@ -1472,7 +1472,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/diagnostic/warning.yaml b/ets2panda/util/diagnostic/warning.yaml index 39d5e366d5ec6768f126c67a20fc6dc989badceb..792ecea22786af542761f40f2640793f813faf48 100644 --- a/ets2panda/util/diagnostic/warning.yaml +++ b/ets2panda/util/diagnostic/warning.yaml @@ -25,10 +25,19 @@ warning: id: 4 message: "Boost Equality Statement. Change sides of binary expression." +- name: DUPLICATE_ALIAS + id: 32596 + message: "'{}' is explicitly used with alias several times" + - name: DUPLICATE_EXPORT_ALIASES id: 73 message: "Duplicated export aliases for '{}'." + +- name: DUPLICATE_IMPORT + id: 125428 + message: "'{}' has already imported" + - name: DUPLICATE_SIGS id: 12 message: "Detect duplicate signatures, use '{}{}' to replace" diff --git a/ets2panda/util/diagnosticEngine.cpp b/ets2panda/util/diagnosticEngine.cpp index 82e2ad43f4574691fd11860e1185ab835c631fcf..2ade8c8f1351ae31197dca8ea7ea08ba5e3a264d 100644 --- a/ets2panda/util/diagnosticEngine.cpp +++ b/ets2panda/util/diagnosticEngine.cpp @@ -24,16 +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 { + // NOTE(pronai) test harness is not prepared for cerr Print(diagnostic, std::cout); } diff --git a/ets2panda/util/helpers.cpp b/ets2panda/util/helpers.cpp index 219b36556670c5e91219486758ccf68c53a37ec6..685e406cffc57a23c6570926864cc574f40e332f 100644 --- a/ets2panda/util/helpers.cpp +++ b/ets2panda/util/helpers.cpp @@ -460,7 +460,7 @@ std::vector Helpers::CollectBindingNames(varbinder::VarBinder } void Helpers::CheckImportedName(const ArenaVector &specifiers, - const ir::ImportSpecifier *specifier, const std::string &fileName) + const ir::ImportSpecifier *specifier, DiagnosticEngine &diagnosticEngine) { auto newIdentName = specifier->Imported()->Name(); auto newAliasName = specifier->Local()->Name(); @@ -470,19 +470,16 @@ void Helpers::CheckImportedName(const ArenaVector &specif auto savedIdentName = it->Imported()->Name(); auto savedAliasName = it->Local()->Name(); if (savedIdentName == savedAliasName && savedAliasName == newIdentName) { - message << "Warning: '" << newIdentName << "' has already imported "; + diagnosticEngine.LogDiagnostic(diagnostic::DUPLICATE_IMPORT, DiagnosticMessageParams {newIdentName}, + specifier->Start()); break; } if (savedIdentName == newIdentName && newAliasName != savedAliasName) { - message << "Warning: '" << newIdentName << "' is explicitly used with alias several times "; + diagnosticEngine.LogDiagnostic(diagnostic::DUPLICATE_ALIAS, DiagnosticMessageParams {newIdentName}, + specifier->Start()); break; } } - - if (message.rdbuf()->in_avail() > 0) { - std::cerr << message.str() << "[" << fileName.c_str() << ":" << specifier->Start().line << ":" - << specifier->Start().index << "]" << std::endl; - } } void Helpers::CheckDefaultImportedName(const ArenaVector &specifiers, diff --git a/ets2panda/util/helpers.h b/ets2panda/util/helpers.h index bfe2b0e0825bc3aadad686c26676aae050ff28ec..e3fd915ae88731c6a3d6b37c27476ad1b1df638f 100644 --- a/ets2panda/util/helpers.h +++ b/ets2panda/util/helpers.h @@ -155,7 +155,7 @@ public: static std::vector CollectBindingNames(varbinder::VarBinder *vb, ir::Expression *node); static util::StringView FunctionName(ArenaAllocator *allocator, const ir::ScriptFunction *func); static void CheckImportedName(const ArenaVector &specifiers, - const ir::ImportSpecifier *specifier, const std::string &fileName); + const ir::ImportSpecifier *specifier, DiagnosticEngine &diagnosticEngine); static void CheckDefaultImportedName(const ArenaVector &specifiers, const ir::ImportDefaultSpecifier *specifier, const std::string &fileName); static void CheckDefaultImport(const ArenaVector &statements); diff --git a/ets2panda/util/options.cpp b/ets2panda/util/options.cpp index c4fda533cd821ed66ffe34bf1280c348e9e1cb7f..90372a6facd081c61e824ce83d04e3b7eca6b885 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;